repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lemanouthe/feliciano | 3,676,492,035,981 | d9f2b6598aed26ba78e30afffa1cae60d5ddaaf0 | 4bb005fc2d550bf35cfcb3732356db2886abfd8e | /configuration/migrations/0001_initial.py | f827c71bdb7ecf6c30629cd50d1a43373a4eaca6 | [] | no_license | https://github.com/lemanouthe/feliciano | 5d0a64cd0adc00c8ddc9a04719144cbb193a06c3 | 20e49309a038263714fca4131eb25ed2702a3e47 | refs/heads/master | 2022-03-27T13:56:23.735511 | 2020-01-30T00:28:14 | 2020-01-30T00:28:14 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.2.5 on 2019-09-30 15:23
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AboutConfig',
... | UTF-8 | Python | false | false | 8,448 | py | 27 | 0001_initial.py | 22 | 0.525805 | 0.518229 | 0 | 176 | 47 | 160 |
oasysokubo/pacAI | 19,086,834,699,285 | 0297384776d9e836d0cc1bebb27a187d8d489a4b | 0ef639c85334c42e7958e40009d47d0a9c5123ae | /src/pacai/student/multiagents.py | 797caecb4f8b0f4323c6a48f5111261f3a50276e | [] | no_license | https://github.com/oasysokubo/pacAI | b3e93b2ca23f341a5cd8b48ce31c17c3e54b0ae6 | 8d2f28be01c7aa388e0f8c8689a50d521cdd27da | refs/heads/master | 2023-08-07T06:16:00.229413 | 2020-10-15T02:33:28 | 2020-10-15T02:33:28 | 215,427,629 | 1 | 1 | null | false | 2023-07-22T18:54:03 | 2019-10-16T01:15:14 | 2022-05-17T03:00:12 | 2023-07-22T18:54:02 | 3,337 | 0 | 0 | 2 | Python | false | false | import random
import sys
from pacai.agents.base import BaseAgent
from pacai.agents.search.multiagent import MultiAgentSearchAgent
from pacai.core import distance
class ReflexAgent(BaseAgent):
"""
A reflex agent chooses an action at each choice point by examining
its alternatives via a state evaluation fun... | UTF-8 | Python | false | false | 18,312 | py | 15 | multiagents.py | 14 | 0.587047 | 0.5782 | 0 | 450 | 39.693333 | 100 |
Seabreg/chiasm-shell | 3,435,973,881,728 | 9b7d86dffc14f29e40bda3c375cf7aa6472caf5b | ddd8940c63a64bc0f1924f28bb3bc0ab9037cda9 | /chiasm_shell/chiasm_shell.py | a5b5a3229579ae71def5197590afb3feae18d9fc | [
"MIT"
] | permissive | https://github.com/Seabreg/chiasm-shell | d08d159c0ad90841b38ce348b2ac5595b57a5dbe | e20ed9fdf3fcb87d9469aa6fd52bf9e3eed92bc7 | refs/heads/master | 2020-05-02T01:20:51.398278 | 2017-01-27T04:58:13 | 2017-01-27T04:58:13 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
"""
Main class and method for chiasm shell.
:author: Ben Cheney
:license: MIT
"""
from __future__ import absolute_import
import logging
import chiasm_shell.config as config
l = logging.getLogger('chiasm_shell.chiasm_shell')
class ChiasmShell(object):
"""
Utility class for kicking off ... | UTF-8 | Python | false | false | 1,044 | py | 6 | chiasm_shell.py | 5 | 0.584291 | 0.584291 | 0 | 43 | 23.27907 | 69 |
davidcarvalho/code-snippets | 12,017,318,524,794 | 13cddd9a7136e01b06b7a80e536b931bcb75c258 | 67e18e48337134e144dadeaa3f619952658af1fa | /code_snippets/print_dict.py | b3e7628c09b7a702b1f7a99a4eddf2ad916883c1 | [] | no_license | https://github.com/davidcarvalho/code-snippets | e687f3fa2176b7c9c8cb87c2dce4e64cfb3aa339 | d0c0904b2ea0668b4c58bb269ac27f3eded0827c | refs/heads/master | 2023-06-15T04:46:40.974754 | 2021-07-05T19:00:47 | 2021-07-05T19:00:47 | 382,922,159 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def dict_print(dict1):
for key in dict1.keys():
if type(dict1[key]) is dict:
dict_print(dict1[key])
else:
print(f'Dictionary key {key} for dictionary value {dict1[key]}')
d = {x: x ** 2 for x in [2, 3, 4, 5, 6, 7]}
print(d)
dict_print(d)
| UTF-8 | Python | false | false | 284 | py | 22 | print_dict.py | 21 | 0.545775 | 0.503521 | 0 | 11 | 24.818182 | 76 |
isabella232/altimeter | 644,245,097,680 | e9bc4554d8a297b95d4552d1de7753dc49c8ca8c | b3610065d63cd2a78a8b3563576ea6597d76ea3b | /altimeter/aws/access/accessor.py | 898c69da644bd7763dbe95d2b2d0e0fdf315b378 | [
"Python-2.0",
"MIT"
] | permissive | https://github.com/isabella232/altimeter | 5d0d7c7efcaef2613b0a11a4249b7322a9aaf8de | 7969fa62de54546e7548aa998bb2f42b78e69851 | refs/heads/master | 2023-02-02T04:46:36.762061 | 2020-12-23T18:37:18 | 2020-12-23T18:37:18 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Classes defining multi-stage AWS access methods. Provides the ability to
auth to an account via 1+ bridge accounts and to try multiple methods."""
from dataclasses import dataclass, field
from datetime import datetime
import json
import os
from pathlib import Path
from typing import Any, Dict, List, Optional, Type
... | UTF-8 | Python | false | false | 13,614 | py | 45 | accessor.py | 40 | 0.590862 | 0.589687 | 0 | 369 | 35.894309 | 119 |
theMagicalKarp/python-xml-parsing-benchmark | 13,993,003,464,693 | c95b37e324410d534eece2cc55e3e102c7d4bc9b | e7b30e2a05aa8bd440a8b5f5fc0c1e38365dbd9a | /tools/__init__.py | 7c8267e3098ef108200139436aed93e1a5bae75e | [] | no_license | https://github.com/theMagicalKarp/python-xml-parsing-benchmark | 97394cae255ff74c14dc3e052175b44a7288e687 | 5819eedbab0c53bcec1c791f029c1945673c8a01 | refs/heads/master | 2020-12-08T15:38:58.752921 | 2013-03-14T22:33:50 | 2013-03-14T22:33:50 | 8,513,607 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import sys, profilers, pstats
class ProfileManager(object):
""" Profile Manager
Handles and runs mulitiple profiles
to generates reports.
Attributes:
profiler_list: list of profiler objects compare each run
xml_data: A string representation of our xml file
"""
def __init__(s... | UTF-8 | Python | false | false | 3,680 | py | 4 | __init__.py | 3 | 0.555707 | 0.554348 | 0 | 89 | 40.337079 | 99 |
fryslie/eulerbend | 14,456,859,927,456 | 76e53c3563c11936fb522333bce3298fb680f618 | 291e736b4eca07dd55f62a342ed4000b99aa28b5 | /eulerbend_ipkiss.py | 4b30ea76ce47924d81d58b2084423bfe73cc7ddf | [] | no_license | https://github.com/fryslie/eulerbend | 4970fb3aa8bfbffa5b4fd0a5d66a8b997f9025d8 | 00ae6a7968579dacebe267cff9ac90a3f4a4dfa0 | refs/heads/master | 2023-03-17T03:31:28.324571 | 2020-09-24T06:34:09 | 2020-09-24T06:34:09 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """ Generate an euler bend with IPKISS """
from __future__ import division
import numpy as np
from scipy.special import fresnel
import technologies.silicon_photonics
import ipkiss3.all as i3
def _euler_bend_center_line_shape(R=10, theta=np.pi/2, num_points=1000):
"""
Args:
R (float): minimal bend r... | UTF-8 | Python | false | false | 4,371 | py | 4 | eulerbend_ipkiss.py | 1 | 0.567376 | 0.545413 | 0 | 130 | 32.630769 | 101 |
simon-pikalov/deep_learning_course_matirial | 8,040,178,800,672 | 2019122ef982ced8b3457f1070649319c7093c85 | 32e5077d41894607daec358998a72c01bc90ce21 | /logistic_regression/ergent_classifier.py | e355cd65608236d3b8da1afa18456a52c4cb3998 | [] | no_license | https://github.com/simon-pikalov/deep_learning_course_matirial | 19889c9496ef464e87ad7054358ebb9cccd4817d | 5b438208745d3e430efb2e389e1ade9ef65811c4 | refs/heads/main | 2023-03-08T09:42:46.647205 | 2021-02-14T06:27:09 | 2021-02-14T06:27:09 | 317,063,942 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import tensorflow.compat.v1 as tf
import os
import numpy as np
import matplotlib.pyplot as plt
tf.disable_v2_behavior()
tf.disable_eager_execution()
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
vocabulary_size = 0 # can use "global" keyword
word2location = {}
data = ["Where are you? I'm trying to reac... | UTF-8 | Python | false | false | 2,357 | py | 13 | ergent_classifier.py | 12 | 0.651676 | 0.622401 | 0 | 68 | 33.676471 | 114 |
bipashasen/CTC-Transformer-Spech-Recognition | 10,883,447,153,400 | 071d64e0a36de2cd1650eee221c90c70a6a4ecea | e7a4d237203a32ab61d7e922eee457f039bb535e | /create_features_temp.py | a2225748a4a1240d041862101ad19bec06074307 | [] | no_license | https://github.com/bipashasen/CTC-Transformer-Spech-Recognition | cb3e1d34c51037550b8eb96ed878a77a52d1a999 | ee6dc06aac79e0e582488cd4e337f139e5f3e1f8 | refs/heads/master | 2022-12-14T14:49:12.602420 | 2020-09-16T16:36:18 | 2020-09-16T16:36:18 | 296,089,594 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import soundfile as sf
import os
import numpy as np
from numpy import asarray
from numpy import save
from numpy import savez
import sys
folder_path = sys.argv[1]
features_folder_path = sys.argv[2]
featureAudioMapping = sys.argv[3]
feature_size = 3200
def processFeatures():
featureAudioMap = list()
maxFrameLength ... | UTF-8 | Python | false | false | 1,465 | py | 6 | create_features_temp.py | 5 | 0.692833 | 0.682594 | 0 | 45 | 31.555556 | 73 |
Naive96/AdventOfCode | 9,938,554,348,271 | 1bc85a493d186475606b2bfe4b1a5401947b4f46 | 361c629165244dbabcee15571ff4de1a18d0e6b7 | /test/Day2/TestDay2.py | 20fddc9420b789e70685c11afde793dd3f08817e | [] | no_license | https://github.com/Naive96/AdventOfCode | 17a071e1437c632d3b1fd1a036f6c584c5637f53 | a7cdb18ccb7777f120ef673b164d9dd91ed6910c | refs/heads/main | 2023-02-04T07:39:29.320275 | 2020-12-23T07:16:25 | 2020-12-23T07:16:25 | 323,741,368 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import unittest
from src.Day2 import part1
from src.Day2 import part2
class TestDay2(unittest.TestCase):
def test_part1(self):
pwds = ['1-3 a: abcde',
'1-3 b: cdefg',
'2-9 c: ccccccccc']
result = part1.execute(pwds)
self.assertEqual(result, 2)
def test... | UTF-8 | Python | false | false | 507 | py | 6 | TestDay2.py | 6 | 0.534517 | 0.489152 | 0 | 20 | 24.35 | 36 |
prantoran/prac | 11,321,533,825,796 | bc8b40ebb4f95a4bf32c5c2d6cab76de69a13b3b | 2be0db6b3bde8401095b95b2043202d934713265 | /envp/lib/python3.7/tempfile.py | 2201d99252a7a40153702fb0362e7407baf05063 | [] | no_license | https://github.com/prantoran/prac | cd13f3cf2fed196481dd0c7a1d32407ffcad6aa1 | b0925fcd2cb4c8b27673bfd145aaee7537243114 | refs/heads/master | 2020-06-22T18:40:41.872190 | 2019-07-19T13:23:14 | 2019-07-19T13:23:14 | 197,775,442 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | /home/prantoran/miniconda3/lib/python3.7/tempfile.py | UTF-8 | Python | false | false | 52 | py | 46 | tempfile.py | 43 | 0.846154 | 0.788462 | 0 | 1 | 52 | 52 |
Aeroone/YSTR-CVL | 4,861,902,983,854 | d87d0dba2c0273d3a5872e139686e390537bfbb3 | 773211e16baf1b7a8105f1aa20b0d5c7a370c78c | /model_VisualSemanticEmbedding.py | 5b5c8f4694392b4c0a0ff76016c966dc69eadb10 | [] | no_license | https://github.com/Aeroone/YSTR-CVL | b149ae84e24c12806ea10f5b4150e70bb2cfdf7e | be586f279a4634ee006fb2594902fc9e91f1e17a | refs/heads/master | 2021-08-22T11:31:58.674785 | 2017-11-30T04:17:37 | 2017-11-30T04:17:37 | 109,063,591 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import config
import torchvision.models as models
### use the visual semantic text embedding model here ###
class VisualSemanticEmbedding(nn.Module):
def __init__(self, embed_ndim):
super(VisualSemanti... | UTF-8 | Python | false | false | 1,649 | py | 24 | model_VisualSemanticEmbedding.py | 15 | 0.582777 | 0.571255 | 0 | 49 | 32.673469 | 115 |
Sunjjjjjj/AAI_simulator_py2 | 15,066,745,319,412 | c6c18fc20a3fb3bf6b5a2c8657f68b54e205b41d | 6adcffdbc4af75c3ccde5bfc638d248241f4bf19 | /MODIS_combine.py | 97dd3d55fdafc7c6c2d8057fb247413a16b2886f | [] | no_license | https://github.com/Sunjjjjjj/AAI_simulator_py2 | fedd9b9050ea8b4c3dc4980ece3e21c08831c1f1 | 4f98c3feae1c27f28397aa8683c8c3af06673cf4 | refs/heads/master | 2021-08-24T02:35:02.428352 | 2017-11-30T14:15:25 | 2017-11-30T14:15:25 | 112,618,641 | 0 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Intercomparison among satellite data
@author: sunj
"""
import sys, os
import shutil
import time
import numpy as np
import numpy.ma as ma
import matplotlib.pyplot as plt
from netCDF4 import Dataset
import glob
import tables
from scipy import ndimage
from mpl_toolkits.basemap import Basema... | UTF-8 | Python | false | false | 7,291 | py | 35 | MODIS_combine.py | 34 | 0.609519 | 0.549993 | 0 | 228 | 30.947368 | 238 |
vfat0/safe-transaction-service | 996,432,442,799 | eb35a4aa12a59cac12efb1a19c8cb039065df0c3 | 063bb17c8a6ee197f0ef5e228ebb7735287d064a | /safe_transaction_service/history/tests/test_tasks.py | 5a4e36efbeeae64e1b122d727cdd69b86fde5401 | [
"MIT"
] | permissive | https://github.com/vfat0/safe-transaction-service | 55790f5ad4d35e39f563aa66017f31057ecc64ba | a8c48343a5d32971828f1d9c9e9fd113aeaef7fd | refs/heads/master | 2022-12-30T23:06:01.465485 | 2020-10-27T12:24:06 | 2020-10-27T12:24:06 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import logging
from unittest.mock import MagicMock, patch
from django.test import TestCase
from eth_account import Account
from ..tasks import BlockchainRunningTask, BlockchainRunningTaskManager
from .factories import EthereumEventFactory, InternalTxFactory, WebHookFactory
logger = logging.getLogger(__name__)
cla... | UTF-8 | Python | false | false | 1,577 | py | 15 | test_tasks.py | 13 | 0.654407 | 0.653773 | 0 | 45 | 34.044444 | 109 |
profjefer/biological-cells-counter | 7,962,869,382,460 | 339cdf95a0bf01ca4fe1f81ea282cc3ee2a725dc | e3674c95e31ccd76b0d5c0d0674326d17c552584 | /project/tests/dip_test.py | 9471369dbccd52fd8842738b47e1db3180045028 | [] | no_license | https://github.com/profjefer/biological-cells-counter | 2780b66f57d8ed4b6407eb91c294630bea0ce5e3 | cfa0fba93371577e0098434343e00fc68234e9b0 | refs/heads/main | 2023-04-19T13:59:41.327867 | 2021-05-10T17:13:01 | 2021-05-10T17:13:01 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
import os
import cv2
from colorama import init
from termcolor import colored
sys.path.append('../')
from dip.segmentation_dip import segmentation
from shared.counter import count_cells, change_cells_to_rgb
def read_file(path_to_file):
f = open(path_to_file, 'r')
files = f.read()
f.close()
... | UTF-8 | Python | false | false | 1,960 | py | 12 | dip_test.py | 4 | 0.591837 | 0.585204 | 0 | 61 | 31.131148 | 95 |
xusl/android-wilhelm | 10,943,576,683,610 | fc5a8f09060324dfdf040ff7b1ac63e4db20de9f | ebd585fdafb22d31fcd6d04b209f81e88d1a2083 | /modem_proc/core/products/build/SConscript | b31ea370704e024ae230bab6d5b180c6ed858686 | [
"Apache-2.0"
] | permissive | https://github.com/xusl/android-wilhelm | fd28144253cd9d7de0646f96ff27a1f4a9bec6e3 | 13c59cb5b0913252fe0b5c672d8dc2bf938bb720 | refs/heads/master | 2018-04-03T21:46:10.195170 | 2017-04-20T10:17:49 | 2017-04-20T10:17:49 | 88,847,837 | 11 | 10 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Title: Sconscript
# License: License
# Copyright 2010 Qualcomm Inc
# Description: General Description
# Sconscript for CoreBSP Products CMM scripts
# Team: Functional Area
# CoreBSP Products 8960
# Target: Target
# MSM8960
# Author: Author
# $Author: rvennam $
# Location: Perforce Revision
# $Header: //source... | UTF-8 | Python | false | false | 14,250 | 13,006 | SConscript | 1,741 | 0.670386 | 0.658246 | 0 | 329 | 42.31003 | 161 | |
murielsilveira/django13-agenda | 17,093,969,875,472 | f868aa8062846f61e49fe145162a911adc2fbe48 | f31b053d591d5c8c536be873a8627773a0211579 | /sistema/views.py | 0a18c82de7a22088111de55d84259dc5920b171e | [
"Unlicense"
] | permissive | https://github.com/murielsilveira/django13-agenda | 89ebec2eba67ef8886be6cfe38b9fcfa61157929 | 027a5b495cfab6a3fe832e86ac5cf4a90ee5b9fc | refs/heads/master | 2020-04-06T04:48:16.837336 | 2014-09-15T15:04:16 | 2014-09-15T15:04:16 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404, redirect
def sistema(request):
"""
Define para onde o usuário será encaminhado
"""
#logado = True
#if logado:
#return redirect(login)
re... | UTF-8 | Python | false | false | 692 | py | 9 | views.py | 5 | 0.683599 | 0.677794 | 0 | 28 | 23.607143 | 94 |
cms-sw/cmssw | 12,412,455,512,065 | bf8127530a6fe2d0482867209de1ee81743afd79 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /DPGAnalysis/HcalNanoAOD/python/hcalRecHitTable_cff.py | 5478e4c8261c6310bc4c8aa2b1b175e15058581f | [
"Apache-2.0"
] | permissive | https://github.com/cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | false | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | 2023-09-09T18:47:07 | 2023-09-14T19:14:27 | 1,330,249 | 980 | 4,104 | 807 | C++ | false | false | import FWCore.ParameterSet.Config as cms
from PhysicsTools.NanoAOD.common_cff import Var,P3Vars
hbheRecHitTable = cms.EDProducer("HBHERecHitFlatTableProducer",
src = cms.InputTag("hbhereco"),
cut = cms.string(""),
name = cms.string("RecHitHBHE"),
doc = cms.string("HCAL barrel an... | UTF-8 | Python | false | false | 3,047 | py | 46,375 | hcalRecHitTable_cff.py | 40,422 | 0.538563 | 0.530358 | 0 | 65 | 45.876923 | 86 |
vivekaxl/LexisNexis | 11,304,353,941,326 | a7902bfc34e0b39bc4dbfdfaeac37cd542356e69 | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/rahul/deTuner.py | 34024d1fd48909f828b44ce6c63365dde514dff0 | [] | no_license | https://github.com/vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys, os
sys.path.append(os.environ['HOME'] + '/git/axe/axe')
sys.path.insert(0, os.getcwd() + '/_imports');
from demos import *
import sk; # @UnresolvedImport
from dectree import *
from settings import *
from settingsWhere import *
from pdb import set_trace
from abcd import _Abcd
from Prediction import rforest... | UTF-8 | Python | false | false | 4,580 | py | 936 | deTuner.py | 924 | 0.566376 | 0.543886 | 0 | 179 | 24.586592 | 79 |
mwesterhof/wapsandbox | 13,503,377,211,701 | 953f2b3e58c784aa4d13e29263bcc27d08187cfb | b341d7630b19a8a65eefb985e102cffef6b64c09 | /products/urls.py | 64f80270e00aa50577b41ef85c3b211c4492b2d2 | [] | no_license | https://github.com/mwesterhof/wapsandbox | e8f05ecfcfe9cfe9435653fb2a337b2ce62edb0a | 17e476de45527993fec4b61f92a62558864fe310 | refs/heads/master | 2020-03-24T17:55:04.090229 | 2018-09-07T13:54:49 | 2018-09-07T13:54:49 | 142,876,457 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.urls import path
from .views import OrderProduct, ProductList, ProductDetail
urlpatterns = [
path('', ProductList.as_view(), name='product_list'),
path('<int:pk>/', ProductDetail.as_view(), name='product_detail'),
path('<int:pk>/order/', OrderProduct.as_view(), name='product_order')
]
| UTF-8 | Python | false | false | 313 | py | 49 | urls.py | 34 | 0.686901 | 0.686901 | 0 | 10 | 30.3 | 73 |
kevinholst/politifact_tools | 2,061,584,341,162 | 5bf64a107c94c8582a3b2b1cdd718744abce045a | 06b08b237a34b80d8cfafe07b10c38aa8838983d | /politifact_score.py | 07ef006da6b7ab82e2a98dcafed8451c2c5ad694 | [] | no_license | https://github.com/kevinholst/politifact_tools | a4c8a5ac727803c1490a59fd6e6c8ab1aa922a5c | 0c442f47faadba71460b3ad8e96a0cec564c1105 | refs/heads/master | 2021-01-10T08:22:44.507486 | 2015-12-21T04:57:29 | 2015-12-21T04:57:29 | 48,351,460 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import division, print_function
from bs4 import BeautifulSoup
import requests
import numpy as np
BASE = 'http://www.politifact.com/personalities/'
SCORING = np.array([2, 1, 0, -1, -2, -3])
def get_truthiness_score(name):
page = requests.get(BASE + name)
soup = BeautifulSoup(page.content)
... | UTF-8 | Python | false | false | 666 | py | 2 | politifact_score.py | 1 | 0.636637 | 0.621622 | 0 | 26 | 24.615385 | 66 |
romanitalian/online_school_bread_blog | 15,436,112,480,636 | 65799ca15000a1965cce90985de352d1aff15a3f | f415e4adfaa3a3e243022744e34422b3315f7f37 | /notes/01/dec/main_1.py | 2bee488c99db1b49dfdf9eb1cad376792560cb8b | [] | no_license | https://github.com/romanitalian/online_school_bread_blog | 706d52a96a45ce40d983b9fe66523e7afd07455d | 19590400fafd37d225761e309e709d5004da0fb2 | refs/heads/main | 2023-06-23T18:20:26.318345 | 2021-07-23T09:05:48 | 2021-07-23T09:05:48 | 388,740,479 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from datetime import datetime
def counter_decorator(func):
cnt = 0
def wrapper():
nonlocal cnt
cnt += 1
print(cnt)
res = func()
return res
return wrapper
@counter_decorator
def foo():
print(datetime.now())
foo()
foo()
foo()
| UTF-8 | Python | false | false | 289 | py | 84 | main_1.py | 64 | 0.560554 | 0.553633 | 0 | 25 | 10.56 | 29 |
javier123454321/complexity | 9,345,848,869,091 | 724fd46bf9894c5db93bfdc42bf98f68c9e4aacb | 3726d860eb6b1fe051126179084283b58bf5a121 | /fractals1/fractals2.py | a75e00036a3a6278f80d277b4622712a61eb46ac | [] | no_license | https://github.com/javier123454321/complexity | 538304e6b25d6cd68dab6fead7a92de4d0c1a930 | 3b5fd2e54a845910bbd30eea90c58c4ffc5f7945 | refs/heads/master | 2020-05-05T06:02:25.424420 | 2019-07-23T15:10:18 | 2019-07-23T15:10:18 | 179,772,902 | 0 | 0 | null | false | 2019-04-06T00:49:05 | 2019-04-06T00:43:36 | 2019-04-06T00:45:10 | 2019-04-06T00:49:04 | 0 | 0 | 0 | 0 | Python | false | false | import rhinoscriptsyntax as rs
import ghpythonlib as ghp
def fractalizeCurve(curve, numsteps, output_lines):
numsteps -= 1
#Get endpoints from input curve
curvePoints = rs.AddPoints(rs.CurvePoints(curve))
pt0 = curvePoints[0]
pt1 = curvePoints[1]
#rotate input curve by i... | UTF-8 | Python | false | false | 964 | py | 2 | fractals2.py | 1 | 0.642412 | 0.62578 | 0 | 30 | 29.8 | 67 |
ranjiayu/EntryFormGenerator | 17,093,969,860,969 | 44d8899b8a7266397271a3b79cbcb96245fc83a6 | c7e6c8f8d0f770e4f1b53617affaf52f56c8a097 | /form/models.py | a1f3bddff5581d482d7db305272e0aa1e8c63c54 | [] | no_license | https://github.com/ranjiayu/EntryFormGenerator | 94dca535ef2e6a8cc91ff0f266a1baedaa5ca327 | 3a38b51a1ced173be0753b7d374cbe75a5ea8531 | refs/heads/master | 2020-06-19T23:40:15.990204 | 2016-11-30T03:06:27 | 2016-11-30T03:06:27 | 74,895,490 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Form(models.Model):
title = models.CharField(max_length=70)
author = models.CharField(max_length=70)
password = models.CharField(max_length=70, default='')
create_time = models.DateTimeField(auto_no... | UTF-8 | Python | false | false | 1,158 | py | 9 | models.py | 5 | 0.670984 | 0.662349 | 0 | 44 | 25.318182 | 73 |
vaankiller/leetcode | 498,216,250,486 | 12c913fb991222908b7316f58955be2613342214 | 1c74dee0cf5efcdcebb52455cb8a11de210a02ab | /py2/273. Integer to English Words.py | 9fb4b1bec6048ade2cc86f1f630168d726979089 | [] | no_license | https://github.com/vaankiller/leetcode | f8072abad23ee41bda2a80d1a536120f11ada50f | 88b434bd493e6cb2f70267b40a87c2d881d89cb0 | refs/heads/master | 2020-04-16T02:11:58.057867 | 2018-12-24T08:49:40 | 2018-12-24T08:49:40 | 61,943,789 | 6 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | __author__ = 'vaan'
unit = ["Zero ", "One ", "Two ", "Three ", "Four ", "Five ", "Six ", "Seven ", "Eight ", "Nine "];
decade = ["Zero", "Ten", "Twenty ", "Thirty ", "Forty ", "Fifty ", "Sixty ", "Seventy ", "Eighty ", "Ninety "]
tenth = ["Ten ", "Eleven ", "Twelve ", "Thirteen ", "Fourteen ", "Fifteen ", "Sixteen ", ... | UTF-8 | Python | false | false | 1,801 | py | 161 | 273. Integer to English Words.py | 80 | 0.540811 | 0.508606 | 0 | 49 | 35.714286 | 128 |
PouceHeure/py_light_mas | 8,272,107,034,995 | c32bb52e4cfaaa5ff50d038970f044e67af6c230 | 61fa9ae05e3fc5d926a56814743fd4dee8c08acd | /lib/py_light_mas/environnemnt.py | a43b431089fb18d0df6eeded6a532701d0bf21c6 | [] | no_license | https://github.com/PouceHeure/py_light_mas | ee2b99a5b671df8db6e6cf60112754d2223e8a10 | 05b01d9e9d0584fca02dd4f45f5eceaae3eeb606 | refs/heads/master | 2022-12-13T03:35:34.793809 | 2020-09-07T09:25:38 | 2020-09-07T09:25:38 | 292,829,428 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
class Environnemnt:
"""abstract class
"""
def on_event_new_tick(self):
"""method trigged when the simulation passed a new tick
"""
def on_event_show(self):
"""method trigged when the simulation ask to show the current state of the env
"""
def event_new_tick(self):... | UTF-8 | Python | false | false | 410 | py | 13 | environnemnt.py | 11 | 0.592683 | 0.592683 | 0 | 17 | 23.058824 | 86 |
clademorin/Email-Address-Extractor | 627,065,243,295 | d6ed6dd74712c53e0502a1e0847186f2b272f74b | 85d56946b1bc672492b3b3f4782be37751c2d03d | /Email-Address-Extractor.py | bf33898d27b21ec582dc5735f4871d71d5ce89a2 | [] | no_license | https://github.com/clademorin/Email-Address-Extractor | e1dedcf37239e7f4dca3155731a307f087b2dda7 | ad405d2fcc92273bbc3c2fa45f7664c5eaa9b834 | refs/heads/master | 2022-11-26T03:11:02.294315 | 2020-07-25T14:38:01 | 2020-07-25T14:38:01 | 282,456,873 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tkinter import END, Frame, Tk, Button, Label, Text
import pyperclip
import re
def creaelenco():
indirizzi = ''
test = text_input.get("1.0", END).strip()
elenco = re.findall("([\S]*@[\S]*\.[\w]*)", test)
for i in elenco:
indirizzi += i.replace('\n', '').replace('<', '')+';'
... | UTF-8 | Python | false | false | 1,262 | py | 3 | Email-Address-Extractor.py | 1 | 0.647385 | 0.616482 | 0 | 40 | 29.6 | 111 |
jaydeep1412/Catalent | 8,057,358,659,862 | 968c32f0ce7c52d73ffb956b7dd1448fece38cbd | e4ca0195b9f29f2622ab29f56ca380cc73d25f94 | /myapp/migrations/0004_auto_20201104_1510.py | 33f49e164f0d5af55075ed0514836e4283a20661 | [] | no_license | https://github.com/jaydeep1412/Catalent | e09838ec5f4cf90097985932a9814f4c23e08dfa | b79eae3e41de3e9bec3fb39ab6664b53d7cc1b49 | refs/heads/master | 2023-02-02T11:04:58.209225 | 2020-12-07T16:35:37 | 2020-12-07T16:35:37 | 313,762,220 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.1.2 on 2020-11-04 20:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0003_auto_20201104_1441'),
]
operations = [
migrations.AlterField(
model_name='analysis',
name='Correlation... | UTF-8 | Python | false | false | 748 | py | 18 | 0004_auto_20201104_1510.py | 10 | 0.572193 | 0.530749 | 0 | 28 | 25.714286 | 59 |
thomas-mckay/test-pycoins | 11,854,109,773,748 | 796e5b3167785e90fdf5432cce0d69f1f81e3927 | 607b04038659b4028b0818ba41dc5ba96db6ad94 | /tests/views/test_account.py | c5b5bf8fdbad670e27bd82e39f2baf9f8f8dcc25 | [] | no_license | https://github.com/thomas-mckay/test-pycoins | bf6a812bb270e89a42ab2ba7e23eaf61ffe4a330 | 6ddca95e7bfa5f6352f3af17549aeed7c817c2e6 | refs/heads/master | 2020-04-07T20:38:33.665397 | 2018-11-27T19:16:08 | 2018-11-27T19:16:08 | 158,697,418 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf import settings
from django.http import HttpResponse
from django.urls import reverse
from mock import mock
from ..utils import PyCoinsTestCase
class AccountViewsTestCase(PyCoinsTestCase):
def test_user_detail_view__no_auth(self):
url = reverse('user-details')
response = self.clie... | UTF-8 | Python | false | false | 2,296 | py | 50 | test_account.py | 32 | 0.652003 | 0.635017 | 0 | 55 | 40.745455 | 112 |
YikeZhou/csp-solution | 16,896,401,379,442 | 88f0cf0882fa4067d660fa2e6eb8f8e67dcf89d7 | aaf19a505caaf6b6fe379ddcecffd4b26e8ec3cb | /201712/3.py | 0710d6f5ac278556739f5829c3006ba0c441c78c | [] | no_license | https://github.com/YikeZhou/csp-solution | cb8a07b925ab6bb50bd0637ebc151d83b31fb7d2 | 9b7fe8be09863c87a54830e5a22a356ba9c7143e | refs/heads/master | 2022-12-22T05:11:45.285684 | 2020-09-13T04:25:32 | 2020-09-13T04:25:32 | 293,463,583 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
File: 3.py
Project: 201712
File Created: Sunday, 6th September 2020 10:10:23 am
Author: zyk
-----
Last Modified: Sunday, 6th September 2020 4:49:46 pm
Modified By: zyk
-----
2020 - HUST
'''
from datetime import datetime, timedelta
class Time:
def __init__(self, year, month, day, hour, minute):
self.dt... | UTF-8 | Python | false | false | 5,242 | py | 14 | 3.py | 14 | 0.454216 | 0.428653 | 0 | 173 | 29.300578 | 214 |
a-luna/vigorish | 17,506,286,708,651 | e51a384cb382be35e775bbf7f019f4340e79bf34 | b7500e25551e14fd71694bf7a240eb7c95e38f20 | /src/vigorish/tasks/sync_data_no_prompts.py | 153192904826f3837c75dcf15e5f46b58e87d036 | [
"MIT"
] | permissive | https://github.com/a-luna/vigorish | 5f05af1d44745af91a82f84886dd81f8a2cf7489 | 84bd02311b35e2789d741d8cb10a3e4e584f0255 | refs/heads/master | 2023-08-22T11:51:51.866613 | 2022-07-08T14:55:56 | 2022-07-08T14:55:56 | 174,183,970 | 2 | 2 | MIT | false | 2023-08-16T02:01:16 | 2019-03-06T16:48:22 | 2021-10-08T00:58:37 | 2023-08-16T02:01:15 | 24,880 | 2 | 2 | 33 | Python | false | false | """Menu item that returns the user to the previous menu."""
import subprocess
from halo import Halo
from vigorish.cli.components import (
get_random_cli_color,
get_random_dots_spinner,
print_heading,
print_message,
)
from vigorish.enums import DataSet, SyncDirection, VigFile
from vigorish.tasks.base i... | UTF-8 | Python | false | false | 7,538 | py | 513 | sync_data_no_prompts.py | 238 | 0.634253 | 0.629079 | 0 | 175 | 42.074286 | 119 |
matiasz8/tasty-broccoli | 14,010,183,327,234 | 97483978c2a7a45ac43b4cd388cc438f1c98a974 | da2437008a3c386413ab10e093253104f01f162e | /lattuga/views.py | 4d2abda2cb9456523be4628fc00b81dfeddcc51d | [] | no_license | https://github.com/matiasz8/tasty-broccoli | 57a9b3e33e70cf866f752ffcc75b63a4c5f80654 | c5ff0f3ee20e5833ac09640d77d02dcc0decc51f | refs/heads/main | 2023-03-20T20:54:44.248467 | 2021-03-16T05:05:45 | 2021-03-16T05:05:45 | 320,475,442 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.shortcuts import render
from django.shortcuts import HttpResponse
def index(request):
return HttpResponse(f"<html><p>Response Tasty OK</p></html>", status=201)
| UTF-8 | Python | false | false | 178 | py | 5 | views.py | 3 | 0.764045 | 0.747191 | 0 | 6 | 28.666667 | 77 |
JesusRivera98/reportes-neurociencias | 13,237,089,217,424 | df66811fbafaf5fdce1327bf97e3b81ab00081cf | dc9275f75d3855d591bfed41ee5a82f50fd320b1 | /src/main/python/controladores/LNSController.py | 459646acfb888c4489ae0be79f070ad57cfe576d | [] | no_license | https://github.com/JesusRivera98/reportes-neurociencias | 477a3fbc8d0ac40f289b5f70bee6f193d509243f | da39a4135e6715bab68c87a4efeefc45f11a7297 | refs/heads/master | 2023-01-20T05:07:49.266729 | 2020-12-01T17:18:53 | 2020-12-01T17:18:53 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Controlador de la vista de LNSWindowWidget
from PyQt5 import QtWidgets, QtCore
from vistas.LNSWindowWidget import *
from MainWindowController import *
from ReporteModel import *
from pruebas.LNSPrueba import *
from PruebaModel import *
from ControllerModel import *
class LNSController(QtWidgets.QWidget, ControllerMo... | UTF-8 | Python | false | false | 2,649 | py | 29 | LNSController.py | 23 | 0.722919 | 0.722159 | 0 | 101 | 25.049505 | 101 |
Envinorma/back-office | 7,198,365,225,380 | 2ab2fda878fb34adc9c28af78b1af977ecef05cc | 1c8d46b8cb7b680cf809158be9c652e00126592c | /back_office/pages/edit_parameter_element/form_handling.py | f290e5b8f88fd054c73c6119519612b64deba0f4 | [
"MIT"
] | permissive | https://github.com/Envinorma/back-office | c060b8a3da659ec2b539f00bb711ce5a460bcabf | 2d2c082d40b8c3cb58d2bc0295801baf16cb983d | refs/heads/main | 2021-10-05T02:30:34.604942 | 2021-09-24T15:25:43 | 2021-09-24T15:25:43 | 364,665,307 | 0 | 0 | MIT | false | 2021-09-23T14:49:49 | 2021-05-05T18:05:37 | 2021-09-23T12:43:04 | 2021-09-23T14:49:48 | 19,154 | 0 | 0 | 3 | Python | false | false | import json
import traceback
from dataclasses import dataclass
from typing import Dict, List, Optional
from envinorma.models import ArreteMinisteriel, StructuredText
from envinorma.models.condition import load_condition
from envinorma.models.text_elements import EnrichedString, Table
from envinorma.parametrization imp... | UTF-8 | Python | false | false | 8,625 | py | 86 | form_handling.py | 74 | 0.713738 | 0.713158 | 0 | 206 | 40.800971 | 119 |
RavinduAye/pythonProject | 7,808,250,547,256 | 988a34f26a4857c18b4ed92bad6dd01e7317c00c | c0cf536e04147bff8daf35cf47f7bec245e11951 | /venv/Lib/site-packages/detecting/utils/misc.py | ec6efdbd4291d03c5c47fa09e8118b278571ba83 | [] | no_license | https://github.com/RavinduAye/pythonProject | 8f29c5bedc1f23a4901db2abbaa0e439de526d2a | ff1ecb407f33697b02f2f2061912841e168fd33f | refs/heads/master | 2023-05-02T03:57:21.674224 | 2021-05-17T06:44:51 | 2021-05-17T06:44:51 | 367,957,729 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import tensorflow as tf
# 用于删除数值都为0的候选框
def trim_zeros(boxes, name=None):
'''Often boxes are represented with matrices of shape [N, 4] and
are padded with zeros. This removes zero boxes.
Args
---
boxes: [N, 4] matrix of boxes.
non_zeros: [N] a 1D boolean mask identifying the rows t... | UTF-8 | Python | false | false | 2,268 | py | 42 | misc.py | 35 | 0.541252 | 0.518887 | 0 | 92 | 20.880435 | 73 |
pkolt/django-filefieldtools | 3,109,556,367,671 | 1d18197602e08bfd7d07320381ab026621ed5a93 | ad8790306f06b9d0bbf33f0b43a9f811f328079d | /tests/app/tests/test_tools.py | 96cc58cd4bb4073b1603e7d9252f3b384eff2a24 | [
"BSD-3-Clause"
] | permissive | https://github.com/pkolt/django-filefieldtools | 1064d0ed1b06e016ae0c01cd1495fc525cc2f4c3 | 4e886c9ab173449aa925c107cb9e8f353343e253 | refs/heads/master | 2020-04-10T16:15:36.198093 | 2013-04-28T16:19:57 | 2013-04-28T16:19:57 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from django.utils import unittest
from filefieldtools.tools import (clean_filename, translate_filename,
control_length, upload_to)
class TestTools(unittest.TestCase):
def test_translate_filename(self):
value = translate_filename(u'Прайс для клиенто... | UTF-8 | Python | false | false | 2,872 | py | 14 | test_tools.py | 9 | 0.658803 | 0.634507 | 0 | 65 | 42.692308 | 89 |
hafiztsalavin/catatanDasarPython | 6,975,026,911,689 | 748c766e32e1b3d154558db6c113c6a7203c87e1 | da82d899f9c057138524923e0ef50b5a50a0abf2 | /stack and queue/stack and queue/stack and queue/queue.py | 8ad667ede6c796344733f1cb94dc73b70cbe2880 | [] | no_license | https://github.com/hafiztsalavin/catatanDasarPython | e0827410ffc7f6ea11b79e02c25a3cd574e4ccba | 32b68eabdb52fc11dff9a50fadd92aeb3d57b945 | refs/heads/master | 2021-06-22T18:03:50.233951 | 2019-07-27T18:19:13 | 2019-07-27T18:19:13 | 199,197,001 | 0 | 0 | null | false | 2021-03-29T20:09:39 | 2019-07-27T17:51:00 | 2020-10-23T08:54:18 | 2021-03-29T20:09:39 | 1,515 | 0 | 0 | 1 | Python | false | false | from collections import deque
# ANTRIAN
Antrian = deque([1,2,3,4,5,6,7,8])
print ('tumpukan sekarang ',Antrian)
Antrian.append(9)
print ('tumpukan sekarang ',Antrian)
Antrian.append(10)
print ('tumpukan sekarang ',Antrian)
keluar = Antrian.popleft()
print ('data yang keluar : ',keluar)
print ('tumpu... | UTF-8 | Python | false | false | 557 | py | 61 | queue.py | 57 | 0.691203 | 0.671454 | 0 | 24 | 21.208333 | 36 |
pycalphad/scheil | 16,887,811,433,090 | 3515049d730a477ebbd9a06aaeacbb42bdef5ca6 | 7c008d1e34080359840f368462106a0336e1928f | /scheil/simulate.py | beba5d183e6ee54c45f6ffe99e2d62dd5cdbd409 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | https://github.com/pycalphad/scheil | b9e1df2ba073bc6767f3f8a0ff0145ab7e349514 | 05a89a914db0f268142a91fa4045f9dca2ce9930 | refs/heads/master | 2023-07-10T06:59:19.620357 | 2023-06-27T16:12:54 | 2023-06-27T16:12:54 | 150,358,281 | 11 | 5 | MIT | false | 2023-06-29T21:11:06 | 2018-09-26T02:38:19 | 2023-06-27T16:13:02 | 2023-06-29T21:11:06 | 143 | 10 | 4 | 5 | Python | false | false | import sys
import numpy as np
from pycalphad import equilibrium, variables as v
from pycalphad.codegen.callables import build_phase_records
from pycalphad.core.calculate import _sample_phase_constitution
from pycalphad.core.utils import instantiate_models, unpack_components, filter_phases, point_sample
from .solidifica... | UTF-8 | Python | false | false | 18,321 | py | 13 | simulate.py | 8 | 0.606092 | 0.600306 | 0 | 375 | 47.850667 | 137 |
ADebut/Leetcode | 11,201,274,722,322 | ab5bfe079e43ab1ad3193155b2e40067859bf51a | 792ae5d2a5c17af4f2ccfa582e3aeec569a6809a | /152. Maximum Product Subarray.py | 92c11b929ddaf29f1906129aaf0cb68135999799 | [] | no_license | https://github.com/ADebut/Leetcode | 396b8b95ad5b5e623db2839bbfdec861c4c1731f | 7333d481e00e8c1bc5b827d1d4ccd6e4d291abd7 | refs/heads/master | 2020-07-05T18:48:27.504540 | 2019-10-28T10:51:43 | 2019-10-28T10:51:43 | 202,735,925 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Solution:
def maxProduct(self, nums: List[int]) -> int:
MAX = nums[0]
dp_min = [0 for x in range(len(nums))]
dp_max = [0 for x in range(len(nums))]
dp_min[0] = dp_max[0] = nums[0]
for i in range(1, len(nums)):
dp_max[i] = max([dp_max[i - 1] * nums[i], dp_min... | UTF-8 | Python | false | false | 494 | py | 76 | 152. Maximum Product Subarray.py | 75 | 0.477733 | 0.455466 | 0 | 11 | 44 | 88 |
annahs/atmos_research | 10,368,051,092,408 | a114324ab9b8a364f48d0c174257652b44f7339b | bff706dc4ce7552200e1d515afa9f0c461eb18a5 | /WHI_CO_vs_alt.py | c8fa617483a4e0c8a83293de520f046a08fd05c4 | [
"MIT"
] | permissive | https://github.com/annahs/atmos_research | 1fffc24d43ddacf460a6d16f0b5264e6692023c5 | b5853c9b12e327492f8f8ba5069bca3fd2e981c8 | refs/heads/master | 2020-12-25T16:59:30.261245 | 2016-08-10T20:47:59 | 2016-08-10T20:47:59 | 32,475,832 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from matplotlib import dates
import os
import pickle
from datetime import datetime
from pprint import pprint
import sys
from datetime import timedelta
import calendar
import mysql.connector
from pyhdf.SD import SD, SDC, SDS
year_to_plot = 2009
#fire times
timezone = ... | UTF-8 | Python | false | false | 9,762 | py | 222 | WHI_CO_vs_alt.py | 222 | 0.658574 | 0.610121 | 0 | 301 | 31.418605 | 207 |
abraker95/ultimate_osu_analyzer | 18,451,179,518,584 | 314cb333f7043433d9937335e701a5d65fa15c36 | 05167f142a1c05fc18612da9d7628ce0ba396ec3 | /osu/local/monitor.py | 7c916a9557a62dd718e0252bc41dd91df8cb529e | [
"MIT"
] | permissive | https://github.com/abraker95/ultimate_osu_analyzer | 73494c6507cc97d4cf627c16184cd87be632579b | 8b211a01c2364d51b8bf08e045e9280ec3a04242 | refs/heads/master | 2022-07-01T20:03:36.343409 | 2022-02-24T06:16:11 | 2022-02-24T06:16:11 | 172,823,599 | 30 | 4 | MIT | false | 2022-06-16T23:44:40 | 2019-02-27T01:58:13 | 2022-04-25T08:53:15 | 2022-06-16T23:44:37 | 9,796 | 24 | 3 | 19 | Python | false | false | import watchdog.observers
import watchdog.events
import os
class Monitor(watchdog.observers.Observer):
def __init__(self, osu_path):
watchdog.observers.Observer.__init__(self)
if not os.path.exists(osu_path):
raise Exception(f'"{osu_path}" does not exist!')
self.osu_path = ... | UTF-8 | Python | false | false | 1,029 | py | 160 | monitor.py | 139 | 0.626822 | 0.626822 | 0 | 38 | 26.105263 | 89 |
ricardoarisequeira/AutomaticDocumentSummarization | 12,189,117,226,486 | f1e4212f637b40f6595e677971f5f80a088b3b71 | 1bd3d4e3c037ad35e6a780105946f12d1b1d7d6a | /project_part1/exercise-4.py | 86acff04ef8886252da02335a7097f12a0521b78 | [] | no_license | https://github.com/ricardoarisequeira/AutomaticDocumentSummarization | 351704dd62b3484343d780eb3359634ecefcbe52 | ec057f1a516bd7c75e164995bfe98ad5fb1f003a | refs/heads/master | 2020-09-21T00:59:52.675132 | 2019-11-28T11:17:08 | 2019-11-28T11:17:08 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from nltk import sent_tokenize
from os import listdir
from customvectorizer import CustomVectorizer
from customvectorizer import similarity
import re
# gets a list of portugueses stopwords from file
stopwords = open('stopwords.txt').read().splitlines()
# function to pre process sentences
def preprocessor(document):... | UTF-8 | Python | false | false | 3,107 | py | 14 | exercise-4.py | 10 | 0.62228 | 0.605391 | 0 | 102 | 29.186275 | 76 |
alema9/Fashion-Store | 111,669,160,248 | 294dd230c33578c89e3be39656e80f87662d3516 | 99ff850308eee8fa7fc3a9642cc908c85b1588b2 | /ecommerce/errors/handlers.py | 7875e56e567dd83eaf6e1588f56b5eb40cda2b49 | [] | no_license | https://github.com/alema9/Fashion-Store | a93340f82d0d966fc0cfc3f14bd573a4a3b3ebf3 | 0ea56586a0e4c83011dbd683e0ffad8540616fdd | refs/heads/master | 2023-08-29T00:42:26.305552 | 2020-02-13T16:14:51 | 2020-02-13T16:14:51 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Blueprint, render_template
errors = Blueprint('errors', __name__)
@errors.app_errorhandler(404)
def error_404(error):
return render_template('errors/404.html'), 404
#in flask we can return a static code which has default value 200 so we did not need to do with other routes
@errors.app_er... | UTF-8 | Python | false | false | 514 | py | 17 | handlers.py | 6 | 0.731518 | 0.655642 | 0 | 16 | 30.125 | 109 |
ibrahim713/MyUmassFiles | 3,341,484,586,866 | 31a23b49ba97ffb1a340518e11350b4750189325 | 865d450ed619968d07dbc40551f5a9e911e4a278 | /it110/it116/midterm.py | 10ce4925ae252d524bdae493f1c15156a879224c | [] | no_license | https://github.com/ibrahim713/MyUmassFiles | 5b9fc63585f3852f495c236185ad767d1938cc81 | e288215277d86bad3a7d27e5d22c0abe7d5fb176 | refs/heads/master | 2021-01-25T08:13:33.943934 | 2017-07-18T17:00:00 | 2017-07-18T17:00:00 | 93,752,137 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
n=int(sys.argv[1])
ruler=''
for i in range(1,n+1):
ruler=ruler +str(i)+ruler
print(ruler)
| UTF-8 | Python | false | false | 105 | py | 58 | midterm.py | 49 | 0.657143 | 0.628571 | 0 | 6 | 16.5 | 29 |
coolsnake/JupyterNotebook | 12,764,642,842,449 | edc9151e1713381918aed6b96af6003dab6dbef5 | da29f1f5b4459fbfec968bb694bedb9586f87b14 | /new_algs/Sequence+algorithms/Selection+algorithm/AgentFeatureSelection.py | b2091f1fc04a3861bfa896f23796d2c297035bdf | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | https://github.com/coolsnake/JupyterNotebook | 547806a45a663f090f313dc3e70f779ad9b213c0 | 20d8df6172906337f81583dabb841d66b8f31857 | refs/heads/master | 2023-01-13T18:55:38.615312 | 2020-11-17T22:55:12 | 2020-11-17T22:55:12 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import PhishingDetector as PD
import SpamDetector as SD
import numpy as np
import random
import datetime
feature_size_phishing = 30
feature_size_spam = 141
model_phishing = 1
model_spam = 0
classifier_neural_network = 1
classifier_svm = 0
class Agent():
# Init an Agent
def __init__(self, features_size):
"""... | UTF-8 | Python | false | false | 10,243 | py | 1,523 | AgentFeatureSelection.py | 1,515 | 0.632432 | 0.603339 | 0 | 291 | 34.182131 | 151 |
jvmkit/downloader-ui | 11,510,512,391,702 | 18526a4f1786f5761b551e0c5c94abbc72b4dab7 | 681a1a3df34cd2c5dd6d2ea87f29c12b8193c01c | /src/resource.py | 81a68d357dc9a5a5a0df57c361465d582a061cd0 | [] | no_license | https://github.com/jvmkit/downloader-ui | b278d9d5b12a8cc3dbd29163aca5eb1ce4592b48 | c52d24756393403acc26eef4c36498e1c8ed7efe | refs/heads/master | 2023-05-01T14:31:59.739129 | 2021-02-28T02:26:09 | 2021-02-28T02:26:09 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import json
import psutil
class Resource:
def list_downloaded(self):
download_path = os.path.dirname(os.path.abspath(__file__)) + '/dl'
def get_file_list(path:str):
ret_list = []
item_list = os.listdir(path)
for item in item_list:
my_pa... | UTF-8 | Python | false | false | 1,766 | py | 19 | resource.py | 14 | 0.467724 | 0.467724 | 0 | 61 | 27.967213 | 78 |
zzy-program/00_script | 11,656,541,243,686 | e63faf3b56d7b2965ea7c325cf7aa8e3d52d7f5c | 9a8a72efcd39525eff48d77c895b5276440d383c | /python/kernel_sym/sort.py | 20e0eea5fcaef0e0de16f6d19ebbd82edbcb3530 | [] | no_license | https://github.com/zzy-program/00_script | 0d380052fca30ae6b8c5d73d07b4091bf5e28940 | 90870c0dd83c812c1b462202896240fb587c6c74 | refs/heads/master | 2020-03-26T18:54:51.302048 | 2018-08-18T17:12:50 | 2018-08-18T17:12:50 | 145,238,368 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
f = open('vmlinux_fun_filename.txt', 'r')
i = 0
my_dict = {}
for line in f:
line = line.strip('\n')
if i % 2 == 0:
fun_name = line
else:
dir_name = line
my_dict[fun_name] = dir_name
i = i+1
f.closed
sorted(my_dict.keys())
for k, v in my_dict.items():
print k, v
| UTF-8 | Python | false | false | 296 | py | 16 | sort.py | 7 | 0.584459 | 0.570946 | 0 | 20 | 13.75 | 41 |
javierramon23/Python-Crash-Course | 12,850,542,191,580 | 985529be32a75082f241cc150e04d4a53cafb2df | 24e53f24cbc457cb62555de1f319d279001d8539 | /8.- Functions/cities.py | ae061edd2da40199fcc7dfae868df111fdedd8dc | [] | no_license | https://github.com/javierramon23/Python-Crash-Course | c93d4726377ffa96310a0b10490c7f308fb0a7aa | 07fe05f149437d9fdfa9de9dbb1633835a5b5f92 | refs/heads/master | 2021-06-19T15:43:00.232933 | 2019-11-21T20:04:33 | 2019-11-21T20:04:33 | 196,716,791 | 0 | 0 | null | false | 2021-06-10T21:51:44 | 2019-07-13T12:02:41 | 2019-11-21T20:04:47 | 2021-06-10T21:51:42 | 22,168 | 0 | 0 | 3 | Python | false | false | def describe_city(city, country = 'España'):
print('{} es una ciudad de {}.'.format(city, country))
describe_city('Teruel')
describe_city('Valencia')
describe_city('New York', country = 'EEUU') | UTF-8 | Python | false | false | 199 | py | 131 | cities.py | 126 | 0.681818 | 0.681818 | 0 | 6 | 32.166667 | 58 |
Ykuee/eclipse-workSpace | 14,078,902,800,865 | ad59d1006eb5223d41dd52cc00ab35b848f11b9e | 54496feb7dbb5315c3649813c468d2eaeab494e2 | /pecan_test/paste/master_valve.py | 82c90a82f161f58a3128934b2c751943219b36e1 | [] | no_license | https://github.com/Ykuee/eclipse-workSpace | 17833c7abd81ed820c85e2e874ef70273be2e9d3 | 118cfe74380b94a68dd4ae0b4829b0989e625587 | refs/heads/master | 2021-06-06T09:54:17.404097 | 2017-06-16T01:35:23 | 2017-06-16T01:35:23 | 94,492,812 | 0 | 1 | null | false | 2020-07-22T21:08:22 | 2017-06-16T01:28:13 | 2017-06-16T01:44:30 | 2017-06-23T07:54:01 | 130,138 | 0 | 1 | 1 | Python | false | false | #!/usr/bin/python
# -*- coding: UTF-8 -*-
#master_valve.py
from wsgiref.simple_server import make_server
from paste import httpserver
from paste.deploy import loadapp
import os
if __name__ == '__main__':
configfile = 'config.ini'
appname = 'main'
wsgi_app = loadapp('config:%s' % os.path.abs... | UTF-8 | Python | false | false | 645 | py | 182 | master_valve.py | 61 | 0.640945 | 0.601575 | 0 | 19 | 32.210526 | 106 |
13555785106/PythonPPT-01 | 16,484,084,504,767 | 728f8e4e005df1fe0f91f81bb84c33a2a4f203d3 | b96ed10d6247e22d4fa1d28bc3314bc319d3109c | /LessonSample/chapter51/dbtest.py | 6f6d5e4792091611fc312bc0d8b96ba945793136 | [] | no_license | https://github.com/13555785106/PythonPPT-01 | ac1b22b9b1851f2b3ea6e4ab0a100e5f6896ee8c | 40e5883f248cb342f3a7fc7ad12ba02ebde4c619 | refs/heads/master | 2020-04-26T16:49:59.675964 | 2019-03-04T07:16:21 | 2019-03-04T07:16:21 | 157,095,747 | 4 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import os
import random
from datetime import datetime, timedelta
# api文档 https://docs.djangoproject.com/en/1.7/ref/models/querysets/
import django
# from django.db.models import Sum,Avg,Count,Q
os.environ.setdefault("DJANGO_SETTIN... | UTF-8 | Python | false | false | 6,451 | py | 547 | dbtest.py | 434 | 0.667028 | 0.65656 | 0 | 161 | 33.416149 | 115 |
smuhit/2020-advent-code | 1,683,627,187,602 | 6d5093ff142c5809e05e8a49435bb702ee999030 | 744940636f2e1ddfe5d967ae53eaddc29922e463 | /day-19/solver.py | 247e2981b293f21f2f7bff2eac56f9bb4f0cc458 | [] | no_license | https://github.com/smuhit/2020-advent-code | a3945ebaaf7462d87b20912c6bbf958e92a17a0f | f1ee527bbfa66edc87af98551c32a924878a32c1 | refs/heads/main | 2023-02-01T16:11:47.161988 | 2020-12-19T21:01:27 | 2020-12-19T21:01:27 | 317,636,818 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import re
data = open('input.txt').read().split('\n')
rules = {}
for r_idx, datum in enumerate(data):
if datum == '':
break
key, value = datum.split(': ')
if '"' in value:
value = value.split('"')[1]
rules[int(key)] = value
else:
key_rules = []
for key_rule in ... | UTF-8 | Python | false | false | 2,349 | py | 21 | solver.py | 20 | 0.575138 | 0.553853 | 0 | 85 | 26.635294 | 88 |
anton1k/python_crash_course | 12,171,937,364,419 | 3213d394911eea6df943d4fd04fbab857ffab956 | e36472948f74fd5ed35fc64801a59db4efa27070 | /part_1/09_4_test.py | 8cd9aaa2757eaf779309743cfc40fdece0ccf5c1 | [] | no_license | https://github.com/anton1k/python_crash_course | 051aad7c5a043830d8cc9e5fd314f568bf0f4a53 | 80f302074e5fef48fb40e72f7d79ab4b8658b38a | refs/heads/master | 2020-07-18T23:28:00.871466 | 2019-09-04T14:06:12 | 2019-09-04T14:06:12 | 206,333,934 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Restaurant():
def __init__(self, restaurant_name, cuisine_type):
self.restaurant_name = restaurant_name
self.cuisine_type = cuisine_type
self.number_served = 0
def describe_restaurant(self):
print('ресторан - {0}, повар - {1}'.format(self.restaurant_name.title(), self.cuis... | UTF-8 | Python | false | false | 1,106 | py | 100 | 09_4_test.py | 95 | 0.693137 | 0.685294 | 0 | 28 | 35.464286 | 108 |
wilpoole/Machine-Learning-A-Z | 1,640,677,549,445 | 03990c8bd44ca66adc94c2db59bb270fbb53e8db | 59dfdf2219f6c84baceea62d702eb86617a19137 | /Part 1 - Data Preprocessing/Section 2 - Data Preprocessing/wil_data_preprocessing.py | a4e7a75a6bc83ddea640b3253c53cdd62b21d5ac | [] | no_license | https://github.com/wilpoole/Machine-Learning-A-Z | ca115deca04e40b69828e34a193c802c491cce0f | 0aa31f2cc5c3d6bd6ffe5192dfaa00d02b0cc39a | refs/heads/master | 2021-09-11T16:38:57.242856 | 2018-04-09T19:43:08 | 2018-04-09T19:43:08 | 111,995,951 | 0 | 0 | null | false | 2018-04-09T19:43:09 | 2017-11-25T10:43:40 | 2018-04-08T12:29:27 | 2018-04-09T19:43:08 | 210 | 0 | 0 | 0 | Python | false | null | #!/usr/bin/env python
# File information
"""
wil_data_preprocessing.py: First look at preprocessing data.
"""
__author__ = "Wil Poole"
__copyright__ = "2017"
__credits__ = "Wil Poole"
__license__ = "None"
__version__ = "0.1"
__maintainer__ = "Wil Poole"
__email__ = "@"
__status__ = "Development"
# Import libraries
i... | UTF-8 | Python | false | false | 1,703 | py | 16 | wil_data_preprocessing.py | 16 | 0.725778 | 0.715796 | 0 | 61 | 26.918033 | 124 |
Reigningsun/CSC394_Capstone_Project | 4,509,715,668,740 | b8933485b4dd83bcb562a224d4968bafaba65c87 | db9ca49041febe7ef0d7faa5f402b027c5c16e1a | /app/models/csc394_courses.py | f9508fbf8af6fdfa8a9e1e5a98e7403c175ced1c | [] | no_license | https://github.com/Reigningsun/CSC394_Capstone_Project | 64ef75d4c60b85c9388e1129d513ab3147b63784 | b5f1cba84ee3a8b3613e338ad6504fa0f2cfd972 | refs/heads/master | 2022-12-14T07:04:05.358995 | 2018-06-08T22:44:15 | 2018-06-08T22:44:15 | 136,528,726 | 0 | 0 | null | false | 2022-12-08T00:01:15 | 2018-06-07T20:39:40 | 2018-06-08T22:44:17 | 2022-12-08T00:01:14 | 150 | 0 | 0 | 4 | Python | false | false | from app import db
class Csc394Courses(db.Model):
__tablename__ = "csc394_courses"
id = db.Column(db.String, primary_key=True)
title = db.Column(db.String)
subject = db.Column(db.String)
course_nbr = db.Column(db.Integer)
description = db.Column(db.String)
prereqs = db.Column(db.String)
... | UTF-8 | Python | false | false | 894 | py | 28 | csc394_courses.py | 25 | 0.591723 | 0.585011 | 0 | 28 | 30.928571 | 63 |
WoKRamon/Secao5 | 14,568,529,102,968 | 92a334bfac22d70f258a77c6bdcd23efb975c89e | f07a3cedc941d7e50b52f9b322b13842570a194b | /exercicio18.py | 6ffc9f33955af07201e7924734caced6e0b1fa08 | [] | no_license | https://github.com/WoKRamon/Secao5 | f91e9d66462e7df16a7a533f19ba47c6312c0a3c | 2a2dc421c5e2951bf8d3e9b64df1cbcdcb76c09a | refs/heads/main | 2023-03-19T01:49:44.275326 | 2021-03-08T06:11:15 | 2021-03-08T06:11:15 | 345,546,442 | 6 | 6 | null | null | null | null | null | null | null | null | null | null | null | null | null | print("Escolha a operação matemática abaixo")
opc = 0
while 1 > opc or opc > 4:
opc = int(input("1. Para soma digite 1 \n"
"2. Para Subtração digite 2 \n"
"3. Para multiplicação digite 3 \n"
"4. Para divisão digite 4 \n"))
val1 = int(input("Digite o prim... | UTF-8 | Python | false | false | 784 | py | 40 | exercicio18.py | 40 | 0.584094 | 0.551499 | 0 | 26 | 28.5 | 59 |
TianleiSun/shakespeare_bot | 16,827,681,869,375 | 0b141f696e0ca0f8cd2d1229f6088dac09276eb3 | 7ff552aa952e7cf6e83ba83adf051b1f8208e744 | /RNN/RNN_ver2.py | 53fc278a4787f411f0720389a5ce821773d359f0 | [] | no_license | https://github.com/TianleiSun/shakespeare_bot | c816f08ab79ac14dadc231810107986b09309bc1 | 24d7851a665fa2fbe0d92cb77f6650b1b1dd0b5c | refs/heads/master | 2021-01-21T10:04:50.674980 | 2017-02-28T01:37:43 | 2017-02-28T01:37:43 | 83,373,646 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
# coding: utf-8
# In[1]:
from keras.models import Sequential
from keras.layers import Dense, Activation, Dropout
from keras.layers import LSTM
from keras.optimizers import RMSprop
from keras.utils.data_utils import get_file
import numpy as np
import random
import sys
import matplotlib.pyplot as plt
import preprocess... | UTF-8 | Python | false | false | 2,965 | py | 5 | RNN_ver2.py | 4 | 0.611804 | 0.59258 | 0 | 127 | 22.314961 | 91 |
altermarkive/Scheduled-Tasks-with-Cron-Python-Ubuntu-Docker | 17,532,056,514,089 | f86422885a6895798f56b1added7b722195be7a0 | 98b92546ecb15c709b153ccb4503c107500ad5a0 | /aiohttp-connexion-container/app/app.py | 6920765f7a76603357bb4a80144ce908d9484623 | [
"MIT"
] | permissive | https://github.com/altermarkive/Scheduled-Tasks-with-Cron-Python-Ubuntu-Docker | 888135a30a7b83742a747715d943c3aa4560eb55 | 1d9959e33cac5d9d2c2089964089bc416dc9276d | refs/heads/master | 2021-01-10T14:24:08.115025 | 2020-10-05T15:35:16 | 2020-10-05T15:35:16 | 54,128,099 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This is the script with the main code of the application
"""
import json
import logging
import aiohttp.web
import connexion
async def index(request):
"""
Redirecting root to index.html
"""
raise aiohttp.web.HTTPFound('/index.html')
def go():
"... | UTF-8 | Python | false | false | 976 | py | 11 | app.py | 3 | 0.596311 | 0.592213 | 0 | 45 | 20.688889 | 68 |
ajgupta93/enhanced-view-synthesis | 11,132,555,236,698 | 335c63a74d75d3f7974bfdca03379ca1ee64bc33 | 4a661cb2b7dfcc7dac371c5de608cb93570795fa | /code/utility.py | 1e054205726d41c9227c467b998a82b5278ff8e4 | [] | no_license | https://github.com/ajgupta93/enhanced-view-synthesis | 5196794a4982a0bdf71d75aa5a412f2501848ab6 | 881f6cb243baae4aa07857af759dcc9d53f8e248 | refs/heads/master | 2020-03-14T21:30:34.597571 | 2017-03-14T10:13:43 | 2017-03-14T10:13:43 | 131,797,823 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from scipy.misc import imsave
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
import Image
import os
import pdb
import shutil
import random
def save_as_image(images):
for i in range(0, len(images)):
filename = filepath+str(i)+".png"
imsave(filename, images[i])
def show_image(... | UTF-8 | Python | false | false | 1,608 | py | 5 | utility.py | 4 | 0.659826 | 0.645522 | 0 | 62 | 24.919355 | 88 |
Ascend/ModelZoo-PyTorch | 18,528,488,915,949 | 7d8c07579797e43423ba8709956c1cfdce1cc2bf | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /ACL_PyTorch/built-in/cv/Flownet2_for_Pytorch/Flownet2_pth2onnx.py | 7fb8bcd89c0ece3f49e510de496549880d3c5e91 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | https://github.com/Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | false | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | 2022-10-10T08:03:54 | 2022-10-15T04:01:18 | 53,470 | 7 | 5 | 2 | Python | false | false | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | UTF-8 | Python | false | false | 1,959 | py | 11,303 | Flownet2_pth2onnx.py | 8,028 | 0.689127 | 0.668709 | 0 | 56 | 33.982143 | 91 |
GGGGGGGG/s2wrapper | 11,579,231,836,414 | f6188052e4b3e62c2bda662acf27e510be9a7a15 | 8626d8f997dc6f16bceedf552a262c036622901c | /plugins/limit.py | ae4c40631d503c94d4a8a1c89ed8c7170fc07caf | [] | no_license | https://github.com/GGGGGGGG/s2wrapper | c4f9509e8d44cc5d0c5900181cb36e66cd306eb9 | 2064e85cae07d6c1b78f42e7fb296be2da6a646e | refs/heads/master | 2021-01-21T07:21:19.483107 | 2018-01-25T22:21:03 | 2018-01-25T22:21:03 | 18,301,597 | 2 | 1 | null | true | 2015-02-04T23:11:29 | 2014-03-31T17:24:36 | 2015-01-26T19:21:20 | 2015-02-04T23:11:29 | 887 | 1 | 1 | 0 | Python | null | null | # -*- coding: utf-8 -*-
import os
import re
import ConfigParser
from MasterServer import MasterServer
from PluginsManager import ConsolePlugin
from S2Wrapper import Savage2DaemonHandler
# TODO: 20101014 winex: improve forcespec'ing player by watching inside onSetTeam
class limit(ConsolePlugin):
CONFIG_DEFAULT = {
... | UTF-8 | Python | false | false | 1,683 | py | 32 | limit.py | 21 | 0.639335 | 0.625074 | 0 | 70 | 23.042857 | 81 |
Saknowman/django-s-store-api | 12,266,426,600,731 | f5cbc109de62b2e0f8b371d147044f9118897888 | 00609a376392df8f1d8ce7e0259e76548479948c | /s_store_api/settings.py | 8585fa9691286b560a45f44f943f3b8c5a56fa6b | [
"MIT"
] | permissive | https://github.com/Saknowman/django-s-store-api | d0271c1de4079d8e233bf6ebada80dc57380e4ab | a14e000ea32cc527ad2c822f09f812194a5c8a47 | refs/heads/master | 2021-09-29T00:36:46.396908 | 2019-12-24T03:30:04 | 2019-12-24T03:30:04 | 228,795,250 | 1 | 0 | MIT | false | 2021-09-22T18:18:14 | 2019-12-18T08:38:36 | 2019-12-24T03:50:04 | 2021-09-22T18:18:12 | 65 | 1 | 0 | 2 | Python | false | false | from django.conf import settings
APP_SETTING_ROUTE_NAME = 'S_STORE_API'
DEFAULTS = {
'STORE_MODEL': {
'MAX_LENGTH': 20,
},
'ITEM_MODEL': {
'MAX_LENGTH': 20,
},
'COIN_MODEL': {
'MAX_LENGTH': 5,
},
'STORE_PERMISSION_CLASSES': [
's_store_api.perm... | UTF-8 | Python | false | false | 1,503 | py | 44 | settings.py | 41 | 0.606121 | 0.602794 | 0 | 50 | 28.06 | 96 |
pije76/scportal | 14,551,349,200,275 | f7f7dbbcd3acc2f74ebff9c1b9fac4555d781adf | 3c6562047fece137b66665eb78406944e6b0999a | /gridplatform/reports/urls.py | 887890d78f628565054b6ab4c9deb50a28255abd | [] | no_license | https://github.com/pije76/scportal | 401e38d4dd9debb5bccd004362521cbfea0a3f4a | 2c13c94504e07c673d333db4212c5c03ba80c20d | refs/heads/master | 2023-03-06T20:29:52.461816 | 2020-01-02T07:42:13 | 2020-01-02T07:42:13 | 227,796,927 | 1 | 0 | null | false | 2019-12-13T09:04:07 | 2019-12-13T08:54:19 | 2019-12-13T09:03:35 | 2019-12-13T09:04:07 | 0 | 0 | 0 | 6 | Python | false | false | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from django.conf.urls import patterns, url
urlpatterns = patterns(
'gridplatform.reports.views',
url(r'^status/$',
'status',
name='reports-status'),
url(r'^(?P<id>\d+)/(?P<title>.*)$',
... | UTF-8 | Python | false | false | 369 | py | 807 | urls.py | 457 | 0.588076 | 0.585366 | 0 | 16 | 22.0625 | 42 |
JeanMarc-Moly/mugimugi_client_api_entity | 7,490,423,000,254 | 3504b91b913bc661a9ed8826eb98392dc3ba5725 | faba9787b3e1f610d6622a2ce0539c3ea9b14476 | /test/resource/xml/sample/item/character/tosaka_rin.py | 8b44178e34d7f5a4d08d55a040b49dd30f3c2b42 | [] | no_license | https://github.com/JeanMarc-Moly/mugimugi_client_api_entity | 3f8bd12164a4b35390ea60531f5c7caa91905e55 | 57a10613921361b13bdeec6143f0fe5fd969916b | refs/heads/main | 2023-06-19T04:45:23.719121 | 2021-07-21T21:21:43 | 2021-07-21T21:21:43 | 376,458,493 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from mugimugi_client_api_entity.enum import Ratio, Sex
from mugimugi_client_api_entity.main.book import Character
from ......configuration import SAMPLE
from ...abstract import Sample
class BookCharacterTosakaRin(Sample[Character]):
file_path = SAMPLE / "book/item/character/tosaka_rin.xml"
object = ... | UTF-8 | Python | false | false | 712 | py | 173 | tosaka_rin.py | 137 | 0.621934 | 0.61039 | 0 | 22 | 29.5 | 65 |
oway13/Schoolwork | 7,310,034,338,173 | 0d8effac346725e46eb653c1691fdbdbce286513 | cd649144fcba3a701b4ac3a01f58af749a55bffa | /15Fall/1133 Intro to Programming Concepts/Python Labs/Lab 5/l5 wo1.py | 48d2faaa396ea633a030eebabce6d172e65e335e | [
"MIT"
] | permissive | https://github.com/oway13/Schoolwork | d3aca4c566a1b1a152b2e40418d8229f91403d3f | 294f407c288ef532f8f187a6ee0bd9fd0e7559ab | refs/heads/master | 2020-03-23T04:24:44.147826 | 2019-02-11T19:53:01 | 2019-02-11T19:53:01 | 141,081,829 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
length = int(input('Enter Length of # List: '))
numlist = []
for n in range(1, length+1):
numlist += [random.randint(1,9)]
print(numlist)
for n in range(1, length+1):
swapvar = numlist[n-1]
for i in range(n, length+1):
if numlist[i-1] == min(numlist[n-1:]):
numlist[n-1] = n... | UTF-8 | Python | false | false | 383 | py | 349 | l5 wo1.py | 193 | 0.590078 | 0.556136 | 0 | 13 | 28.384615 | 47 |
liucongcas/TSD | 3,453,153,742,784 | 53de585fe92abb126e03419a3ebe3c38ecc208e6 | 4823d61a7978d2f855ad118ff6c6d5acacd20b25 | /pipeline/get_readthrough_longsite.py | b41f094104b250ebf8cbb04c99292e5d5c3b8f00 | [
"Apache-2.0"
] | permissive | https://github.com/liucongcas/TSD | b968a9f59b19bccbd167cb5d3abb51be15a0fa28 | 34f6961e02f627964d3430f3bc8d93c7a0ff5a6d | refs/heads/master | 2020-05-22T06:15:05.880808 | 2019-10-19T08:57:30 | 2019-10-19T08:57:30 | 167,324,245 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys,getopt,time,os,commands
def get_time_mem():
fr_r = [r1.strip().split("\t") for r1 in open(readthroughfile).readlines()]
fr_g = [r1.strip().split("\t") for r1 in open(genefile).readlines()]
list_total=[];dict_g={};list_la=[]
for x in fr_g:
par=x[7]
dict_g[par]=[x[0],x[3]... | UTF-8 | Python | false | false | 2,757 | py | 36 | get_readthrough_longsite.py | 23 | 0.4893 | 0.464273 | 0 | 85 | 30.458824 | 122 |
kimdohui/Python_Study | 1,486,058,716,698 | c8ae68e9b339c11cb7db960ca2d834daa2c8134c | 1a65481701a7ec2ba17e051cf50d131ded1516e1 | /unit41/코루틴 받아오기.py | 1e529163bc9c8e13ae3dce69d4f66cbbb370b0f8 | [] | no_license | https://github.com/kimdohui/Python_Study | bec9b24bab79048d3b7169609898c213912f1d99 | 92dcec38cfa1043e004a72fdb2be2a3f56311444 | refs/heads/master | 2021-05-17T13:58:59.729705 | 2020-04-22T10:58:12 | 2020-04-22T10:58:12 | 250,809,291 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def add(a, b):
c = a + b # add 함수가 끝나면 변수와 계산식은 사라짐
print(c)
print('add 함수')
def calc(): # 메인루틴
add(1, 2) # add 함수가 끝나면 다시 calc 함수로 돌아옴 (서브루틴)
print('calc 함수')
calc()
# 코루틴이란 서로 협력하는 루틴이란 뜻으로 메인루틴과 서브루틴이 대등한 관계이며
# 특정 시점에 상대방의 코드를 실행함
# 일반 함수 호출 시 코드를 한번만 실행할 수 있지만 코루틴은 여러번 실행 가능함
... | UTF-8 | Python | false | false | 1,040 | py | 83 | 코루틴 받아오기.py | 82 | 0.56962 | 0.556962 | 0 | 31 | 19.387097 | 58 |
Aerex/weesms | 9,010,841,402,316 | 2634d52f9797a14b08f9c527b3709ac113a8f5e0 | 14f6e9ada799a4d184c17d107e3d610d2b928703 | /_pytest/conftest.py | 160a2ba6c6390ef20c7b9dce5f824a91a487b3f8 | [] | no_license | https://github.com/Aerex/weesms | 047245efa76071d82348500221f1aaa1aaf07e63 | 9685db128af489d459c34790190490c78accab71 | refs/heads/master | 2020-03-10T14:36:25.035603 | 2018-06-04T05:32:11 | 2018-06-04T05:32:11 | 129,430,771 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
import pytest
sys.path.append(".")
import weesms
class fake_weechat():
WEECHAT_RC_ERROR = 0
WEECHAT_RC_OK = 1
WEECHAT_RC_OK_EAT = 2
def __init__(self):
pass
def prnt(message):
print message
@pytest.fixture
def fake_weechat_instance():
weesms.w = fake_weechat()
... | UTF-8 | Python | false | false | 356 | py | 6 | conftest.py | 4 | 0.620787 | 0.609551 | 0 | 21 | 15.952381 | 30 |
adroffner/tastypie-optimizers | 5,523,327,943,627 | 978a6fd5cf7186cf4a696dbe7295bd9a32688c4f | 1d17ca09b45c79d024e564fc1f204d0e7792b651 | /tastypie_optimizers/authentication.py | 286fce0e644201a3ba3eb7bc60639370eff7ed4e | [
"MIT"
] | permissive | https://github.com/adroffner/tastypie-optimizers | 669a5ae56a2fe99727f5a30e46b859d0b42ed847 | ed59724c0d92383e053c06e22af10c25202bcf66 | refs/heads/master | 2016-09-05T10:28:59.148609 | 2014-03-23T01:13:09 | 2014-03-23T01:13:09 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tastypie.authentication import ApiKeyAuthentication
from tastypie.models import ApiKey
from tastypie.compat import User, username_field
from tastypie.http import HttpUnauthorized
from django.core.cache import get_cache
import logging
class CachedApiKeyAuthentication(ApiKeyAuthentication):
"""
Handles API... | UTF-8 | Python | false | false | 2,532 | py | 9 | authentication.py | 8 | 0.620458 | 0.619668 | 0 | 73 | 33.671233 | 98 |
santiago3223/CodigoFlutter | 3,599,182,606,734 | d33d108291b253b7128caacf53e32148a5f8c63c | f885d505e5955b66d4da2a960315be62ccbe2410 | /miloficios/API/migrations/0006_solicitud_estado.py | aa6bc173dfca0b49653bab88c05df4c4de5af0d2 | [] | no_license | https://github.com/santiago3223/CodigoFlutter | f3e1c424f68deaad8c0f6a6f4bfaa9bb7d89da81 | c5d6b2560f7dc7d30f78c2bcbbb7fa49e496e2c2 | refs/heads/master | 2023-01-19T18:56:23.916217 | 2020-11-17T02:45:06 | 2020-11-17T02:45:06 | 281,797,681 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.0.2 on 2020-10-07 00:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('API', '0005_auto_20201005_1948'),
]
operations = [
migrations.AddField(
model_name='solicitud',
name='estado',
... | UTF-8 | Python | false | false | 382 | py | 103 | 0006_solicitud_estado.py | 4 | 0.58377 | 0.5 | 0 | 18 | 20.222222 | 49 |
presencelearning/django_template | 10,264,971,876,389 | f843322016d34f529a0eac3098cb650af76a83bb | f5df0ec6cbfb90dacb574274ffab11c992890b33 | /config/settings/test.py | c669ddda5fd7419c83308d22d4e6ea38db947b02 | [] | no_license | https://github.com/presencelearning/django_template | 44a87a3621daaa549837ac31395a6d9397fd6134 | 34b47fd8796f577b367c7772be248d36ec3a01e9 | refs/heads/master | 2021-01-18T02:37:17.530663 | 2016-04-21T20:40:42 | 2016-04-21T20:40:42 | 44,154,871 | 0 | 0 | null | false | 2017-02-09T20:03:27 | 2015-10-13T05:49:00 | 2016-02-24T18:16:01 | 2017-02-09T20:02:06 | 48 | 0 | 0 | 1 | Python | null | null | # -*- coding: utf-8 -*-
'''
Production Configurations
- Use djangosecure
'''
from __future__ import absolute_import, unicode_literals
from .common import * # noqa
# django-secure
# ------------------------------------------------------------------------------
INSTALLED_APPS += ("djangosecure", )
MIDDLEWARE_CLASSE... | UTF-8 | Python | false | false | 2,304 | py | 26 | test.py | 20 | 0.59592 | 0.570313 | 0 | 78 | 28.538462 | 126 |
vivekaxl/Bellwether-Config | 17,617,955,848,350 | 6694fff6d737bb7aa24ea6edab795fc89a975c00 | 376c291b587ff6d0addf9f528a7691e3310a32dd | /RQ3/Models.py | a63e132ad64d1dec9e59bfa9d009907cbca7e56b | [] | no_license | https://github.com/vivekaxl/Bellwether-Config | f5163eba3976584cec5dbd5be117179c7d3415b2 | a69a50cb7525d86b5ab621f77093026c37e5e8bd | refs/heads/master | 2021-05-08T20:15:48.272789 | 2018-12-27T22:20:44 | 2018-12-27T22:20:44 | 119,597,569 | 1 | 1 | null | false | 2018-02-24T21:27:14 | 2018-01-30T21:37:45 | 2018-02-13T00:08:47 | 2018-02-24T21:27:14 | 22,763 | 1 | 1 | 5 | OpenEdge ABL | false | null | import scipy as sp
import numpy as np
from pdb import set_trace
from sklearn.tree import DecisionTreeRegressor
from sklearn.ensemble import RandomForestRegressor
from sklearn.linear_model import LinearRegression
from sklearn.gaussian_process import GaussianProcessRegressor
from kernel import SEAMS_Kernel
class Model:
... | UTF-8 | Python | false | false | 3,005 | py | 1,613 | Models.py | 35 | 0.649251 | 0.645258 | 0 | 84 | 34.77381 | 76 |
pombredanne/trinity | 7,035,156,453,278 | 490a35e80c5c9fe29de00765a7a73d1bd909bc43 | 5cf6034c353ffd4f30c468df22a31c0176ce7507 | /tests/test_stat.py | 52b98c5f5445e5310f3bccfbd32e7b20a930ab9a | [
"MIT"
] | permissive | https://github.com/pombredanne/trinity | 5300aa507dd0f1c44102a9582274b5b659dd90bc | cd419e565e79d76e29da085fb33dd34bea683fd0 | refs/heads/master | 2021-01-14T14:07:09.008250 | 2011-05-13T15:50:39 | 2011-05-13T15:50:39 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from nose.tools import ok_, eq_
from tornado.httpclient import HTTPRequest
import tornado.testing
import json
from tests.test_node import NODE_DATA
from tests.base import BaseTrinityTest
class StatHandlerTest(BaseTrinityTest):
def setUp(self):
super(StatHandlerTest, self).setUp()
self.http_client.... | UTF-8 | Python | false | false | 719 | py | 20 | test_stat.py | 17 | 0.61057 | 0.606398 | 0 | 23 | 30.26087 | 72 |
jaredstewartcase/project-3 | 1,632,087,606,163 | 21c228b09d2cc7a2d68e4614c18f0a2f7f8ca5b9 | 3b28c64adfecdbe49eb93f123a2d96303d4878f1 | /final-master/final/app.py | cb7f1c63350746a27f96c1c7fc6e1e7a8e1c6dbe | [] | no_license | https://github.com/jaredstewartcase/project-3 | 5c30e2323fe3fcac4882f47356c293d3748b03f8 | 22bd53ec434863264adbc453cb4b150c3c7b1870 | refs/heads/master | 2020-04-20T23:44:47.104756 | 2019-02-16T15:53:29 | 2019-02-16T15:53:29 | 169,176,447 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Example adapted from http://flask.pocoo.org/docs/0.12/patterns/fileuploads/
# @NOTE: The code below is for educational purposes only.
# Consider using the more secure version at the link above for production apps
import matplotlib.pyplot as plt
from sklearn import tree
from sklearn.linear_model import LinearRegressio... | UTF-8 | Python | false | false | 3,113 | py | 8 | app.py | 2 | 0.61452 | 0.604562 | 0 | 130 | 22.953846 | 124 |
mrcartoonster/automatingtheboringstuffwithpython | 2,860,448,235,805 | d8386daeadda3c10cde3f7fc921cd0fe8bec62df | e5b90a8e6ab3773ef263f012e774275727036720 | /Pictgrid.py | 3485ec27269e79cfdebe41bd318262f59ea416ad | [] | no_license | https://github.com/mrcartoonster/automatingtheboringstuffwithpython | 606272f8b3134d9fd38b76c2c7a3aa6036fbe9bb | 5d99dab6f2492a616ab94f1e74feb01eee5f9616 | HEAD | 2016-09-16T16:59:33.583299 | 2016-09-03T08:36:19 | 2016-09-03T08:36:19 | 65,518,623 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #adding stuff again
#Second practice project in list chapter.
'''Say you have a list of lists where each value in the inner lists is a one-character string like this:'''
grid = [['.','.','.','.','.','.'],
['.','O','O','.','.','.'],
['O','O','O','O','.','.'],
['O','O','O','O','O','.'],
[... | UTF-8 | Python | false | false | 693 | py | 6 | Pictgrid.py | 4 | 0.352092 | 0.34632 | 0 | 29 | 22.862069 | 107 |
WeiHsinChen/Leetcode-Practice | 9,818,295,251,942 | 781691e34bcc9358f04a5e4c0daf4962f0ef467a | 9bae3f425ac259fe4eb79c51751e487836dd617f | /Python/118_Pascal's Triangle.py | fa25b4708e7794f79a38b37fa7d65bc1756bb3fd | [] | no_license | https://github.com/WeiHsinChen/Leetcode-Practice | bc5403347f2a80fe42bfb23b2566aef00e155b55 | 96c9dc236afa6da8b9a57f6dfced915f9a424ec3 | refs/heads/master | 2015-08-23T03:26:51.839596 | 2015-07-22T16:52:24 | 2015-07-22T16:52:24 | 33,717,180 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Problem: https://leetcode.com/problems/pascals-triangle/
# Complexity: O(n^2)
class Solution:
# @param {integer} numRows
# @return {integer[][]}
def generate(self, numRows):
res = []
for i in xrange(numRows):
temp = []
for j in xrange(i+1):
if j in (0, i):
temp.append(1)
else:
temp... | UTF-8 | Python | false | false | 431 | py | 179 | 118_Pascal's Triangle.py | 178 | 0.610209 | 0.591647 | 0 | 24 | 17 | 58 |
Alex-Carter01/Assignment-Planner | 14,568,529,099,986 | e0b008318f0030b555a498b6047a704d56dc7da0 | e27c3e5c6a4fdc48c27449a4db0316269e4197f2 | /assignment-planner.py | b9f1089176aeb05e34ab331356a03300e0c17c6a | [] | no_license | https://github.com/Alex-Carter01/Assignment-Planner | fa2c50d1f11216e9c3020d18633281c0eb498337 | dcfe21f9dab13e0b69408504ea53c6124aa09c09 | refs/heads/master | 2021-01-13T16:31:29.164771 | 2017-01-18T20:06:40 | 2017-01-18T20:06:40 | 79,379,128 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import webapp2
import logging
import re
import cgi
import jinja2
import os
import random
import time
import string
import hashlib
import hmac
import Cookie
from google.appengine.ext import db
import sys
import urllib2
import socket
import select
import json
from xml.dom import minidom
toolbar = ... | UTF-8 | Python | false | false | 9,348 | py | 7 | assignment-planner.py | 1 | 0.597133 | 0.589859 | 0 | 246 | 36 | 220 |
c-okelly/Programming-1-Python | 15,616,501,113,218 | 810142350e7183b496ff852a7d2b085ea58f8cbc | e9797b2fdf560f2a9f685ac7ff4841304a914b81 | /Lab 13/P13P1.py | f6cdca8b599734e5dc018dc7b6778c11898432da | [] | no_license | https://github.com/c-okelly/Programming-1-Python | 38d825e2fe5fb16ae3fc67d55581fb0ebb5478ae | 12b848f2a58acf5e9c12a585318c54886acff90e | refs/heads/master | 2021-01-10T12:55:46.039218 | 2015-11-28T21:20:03 | 2015-11-28T21:20:03 | 44,961,728 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | __author__ = 'conor'
"""
Program to print out the largest of two numbers entered by the user
Uses a function max
implemented using code from class
"""
def max(a, b): #take to arguemtns and returns the largest
if a > b:
return a
else:
return b
# Prompt the user for two numbers
def get_... | UTF-8 | Python | false | false | 670 | py | 65 | P13P1.py | 60 | 0.670149 | 0.652239 | 0 | 31 | 20.580645 | 85 |
Feynman1999/Personal-Blog-Website | 3,169,685,888,844 | 862f4117be95557d985b44b99d9dee06655941d6 | 0f6dcad05d35c000c15875e7f989e9dd3b11ec10 | /mysite/likes/views.py | e934f86d734509daccdfd65b8aaf0bc22247bb2a | [] | no_license | https://github.com/Feynman1999/Personal-Blog-Website | 4b1e331daf801fae94345c6bd10134f95f7b7caf | 80830affb1e029542083c5ee94c2cdf7e17786a2 | refs/heads/master | 2021-07-24T23:50:56.570289 | 2020-05-13T03:47:11 | 2020-05-13T03:47:11 | 168,927,040 | 3 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.shortcuts import render
from .models import LikeCount, LikeRecord
from django.contrib.contenttypes.models import ContentType
from django.db.models import ObjectDoesNotExist
from django.http import JsonResponse
def SuccessResponse(liked_num):
data = {}
data['status'] = 'SUCCESS'
data['liked_num... | UTF-8 | Python | false | false | 2,619 | py | 61 | views.py | 29 | 0.641193 | 0.633837 | 0 | 61 | 39.131148 | 126 |
itsolutionscorp/AutoStyle-Clustering | 2,851,858,327,713 | 5bc8d800ed82ec49c15edc49b0bb721067f25627 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/allergies/cf9d8f3a0d444ed4aa1459490aed6ebd.py | e6fe0c0279d46be856c9290c1677f0e536737728 | [] | no_license | https://github.com/itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | true | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | 2016-05-19T22:14:37 | 2016-05-19T22:35:40 | 133,854 | 0 | 0 | 0 | null | null | null | class Allergies():
def __init__(self, allergies_val):
_all_allergies = ['eggs', 'peanuts', 'shellfish', 'strawberries', 'tomatoes', 'chocolate', 'pollen', 'cats']
self.allergies_as_bin = bin(allergies_val).lstrip('0b')
self.list = []
a = list(self.allergies_as_bin)
a.revers... | UTF-8 | Python | false | false | 674 | py | 54,209 | cf9d8f3a0d444ed4aa1459490aed6ebd.py | 21,653 | 0.569733 | 0.563798 | 0 | 20 | 32.7 | 116 |
pohanchi/2018_DSP_FINAL_Mosaic | 11,278,584,133,706 | 4e258a087dbf26cc918b83c61351f80a34aa53be | d806163ac2da877b78eec9b4005a300de1d2006f | /DSP/DSP/crop.py | 10d1024c223e071444de1e08ee33a3077aaee08b | [] | no_license | https://github.com/pohanchi/2018_DSP_FINAL_Mosaic | 319cac2cb4569fc280bdb251b82e03a5c1848c35 | 63f40d8cb31809d5081b50feef60a1771c3c8684 | refs/heads/master | 2020-05-09T09:39:29.655391 | 2019-04-12T16:19:00 | 2019-04-12T16:19:00 | 181,010,147 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
from PIL import Image, ImageFont, ImageDraw, ImageEnhance
import time
img_names=os.listdir('COMMON_image')
img_names_1 = os.listdir('METHOD1_image')
img_names_2 = os.listdir('METHOD2_image')
img_names_3 = os.listdir('METHOD3_image')
img_names_4 = os.listdir('METHOD4_image')
img_names_5 = os.listdir('origin_i... | UTF-8 | Python | false | false | 1,354 | py | 5 | crop.py | 5 | 0.630724 | 0.584195 | 0 | 39 | 33.564103 | 89 |
LUCASLORD/IntroCCPytonCoursera | 1,511,828,525,516 | 2907b22a3c81a24c233f65958a123daba8e635fa | 735b88282610a255a9c49f91df5677f4cb669003 | /Parte1/inverte.py | fb50227a13f3bb66c8336be4459753e2c1629387 | [] | no_license | https://github.com/LUCASLORD/IntroCCPytonCoursera | 8150b8eb81c5a74e02372f2c915ce042dd7a9249 | 702543bd3781a70797dba9e8d84e5ed9929401b6 | refs/heads/master | 2020-03-23T15:39:37.342748 | 2018-08-17T00:57:28 | 2018-08-17T00:57:28 | 141,765,059 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | lista = []
cond = True
while cond:
num = int(input("Digite um número: "))
if num != 0:
lista.append(num)
else:
cond = False
for i in range (len(lista), 0, -1):
print(lista[i-1]) | UTF-8 | Python | false | false | 212 | py | 28 | inverte.py | 27 | 0.535545 | 0.516588 | 0 | 11 | 18.272727 | 43 |
lighthou/uqcs-mobile-server | 19,009,525,271,390 | 4d2f67b33a12e86434348e7c70f9a8c0590aeb5f | aa656d08f2abc60cdd16c7444213f2081bf72256 | /app.py | 251be60001975ce45b4d5a6b5839c038f6e946f2 | [] | no_license | https://github.com/lighthou/uqcs-mobile-server | e3ead9c5a920678d0513433d396d73d3b1b05907 | 86d11ac9681d6c3c2fa38cfc0bf802f1f685f2eb | refs/heads/master | 2021-06-06T12:12:55.099529 | 2019-01-02T08:56:54 | 2019-01-02T08:56:54 | 157,636,059 | 0 | 0 | null | false | 2021-06-01T22:59:57 | 2018-11-15T01:46:11 | 2019-02-10T04:37:21 | 2021-06-01T22:59:57 | 27 | 0 | 0 | 5 | Python | false | false | from flask import Flask, jsonify, request, Response
import os
from googleapiclient.discovery import build
from httplib2 import Http
from oauth2client import file, client, tools
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import requests
from requests.auth import HTTPBasicAuth
fr... | UTF-8 | Python | false | false | 6,803 | py | 4 | app.py | 1 | 0.582537 | 0.573717 | 0 | 202 | 32.678218 | 115 |
CodecoolGlobal/lightweight-erp-python-flip_table | 4,784,593,596,386 | 0a0c9e7e4fd82ab6f911af39c91bc5eb5c8052bf | 15166810cf0718ab91f8d955f36c1ef973140532 | /crm/crm.py | daaeddbfc7c2d7e31825cc3ff58c2c22ff7173a7 | [] | no_license | https://github.com/CodecoolGlobal/lightweight-erp-python-flip_table | ec4ea897af2e1f27e701d9cfffc2e7d7d572241d | 33bbb7124c70c8cf818c0f1b6eefda0789fde7c2 | refs/heads/master | 2020-05-06T13:38:52.107784 | 2019-04-25T12:13:17 | 2019-04-25T12:13:17 | 180,148,549 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """ Customer Relationship Management (CRM) module
Data table structure:
* id (string): Unique and random generated identifier
at least 2 special characters (except: ';'), 2 number, 2 lower and 2 upper case letters)
* name (string)
* email (string)
* subscribed (int): Is she/he subscribed to the... | UTF-8 | Python | false | false | 6,598 | py | 8 | crm.py | 8 | 0.550015 | 0.546226 | 0 | 259 | 24.474903 | 102 |
tblxio/sinfo-rpi-truck | 5,463,198,420,863 | 2e0495ea3c8bd202add5305e4d5539285d83123a | f5dabc9983f46af7b387887f12d13a88acb7137a | /imuClass.py | e0e4e264e8e989810f4791f3172c0fdc1ae6f8ae | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | https://github.com/tblxio/sinfo-rpi-truck | d7fd0b9665deb88b0d8734a2a75ffed728bde2c3 | 5e024464f064ba7618a7e53b88a413d23ba20dce | refs/heads/master | 2023-05-25T16:35:58.995290 | 2021-06-18T08:19:56 | 2021-06-18T08:19:56 | 171,266,875 | 3 | 0 | MIT | false | 2023-05-22T22:30:39 | 2019-02-18T10:53:01 | 2021-11-28T16:34:07 | 2023-05-22T22:30:39 | 1,299 | 5 | 1 | 1 | Python | false | false | from componentClass import Component
import time
import sys
import RTIMU
import json
sys.path.append('.')
class Imu(Component):
"""
An implementation of the component class to acquire and publish the
data from the Inertial Measurement unit, namely the data from the
accelerometer and the gyroscope.
... | UTF-8 | Python | false | false | 3,291 | py | 21 | imuClass.py | 17 | 0.552112 | 0.542388 | 0 | 94 | 34.010638 | 79 |
jpmh1309/mp6118_v-v_sw | 4,020,089,428,060 | f0ad51ba2dff4fa49e550641a099f79d906d52c2 | 8c6666083aa762c17d51e7e7f9990b4870092859 | /project_4/alarm.py | cb6daf46ab515020ddb75f41fa17dc5d673abec7 | [] | no_license | https://github.com/jpmh1309/mp6118_v-v_sw | f14c9faa07ec7511bab0898293f10e551c410979 | c6f4d163b793e154357515473e2bc098f39d4dcb | refs/heads/main | 2023-04-16T08:57:43.732271 | 2021-04-30T06:18:23 | 2021-04-30T06:18:23 | 347,750,557 | 1 | 0 | null | false | 2021-04-19T03:43:22 | 2021-03-14T20:48:25 | 2021-04-19T03:42:44 | 2021-04-19T03:43:22 | 92 | 1 | 0 | 0 | Python | false | false | # Costa Rica Institute of Technology
# MP-6118 Validation and Verification in Software Engineering
# Students:
# - David Martínez
# - Jose Martínez
# Project: Smart Embedded Systems Security Alarm
from repeatedtimer import RepeatedTimer
from registers import Registers
from keyboard import Keyboa... | UTF-8 | Python | false | false | 5,571 | py | 8 | alarm.py | 6 | 0.595978 | 0.579278 | 0 | 142 | 37.929577 | 146 |
abal09/countries-for-django | 9,826,885,215,449 | d70e48d4bf2a2a161753eab2b9def63fca91b134 | 1a97a606bdc5bfcac80defe29640ba0f1c494308 | /views.py | 0a9c2a1fd4dd6f4b34cffe4c83217073be960de4 | [] | no_license | https://github.com/abal09/countries-for-django | 0cf85d25c3785f96fd9626fa7a578ee65933b084 | 4b005707f2c48ec4c5fc521be9fb4c3061820a50 | refs/heads/master | 2021-01-15T11:23:21.489245 | 2013-05-15T14:27:30 | 2013-05-15T14:27:30 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django import http
import logging
# Create your views here.
def set_country(request):
"""
Just remember country in session or cookie.
Redirect to a given url while setting the chosen country in the
session or cookie. The url and the language code need to be
specified in the request parameters... | UTF-8 | Python | false | false | 917 | py | 7 | views.py | 6 | 0.644493 | 0.644493 | 0 | 28 | 31.714286 | 79 |
Jeffrey2971/Jeffrey | 5,317,169,545,812 | db152978b034354dea515e840cf5ed9e89cd159e | 8388e810c32528a56e6601bb84695ba32c14163e | /Scattered/python/other/列表.py | 48ff296bffd34252aec92d827211b2df8c40b675 | [] | no_license | https://github.com/Jeffrey2971/Jeffrey | f3c99487a9027601c89c40466aff26b3b43ef2ae | 6966ace38330e614c83f2903c36ac6d4e214ef88 | refs/heads/master | 2021-07-15T05:29:01.583117 | 2021-03-03T13:22:47 | 2021-03-03T13:22:47 | 241,108,429 | 3 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | my_num = 1, 3, 5, 6, 9
friends = ['Jeffrey', 'Mable', 'Tom', 'Karen', 'Jeffrey', 'mable']
# 0 1 2 3 ->索引顺序默认从左至右从0开始
# -4 -3 -2 -1
print(friends) # 打印完整列表
print(friends[0]) # 打印列表内第四个元素
print(friends[-3]) # 打印倒数第三个元素
print(friends[1:]) # 表示打印第二个元素和... | UTF-8 | Python | false | false | 1,809 | py | 347 | 列表.py | 239 | 0.555799 | 0.4814 | 0 | 70 | 18.6 | 66 |
ColCarroll/autobencher | 712,964,596,753 | ad303cc32679aed8434c3ca03a94a600365ed37d | 24dd0dc7f039b08ef1c09128ec5cbb1bb1d91b9b | /autobencher/server.py | a0f7ec9282b9acd31abd93f9c9c746bc258e9b01 | [] | no_license | https://github.com/ColCarroll/autobencher | f7f8ee4fc5c8c94799d615ecf96aaac75bb2e1fe | 93cdb345c1f8d1018e359b1febee9ac0c4a21b26 | refs/heads/master | 2021-01-22T21:49:32.116499 | 2016-08-16T21:19:48 | 2016-08-16T21:19:48 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
import os
from tornado.web import RequestHandler, StaticFileHandler, Application, url
from autobencher.util import Authorization
from autobencher.factory import BenchmarkerFactory
def process_post(factory, request):
event = json.loads(request.body.decode('utf-8'))
log_event(event, os.getcwd())
... | UTF-8 | Python | false | false | 2,035 | py | 13 | server.py | 11 | 0.594595 | 0.593612 | 0 | 64 | 30.796875 | 76 |
maximelhoustau/Prim-Project | 7,335,804,190,298 | 06208b8ef31a16a4b666900329dde715c98a0250 | 44f8501f135a23924bf9f17c3875dbbb72ae15c0 | /archives/Dense-Optical-Flow.py | e378a7d76348db185bb17ac79f262764cfbd5a8d | [] | no_license | https://github.com/maximelhoustau/Prim-Project | a2b644f7afd72d113da4c2e68e4b86bead79abe2 | cfb190f91c7f1f5cd73c6d43dc840efa5a631373 | refs/heads/master | 2020-09-22T09:12:28.421618 | 2020-02-24T18:44:33 | 2020-02-24T18:44:33 | 225,133,322 | 6 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import cv2 as cv
import numpy as np
import argparse
from utils.Apply_mask import apply_mask
import time as T
import matplotlib.pyplot as plt
start_time = T.time()
ap=argparse.ArgumentParser()
ap.add_argument("-v", "--video", help="path to the video")
ap.add_argument("-d", "--display",type=int, default=1, help="displa... | UTF-8 | Python | false | false | 3,213 | py | 13 | Dense-Optical-Flow.py | 9 | 0.683473 | 0.669779 | 0 | 90 | 34.7 | 128 |
ctrl-alt-del/devtools | 13,718,125,579,077 | d36a898bfe219aec192732dc64b9e20b02e69020 | 5e76ad3c4dab528d1e450af4c84335c3ed2229e4 | /python/android-import-traverse/main.py | c644c8c5010b2901d2bcbfec58ddc5f25d74248b | [] | no_license | https://github.com/ctrl-alt-del/devtools | 505bd4a64d28b9e97b07be0bdbe3f03915c5c5db | cb5b7faf28121a1cf1b07d94d41860d65f0c9f4c | refs/heads/master | 2020-05-19T13:26:16.469628 | 2015-09-23T07:55:06 | 2015-09-23T07:55:06 | 27,367,333 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #! /usr/bin/python
import os
import JavaClass
def get_package(path):
with open(path) as infile:
for line in infile:
if "package" in line:
return line.lstrip("package").strip().rstrip(";") + "." + os.path.basename(path).rstrip(".java;")
def get_java_files(path):
resultList... | UTF-8 | Python | false | false | 1,797 | py | 4 | main.py | 3 | 0.621035 | 0.618809 | 0 | 65 | 26.646154 | 113 |
joshcherian42/Activity-Transition-Detection | 14,671,608,315,204 | 8c71ea6feb92d2e0f9939de161efe874472e8a92 | b6fa027796633eb761857ea8729b835c40bbc5b9 | /Scripts/clean_public_data.py | e38e35c287467b7d47939f727a868ae6afd62868 | [] | no_license | https://github.com/joshcherian42/Activity-Transition-Detection | f5a372052032135933e15d3bf65a1d0cd131d367 | 978f4e3f6d0feeaffc31e3b55876f17d1ad6b778 | refs/heads/master | 2023-06-08T03:19:21.949790 | 2019-10-29T20:29:54 | 2019-10-29T20:29:54 | 158,879,657 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import settings
import csv
def fog_dataset():
fog_header = ['Time_ms',
'ank_accx', 'ank_accy', 'ank_accz',
'thigh_accx', 'thigh_accy', 'thigh_accz',
'trunk_accx', 'trunk_accy', 'trunk_accz',
'gesture']
for subdir, dirs, files i... | UTF-8 | Python | false | false | 9,119 | py | 13 | clean_public_data.py | 12 | 0.366049 | 0.334138 | 0 | 196 | 45.52551 | 207 |
lex/kiitos-2018-backend | 14,121,852,503,220 | 20f0480529ddf278391ef7c3708840ad005573f5 | 99f174408b3e70f7ff20135e75429a97720b9737 | /observations/test_serializers.py | 83fe7790446570837cea9f902225849051f707b6 | [
"BSD-2-Clause"
] | permissive | https://github.com/lex/kiitos-2018-backend | ac7386316d23d4de188de19e8553b616ab147f25 | a20f9942192eee98700b60918aaf8dcc2c028768 | refs/heads/master | 2021-04-29T14:30:26.102248 | 2018-02-28T15:30:09 | 2018-02-28T15:30:09 | 121,776,018 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.test import TestCase
from observations.models import ObservationPoint, Observation
from observations.serializers import ObservationPointSerializer, ObservationPointDetailsSerializer, ObservationSerializer
import datetime
class ObservationPointSerializerTests(TestCase):
def setUp(self):
point =... | UTF-8 | Python | false | false | 2,782 | py | 14 | test_serializers.py | 11 | 0.652768 | 0.63156 | 0 | 61 | 44.606557 | 121 |
HITX/backend-django | 4,183,298,172,783 | c515a8749ffe8256caeaf6ee4a21d011106e201c | 03179a3cd18e73ddded97744b1a69f7b488629a5 | /submissions/views.py | 644b0ebbd53735c3b828cf72d708bee3d5af0e5f | [] | no_license | https://github.com/HITX/backend-django | 77645b1a63648f80f86828c85142a257005f81ce | 984b83a58c56437ea0dba2470201a1b190b49fdc | refs/heads/master | 2016-09-14T07:37:59.497370 | 2015-12-30T14:20:23 | 2015-12-30T14:20:23 | 56,883,830 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf import settings
from rest_framework.decorators import detail_route
from rest_framework.viewsets import GenericViewSet
from rest_framework.response import Response
from rest_framework.exceptions import PermissionDenied
from rest_framework.serializers import ValidationError
from dry_rest_permissions.ge... | UTF-8 | Python | false | false | 1,509 | py | 46 | views.py | 40 | 0.761431 | 0.760769 | 0 | 42 | 34.928571 | 75 |
nenduru1/TFLearn | 12,163,347,411,423 | 58709c88b14a87b29a127b93a0063976d0c9d38f | 6ce178a6b4f8f7410b6977d0f15e637af4abac81 | /debug.py | 07bac0d616debade659f08ae4c212f2ba1da1e07 | [] | no_license | https://github.com/nenduru1/TFLearn | 8c157ac1a1dbfe952e20ab3a8d73cf0c6cd6f565 | dcd3c2504a7abcd7db50ad603ccc3c79d0863f5d | refs/heads/master | 2021-01-01T17:06:38.996810 | 2017-07-22T01:22:07 | 2017-07-22T01:22:07 | 97,997,267 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 21 10:10:50 2017
@author: O222069
"""
import numpy as np
import pandas as pd
import tflearn
#download the titanic dataset
from tflearn.datasets import titanic
data=pd.read_csv(titanic.download_dataset('titanic_dataset.csv'))
#load csv file
from tflearn.... | UTF-8 | Python | false | false | 2,362 | py | 1 | debug.py | 1 | 0.704911 | 0.621084 | 0 | 77 | 28.675325 | 96 |
IMEsec-USP/vumos-common | 19,018,115,229,550 | 3010f3c19ac09e50cc495ba1cc48e6539df08f8b | d7564cc00bdf50a39f8bd6982d1e8eef1f158500 | /messaging/vumos/scheduled/__init__.py | 3334e91be26e1e49585537461b312132911be5ff | [] | no_license | https://github.com/IMEsec-USP/vumos-common | 50330433b0e97c34619abfd1daec0d869371a339 | ab355690cc677c923d0d93507938ed9e24557129 | refs/heads/master | 2023-07-06T18:46:29.857061 | 2021-08-06T00:31:54 | 2021-08-06T00:31:54 | 395,433,412 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from .periodic import ScheduledVumosService
| UTF-8 | Python | false | false | 44 | py | 15 | __init__.py | 7 | 0.886364 | 0.886364 | 0 | 1 | 43 | 43 |
artem7902/easy-outline | 8,160,437,911,445 | 547179ddf288a5925a09746ed8b94519ecfddeb1 | 8c876f3a87308a2070a1e48127afaa9fa56cddd6 | /aws/lambda/index.py | 776fbaf1be5ca134b2c01f4877f78af59026a07e | [] | no_license | https://github.com/artem7902/easy-outline | 8dcb3d704b78214aee1f733ac3589d7de21f2386 | def4122e12ed09e7ee6414e2e34da6ce07ce32e9 | refs/heads/develop | 2023-08-04T00:32:01.059047 | 2023-04-25T15:25:31 | 2023-04-25T15:25:31 | 216,583,033 | 0 | 1 | null | false | 2023-07-20T09:05:58 | 2019-10-21T14:03:12 | 2023-04-11T11:22:37 | 2023-07-20T09:05:58 | 5,141 | 0 | 1 | 7 | TypeScript | false | false | import os
import time
import shortuuid
import re
from decimal import Decimal
import boto3
import html
from newspaper import Article
def add_article_to_dynamo(article):
dynamo_client = boto3.resource('dynamodb')
articles_table = dynamo_client.Table(os.environ.get("ARTICLES_TABLE"))
articles_table.put_item(... | UTF-8 | Python | false | false | 1,647 | py | 66 | index.py | 35 | 0.632665 | 0.630237 | 0 | 46 | 34.826087 | 123 |
kevinlu310/GeThem | 3,186,865,769,115 | d6beaced9a261165bb2b2a9b92e8b8e6434af56d | 0f6656bec7a5f3c9f16b67de96b00bbd8633a2ce | /app/gethem/__init__.py | 93f9b3cfd4871443b872ece0238c987ec6af81b9 | [] | no_license | https://github.com/kevinlu310/GeThem | a2a4079e067a54dcc9935b535813ade3f4d7df53 | fd74257819e78280b2621fdacd61ea5323d58c5c | refs/heads/master | 2020-04-18T00:03:30.783596 | 2013-01-22T15:15:19 | 2013-01-22T15:15:19 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask
from redis import StrictRedis
import config
app = Flask(__name__)
UPLOAD_FOLDER = 'uploads'
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
app.secret_key = config.SECRET_KEY
app.config['DEBUG'] = 'true'
red = StrictRedis()
fro... | UTF-8 | Python | false | false | 342 | py | 26 | __init__.py | 13 | 0.704678 | 0.704678 | 0 | 14 | 23.428571 | 69 |
EHSchutzman/WBIQP | 6,107,443,515,831 | 5a12b80a9c6e5137629a357bcc764bf51717d33f | f902c24822f8ebe3f08a59e654e6aab60bc1d97e | /chooseafile.py | 4ef30d64229e4c8ead7c19e79274cf6ec5efe3fd | [] | no_license | https://github.com/EHSchutzman/WBIQP | e91612caf4b5d655bcfa52e7e54e0e3e781e3a52 | 5ff1d2aecf1b971a55f39c0d11f5786650757c99 | refs/heads/master | 2021-04-06T10:54:19.091655 | 2018-04-30T17:24:36 | 2018-04-30T17:24:36 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas
from matplotlib import pyplot as plt
import os
import Reader as read
# The following code takes one day of data of user choice and analyzes it.
def chooseafile():
# If more HMOS are recorded from, add their name below.
HMOlist = ["25_McIntyre", "2_Himbleton", "37_Woodstock", "50_Bleinheim", "8_B... | UTF-8 | Python | false | false | 7,266 | py | 11 | chooseafile.py | 10 | 0.565373 | 0.531792 | 0 | 236 | 29.792373 | 127 |
ExplodingKonjac/ECH-EasyClassHelper | 2,972,117,410,975 | f760f4b57c54e20efbda51a9d083ab92e034f771 | bcaf854a102d5a1b1f1299447ab02f0d49c56b6f | /echSourceCode/modules/MainWindow.py | 6839a1d0234745984c0a0956bbe45bc7c9af68c4 | [] | no_license | https://github.com/ExplodingKonjac/ECH-EasyClassHelper | 949c8393284cddd140bb14bcb9020d389363a00d | 88841fb4873c9302ae82bc4f1fb1f107880ed145 | refs/heads/master | 2022-04-27T11:35:31.014242 | 2020-04-27T11:55:15 | 2020-04-27T11:55:15 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow)... | UTF-8 | Python | false | false | 10,662 | py | 8 | MainWindow.py | 5 | 0.660336 | 0.638385 | 0 | 201 | 50.129353 | 102 |
Shalva-A-Kohen/COMS_W4735_Project | 5,179,730,580,156 | 8d2956e346e942c3919130fca23b3c14f6ea9640 | dbf6a3e5baaedcbaeb3dd581c1e18a29df9cbd32 | /analysis.py | af60f303356c7b7b73d80afd1aa3c3bc845b7326 | [] | no_license | https://github.com/Shalva-A-Kohen/COMS_W4735_Project | e976b57a635615842e211bd531e472905c853565 | 68d1aa92333dd6ff2ddb36f666c077b560249722 | refs/heads/master | 2020-03-14T21:38:36.669438 | 2018-05-10T03:57:59 | 2018-05-10T03:57:59 | 131,801,383 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import cv2
import pandas as pd
import numpy as np
import io
from plotly import tools
from math import *
import pandas as pd
import os
import sys
from sklearn import datasets, linear_model
from sklearn.metrics import mean_squared_error, r2_score
import statsmodels.api as sm
def reg_m(y, x):
ones = np.ones(len(x[0]... | UTF-8 | Python | false | false | 784 | py | 10 | analysis.py | 3 | 0.66199 | 0.644133 | 0 | 34 | 22.058824 | 66 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.