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
jonathonw/FailoverHomework
1,992,864,841,580
c453ed569a8abc29d2deb7ab2cd559614f6a31ca
2328d8ef09501a8181b8f3197a928f3d05c922a0
/UseCpu.py
889b1b970d41e3f66f9cceedd84c20f53ca8cb79
[]
no_license
https://github.com/jonathonw/FailoverHomework
70f449412ce99889125e153a41f28dee61c526a3
13604e0557ccc52c0a0d73e42ee4df620a5f8a95
refs/heads/master
2021-01-01T19:56:43.470418
2011-11-30T20:47:50
2011-11-30T20:47:50
2,540,786
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import sys import threading class BusyThread(threading.Thread): def __init__(self, percentage): threading.Thread.__init__(self) self._percentage = percentage def run(self): while True: result = 1 for iteration in range(1, 100): for i in range(1, 20): result ...
UTF-8
Python
false
false
872
py
9
UseCpu.py
7
0.607798
0.557339
0
36
23.222222
78
saratello/annotation-software
9,809,705,311,297
5590520123f754cee863a75953e058f956bb9043
7099f031ed770f8d0ceb4c762c9ab5023d2a7000
/methods.py
d78de0cadf0f40d133539134cd0c721fab25fc35
[]
no_license
https://github.com/saratello/annotation-software
8b1d24f8a0260117e78c24b39d4e1dec8b4d6bc8
3a0b07b14a1fc911e3614b7d53559e6e6d3173fb
refs/heads/main
2023-05-20T11:07:07.367780
2021-06-10T07:59:02
2021-06-10T07:59:02
375,738,099
0
0
null
true
2021-06-10T15:07:11
2021-06-10T15:07:10
2021-06-10T08:24:39
2021-06-10T13:50:52
2,913
0
0
0
null
false
false
from typing import Dict, List, Union, Tuple from string import punctuation as punc from collections import namedtuple import re import os import json from git import Repo, RemoteReference POS = str ExampleFieldGulf = str # ['baseword', 'gloss', 'clitic', 'context'] ExampleFieldCODA = str # ['raw', 'coda',...
UTF-8
Python
false
false
15,570
py
14
methods.py
2
0.601236
0.597632
0
301
49.621262
196
MahnazAkbariKasten/Algorithms_And_DataStructur_Challenges
4,818,953,351,357
b2d9e6ab6f049e6b7d30e6ad527d9d70bc067454
b28ea5f1b69ca5c15fafd78e2aea96cd69dba7cf
/leetcode/circularArrayLoop/circular_array_loop.py
1963a0ec8c9810a4e3ab7104b6d63ffc8f9f668a
[]
no_license
https://github.com/MahnazAkbariKasten/Algorithms_And_DataStructur_Challenges
43a7dbee21d84170c2375760e30bf0b278102aee
828ec611088751475308407dfed4de8ceefd221c
refs/heads/master
2021-08-28T09:28:11.052107
2017-12-11T20:38:57
2017-12-11T20:38:57
113,905,750
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'pretymoon' import unittest class MethodTest(unittest.TestCase): def test_mixed_directions(self): self.assertFalse(circularArrayLoop([-1, 2, 2]), False) self.assertFalse(circularArrayLoop([3, 3, -1, 3, 3]), False) def test_forward_loop(self): self.assertTrue(circularArray...
UTF-8
Python
false
false
2,331
py
136
circular_array_loop.py
126
0.481338
0.454311
0
68
33.294118
87
sunilka/pylabs
13,752,485,329,423
01bc214654d9f9a7082990135c6a2967acbb4c87
8b2f6c139b39f8f30793015a35ecf9dab5685b8b
/interviews/bogotobogo/Q1/Init_dict_with_list-1.py
5651e5900f153830b4891bda7eabbb89af819554
[]
no_license
https://github.com/sunilka/pylabs
daaabfe101f99c0ec58b434e43ea8029c5e83436
422915e7876df5880b7177e93f1faa95adae441e
refs/heads/master
2021-01-19T17:57:55.237621
2020-12-08T02:15:35
2020-12-08T02:15:35
88,345,998
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
cities = {'San Francisco': 'US', 'London':'UK', 'Manchester':'UK', 'Paris':'France', 'Los Angeles':'US', 'Seoul':'Korea'} from collections import defaultdict d=defaultdict(list) for k,v in cities.items(): d[v].append(k) print(d)
UTF-8
Python
false
false
250
py
87
Init_dict_with_list-1.py
83
0.616
0.616
0
9
26.777778
47
NeuObito/ggs-api
9,019,431,326,661
02de29927b772347537f868382b87fdd378e507c
30f9a649ce1d9e341b0e683f44756982342ee5df
/authentication/views.py
29c377dd1964768ad981137826615796370cfae6
[]
no_license
https://github.com/NeuObito/ggs-api
11ce4618002ba877e7ad08877e1778479038a158
55d46d8b8aa5a86ada14045f31f4e51e5050f3f0
refs/heads/master
2021-01-21T19:58:26.014577
2017-07-31T08:18:38
2017-07-31T08:18:38
92,179,704
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- from __future__ import unicode_literals from django.contrib.auth import login, logout from django.views.generic import View from django.urls.resolvers import get_resolver from django.shortcuts import render from django.http import JsonResponse, HttpResponse from .models impor...
UTF-8
Python
false
false
1,781
py
8
views.py
7
0.624064
0.617732
0
59
28.440678
73
determined-ai/determined
12,103,217,870,564
df86ed4d31cecf4e62a10d733e9ac3baf6002822
ddddaa700e4642f46a2c1e1e0271a7c8ea62ba0f
/examples/computer_vision/fasterrcnn_coco_pytorch/model_def.py
a1ca8489e69a51280bf8a2d152efa367d3383a20
[ "Apache-2.0" ]
permissive
https://github.com/determined-ai/determined
9d563cb5ffd074c88ee5edc9bf22ab9c3cb78c7e
8239b1993f4f44390f4e88901ffaf3b12429b83c
refs/heads/main
2023-08-21T12:13:36.651298
2023-08-21T08:34:16
2023-08-21T08:34:16
253,846,879
2,531
330
Apache-2.0
false
2023-09-14T21:54:17
2020-04-07T16:12:29
2023-09-13T21:34:41
2023-09-14T21:54:16
219,165
2,448
319
142
Go
false
false
""" This is an object detection finetuning example. We finetune a Faster R-CNN model pretrained on COCO to detect pedestrians in the relatively small PennFudan dataset. Useful References: https://docs.determined.ai/latest/reference/api/pytorch.html https://www.cis.upenn.edu/~jshi/ped_html/ Based on: https://...
UTF-8
Python
false
false
4,942
py
2,965
model_def.py
1,767
0.654189
0.650344
0
123
39.178862
94
karthikpappu/pyc_source
9,242,769,652,806
bce21d7019c31db120f3fda79d3f305e79b05323
91fa095f423a3bf47eba7178a355aab3ca22cf7f
/pycfiles/kyoka-0.2.1-py2.7/deep_q_learning_test.py
61ab9a9d7926557f0e758fcdf2822168f2e3c03f
[]
no_license
https://github.com/karthikpappu/pyc_source
0ff4d03e6d7f88c1aca7263cc294d3fa17145c9f
739e7e73180f2c3da5fd25bd1304a3fecfff8d6e
refs/heads/master
2023-02-04T11:27:19.098827
2020-12-27T04:51:17
2020-12-27T04:51:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.9 (default, Apr 18 2020, 01:56:04) # [GCC 8.4.0] # Embedded file name: build/bdist.macosx-10.12-intel/egg/tests/kyoka/algorithm/td_learning/deep_q_learning_test.py # Compiled at: 2016-10-28 07:31:35 from tests.base_unittest import B...
UTF-8
Python
false
false
8,588
py
114,545
deep_q_learning_test.py
111,506
0.628551
0.604797
0
179
46.98324
131
Harut0726/pointnet-luis
2,276,332,695,618
1a07a0157b5367594043cb65709ced837ff456a3
566b47e16e4fee52911e154325e2cdd537cd7582
/utils/helpers.py
93f6e5a9f8a0f67c76d6f4124a14759348738951
[]
no_license
https://github.com/Harut0726/pointnet-luis
904173d5eb2bca5e217a6dc7502c763de2946c87
e078a646c0c111e40a3ef49d444859665bfb9881
refs/heads/master
2020-09-22T13:54:38.137918
2019-12-01T20:52:04
2019-12-01T20:52:04
225,228,404
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np def norm_pts(x): x -= np.mean(x, axis=0) dists = np.linalg.norm(x, axis=1) return x / np.max(dists)
UTF-8
Python
false
false
132
py
14
helpers.py
9
0.598485
0.583333
0
6
21
37
GaneshGoel/Basic-Python-programs
3,212,635,579,295
66392762b78127e459631a4e0b673e5d637897b9
6ceb7bd42428410174ff2b110754d1bc40a343c3
/Merge List.py
1a81bc771a873a61c3289a04b933e73754464612
[]
no_license
https://github.com/GaneshGoel/Basic-Python-programs
382e4560406ade35cf011d48b9e83e7db407a0f9
f59b7449f2230b9ebcdf0f0ae829ea1618a4d3ca
refs/heads/master
2020-05-30T08:28:49.811571
2019-05-31T16:26:28
2019-05-31T16:26:28
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Merge two lists and sort it l1=[] l2=[] l3=[] l4=[] x=int(input("Enter size of list 1:")) y=int(input("Enter size of list 2:")) print("\nEnter items of list 1") for i in range(x): a=int(input("Enter list item:")) l1.append(a) print("\nEnter items of list 2") for i in range(y): b=int(input("E...
UTF-8
Python
false
false
577
py
17
Merge List.py
17
0.556326
0.516464
0
27
19.37037
43
KoMinjae/codingtest
14,087,492,735,232
9017cd81a8d1581caa5d4d330fb120c6ce90ab30
6cb5afbe80fe07f837848f56c1c0cc194534155c
/전자카트.py
2273864edb2afc43632a862f06106059e7deca6a
[]
no_license
https://github.com/KoMinjae/codingtest
9073dbd094e0675c0f3cac35085703d8d1c546f6
160dfc5f73cad9d1d00a9a497550ab34cdf31a32
refs/heads/master
2022-12-19T14:11:00.972578
2020-09-25T03:08:16
2020-09-25T03:08:16
285,505,309
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def solution(N,MAPS): answer=list() stack=list() stack.append((0,["0"],0)) while stack: v, path, point = stack.pop() if len(path)==N: answer.append((point+MAPS[v][0])) else: for i in range(len(MAPS[v])): if MAPS[v][i]!=0 and str(i) not in p...
UTF-8
Python
false
false
969
py
176
전자카트.py
175
0.470141
0.356135
0
43
20.44186
89
Maciej-Glowacki/Python_exercises
14,465,449,856,831
8aeda0ace19d30fc828ab29268168316c8040871
595482c645343a92db7b458711d9e8c88cf8b014
/exe_87_classmethod.py
907eb7db7a6efd33dd18ec8031805dea049cf24d
[]
no_license
https://github.com/Maciej-Glowacki/Python_exercises
a78af3dd59327f2920451a36fa9c6b08ec0d622b
a1eb553a8ab66d76d8a3f34691e592ffa0522b32
refs/heads/main
2023-07-11T19:28:34.805514
2021-08-23T15:35:37
2021-08-23T15:35:37
372,899,923
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import datetime class Person: def __init__(self, name, age): self.name = name self.age = age @classmethod def create_person(cls, name, year_of_birth): actual_year = datetime.datetime.now().year age = actual_year - year_of_birth return cls(name, age) def __str_...
UTF-8
Python
false
false
497
py
94
exe_87_classmethod.py
93
0.61167
0.595573
0
22
21.545455
54
jingyuluo/HCALPFG
15,247,133,910,993
0274a5111089d102881af4d0a7ae676e1963312a
f9ff4434e976adb78aadcd544e2cd953476a55f0
/HcalTupleMaker/test/analysis_utca_noise_test_cfg.py
7e9c382833e2c0467e2ad2d43a93eb2d11ba4bcb
[]
no_license
https://github.com/jingyuluo/HCALPFG
4ec1e2156f370d35e31100afdf2f5e1520db5d5d
deac0a0825a36f6ee9c39cdaacb1d2004b97172b
refs/heads/master
2021-07-08T06:42:22.407287
2020-12-01T02:16:23
2020-12-01T02:16:23
207,335,036
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#------------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------------ import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing #------------------------------------------...
UTF-8
Python
false
false
6,799
py
85
analysis_utca_noise_test_cfg.py
78
0.590528
0.567142
0
174
38.074713
319
SWannell/cro55-prompt-test
13,039,520,740,632
c12547a307b4323cb2543c88afaa5b772ab4af9c
e8e5d40fea01d50356fee0caf7c344c3b24111fc
/ttest_MDE_model.py
096671e236d209d189fc12420d736594a5cc704d
[]
no_license
https://github.com/SWannell/cro55-prompt-test
de0da0054d65b7b99e8f8e8c225440a2d9a02d96
fc00a914351bd76f3cdf478934bad70533b7f9e4
refs/heads/master
2022-10-20T10:45:08.240099
2020-06-11T15:32:10
2020-06-11T15:32:10
263,640,548
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri May 15 16:07:28 2020 @author: SWannell """ import numpy as np from scipy.stats import ttest_ind_from_stats import matplotlib.pyplot as plt; plt.style.use('ggplot') import seaborn as sns np.random.seed(1234) # Set parameters params = {'ctrl': {'prompts': [5, 25, 50], ...
UTF-8
Python
false
false
3,031
py
16
ttest_MDE_model.py
7
0.52359
0.484659
0
89
33.067416
72
lukehuang/bitblog
10,754,598,117,185
aa568486f795594f99e26a2651641829738d50cb
d94591fb254d2d0bddaa3f879a27c623bf8bdd7f
/apps/contrib/models.py
a3b55187f4ed1e8445c6f54aaf73fc045949269b
[ "MIT" ]
permissive
https://github.com/lukehuang/bitblog
2c55fd37276d140c75769a91b66106193116e575
903dd83164c9238f24348e8c63e4d2ff1b9f1d4f
refs/heads/master
2021-06-11T10:45:35.340433
2017-03-07T19:15:02
2017-03-07T19:15:02
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import uuid import gc from uuid import UUID from django.contrib.auth.base_user import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin, UserManager from django.core.mail import send_mail from django.db import models from django.utils import timezone from django.utils.translation import ugettex...
UTF-8
Python
false
false
3,811
py
171
models.py
62
0.618273
0.611709
0
126
29.230159
108
tommyliverani/RulPrediction
2,783,138,833,717
2e70e25477e27e90aeb6f0e63684516d707776e9
4f394d0ded063cef913972ee2a2c108e9995e2d7
/evaluate.py
95ec6202eb30968d3d7afb40bfcc031a2788ef28
[]
no_license
https://github.com/tommyliverani/RulPrediction
d91db638ede73b015c3849ff5699c604e5b04e09
ada762488cab30c7e8c0a6bd2524df5d3d2bee94
refs/heads/main
2023-01-29T00:38:53.556346
2020-12-10T14:22:21
2020-12-10T14:22:21
316,713,775
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from matplotlib import pyplot as plt import pandas as pd from tensorflow import keras from tensorflow.keras import layers, callbacks from tensorflow_probability import distributions from sklearn.metrics import r2_score from rul_utils import split_data fig_size=(9, 3) def plot_pred_scatter(y_pred, y...
UTF-8
Python
false
false
3,769
py
9
evaluate.py
4
0.5922
0.56779
0
130
27.969231
75
esddse/leetcode
12,137,577,610,875
19bb40ea68670719c0911ba14fb9629518d3dc44
15373eaa353e8aece47a26741b7fb27795268bf6
/medium/525_contiguous_array.py
d82833fd5893042e2b6b0120549c22947bc575ca
[]
no_license
https://github.com/esddse/leetcode
e1a9bacf04c68a8d642a1e53c90e6c2dda2c1980
0ceccdb262149f7916cb30fa5f3dae93aef9e9cd
refs/heads/master
2021-06-08T19:15:14.346584
2020-01-09T01:41:23
2020-01-09T01:41:23
109,675,590
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def findMaxLength(self, nums: List[int]) -> int: size = len(nums) sum_start = {0:-1} res = 0 s = 0 for i, num in enumerate(nums): if num == 0: s += -1 else: s += 1 if s in sum_start...
UTF-8
Python
false
false
442
py
423
525_contiguous_array.py
411
0.373303
0.357466
0
16
25.75
52
xiaohai12/leetcode
17,016,660,451,237
9ad2cc14edadd00c5254de2ac099c8f4eb09eae9
f0fc8e34f1da807eeb89bd02da9a17a78fd7b4dc
/271 encode decode string.py
d8d0c55c8e9c938b47d44cb66418ffc01f13d4ac
[]
no_license
https://github.com/xiaohai12/leetcode
91ceea6aed9b1e0bcc7e6a7c19e04cddf5dfe017
a443d6dee491c6f93f2847cd0def7ed579f3170b
refs/heads/master
2021-08-07T10:47:01.881877
2020-04-12T13:18:57
2020-04-12T13:18:57
149,550,272
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Codec: def encode(self, strs: [str]) -> str: """Encodes a list of strings to a single string. """ ret = '' for s in strs: ret += str(len(s)) +'/' +s return ret def decode(self, s: str) -> [str]: """Decodes a single string to a list of strings. ...
UTF-8
Python
false
false
668
py
154
271 encode decode string.py
152
0.480539
0.474551
0
25
25.76
60
milvus-io/milvus
12,713,103,222,589
b3155bdee4cb0e03867ff0ae1167975939e28f02
2cf314b8237fc6a77b7f1a096f17a679179b0057
/tools/core_gen/assemble.py
a9ce6c9cfebd78262017cf9cb14be18c8cffa012
[ "Apache-2.0" ]
permissive
https://github.com/milvus-io/milvus
a02d732cf746effec1ea723f9e4d17856843f8a8
0530fd80c91dc5b200606c00214c12bf8dd17cb4
refs/heads/master
2023-09-04T06:28:57.681855
2023-09-04T02:01:04
2023-09-04T02:01:04
208,728,772
23,316
2,917
Apache-2.0
false
2023-09-14T15:06:12
2019-09-16T06:43:43
2023-09-14T14:54:06
2023-09-14T15:06:11
166,634
22,863
2,509
579
Go
false
false
#!python from meta_gen import * import re def assemble(template, **kwargs): pattern = re.compile("@@@@(.*?)\n((.|\n)*?)\n####", re.MULTILINE) temp_info = pattern.findall(template) # print(temp_info) mapping = dict() rep_map = dict() # drop repetive field from mapping for k, v in kwargs.ite...
UTF-8
Python
false
false
1,097
py
1,980
assemble.py
1,639
0.533273
0.526892
0
36
29.416667
117
pawarspeaks/HackFest21
12,618,613,929,544
f155d09c3d8e770045628bf6e011ea54209cddc2
246096c11c7ac7bd47fdf81f0be5faede3588f40
/Python Scripts/print_any_pattern/print_any_pattern.py
99ed9ccc67d472e651e36cc937f4cdbb87685f4e
[ "MIT" ]
permissive
https://github.com/pawarspeaks/HackFest21
4aa75e5e388e3776919a26487bf507810d27ddc3
71f161bf68f81aed3d2d5b154c01eadea5634b48
refs/heads/main
2023-08-21T11:47:44.675343
2021-10-29T19:44:19
2021-10-29T19:44:19
422,694,801
4
0
null
true
2021-10-29T19:43:35
2021-10-29T19:43:35
2021-10-27T12:45:34
2021-10-29T16:03:05
78,432
0
0
0
null
false
false
""" Use Patterns.Alphabets_pattern file from the current project which contains printer logic such as printA, printB, etc functions These functions have been mapped with the printer alphabets which will print out the given input by the user """ from Patterns.Alphabets_pattern import * characters = 'abcdefghijklmnopqr...
UTF-8
Python
false
false
1,785
py
204
print_any_pattern.py
170
0.602241
0.602241
0
64
26.890625
66
glotzerlab/gsd
3,178,275,806,198
2422878d2a1a63ca3cf2f14fe807b2bcf7384278
b17758025b2ab936cedd80c0cbd6d4b4fa837bf4
/gsd/__main__.py
7d85c3da480f1dd05d56090f05978e7107adaccb
[ "BSD-2-Clause" ]
permissive
https://github.com/glotzerlab/gsd
58c620675ee912d7af762845f357e1f63c709fc1
de226fed1862ae2a3a76ac9ef06ce6df4eb970f5
refs/heads/trunk-patch
2023-08-31T05:08:31.674725
2023-08-03T19:06:20
2023-08-03T19:06:20
147,664,770
22
10
BSD-2-Clause
false
2023-09-05T12:05:28
2018-09-06T11:40:13
2023-07-28T16:34:55
2023-09-05T12:05:27
2,154
21
7
1
Python
false
false
# Copyright (c) 2016-2023 The Regents of the University of Michigan # Part of GSD, released under the BSD 2-Clause License. """The GSD command line interface. To simplify ad hoc usage of :py:mod:`gsd`, this module provides a command line interface for interacting with GSD files. The primary entry point is a single co...
UTF-8
Python
false
false
5,594
py
65
__main__.py
15
0.512692
0.510011
0
175
30.965714
79
john-mwangi/multilabel-classification
6,201,932,778,581
d497db33327e3564a764f0c374a0c78e41369982
dfb155865bbc0405de56d215233aa4011139c7f2
/src/train.py
fb620b5ca7c49a80ac7eccb6d155adac4a86ec1f
[]
no_license
https://github.com/john-mwangi/multilabel-classification
7528021a0b04663c986583f592ff3635c08ec54a
72a142b0ed355f3d27f1e871fbaa42479c4dfeae
refs/heads/main
2023-08-03T03:03:51.477384
2021-09-21T14:55:31
2021-09-21T14:55:31
387,020,414
0
0
null
false
2021-07-20T04:25:55
2021-07-17T19:16:34
2021-07-20T04:17:30
2021-07-20T04:25:54
66,282
0
0
0
Python
false
false
""" This module is for training the actual neural network and hyper-parameter tuning using optuna. """ import pandas as pd import numpy as np import torch import optuna from torch.utils.data import DataLoader import utils DEVICE = "cuda" if torch.cuda.is_available() else "cpu" EPOCHS = 10 def run_training(fold, pa...
UTF-8
Python
false
false
3,648
py
5
train.py
4
0.622533
0.610197
0
130
27.061538
78
jhartman86/gitdeployhooks
11,991,548,714,720
3962463ecf7cc4fee660598cfbf35829baf57df2
cda266d434d19fd80f7eeefd9d4183ca70de4ba5
/deploy_coordinator/system/__init__.py
d9deb9a580926d52d41381ae4e13633a26c87fc8
[]
no_license
https://github.com/jhartman86/gitdeployhooks
84f18ed35ad59e498e60aae2b2cb99913dc52780
93050346be4f341ad14b87371842af72b99f4e12
refs/heads/master
2016-09-05T18:19:26.644667
2015-09-10T02:55:10
2015-09-10T02:55:10
34,279,904
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# from execute import Execute # from file_system import FileSystem # from git import Git # from parse_json import ParseJson
UTF-8
Python
false
false
123
py
14
__init__.py
12
0.796748
0.796748
0
4
30
36
Etenil/anvil
13,950,053,825,270
4350daff015eb24cb3b8c946198cc7d3b1884828
6db970b6a09bdf07767aae00ea4cc2b5591300f4
/anvil.py
fe0b11c25c91f55957ab5657e83d0426d346c96d
[ "MIT" ]
permissive
https://github.com/Etenil/anvil
fc439d854dc3be8f14493d0200488bb6ca8a9268
d40c296ed3ca0c05fce6d59038fc7a1f9890dccd
refs/heads/master
2021-01-25T07:18:55.439521
2013-06-16T11:36:53
2013-06-16T11:36:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import web import common import sys import os from controller.user import User from controller.project import Project from controller.message import Message from controller.bug import Bug from controller.doc import Doc import model.project import model.message import model.event from anvillib impor...
UTF-8
Python
false
false
3,868
py
62
anvil.py
28
0.431489
0.425543
0
94
40.148936
95
ShihabSikder/tronics
12,163,347,390,491
f0a8216535af9545bb46ebf3115d329d5b3f9972
2e89eaa81cd06caf31702b46679d4c1d7aa0f912
/portfolio/urls.py
a4a1536008b35b38b281f24b1220fa42f09ba764
[]
no_license
https://github.com/ShihabSikder/tronics
aa5914074efc1040e146dd1dcc2ba1bf3547e9fc
58fbbdd749e2ee5978f61c141721c7517749ce53
refs/heads/master
2020-09-23T20:32:18.494172
2019-12-03T18:59:39
2019-12-03T18:59:39
225,580,607
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from django.urls import path,include from django.conf.urls import url from blog import views urlpatterns = [ path('admin/', admin.site.urls), path('',include('blog.urls')), url(r'aboutme/',views.aboutme, name='about') ]
UTF-8
Python
false
false
266
py
3
urls.py
1
0.710526
0.710526
0
9
28.444444
48
bethebunny/sos
10,127,532,892,267
3fc69467e29c0a73c9ff8ef2a7f9179636c8f739
8e280407a657f81b793bff7d5cdc851b2ba9a6bf
/utils/sosh.py
b8b0d9794e23e21277e56117f089f1a13546b3fd
[]
no_license
https://github.com/bethebunny/sos
152e909de045c1db1e0056d9c7a2a1efce4a6802
458cdc466b93e453fc457e44144403493fa33ecc
refs/heads/master
2023-07-30T21:03:48.765757
2021-09-05T08:13:09
2021-09-05T08:13:09
400,320,017
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from IPython.terminal.embed import embed from sos.execution_context import current_execution_context from sos.kernel_main import Kernel from sos.scheduler import Scheduler from sos.service.remote import Remote from sos.services.services import RemoteServicesBackend if __name__ == "__main__": services = RemoteSer...
UTF-8
Python
false
false
713
py
25
sosh.py
22
0.713885
0.708275
0
23
30
79
kzm0211/Lchika
6,828,998,035,831
8648782449100acd5f1d1b4d7f69ac7b626a4cfe
6eeed3094c766601a970e4584759b846d0867a36
/led3onoff_mod.py
b8631e80a2c2a1bd5abf7c6fbdecf25caeaaff44
[]
no_license
https://github.com/kzm0211/Lchika
1ce79c25085051993a03f59e54b64e1abcbf5e27
61c07e916cce0e165548d785ca577f946daa318a
refs/heads/master
2021-01-20T19:56:42.743778
2016-07-19T15:18:45
2016-07-19T15:18:45
63,612,013
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import RPi.GPIO as GPIO import time def led_init(leds): GPIO.setup(leds, GPIO.OUT) def led_on(leds): GPIO.output(leds, GPIO.HIGH) def led_off(leds): GPIO.output(leds, GPIO.LOW) LED1 = 6 led_init(LED1) LED2 = 5 led_init(LED2) LED3 = 11 led_init(LED3) for i in range(10): print(i) led_on...
UTF-8
Python
false
false
452
py
5
led3onoff_mod.py
5
0.672566
0.623894
0
36
11.527778
29
HMQstu/FileServer
13,322,988,581,198
342d1949f2d9db0075d816fb7acd6ab2677aef68
802e89a1c0c5149df76dad4e85700a47b27b2be0
/user_service.py
5116c3eebf162cf2dea53ba9e335b9df0a2089df
[]
no_license
https://github.com/HMQstu/FileServer
63f72be2c93293989dd3b02064fa43d1d39d58fc
3f6e7a232a18ec6a2809adf8b9fd6183a59c547c
refs/heads/master
2021-09-15T07:01:53.483116
2018-05-28T07:56:38
2018-05-28T07:56:38
126,126,643
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 import db_helper def query_user(username, password): user = db_helper.find_user_by_username(username) if user is None: # 用户不存在 return None if password != user.password: # 密码错误 return None return user def register_user(user): old_user = db_helper.f...
UTF-8
Python
false
false
492
py
14
user_service.py
13
0.647679
0.64557
0
21
21.571429
61
AbelRapha/Python-Exercicios-CeV
18,476,949,328,451
a5550f0b1bd30829eb30df234aad296c7fa82117
2dafd069ae283ea707c644e3aacedca35493df3c
/Mundo 1/ex035 Aprovando emprestimo.py
deb1285ad5249e298af3bd573281f0d405c4c92e
[ "MIT" ]
permissive
https://github.com/AbelRapha/Python-Exercicios-CeV
49353c7284aa9467ac8ab1cb416b121a927bbccb
17e7055c982c8a1224992602ece50bae8eeee365
refs/heads/main
2023-08-29T04:55:03.430294
2021-09-12T03:53:09
2021-09-12T03:53:09
405,525,468
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time valorCasa = float(input("Digite o valor da Casa que deseja adquirir: ")) salario = float(input("Digite o seu salario: ")) anos = int(input("Em quantos voce quer pagar esse financiamento? ")) prestacao = valorCasa/ (12*anos) def aprovacaoEmprestimo(prestacao, salario): if prestacao <= 0.3*salario: ...
UTF-8
Python
false
false
638
py
107
ex035 Aprovando emprestimo.py
106
0.710031
0.69906
0
17
36.588235
136
ColDog/battlesnake-training-snakes
14,809,047,264,372
b8694438eeec1051223bb6d0052f82fb7e35d890
e652bc36ce2a447eaaf46e00e40941fd20afddce
/app/snakes/snake_3.py
bd45503f45ebb4a021faacb6e88bef31ff0f2aa5
[]
no_license
https://github.com/ColDog/battlesnake-training-snakes
478770854ab8fb703dc7476e7d7b86b5a24c284c
39f0b85714582ff936c2145754a6d96975df57b8
refs/heads/master
2021-05-08T23:05:12.150527
2018-02-06T04:59:09
2018-02-06T04:59:09
119,697,932
0
0
null
true
2018-01-31T14:27:51
2018-01-31T14:27:51
2018-01-30T23:56:12
2018-01-31T00:36:42
21
0
0
0
null
false
null
from utils.vector import Vector, up, down, left, right, noop from base_snake import BaseSnake class Snake3(BaseSnake): def move(self, gamestate): first_food = gamestate.food[0] ordered_directions = self._directions_to(first_food, gamestate) head = gamestate.my_head for v in ordere...
UTF-8
Python
false
false
1,013
py
12
snake_3.py
11
0.596249
0.588351
0
37
26.378378
85
IrinaMun/python-base
10,703,058,535,666
e1177396c0e1a4a1d261769f00699110b65f9bf3
a130ad550ce437dbd9487d6f37b8c1121bc46289
/Lesson9/task5.py
899f70c0feadc35b9de1ec591491ba4a1531d359
[]
no_license
https://github.com/IrinaMun/python-base
0172f71f2617e1a70321106d0e2b758943e6dae9
ada695419c43639d4021aa6ef3d279d699bdbc12
refs/heads/main
2023-04-08T22:42:10.139091
2021-04-05T16:23:46
2021-04-05T16:23:46
341,997,663
0
0
null
false
2021-04-10T13:51:52
2021-02-24T18:33:33
2021-04-05T16:23:49
2021-04-10T13:51:06
588
0
0
2
Python
false
false
""" 5. Реализуйте базовый класс Car. при создании класса должны быть переданы атрибуты: color (str), name (str). реализовать в классе методы: go(speed), stop(), turn(direction), которые должны изменять состояние машины - для хранения этих свойств вам понадобятся дополнительные атрибуты - придумайте какие. добавьте мето...
UTF-8
Python
false
false
4,242
py
5
task5.py
5
0.612798
0.605357
0
121
26.768595
120
vaezc/PythonTraining
17,815,524,346,343
3632a1f2c0c5503a55de0ce06ff82a6ed8a66aad
d6a0d07a6ba5667ed33b5f0576555308553fbd56
/统计代码行数/main.py
7a468bb422a1b1a94353971c911669795be099b1
[]
no_license
https://github.com/vaezc/PythonTraining
5f371ab4ed72cf01d54348ec6018284c130366a6
bc305e37a748751e5bd4eed21a6031fbd3c72186
refs/heads/master
2020-03-13T12:26:42.507244
2018-04-26T07:49:09
2018-04-26T07:49:09
131,119,081
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os length = 0 def writeFile(path,fileList): str = "" for line in fileList: str = str + line with open(path,"w+") as f: f.write(str) def readFile(path): global length with open(path,"r") as f: fileList = f.readlines() for line in fileList: lengt...
UTF-8
Python
false
false
756
py
1
main.py
1
0.527778
0.525132
0
37
19.459459
64
DominicBurkart/wikipedia-revisions
16,252,156,274,104
de1d7edc42c7312e077cfb3bc15d44991460501f
6ceccf5269b468ebbdb792d5ab42834635ba2fc8
/wikipedia_revisions/download.py
bf44941e7802a011567bee10ac47ab8f964e7c10
[ "BSD-3-Clause" ]
permissive
https://github.com/DominicBurkart/wikipedia-revisions
9bee9a7bd9ed1e67b4b612a12c1ebb645b4d7c2f
826e455e32d440bb2d4af5d17e5c939b1da067df
refs/heads/master
2023-06-08T22:43:26.391137
2020-08-27T11:43:50
2020-08-27T11:43:50
250,873,585
2
0
BSD-3-Clause
false
2023-05-22T23:22:43
2020-03-28T19:10:25
2020-08-27T11:44:02
2023-05-22T23:22:43
175
2
0
3
Python
false
false
import bz2 import errno import hashlib import os import platform import re import threading import time import traceback import xml.etree.ElementTree as ET from typing import Optional, Dict, Generator, Iterable, Callable, Set import click import requests from wikipedia_revisions import config from wikipedia_revisions...
UTF-8
Python
false
false
17,530
py
10
download.py
7
0.59945
0.591487
0
479
35.442589
118
johnmay/rdkit
2,353,642,081,957
39a7f35a569f334c9ca645ebdb46f761a4171f91
de1810660d8a62630a06be06f48024c3ab6a5a35
/rdkit/utils/PilTools.py
bd4fedbf2d752221419ae4ec9e10b2b18962aff6
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
https://github.com/johnmay/rdkit
3909cc8ac66c405f313f21a0fc1f61d690347ca8
b6f5fefeecdaabcf163a93afe28d50d3986282dd
refs/heads/master
2021-01-18T12:31:49.441251
2014-04-04T05:19:22
2014-04-04T05:19:22
18,447,327
0
0
NOASSERTION
true
2019-06-26T07:30:31
2014-04-04T17:53:22
2014-04-04T17:53:24
2019-06-26T07:30:30
151,880
0
0
0
C++
false
false
## Automatically adapted for numpy.oldnumeric Jun 27, 2008 by -c # $Id$ # # Copyright (C) 2000,2001,2002,2003 greg Landrum and Rational Discovery LLC # All Rights Reserved # """ tools for working with PIL images """ #try: # from wxPython.wx import * #except ImportError: # hasWx=0 #else: # hasWx=1 hasWx=0 try...
UTF-8
Python
false
false
5,232
py
137
PilTools.py
107
0.648318
0.618693
0
209
24.028708
97
diogoolsen/CozinhaPet
3,968,549,803,295
0ed52de97e051fbc7e6201eaaaa5924b8a01da22
9e30856cc1450c19b4e55e13a867534aa66441e2
/tests/model/test_ingredient.py
055b63af044e8b3f72abbd66a31b29cfa4d1eed3
[]
no_license
https://github.com/diogoolsen/CozinhaPet
e0a7ce2c65b02347e32653ec625f9e4676e98a03
adbb4e4e3a92096b66d94170b8bdf6db8bd0e0d8
refs/heads/master
2023-05-08T17:42:57.283182
2021-01-18T13:29:47
2021-01-18T13:29:47
326,803,382
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# import pytest import datetime from pytest import approx, raises from src.model.ingredient import Ingredient class TestIngredient(): def assert_item_by_item(self, actual, expected, message=''): assert actual['name'] == expected['name'], message assert actual['searchable'] == expected['searcha...
UTF-8
Python
false
false
7,904
py
20
test_ingredient.py
20
0.535877
0.5161
0
251
30.422311
79
sakakazu2468/AtCoder_py
11,321,533,808,078
43e1795f8d91e21a750443edcf3438a69f858baf
cbf9f600374d7510988632d7dba145c8ff0cd1f0
/abc/010/b.py
e4d104dbea76c571eab349e5d78cb84962c97296
[]
no_license
https://github.com/sakakazu2468/AtCoder_py
d0945d03ad562474e40e413abcec39ded61e6855
34bdf39ee9647e7aee17e48c928ce5288a1bfaa5
refs/heads/master
2022-04-27T18:32:28.825004
2022-04-21T07:27:00
2022-04-21T07:27:00
225,844,364
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n = int(input()) a = list(map(int, input().split())) ans = 0 for i in a: if i == 9: pass elif i >= 7: ans += i - 7 elif i >= 3: ans += i - 3 else: ans += i - 1 print(ans)
UTF-8
Python
false
false
219
py
554
b.py
553
0.401826
0.369863
0
13
15.846154
35
scottsilverlabs/raspberrystem-hw-base
901,943,154,393
1d7aa8444246ad5189265de45279dca5dd739f37
739a21f0322b41e0020ad0b42208f8e14815353f
/PCB/logo/eagle-scale.py
8bfb8df0c2ba5633e956c706ec87bf6a261e18cf
[ "Apache-2.0" ]
permissive
https://github.com/scottsilverlabs/raspberrystem-hw-base
528c720ffde1e7c0df0cc0a5599d83ea118ea5ff
47c591ae8a7bcf0205d4f6b6f2b078505c93e240
refs/heads/master
2021-01-17T11:59:38.145540
2015-07-01T19:32:43
2015-07-01T19:32:43
20,490,444
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # Simple scaleable BRD file script. # # Reads in Eagle BRD file given as arg, and scales attributes in the <plain> section by the given # factor. # # Original file is overwritten - beware! # # See also hflip/vflip scripts. # # Example: # # cp Logo.brd new.brd && python eagle-scale.py new.brd 1.8 open new.brd # #...
UTF-8
Python
false
false
1,069
py
20
eagle-scale.py
2
0.637979
0.62956
0
40
25.7
97
yeonggilee/django_study
5,866,925,372,494
717cd7a39809c99c5588d5c4b175b8bd6e4ba03f
e530fbb22d6e73932fec6d763cf6498d803a907a
/ssido_app/migrations/0003_auto_20180908_1612.py
b92c6af9c8e2b50141e0aed6ed4d20fe08fa8d97
[]
no_license
https://github.com/yeonggilee/django_study
5082bdee2e871a79297e63ac5fca3bf734fe5b2e
c6ed5223eaaed07fe96609553421c3b11192b4b3
refs/heads/master
2020-03-30T05:54:53.517328
2018-09-29T06:55:36
2018-09-29T06:55:36
150,827,150
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.1.1 on 2018-09-08 07:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ssido_app', '0002_test'), ] operations = [ migrations.RenameModel( old_name='Test', new_name='BestFood', ), ...
UTF-8
Python
false
false
464
py
4
0003_auto_20180908_1612.py
3
0.534483
0.493534
0
22
20.090909
47
uhayate/CTF
5,222,680,236,610
12eee49b2737bc7d80c643ab95046311e40d026b
a8e846a8a62762871b505595828207fa81afad23
/解题脚本/eval计算题/计算题1.py
7c57463dff857775aa64c256bf39dc4648191a29
[]
no_license
https://github.com/uhayate/CTF
e3180ab2413bc5e1c380e780afb99f6ba7659d8f
a01e5703abfd4e6351fd709ff55dc88d656e7c76
refs/heads/master
2016-05-25T13:48:48.414786
2015-11-02T00:54:04
2015-11-02T00:54:04
41,954,649
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*-coding:gbk -*- import re import requests get_url = 'http://ctf8.simplexue.com/jia/' post_url = 'http://ctf8.simplexue.com/jia/?action=check_pass' s = requests.Session() get = s.get(get_url) num1 = re.findall(r"'my_expr'>(.*?)</div>=?", get.content)[0] num2 = num1.replace('x', '*') post = s.post(post_url, {'pass_...
GB18030
Python
false
false
1,265
py
14
计算题1.py
12
0.634008
0.60081
0
42
28.380952
86
hkariti/higlass_proxy
9,148,280,382,601
dbfb2ce171bcd201b37b1027f69cc6d22a2be167
425c382463939d23ee0c84143ba3002d126dc087
/setup.py
7c5c08c04154b03fc01fb037c4fa3f3bfa9bda30
[]
no_license
https://github.com/hkariti/higlass_proxy
3fdd4d43f45729d0e8290aa380cc70e63ed3fa25
2c5f093c77295d7c54bc2c75aac38b7c6d3db100
refs/heads/master
2023-02-11T17:31:21.572877
2021-01-06T12:42:27
2021-01-06T12:42:27
297,071,453
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import setup, find_packages def get_requirements(path): content = open(path).read() return [req for req in content.split("\n") if req != "" and not req.startswith("#")] setup_args = { "name": "higlass_proxy", "version": 0.2, "description": "Proxy for jupyter for higlass daemons usi...
UTF-8
Python
false
false
623
py
2
setup.py
2
0.65008
0.64687
0
20
30.15
88
cmdiaz6/fod_placer
3,547,642,994,802
899ab2f3af0649752c78751fb6847850e5503a93
9c1fadab453f09eb68f08a49328b9a6d04672b22
/pointclass.py
3e735cd05a4bf2eec3b14fba948cf9759531eecd
[ "MIT" ]
permissive
https://github.com/cmdiaz6/fod_placer
d9e6ea2fbba405ae8f9ac8c7df45793097901609
0f7dc934a08b7530560264bf86768f3ae36bc49b
refs/heads/master
2021-05-06T00:34:15.053425
2020-05-14T16:12:12
2020-05-14T16:12:12
114,309,670
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 """class for 3D point in space also used for operations on vectors center at origin""" import math __author__ = "Carlos Diaz" class Point: def __init__(self, x = 0.0, y = 0.0, z = 0.0): self.x, self.y, self.z = x, y, z def __str__(self): return "({0},{1},{2})".format(se...
UTF-8
Python
false
false
3,092
py
11
pointclass.py
10
0.554981
0.546248
0
106
28.160377
126
ArkadiuszMichalRys/bug-compare
16,827,681,884,382
c99e40c9c8244ef5c6f58637f1f3e2c4702ad358
59fb1f85bb84c4106d58c3cae4654ee78d335b94
/processor/processor/workers/evaluator.py
19079260cc6ec7416db18da8a5f779464d9f9ec5
[]
no_license
https://github.com/ArkadiuszMichalRys/bug-compare
b1902f0165336065da88be2a38ba0422fd62b1d1
1e5fe88645f09ef89bb20d2796b473011c83f777
refs/heads/master
2020-04-24T05:50:30.944026
2019-08-30T19:14:48
2019-08-30T19:14:48
171,743,887
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import csv import json from collections import defaultdict from pathlib import Path from statistics import median from typing import List from processor.workers.worker import Worker from processor.util import increase_csv_field_size_limit class Evaluator(Worker): """""" def __init__(self, settings: dict, ba...
UTF-8
Python
false
false
5,028
py
59
evaluator.py
23
0.547932
0.547136
0
132
37.090909
120
nw0428/Integer-Arithmetic
18,906,446,045,106
8324a5792d76cf687785c469e3286aba1faa06df
a359677a11c69921bfe0e9238382773b0e639019
/divs.py
bda1ce0097cba105079af96f71116fb116eedd10
[]
no_license
https://github.com/nw0428/Integer-Arithmetic
8caeb15e83bfdd31c05b20543f8ee9ce67bccb64
b3925d691e28ab91e728105382779e247b80a4f8
refs/heads/master
2022-12-26T07:54:38.736183
2020-10-14T14:21:30
2020-10-14T14:21:30
304,038,899
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def div(x, y): return x/y def int_div(x, y): return x //y def mod(x, y): return x % y
UTF-8
Python
false
false
93
py
4
divs.py
3
0.548387
0.548387
0
8
10.75
18
zhangleihong/pyQt5project
6,253,472,390,617
970bbbcda7e572d2eec1c7bb5efc7d383fc41170
fd61f78d7114cd52b54ffeebb8ea484a3901be55
/数据分析/机器学习(算法篇)/2.1linear_grade.py
2a990455b5f8a8fc5691a4a1af203913ffc25a91
[]
no_license
https://github.com/zhangleihong/pyQt5project
10c966ed5a3ed330ed3a64f1f2fa39f5e18e7726
89bb93b8c70f785d4d6bfa36aa2614698c819a0a
refs/heads/master
2021-05-19T08:59:48.157153
2021-01-27T07:56:04
2021-01-27T07:56:04
251,617,073
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" @project:数据分析 @author:zlh @file:2.1linear_grade.py @time:2020/5/7 16:04 """ ''' 1.获取数据集 2.数据基本处理(该案例中省略) 3.特征工程(该案例中省略) 4.机器学习 5.模型评估(该案例中省略) ''' from sklearn.linear_model import LinearRegression # 平时成绩 期末成绩 x = [[80, 86], [82, 80], [85, 78], [90, 90], [86, 82], [82, 90], [78, 80], [92, 94]] y = [84.2, 80.6, 80.1,...
UTF-8
Python
false
false
739
py
17
2.1linear_grade.py
14
0.640367
0.499083
0
35
14.571429
50
Frankd35/JingXiShop
13,297,218,783,218
4a34114b40c589a60bf8da26f3d30c1ac82b5fcb
2ff7843847542e4f4e64e63aa2a8a9578f2c2c06
/WebProject/goods/migrations/0003_category_comment.py
c5bfa932f26298bbf572d75b5957e6d9ca9110fe
[]
no_license
https://github.com/Frankd35/JingXiShop
513872a3a3ee2b4a49a882d3e39549663311979b
71a494f7cf80024baad3e05313ae43be5d770274
refs/heads/main
2023-08-16T21:00:21.230243
2021-10-12T15:14:12
2021-10-12T15:14:12
397,312,750
0
3
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.2.6 on 2021-08-23 02:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('goods', '0002_alter_goods_price'), ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
UTF-8
Python
false
false
1,133
py
55
0003_category_comment.py
34
0.543689
0.518976
0
32
34.40625
117
lmwgv/advent
14,336,600,862,504
1af9be65efb15cafee654aa228cb58a2547ff840
c80bd50e0515ca6852f3b74371c1fc661b33d151
/advent07.py
7cb8bb70e58873b0eeecf6d85417db4f96f57fdb
[]
no_license
https://github.com/lmwgv/advent
e5d93ef43c85425a837c7a24818a6592ae796708
0effc7973c7b5fa10fc2b1570a2b881b626a4e83
refs/heads/master
2021-01-11T06:37:55.637394
2017-02-22T19:39:13
2017-02-22T19:39:13
81,434,937
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
if __name__ == '__main__': ips_supporting_tls = 0 ips_supporting_ssl = 0 with open('advent07.in', 'r') as f: for line in f.readlines(): abas_in = [] abas_out = [] abba_out = False abba_in = False inside_brackets = False ...
UTF-8
Python
false
false
1,408
py
12
advent07.py
12
0.391335
0.379261
0
34
39.411765
122
RianneLam96/Thesis_Project_Crowd_Prediction
7,215,545,075,444
dd46f29b3bed3007b9808d7de2a2af59785d1055
1213b3720f187f058cf2ae7b53a74ea1fd4bcbce
/code/preprocessing.py
7b5780882781be8f45bacf2c36f4c86fe88c3ac4
[]
no_license
https://github.com/RianneLam96/Thesis_Project_Crowd_Prediction
2a459b7368b0a7f77f00d8766b53f384f5aa993f
165073441b86c0ad98d8d289a4cfc6d9a860d5cd
refs/heads/master
2023-06-09T07:36:37.403527
2021-07-06T12:08:36
2021-07-06T12:08:36
382,340,967
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# General import pandas as pd import geopandas as gpd import numpy as np import os from sqlalchemy import create_engine, inspect # Dates from datetime import datetime, timedelta, date import datetime as dt import pytz # Cleaning from scipy.optimize import curve_fit from sklearn import preprocessing, svm ### FUNCTIO...
UTF-8
Python
false
false
19,049
py
7
preprocessing.py
4
0.610583
0.603076
0
573
32.242583
156
Stebalien/Mist
4,080,218,962,713
98f54754b5d2f64b0cbf5ef541efa0742a769f56
b1943593888d5a99815b2b3e34c99ba682ffa115
/bin/metaedit.py
e2d5e6636be65877e2fda8359cbb025f001eadb6
[]
no_license
https://github.com/Stebalien/Mist
b3a1ab39a7fb26b663d09b2e55ac2ac956862254
aa34d1488f196e53823a0df21ffb3f7fc3712fe3
refs/heads/master
2020-04-15T08:21:03.105938
2011-11-30T19:40:43
2011-11-30T19:40:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Metadata editor for Mist program. This is a wrapper class for the mutagen module.""" __author__ = "Jonathan Allen" __all__ = ["FileError", "NonexistantFileError", "UnsupportedFiletypeError", "EncodeInput", "EncodeOutput", "Metadata", "GENERAL_TAGNAMES"] import mimetypes import os import types from jona...
UTF-8
Python
false
false
3,565
py
18
metaedit.py
17
0.53324
0.530715
0
106
32.632075
110
MiscCoding/gsp_web
704,374,649,433
9828ca405d7b4253a29147f9b7c499668c79208b
6e43937c521b841595fbe7f59268ffc72dfefa9d
/GSP_WEB/views/system/backup.py
b224a04664acc8d3bba67e2e97aabcd755c11f6d
[]
no_license
https://github.com/MiscCoding/gsp_web
a5e50ce7591157510021cae49c6b2994f4eaabbe
a24e319974021ba668c5f8b4000ce96d81d1483e
refs/heads/master
2020-03-28T15:11:30.301700
2019-08-12T04:47:42
2019-08-12T04:47:42
148,565,440
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#-*- coding: utf-8 -*- import datetime from flask import request, Response, render_template, Blueprint, json, make_response, g, session from GSP_WEB import login_required, db_session, app from GSP_WEB.common.util.invalidUsage import InvalidUsage from GSP_WEB.common.util.logUtil import logUtil from GSP_WEB.common.util...
UTF-8
Python
false
false
655
py
168
backup.py
124
0.769466
0.767939
0
18
35.444444
96
kimhtae/shop
13,013,750,936,900
c0f459293031dfd4ba6c10a1854575ef6da38f33
48d16bf3e3074937e16f9d95e847a5fd5f363cae
/final/baemin/forms.py
40ce4b4b154e8b9ad272467c2f7d782788f7ee45
[]
no_license
https://github.com/kimhtae/shop
271d216a8eb640b832c44eac493a0e6f55dbdcf3
b4f176900379fbac4eb81f1ec2bcb0258cde58f9
refs/heads/master
2020-03-21T17:02:55.506717
2018-07-04T23:09:47
2018-07-04T23:09:47
138,810,012
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms from .models import Order # Create your models here. class OrderForm(forms.ModelForm): def __init__(self, shop, *args, **kwargs): super().__init__(*args, **kwargs) # 해당 시점의 상품목록만 보이도록 Filter self.fields['item_set'].queryset = self.fields['item_set'].queryset.filter(shop=shop) clas...
UTF-8
Python
false
false
396
py
10
forms.py
6
0.679348
0.679348
0
15
23.6
87
xuguoliang1995/leetCodePython
5,652,176,977,294
41c340eb8e3d3f1b5c91f758bcbe8b3052197e61
8fc1a5f5c81df49ff5f8e7af956b516de32786a8
/python_know/high/demo7.py
f7a485f66ffb90dc6895e966994d178d791e41d5
[ "Apache-2.0" ]
permissive
https://github.com/xuguoliang1995/leetCodePython
1f88d4dedf401fe5a1748b30ad878ce94655b317
9e4a96efd21506e8b0443a52be16c1280643b48c
refs/heads/master
2020-07-26T16:33:58.022862
2019-11-20T07:00:19
2019-11-20T07:00:19
208,704,541
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 字符串知识 """ 1、ASCII标准是美国创建的,定义了从0到127的字符代码,允许每个字符存储在一个8位的字节中(实际上是127位) 2、每个字符一个字节不够,各种符号和重音字符并不在ASCII所定义的可能字符的范围中,所以使用0到255来表示字符 并且把128到255分配给特殊字符,这样的标准叫做Latin-I,广泛使用西欧地区。 3、一些字母表定义了如此多的字符,以至于无法把其中的每一个都表示成一个字节。Unicode考虑到更多的灵活性。 Unicode通常用在国际化的程序中,拥有比8位字符所能表示的更多的字符 4、 UTF-8编码,采用了可变的字节数的方案,小于128的字符代码表示为单个字节,128到0x7ff(20...
UTF-8
Python
false
false
1,926
py
45
demo7.py
44
0.824324
0.755631
0
30
28.533333
62
GGiiuusseeppee/isde
19,189,913,906,037
ae6d36da376d9ab5e323e62e0a34e488e477ca43
5c056a5443273a7b8cb38c2edab1357cec628cac
/src2/timeslot/timeslot_2.py
f179d5b2814eaddb9d149418cf459ef6eda58865
[ "Apache-2.0" ]
permissive
https://github.com/GGiiuusseeppee/isde
7c02444581e124a5acd315966b0adb2315673f8b
a9603d8b8d1a347447cec483108132aa1e8457eb
refs/heads/master
2023-08-27T19:55:57.178818
2021-10-21T15:31:07
2021-10-21T15:31:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class TimeSlot: """A class to store time slot""" minutes_in_hour = 60 def __init__(self): # initialize an empty slot self.timeslot = {'h': 0, 'm': 0} # timeslot is an instance attribute # (attribute of the object) def set_h_m(self, h, m): # set_h_m() is an instance met...
UTF-8
Python
false
false
970
py
67
timeslot_2.py
61
0.579381
0.546392
0
34
27.529412
77
abulovic/binner
11,965,778,922,872
77f6d1cbdc96854db57ec0bfdddea3ce82466b62
913c80188ec68991fa929b995d8b34d909438eab
/solver/read2cds/Read2CDSSolver.py
3d5b63391ba64fad27a2bb1bc38f68d99e6eaa31
[]
no_license
https://github.com/abulovic/binner
2360116a44a36fbefa7074169071f44897819530
470c9e66e50e7b51a0be40e2ea1b30df44e6eba6
refs/heads/master
2016-09-06T21:52:13.900983
2013-06-16T16:57:59
2013-06-16T16:57:59
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# @author: Martin Sosic, sosic.martin@gmail.com class Read2CDSSolver (object): """ Class that decides for each read to which CDS does it belong (to which CDS does it map). It operates on CdsAlnContainer -> it uses data from it and modifies it. Method map_reads_2_cdss() must be called first. """ de...
UTF-8
Python
false
false
4,180
py
34
Read2CDSSolver.py
31
0.641627
0.638278
0
75
54.72
125
sidhuking07/quick-attendance
8,727,373,584,377
891797aedde989e82d267348f761161650fe3a40
89f4fc7e44f4ea5042c1f07fc23c9b8c442ab7d4
/projecting_faces.py
1b69c4daab960b07a0b6a003b36314d98b2eab47
[]
no_license
https://github.com/sidhuking07/quick-attendance
bcd5c8a31c4b0603be2da01c60cccebe243fa3b1
2bd5c9180cdc518c546d15ffd95ba35dc10dcfe2
refs/heads/master
2021-08-31T20:05:35.992362
2017-12-22T17:47:54
2017-12-22T17:47:54
111,775,688
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import dlib import cv2 import openface predictor_model = "shape_predictor_68_face_landmarks.dat" file_name = sys.argv[1] #take input from command face_detector = dlib.get_frontal_face_detector() #create HOG face detector from dlib face_pose_predictor = dlib.shape_predictor(predictor_model) face_aligner = ...
UTF-8
Python
false
false
955
py
6
projecting_faces.py
5
0.771728
0.760209
0
28
33.107143
132
Akpanwal2001/CodeAddiction
11,416,023,120,091
f4b7271f5102778f6ea96aa85e0deb6461664b7d
6ecf369f015241d0265d05b6d0b9e676fb2d45ff
/blog/views.py
f30a7b1b31f1c892c63f75a462a9f8e9470d6fe6
[]
no_license
https://github.com/Akpanwal2001/CodeAddiction
404c5dd536e249384f8038a57d6d52a277481c6f
5b8bce2d63b651b522e74332e62ffe0028b21273
refs/heads/master
2023-06-20T06:46:12.256762
2021-07-16T13:11:10
2021-07-16T13:11:10
386,641,810
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from .models import Post # all Blogs page function def blog(request): allPosts = Paginator(Post.objects.all().order_by('-datetime'), 2) page = request.GET.get('page') try: Posts = allPosts...
UTF-8
Python
false
false
795
py
19
views.py
15
0.674214
0.67044
0
26
29.538462
72
DamirNesimi/min_max.py
2,276,332,668,092
bb85a2d2dbbb434bf4c0bd44a0147ca84e83104d
701d1ce081e43d8f1469666540a6c5104fd26d99
/min_max.py
c8f5bc078d266adcfe72e3491aa0befcdca1858c
[]
no_license
https://github.com/DamirNesimi/min_max.py
6ea9916ed296a16cea5ab63df7267995c16ba963
e7c8fe8400b36621e2275649ceac15286927a903
refs/heads/master
2022-12-20T03:26:27.246955
2020-09-27T14:15:40
2020-09-27T14:15:40
299,046,625
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Dette programmet bruker funksjonene egen_max og egen_min som beregner maximum og minimum av to tall skrevet inn av en bruker. 27.09.2020 """ # funksjon som returnerer den største verdien av tall_1 og tall_2 def egen_max(tall_1, tall_2): max = (tall_1 + tall_2 + abs(tall_1 - tall_2))//2 return max # funks...
UTF-8
Python
false
false
1,065
py
1
min_max.py
1
0.62406
0.577068
0
33
31.242424
99
NBGodlike/dz
11,269,994,232,089
3df8e0b35c592268c5427041349ddf1cbbab00ba
d8335ac15d7cbe3ad6f87e8cabfa48124aa60d61
/users/migrations/0005_course_picture.py
4dbcc82eee8dcbaec49e22b8c9830cc69158938b
[]
no_license
https://github.com/NBGodlike/dz
a5d56bc4b7a190e1ca75f2f3c04ed2dc6d646cd6
7dc67aedb373411ca2637a38622f97d0bf97889a
refs/heads/master
2021-04-29T02:56:39.502536
2017-01-05T08:39:52
2017-01-05T08:39:52
78,049,378
0
1
null
false
2017-03-16T03:23:52
2017-01-04T20:14:27
2017-01-05T08:31:34
2017-01-10T14:46:51
4,013
0
0
0
CSS
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-01 19:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20161231_2028'), ] operations = [ migrations.AddField( ...
UTF-8
Python
false
false
460
py
23
0005_course_picture.py
14
0.595652
0.517391
0
20
22
62
nkyllonen/ACVC
14,345,190,794,352
211810653fc2266d120652706553277fb7eb0e83
68f651118c0e6363163cc970ed650a86a9cc5f77
/DecisionMaker.py
5025df4a8b4f50e4ee0678aa862c75b3e9ef0e82
[]
no_license
https://github.com/nkyllonen/ACVC
784d8d2543238d7a56b000dfbc05796e29e34ba4
f2f675080d5716f1cbf45a40edcf0ed169b9c4f2
refs/heads/master
2022-12-10T06:30:49.977124
2020-05-11T16:02:44
2020-05-11T16:02:44
256,346,234
0
1
null
false
2022-12-08T09:41:18
2020-04-16T22:43:00
2020-05-11T16:02:56
2022-12-08T09:41:17
13,850
0
1
2
Python
false
false
''' DecisionMaker: module for deciding potential answers Alex Berg and Nikki Kyllonen ''' from __future__ import print_function import State import string, nltk, random from nltk.corpus import stopwords nltk.download("stopwords") from textwrap import wrap from terminaltables import AsciiTable ## GLOBAL VARIABLES #...
UTF-8
Python
false
false
6,916
py
14
DecisionMaker.py
6
0.606131
0.598323
0
200
33.58
143
silverstar194/Nano-SpeedTest
3,470,333,582,658
5d2d1fa3dd8565971010275fd3d1a0e092e145c5
c68fbb8f11d33a08326827d90fe96b1805214e28
/app/backend/speedtest_api/services/nodes.py
a709949555d78ecd62756a69de5c4ecb300a1120
[]
no_license
https://github.com/silverstar194/Nano-SpeedTest
ce8decf9a616b100449b786a53d3cf67798e1a9b
c5b11305050aac44ea940d7241d61423c63a2406
refs/heads/master
2022-12-12T12:17:02.062680
2020-12-12T23:55:11
2020-12-12T23:55:11
149,526,364
28
7
null
false
2022-12-07T23:53:06
2018-09-20T00:02:48
2022-11-18T20:19:32
2022-12-07T23:53:06
5,409
25
4
7
CSS
false
false
from django.conf import settings as settings from .. import models as models class NodeNotFoundException(Exception): def __init__(self, node): Exception.__init__(self, "Fatal error occurred occurred. Node %s not found." % (node.URL)) def new_node(URL, latitude, longitude, location_name=None): """ ...
UTF-8
Python
false
false
1,398
py
145
nodes.py
110
0.69671
0.694564
0
46
29.391304
115
Nidocq/Sudoku_Solver
7,842,610,288,689
06f3f2662dc1955027e608fa39758e57d1f3d257
71c3683c843a0773311d0692d7f5af1195995643
/Board.py
b8992be65c5f2d882ee390a86dbf37b5bc7b366a
[]
no_license
https://github.com/Nidocq/Sudoku_Solver
b4eb2168406406753f4316fef01dce1860294c09
17d41ec86c1d7df4b2a9b04f5f8f9f0544db9cc1
refs/heads/main
2023-06-14T06:37:08.607379
2021-07-08T20:47:06
2021-07-08T20:47:06
383,120,452
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 class Board(): def __init__(self): self.grid = [[6, 0, 0, 1, 0, 0, 0, 4, 0], [0, 0, 1, 8, 6, 0, 2, 0, 0], [8, 9, 0, 2, 5, 4, 0, 0, 0], [2, 0, 0, 3, 8, 0, 1, 5, 0], [0, 7, 0, 0, 2, 6, 9, 8, 3], [3, 8, 9, 7, 1, 0, 0, 0, 0], [0, 2, 8, 9, 0...
UTF-8
Python
false
false
1,187
py
5
Board.py
4
0.410278
0.336142
0
42
27.285714
66
gabriellaec/desoft-analise-exercicios
11,020,886,091,469
ecb2eeab5c7af369435d0c5c0e2b200801684bce
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_116/ch80_2020_04_08_20_35_59_699840.py
4a781044dd6978c7d01548ae00b9cde383ae5340
[]
no_license
https://github.com/gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def interseccao_chaves(x,y): lista=[] for k in x.keys(): if k in y.keys(): if k not in lista: lista.append(k) return lista
UTF-8
Python
false
false
170
py
35,359
ch80_2020_04_08_20_35_59_699840.py
35,352
0.494118
0.494118
0
7
23.428571
31
equinor/webviz-core-components
9,199,819,960,594
67c46cf98c24ad00dc66569c82c47e46d817b048
bfd641697aaf7777e7c6b921d6b8b04e867fa877
/webviz_core_components/wrapped_components/frame.py
095dd25afee6c584167b1143fd1cf4a2012a6d0b
[ "MIT" ]
permissive
https://github.com/equinor/webviz-core-components
cb02480f16050c704e2d46d635f12f95235aa2fa
cba53f3ea37beabd6cee5765de2b556d9f4aef48
refs/heads/master
2023-08-29T23:54:37.086036
2023-08-09T10:52:08
2023-08-09T10:52:08
201,783,679
13
15
MIT
false
2023-08-17T07:55:19
2019-08-11T15:42:13
2023-06-23T09:13:35
2023-08-11T16:38:59
11,088
11
15
43
TypeScript
false
false
from typing import Any from dash import html class Frame(html.Div): """A html.Div with border and background styling Keyword arguments: - children (a list of or a singular dash component, string or number; required): The children of this component. - color (str; default #F9F9F9): B...
UTF-8
Python
false
false
1,157
py
186
frame.py
70
0.582541
0.577355
0
46
24.152174
84
masakiaota/kyoupuro
1,443,109,038,543
eef9666bf68f7b3056de2f1837df9759b2c0bed7
0987f31e64bcacb41ba3a1e20054d7b8ac0d7346
/practice/E_ABC/abc149_e.py
0e334dcd7bf5adaa753340eb3b4a63fba759f475
[]
no_license
https://github.com/masakiaota/kyoupuro
81ae52ab3014fb2b1e10472994afa4caa9ea463b
74915a40ac157f89fe400e3f98e9bf3c10012cd7
refs/heads/master
2021-06-27T04:13:52.152582
2020-09-20T03:21:17
2020-09-20T03:21:17
147,049,195
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# https://atcoder.jp/contests/abc149/tasks/abc149_e # すべての握手の組み合わせN**2を列挙しソートしM番目までを足し合わせればOK # だけど制約からこれを行うことは困難 # すべてを列挙しなくともM番目の値を知ることは二分探索で可能(参考:億マス計算) # Aの累積和を保持しておけば、M番目の値の探索中にMまでの値の合計もついでに計算できる # 以下reverseでソート済みだと仮定 # XがM番目の数→X以上である数はM個以上(cntとする)→cntがM個以上の条件を満たすうちの最大となるXがM番目の値 # そのあと余分な分を引く処理とか必要 from bisect i...
UTF-8
Python
false
false
2,628
py
891
abc149_e.py
842
0.60982
0.597149
0
77
23.597403
64
NaraS91/AdventOfCode
695,784,729,214
3498b64f7b5dfe5563b7ad0a4250f65716e4862b
97c7933f831fe4d7458f540764475a4360899e91
/AdventOfCode/Day05/solver.py
9051b30c81c274cba6ad1b8753573f3bdd2c0ab9
[]
no_license
https://github.com/NaraS91/AdventOfCode
2e462c3c35e85b55cab7d05c02cf26745064a2fd
b753dafc96b65faa1ccebd2173f94663fcb8ad7c
refs/heads/main
2023-02-05T15:49:49.072298
2020-12-22T20:24:00
2020-12-22T20:24:00
317,490,059
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def boarding_pass_to_seat(boarding_pass): row = 0 powOf2 = 64 for i in range(0, 7): if boarding_pass[i] == 'B': row += powOf2 powOf2 /= 2 column = 0 powOf2 = 4 for i in range(7, 10): if boarding_pass[i] == 'R': column += powOf2 powOf2 /= 2 return (row, column) def row_colum...
UTF-8
Python
false
false
1,072
py
21
solver.py
13
0.638993
0.612873
0
47
21.808511
64
ispras/lingvodoc
9,740,985,841,877
3ffc2e3a0aaed92a3b79c6faa26faa0b4690ee59
9cd2a076f5044f29ba336d3a8c9721133f90b8d4
/lingvodoc/views/v2/delete.py
6795f33a737eea883ed35dfdb8b957c3c6c6a067
[ "BSD-3-Clause", "BSD-3-Clause-Modification", "LGPL-3.0-or-later", "LicenseRef-scancode-openssl-exception-lgpl3.0plus", "Zlib", "ZPL-2.1", "LGPL-2.1-only", "Apache-2.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive", ...
permissive
https://github.com/ispras/lingvodoc
19e889a92bfd5428fe8f2a409e21b44bd8a25d06
4e129f73e99a1dea93d900c4abf476409bc56957
refs/heads/heavy_refactor
2023-08-17T10:48:17.617483
2023-08-10T13:06:56
2023-08-10T13:06:56
22,783,020
7
22
Apache-2.0
false
2023-09-06T14:13:29
2014-08-09T09:19:56
2023-07-03T22:44:46
2023-09-06T14:13:27
102,130
6
12
11
JavaScript
false
false
from lingvodoc.models import ( Client, DBSession, Dictionary, DictionaryPerspective, DictionaryPerspectiveToField, Field, LexicalEntry, Entity, PublishingEntity, Language, Organization, User, UserBlobs, TranslationAtom, TranslationGist, categories, Obj...
UTF-8
Python
false
false
3,146
py
386
delete.py
169
0.709472
0.708519
0
106
28.688679
129
foamliu/facesdk
7,224,135,030,147
9c0727bb83157176b6ab032d960b5bdf353692bb
efbb9d3ebb2b2c44d05ffe88c74bf4c7da2d4479
/examples/detect.py
7794cba7b2147e4db4f314000cf3dd01b906aa31
[ "MIT" ]
permissive
https://github.com/foamliu/facesdk
5ff858ad144a6a26f0eded8ecbc98cb7ca580441
af83d440eafe8523e4323df7c4c8dc5370fb3d70
refs/heads/master
2020-12-12T19:33:49.278947
2020-01-19T02:42:06
2020-01-19T02:42:06
234,211,843
2
1
MIT
false
2020-01-18T00:47:33
2020-01-16T01:52:34
2020-01-17T13:02:37
2020-01-18T00:47:32
13,073
0
1
0
Python
false
false
import cv2 as cv from facesdk.core import FaceSDK def draw_bboxes(img, bboxes, landmarks): num_faces = bboxes.shape[0] # show image for i in range(num_faces): b = bboxes[i] text = "{:.4f}".format(b[4]) b = list(map(int, b)) cv.rectangle(img, (b[0], b[1]), (b[2], b[3]), (0...
UTF-8
Python
false
false
1,191
py
8
detect.py
6
0.533165
0.465995
0
41
28.04878
69
tom-sb/farmManage
9,775,345,595,600
bd24f25b9c0c8cbcd0f1abb011a8ef59b76cfe26
f4a43d4eead4b1ffb145a27d30eb4b3571f80fed
/moduloGranja/apps/alimentos/models.py
5348e0d77bb5c26470c76f10e5fa346996bb996a
[]
no_license
https://github.com/tom-sb/farmManage
256dd968416c5449d52e118ad0e3d3cd8ebdaae9
0f24f4a3f790e30accd70bf0c7876f635e27a9ba
refs/heads/master
2023-02-25T15:22:30.073951
2021-02-05T01:28:48
2021-02-05T01:28:48
298,927,843
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from apps.clusters.models import Cluster from datetime import date # Create your models here. class Alimento(models.Model): nombre_alimento = models.CharField(max_length = 50) stock_alimento = models.IntegerField() def __str__(self): return self.nombre_alimento def updateStock(sel...
UTF-8
Python
false
false
867
py
85
models.py
48
0.767013
0.762399
0
28
29.964286
65
hidetomo-watanabe/analysis_for_kaggle
9,560,597,246,364
338dd6377e2848f156dd0b46a6592140966a7f4e
ab291f94e5cc97703196bb1d0f2f7438f5c90390
/sklearn_wrapper/modules/Notifier.py
a5544b631f2177826e4b3ddc8a6f923e6ffc9f26
[ "Apache-2.0" ]
permissive
https://github.com/hidetomo-watanabe/analysis_for_kaggle
45c50fc629fc963a3dc3bb81de686dcd51050c7f
0d688b5fae418c61a022e583412e2437b9f86592
refs/heads/master
2021-06-03T00:02:58.092592
2021-06-02T23:48:26
2021-06-02T23:48:26
97,419,388
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from logging import getLogger import requests logger = getLogger('predict').getChild('Notifier') if 'ConfigReader' not in globals(): from .ConfigReader import ConfigReader class Notifier(ConfigReader): def __init__(self): self.configs = {} def notify_slack(self): mode = self...
UTF-8
Python
false
false
795
py
59
Notifier.py
40
0.579874
0.579874
0
29
26.413793
67
saraitne11/CodingTest
670,014,918,275
df08459e55a4a4f8a18bee5c05e80314cc658cfa
c4a44a38eb04701688ed9f8e5dd20e3ad41535d7
/baekjoon/baekjoon7576/baekjoon7576.py
1e5660099a9aa3d52075324f61b575e1f12a3228
[]
no_license
https://github.com/saraitne11/CodingTest
2374514f934f5b59e3c137100899069a874c517b
1c9eb6bb263d6aa2f5c4a37aa0060c2843526dc9
refs/heads/master
2022-06-07T12:40:26.779146
2022-05-16T00:48:26
2022-05-16T00:48:26
210,196,388
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" https://www.acmicpc.net/problem/7576 토마토 """ from pprint import pprint from collections import deque UP = (-1, 0) DOWN = (1, 0) LEFT = (0, -1) RIGHT = (0, 1) MOVES = (UP, DOWN, LEFT, RIGHT) def in_matrix(i, j, n, m): if 0 <= i < n and 0 <= j < m: return True else: return False def bfs(...
UTF-8
Python
false
false
1,636
py
56
baekjoon7576.py
54
0.44697
0.429293
0
78
19.307692
74
prompto/prompto-python3
9,672,266,390,222
7e2615d2ae4a1a6a5747947a93736511d20d3796
8bb4a472344fda15985ac322d14e8f4ad79c7553
/Python3-Core/src/test/prompto/translate/oeo/TestCast.py
50587ecb1cc5b18f3e4f0162e7b5297ba4a9c6ee
[]
no_license
https://github.com/prompto/prompto-python3
c6b356f5af30c6826730ba7f2ad869f341983a2d
64bd3d97d4702cc912097d41d961f7ab3fd82bee
refs/heads/master
2022-12-24T12:33:16.251468
2022-11-27T17:37:56
2022-11-27T17:37:56
32,623,633
4
0
null
false
2019-05-04T11:06:05
2015-03-21T07:17:25
2019-04-27T02:51:34
2019-05-04T11:06:04
12,379
0
0
0
Python
false
false
from prompto.parser.o.BaseOParserTest import BaseOParserTest class TestCast(BaseOParserTest): def setUp(self): super(type(self), self).setUp() def testAutoDowncast(self): self.compareResourceOEO("cast/autoDowncast.poc") def testAutoDowncastMethod(self): self.compareResour...
UTF-8
Python
false
false
1,303
py
689
TestCast.py
685
0.701458
0.701458
0
45
27.911111
62
wushijie312/yanjiuKJ
4,707,284,165,509
d4e302172d3249365c8120f997d529b0343042ad
6af9c3905a649dae6960e730dcaa770c83878beb
/Django_myblog/blog/migrations/0005_artical_pub_time.py
1afaa40531073ebce5a39029ff90f2be79944e29
[]
no_license
https://github.com/wushijie312/yanjiuKJ
c712cb702bc209a25d1e5b9168cd7e25874fe738
d6da709bc180f8721ea0ad2986f7f32ab139bf25
refs/heads/master
2020-03-23T09:12:36.885699
2018-07-18T03:10:50
2018-07-18T03:10:50
141,374,147
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0.5 on 2018-05-11 09:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0004_auto_20180508_1833'), ] operations = [ migrations.AddField( model_name='artical', name='pub_time', ...
UTF-8
Python
false
false
388
py
50
0005_artical_pub_time.py
26
0.585052
0.505155
0
18
20.555556
54
Moons08/TIL
10,110,353,047,310
7eb30fb1889b4853731088cca51f1470be73f022
cb3af0b9c456764ffd6f1c331ea452798c7efc1f
/Past/DSS/Programming/Scraping/180306_secondhand_search/search.py
76f5024fccb400e4e1a07a69f748d4eda3bd820c
[ "MIT" ]
permissive
https://github.com/Moons08/TIL
fed16d93ac7c23af97dfe4f952e32032c2ad6649
e257854e1f7b9af5a6e349f38037f3010c07310f
refs/heads/master
2021-05-11T18:06:16.406383
2020-01-20T13:02:57
2020-01-20T13:02:57
117,811,982
0
0
MIT
false
2018-01-21T07:20:49
2018-01-17T09:07:51
2018-01-17T09:37:59
2018-01-21T07:20:49
7
0
0
0
Jupyter Notebook
false
null
import requests import pandas as pd from bs4 import BeautifulSoup import pickle # 전체 데이터 갯수를 가져오는 함수 def get_total(keyword): response = requests.get("https://m.cafe.naver.com/ArticleSearchList.nhn?search.query={}\ &search.menuid=&search.searchBy=1&search.sortBy=date&search.clubid=100501...
UTF-8
Python
false
false
2,774
py
149
search.py
29
0.626953
0.608203
0
73
34.068493
179
ashesknight/tof-mpi-remove
8,650,064,169,131
18878db74650037429012ea0c330a812638e3cba
0ae7462dece6a980afb75a4aa4f40c1d8bf24e30
/pipe/kinect_pipeline.py
0ca60fd729a8d7c47259400f2108eb187451f547
[ "MIT" ]
permissive
https://github.com/ashesknight/tof-mpi-remove
8e3375931c2c5aa52b7d25ea2ca965a202efd97a
11ecac5db4b30affbb1785ac01397e7aa53f22cf
refs/heads/master
2022-12-23T12:47:50.601122
2020-09-24T13:58:11
2020-09-24T13:58:11
220,787,315
6
6
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.path.insert(0, '../sim/') import tensorflow as tf from tof_class import * from kinect_spec import * tf.logging.set_verbosity(tf.logging.INFO) from kinect_init import * tof_cam = kinect_real_tf() PI = 3.14159265358979323846 flg = False dtype = tf.float32 def kinect_pipeline(meas): ## Kinect Pipel...
UTF-8
Python
false
false
18,323
py
15
kinect_pipeline.py
14
0.54407
0.491459
0
490
36.395918
113
phanrahan/loam
2,585,570,338,936
41a68bead09b92b4d046b152fc2385d7726e04eb
f28dd5d5dd4a966cfb981075c59023e737085f42
/tests/test_mantle/mothball/arith/_fulladder.py
6492acc68a01bcc9b7bf0628e08736967934c99a
[ "MIT" ]
permissive
https://github.com/phanrahan/loam
91ec366a3652363207f42b2b5f04dad693669d6a
10b08bd622b7cfd63eabaec4729f6238e4521b30
refs/heads/master
2021-03-24T14:01:40.877743
2019-10-07T18:15:09
2019-10-07T18:15:09
84,332,116
16
3
NOASSERTION
false
2019-12-30T08:24:19
2017-03-08T14:55:39
2019-11-09T00:45:40
2019-10-07T18:15:26
12,323
8
3
6
Verilog
false
false
import sys from magma import * from mantle import * from loam.shields.megawing import MegaWing megawing = MegaWing() megawing.Switch.on(3) megawing.LED.on(2) main = megawing.main() fa = FullAdder(2, A0^A1,A0&A1) fa( main.SWITCH[0], main.SWITCH[1] ) wire( main.SWITCH[2], fa.CIN ) wire( fa.O, main.LED[0] ) wire( fa....
UTF-8
Python
false
false
370
py
507
_fulladder.py
279
0.691892
0.656757
0
20
17.4
42
LaGvidilo/ALIEN
6,399,501,281,834
8d0763d87eb5f80fd6ea71f38f8bef19fa74d3bc
9f65e7373ab61b456f68cf3bdc01dfb0e5634802
/dico/DICO20.py
9decdbf74b275e6d54b00743d1f3f0ccb2324db3
[]
no_license
https://github.com/LaGvidilo/ALIEN
a8b43a78eff4a7079be2823a65846df6c70f5e90
a4ffc4c0f1aed33ee42a8f581729579b43143e6e
refs/heads/master
2016-08-03T17:23:41.376795
2015-09-15T03:15:15
2015-09-15T03:15:15
42,492,226
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- def get_seed(data): if data==chr(203)+chr(85)+chr(166): return chr(9)+chr(10)+chr(1)+chr(1) if data==chr(9)+chr(10)+chr(1)+chr(1): return chr(203)+chr(85)+chr(166) if data==chr(0)+chr(187)+chr(84): return chr(10)+chr(10)+chr(1)+chr(1) if data==chr(10)+chr(10)+chr(1)+chr(1): return ch...
UTF-8
Python
false
false
33,705
py
257
DICO20.py
257
0.610295
0.443525
0
907
36.16097
40
kalthommusa/100DaysOfCode
16,552,803,994,497
762b7d086f440e19513f0bd3fba2940106c45f12
7cc342310bac85d2600d9f3246a3d6b62ae40c3d
/Day72_mysql_orderby.py
2e919304f5f9379c797926c97ec178d10a37e4e6
[]
no_license
https://github.com/kalthommusa/100DaysOfCode
52b1111a81671b68e8ddb8806bb22fec58355f11
3b7b1e036aaeaee7243e4dabfbd360d3deb8d6dd
refs/heads/master
2020-07-07T05:51:28.971917
2019-11-12T20:11:13
2019-11-12T20:11:13
203,270,354
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import mysql.connector #create a connection to MySQL server mydb=mysql.connector.connect( host="127.0.0.1", user="root", passwd="pass111", database="mydatabase" ) mycursor=mydb.cursor() #Select all the records and sort the result alphabetically by name (ascending by default) sql="SELECT * FROM customers ORDER...
UTF-8
Python
false
false
546
py
89
Day72_mysql_orderby.py
86
0.754579
0.738095
0
20
26.35
90
NAH8/dmpipe
12,343,736,018,176
bc698692c90c259ee91c104e5573fa66cb69c908
cfd310aaad4d40c3689c28672baabe11ec783d19
/setup.py
bdcea345c03dc51d59f9f59a64d7d0e6ce66e429
[ "BSD-3-Clause" ]
permissive
https://github.com/NAH8/dmpipe
e7fda3531f87c10ac3cf091d99cc91bebd17f5f3
041aca0a778d5b31adc770e53ce571ac5e6e8ec8
refs/heads/master
2021-05-15T10:21:14.990087
2017-06-27T01:58:12
2017-06-27T01:58:12
108,181,123
0
0
null
true
2017-10-24T20:41:05
2017-10-24T20:41:05
2017-05-16T22:18:30
2017-06-27T01:58:51
101
0
0
0
null
false
null
#!/usr/bin/env python from setuptools import setup, find_packages import versioneer setup( name='dmpipe', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), author='Matthew Wood', author_email='mdwood@slac.stanford.edu', description='Pipeline Scripts for LAT DM Analysis', ...
UTF-8
Python
false
false
2,229
py
8
setup.py
8
0.628084
0.619112
0
56
38.803571
79
lianglin74/CoOp
6,399,501,290,664
b48cfdbf949e235d16cb897e952509857fbe1869
9cdc5ba730439cc1a2e5bddfc7d1d34cdd17e5bc
/src/qd/evaluate/evaluate_openimages_google.py
25ae4fe2900efdcca22a1d4d2c603f9277de53b6
[]
no_license
https://github.com/lianglin74/CoOp
dff26848a5cee1ac3388c6c1a0abdfd73052d9ff
1b0b82bcea1dea9bc91935cab480d218f2aea8b0
refs/heads/master
2023-08-11T07:13:20.706047
2021-09-08T22:01:08
2021-09-08T22:01:40
406,508,593
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import os.path as op import json from qd.tsv_io import load_list_file from qd.tsv_io import TSVFile, tsv_reader from qd.evaluate.oid_hierarchical_labels_expansion_tsv import expand_labels import numpy as np import argparse import time import logging def parallel_oi5c_to_submit_csv(pred_tsv, subm...
UTF-8
Python
false
false
27,090
py
370
evaluate_openimages_google.py
291
0.579919
0.571724
0
585
44.307692
158
Throupy/Discord-Bot
1,176,821,078,397
52abbc33d244aa0bab5d77c760dd4a2b19523b11
37bc1e6300f61702975366b17141864519c87505
/cogs/main.py
7dd4d39f1d84b9a737441a24f0534997eb585716
[]
no_license
https://github.com/Throupy/Discord-Bot
9b8a5f4506e8eae6b4587146b8a0d4ea1f74264e
8778b019585b8106008822dd0924c6e59e93dcac
refs/heads/master
2020-05-05T05:26:40.626234
2019-04-17T21:24:20
2019-04-17T21:24:20
179,752,527
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Cog for main commands.""" import aiohttp import datetime import random from dateutil.relativedelta import relativedelta import discord from bs4 import BeautifulSoup from discord.ext import commands from utils.consts import Consts from utils.embedgenerator import Embed class MainCog(commands.Cog): """Main cog."...
UTF-8
Python
false
false
5,967
py
8
main.py
7
0.572314
0.564103
0
136
42.875
79
p56071078/python-practice
14,998,025,804,731
fc0d0df1a374c4cf6fea43fbadd7e459fd9f8960
2706674a5547e58ced2cf0bb330e270c1ecc731c
/HW4_for_loop.py
81d4e58b204a7fdcc3758a55c228efff9d2d9334
[]
no_license
https://github.com/p56071078/python-practice
548db33ca5e1e30292ec5a510cce4ec9ef5bd330
165241fa81605c12cdb7a0386d7792b40929a603
refs/heads/master
2023-02-22T02:23:29.794974
2021-01-27T12:59:12
2021-01-27T12:59:12
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#4.1 a = int(input()) b = int(input()) for i in range(a,b+1): print(i,end=' ') #4.2 # Read an integer: a = int(input()) b = int(input()) # Print a value: # if a>=b: for i in range(a, b-1,-1): print(i,end=' ') else: for i in range(a, b+1): print(i,end=' ') #4.3 #老師解 sum=0 for i in range(10): sum=sum...
UTF-8
Python
false
false
1,547
py
10
HW4_for_loop.py
10
0.611068
0.557288
0
95
12.505263
37
ParticleFilter101/Time-series-forecasting
9,526,237,505,712
bc92f9d79188a3d4fe2e278f5d2fadc5d7d618b3
3085b3992489cddb5ec256105ded0b7cdf9ec86b
/lstmty3.py
60795e2a629d51c34b07552199d847ecc56cea83
[]
no_license
https://github.com/ParticleFilter101/Time-series-forecasting
81a754ae871c1321391540d74e88f253b1830afe
a9e95da89c497d3298dba65a8b7bd53b13290b0c
refs/heads/master
2023-07-06T20:57:45.243204
2019-08-30T13:11:43
2019-08-30T13:11:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 30 14:38:47 2019 @author: shivambhardwaj """ import sys import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.stats import randint import seaborn as sns # used for plot interactive graph. from sklearn.model_selection...
UTF-8
Python
false
false
5,379
py
3
lstmty3.py
2
0.688418
0.664622
0
179
29.044693
103
zwei2stein/mtg-commandline-tool
2,190,433,345,208
6038aef09071dc7929cc20820bd2510934854b5a
8af5ff2a64e2589bd7898a87f1cc909919782239
/price_source/mysticshop.py
001488df7f3e42833f77da00054b32018670cf4f
[]
no_license
https://github.com/zwei2stein/mtg-commandline-tool
b461dd44fd17722b3974bece5e23545e68f47d5c
7ee6b211ff7d15aa4dd20231c28955ccb00166f5
refs/heads/master
2023-05-27T01:13:39.420872
2022-12-17T21:13:11
2022-12-17T21:13:11
162,145,046
1
0
null
false
2023-05-23T05:22:59
2018-12-17T14:44:35
2022-12-22T13:31:44
2023-05-23T05:22:58
326
1
0
2
Python
false
false
import re import requests from price_source.priceSource import PriceSource class MysticShop(PriceSource): def __init__(self, base_cache_dir, clearCache, cacheTimeout, smartFlush, priority): super().__init__(base_cache_dir, '.mysticShopCache') self.clearCache = clearCache self.cacheTimeout = cacheTimeout sel...
UTF-8
Python
false
false
1,191
py
54
mysticshop.py
38
0.68178
0.674223
0
43
26.72093
95
westgate458/LeetCode
8,890,582,322,253
90cc4a29da2fcac7cd1f5ce7c392d0ca8a94e12d
8773e8c9b9a0a6e407f91b6f7c6321141d7e8356
/apple/P1804_apple.py
39be60380ea474768740062f36b0c62f59a029be
[]
no_license
https://github.com/westgate458/LeetCode
1836bb21e8dd95386ccab390f5fd04567a429a02
36d7f9e967a62db77622e0888f61999d7f37579a
refs/heads/master
2021-12-28T04:16:36.875737
2021-12-17T05:48:09
2021-12-17T05:48:09
152,928,584
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Trie(object): def __init__(self): self.d = {} def insert(self, word): """ :type word: str :rtype: None """ node = self.d for c in word: if c not in node: node[c] = {} node = node[c] ...
UTF-8
Python
false
false
1,542
py
640
P1804_apple.py
640
0.407263
0.399481
0
60
24.716667
59
jinjinfan/An_Introduction_to_Interactive_Programming_in_Python-
7,456,063,227,217
0b872b6ffc9932da6b58aa2615a0da735b8abdb2
0df40e835f27acc62d50fe79b6a2407542b8d317
/Stopwatch.py
296aa4c531e4b236246e400fe25f54e02821cf83
[]
no_license
https://github.com/jinjinfan/An_Introduction_to_Interactive_Programming_in_Python-
5a1abd6c645e60eeb0aa9492ae2617ad9a67f088
89ee143a5f7de3eb0441bf2533d0f865a53045cc
refs/heads/master
2021-01-16T21:01:03.765411
2015-06-28T15:14:01
2015-06-28T15:14:01
38,201,072
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# "Stopwatch: The Game" import simplegui # define global variables time = 0 # the total number of stops number_stops = 0 # the number of successful stops at a whole second nmber_win = 0 # determine whether stopwatch is running timer_running = False # define helper function format that converts time #...
UTF-8
Python
false
false
2,388
py
7
Stopwatch.py
6
0.611809
0.582496
0
84
26.404762
70
chaitanyak52/fairing
5,729,486,409,668
b5f2f9e6357928a68f8e067e743e35bbfdd67d58
1d4dbd4bf687c3b7e12a329a16eb600f8cbab72b
/fairing/deployers/gcp/gcp.py
9f8d8c18db35e0538d100f7034587d7ed87e2459
[ "Apache-2.0" ]
permissive
https://github.com/chaitanyak52/fairing
1d9075fcf42d5305d04f6a34d85e2a5cce2ec322
bf7930f0ee8832d4a942ca7e308b56ed0b9a924c
refs/heads/master
2021-06-13T19:14:02.380885
2019-06-27T14:49:57
2019-06-27T14:49:57
193,507,639
2
0
Apache-2.0
false
2021-06-01T23:52:36
2019-06-24T13:08:38
2019-08-14T12:29:32
2021-06-01T23:52:35
3,355
2
0
1
Jsonnet
false
false
from fairing import utils from fairing.deployers.deployer import DeployerInterface from fairing.cloud.gcp import guess_project_name from fairing import http_utils from oauth2client.client import GoogleCredentials from googleapiclient import discovery from googleapiclient import errors class GCPJob(DeployerInterface):...
UTF-8
Python
false
false
3,464
py
114
gcp.py
88
0.637991
0.636547
0
80
42.3
87
b2220333/panda3d-editor
18,657,337,943,299
15c28b9efea38f45fbc7d7627b255d627bd96aa6
c311242ac4796a275c84c503c4ca2f7eb2db4b9a
/src/pandaEditor/editor/nodes/sceneRoot.py
c7e6c8c87d978da3890bb4a3763d3e6a208af446
[ "MIT" ]
permissive
https://github.com/b2220333/panda3d-editor
c9773631733d78e71fc76abfca72bc588600141e
f87fadf03048508a909d38f9714a72cb01abf069
refs/heads/master
2020-03-27T08:59:03.964485
2016-10-08T01:41:37
2016-10-08T01:41:37
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from game.nodes.sceneRoot import SceneRoot as GameSceneRoot class SceneRoot( GameSceneRoot ): def GetChildren( self ): children = [] comps = [render2d, render] + base.scene.comps.keys() for comp in comps: children.append( base.game.nodeMgr.Wrap( comp ) ) ...
UTF-8
Python
false
false
343
py
140
sceneRoot.py
140
0.603499
0.600583
0
13
25.461538
61
Lifefang/python-labs
7,765,300,880,670
971ab5ab1a8bffb6e59b4252f60a9ee1720bc8ab
69c5b9a024dfdaf8e0fd9be5df68e6afcf292557
/Lab3_Act1_d.py
11f52128054b97c1a131351090c2204376e208f3
[]
no_license
https://github.com/Lifefang/python-labs
a85bab0a66b2170d047752c923e2d9b21c78a491
c257c35f73c87f27e7dd90119428f097bea2b9e9
refs/heads/master
2020-08-02T21:16:58.817993
2019-12-07T15:10:28
2019-12-07T15:10:28
211,509,984
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# “Aggies do not lie, cheat, or steal, or tolerate those who do” # “I have not given or received any unauthorized aid on this assignment” # # Name: RYAN WALTERBACH # Section: 537 # Assignment: LAB4b_Prog4 # Date: 20 9 2019 from math import * print('Enter the coefficient for A:') A = float(input()) print('Enter th...
UTF-8
Python
false
false
1,600
py
71
Lab3_Act1_d.py
70
0.621231
0.588568
0
36
43.25
93
stratosm/NLP_modules
14,190,571,989,278
7ea92369c18c224dadcf1d80ff86765725cb2705
1662a53ab7e9c07b96bfd7fc9648f5f9d305d028
/src/clean_rows.py
ea8608563090f6d5eda6f12d8b37cc228dce9949
[]
no_license
https://github.com/stratosm/NLP_modules
deec43d17e2bdb60f60202b10cf9355748dcf69c
5a30de3dfcd761d2538edbaf95e912be6fc6c64b
refs/heads/master
2022-07-04T18:46:04.875672
2020-05-16T14:17:32
2020-05-16T14:17:32
264,003,463
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Author: Stratos mansalis import numpy as np import pandas as pd def clean_NaN(df): """ Clean the sentences from NaN (Not a Number) and empty rows. Note! Drop the unnecessary columns first and then use this function. Arguments --------- df: the given dataframe ...
UTF-8
Python
false
false
1,100
py
19
clean_rows.py
10
0.571818
0.571818
0
47
22.404255
76
ntadej/racorodja
4,638,564,728,277
da6c8d6c9cd95c1e54dfb2b1e2072858324b7d25
65b9bc780fd8226cc1a27782fae4761def781a60
/python/branje_matrika.py
9a11d27717d22046fddbd5dcb3a5aaffad61409f
[ "MIT" ]
permissive
https://github.com/ntadej/racorodja
044f1f93594b3e8c52523492737d827f6d1f538b
8c391c42d5f4cb6861982e367da31ee19f9f24c8
refs/heads/master
2023-08-25T09:21:05.023814
2016-06-02T06:47:45
2016-06-02T06:47:54
53,779,403
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Ustvarimo prazen seznam vrstic, ki jih bomo prebrali data = [] # Ukaz 'with' zagotovi, da se datoteka na koncu bloka zapre in nam # ni potrebno vec paziti na to with open('../data/matrika.dat', 'r') as f: # beremo vrstico po vrstico for line in f: # odstranimo odvecne presledke line = line.st...
UTF-8
Python
false
false
501
py
15
branje_matrika.py
8
0.642715
0.642715
0
16
30.3125
70
sophiaems1/ColumbiaPythonCourse
13,451,837,593,718
46fa798908180931e9a8aaf53b66f75f3ee9b967
aa3e05df216aa135b9062a5608d46aec249dadd6
/A2_Hot_or_Cold_sem2275.py
a96298183471fb6d536076b8afe3c35b090fb105
[]
no_license
https://github.com/sophiaems1/ColumbiaPythonCourse
5d5fa4686531033e1ad25e5480f10aad8e35bcdf
f39bcd63191ad59678313f859e28387ad5d3ace4
refs/heads/main
2023-06-15T20:25:35.790379
2021-07-14T13:41:45
2021-07-14T13:41:45
385,954,362
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
code = 25 print("Welcome to Sophia's Hot or Cold game!") print("You have a total of 10 tries to figure out the secret number between 1 and 100 (only integers).") x = int(input("Enter a guess:")) guesses = 1 while x != code: if x >= 0 and x < 15: print("You're warm!") x = int(input("Enter a...
UTF-8
Python
false
false
1,298
py
7
A2_Hot_or_Cold_sem2275.py
7
0.546995
0.520031
0
37
33.027027
104
spivachuk/sovrin-node
962,072,708,230
18350f3a66aa3c89ba3f491f90d92d85bb058145
5503910c7093a4977156aab2f04261a4bdb76fbe
/scripts/performance/Measuring_Transactions/measuring_transactions.py
1ff94384c131427be09d884a5228391d05b5774c
[ "Apache-2.0" ]
permissive
https://github.com/spivachuk/sovrin-node
8092cc3b9aab589b6c20d9662a5f3e0564219533
4db8ed69407d11bffb90ca6f998efd671df697c5
refs/heads/master
2020-12-31T05:39:53.508220
2018-07-24T13:56:02
2018-07-24T13:56:02
80,642,284
0
0
Apache-2.0
true
2018-07-24T14:01:21
2017-02-01T16:59:41
2018-07-24T13:56:11
2018-07-24T14:01:21
10,090
0
0
0
Python
false
null
''' Created on Feb 26, 2018 @author: khoi.ngo ''' import argparse from asyncio.events import get_event_loop import json from indy import ledger, signus, pool, wallet class Options: """ This class use to pass the value from command line. """ def __init__(self): parser = argparse.ArgumentParse...
UTF-8
Python
false
false
7,963
py
18
measuring_transactions.py
16
0.578802
0.572021
0
224
34.549107
93
MarkLyck/py_ai
764,504,205,695
123e4d708c472d8f581e62d61ce3561b7b3e024e
380bdc92f71ca472d9268af7476235b24fd38a22
/NLP/NLP.py
976b8b528468f477fa0ec52a8750b2d6e276bd45
[]
no_license
https://github.com/MarkLyck/py_ai
662e8e121cd3c0130455fe9518690877a0a32d54
6d398978a248eafb944f738888d4109817eaecec
refs/heads/master
2021-01-13T14:05:18.351013
2016-12-13T02:52:02
2016-12-13T02:52:02
76,211,511
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def tasks(originalMessage): return { 'originalMessage': originalMessage }
UTF-8
Python
false
false
79
py
2
NLP.py
2
0.746835
0.746835
0
2
38
49
ParallelMeaningBank/easyccg
12,996,571,049,643
0de744edd6edc9f7e9ce1509ff7ae1cf299a03da
37f5037bb23db69b934c0940b5fa3c3400266626
/training/eval_test.py
fd2c130515ebda6082ea0b79376cd161d43c5487
[ "MIT" ]
permissive
https://github.com/ParallelMeaningBank/easyccg
052d2a429267876893df834cba7999c27fa0c5fb
a36ea6037e905cc7917cc5163e810ec0e2670a62
refs/heads/master
2020-04-05T16:13:28.043930
2019-11-14T10:58:49
2019-11-14T10:59:00
61,124,350
2
1
null
true
2016-06-14T13:19:23
2016-06-14T13:19:22
2016-05-27T11:51:05
2016-05-31T14:24:24
61,522
0
0
0
null
null
null
import sys from collections import Counter rawfile=sys.argv[1] goldfile=sys.argv[2] infile=sys.argv[3] brackets={} brackets["-LRB-"]="(" brackets["-RRB-"]=")" brackets["-LSB-"]="[" brackets["-RSB-"]="]" brackets["-LCB-"]="{" brackets["-RCB-"]="}" file=open("/group/corpora/public/ccgbank/data/LEX/CCG...
UTF-8
Python
false
false
5,491
py
42
eval_test.py
32
0.624841
0.603715
0
226
22.287611
224
NareshPeshwe/new_project
3,985,729,677,463
d36d26e5b2bfbd3564d14f8e2e03db910ade6e92
5b84cd2bbd88a9d89a76b43713a9fa3bf2ec8f01
/social/urls.py
796eb7bc0e2f820d4f66991c841b2a431e1049a9
[]
no_license
https://github.com/NareshPeshwe/new_project
a5c0f0cde66125ced05c30c5387421c86fc5dbf5
dda51c7729e690ac038497c25cce719639a7d3c2
refs/heads/master
2018-03-23T09:51:18.196333
2016-06-06T09:48:18
2016-06-06T09:48:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^key/$', views.index, name='index'), url(r'^register/$',views.sign_up,name="sign_up"), url(r'^loggedin/$',views.sign_in,name="sign_in"), url(r'^update/$',views.update,name="update"), ...
UTF-8
Python
false
false
646
py
5
urls.py
4
0.636223
0.636223
0
16
39.4375
73
SakuraYUI/recognition_SVM
8,366,596,337,935
c6d4503da0788abcb9901ba552ad8d17b8f0b9e2
d54c3b3f345fedc4e64dbbf18455147199dd5bb2
/save.py
f4301bedb1e1f7a58edc842a4f8541a750dde806
[]
no_license
https://github.com/SakuraYUI/recognition_SVM
1fda9f54eb6c6ae8543056397b9ab12fc0efe8b7
a59383dd0584175befc91c3179d07d4a18082ac2
refs/heads/master
2021-01-11T15:00:47.020697
2017-02-17T06:27:09
2017-02-17T06:27:09
80,279,443
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import sys path = "D:\Python 2.7.9\libsvm-3.16\python" sys.path.append(path) from svmutil import * import Image import random NUM = 30 for i in range(1, NUM): train_label, train_matrix = svm_read_problem('./dataocr/ocr_' + str(i)) model = svm_train(train_label, train...
UTF-8
Python
false
false
408
py
8
save.py
7
0.620098
0.57598
0
14
27.214286
75
yogendrabohara/tdddjango
11,948,599,033,477
76917498b6b9f6a50caaf8016a0b22d5caf7f194
ee2c2188eacf35de859ddff22337b2caf0e488de
/xword_data/views.py
ca4852484a930bb43fb9f978a936ce18558b6025
[]
no_license
https://github.com/yogendrabohara/tdddjango
020098401886338f2c3abb5d1f1027eedb4abb80
949958d36201d8582b3190d90aac725638f97b73
refs/heads/main
2023-08-15T23:59:22.249395
2021-09-10T17:28:21
2021-09-10T17:28:21
404,807,952
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from .models import Clue from django.http import Http404 from django.shortcuts import redirect # Create your views here. def drillView(request): if request.method == 'GET': clue = Clue.objects.order_by('?').first() results = "" else: clue = Clue.obje...
UTF-8
Python
false
false
848
py
13
views.py
9
0.639151
0.633255
0
25
32.92
111
moigagoo/sphinxcontrib-swagger2sphinx
16,939,351,058,224
884745461698033b8f20bffc12845d37c38a11d0
da3a59dc6e6e23b6086fd0166d82dce639d76ff2
/setup.py
7bf124b56b559acdef5b96b7efa4065e7cdabe3f
[]
no_license
https://github.com/moigagoo/sphinxcontrib-swagger2sphinx
2b7fdbb6d01fc80c5512d74bec7e3f95b67cdc80
bb10723ebca52974fc316e44488688e03bbbc2a6
refs/heads/master
2020-05-23T08:19:02.549958
2016-10-11T08:28:56
2016-10-11T08:28:56
70,225,816
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import setup def readme(): try: with open("README.rst") as f: return f.read() except IOError: pass setup( name="sphinxcontrib-swagger2sphinx", version="0.1.5", url="https://github.com/moigagoo/sphinxcontrib-swagger2sphinx", download_ur...
UTF-8
Python
false
false
1,171
py
3
setup.py
2
0.605465
0.596926
0
37
29.648649
73
LukeEuler/project-euler
5,093,831,219,422
8980bb8ec4f46a6245647ff96da6b0a44ab07f6b
b9dbf54c5ac0083a094145ac6c22781e5e1c0ffb
/problem_12.py
4ef6bd286d406254fa20e651b647ebf32498d576
[]
no_license
https://github.com/LukeEuler/project-euler
8197ed068f673010f13d19045fef1aa05899a843
0833a8ab931f5c3499a6e6ca695b1fe579eca62c
refs/heads/master
2020-12-02T18:15:10.184004
2017-10-01T07:45:47
2017-10-01T07:45:47
96,504,562
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """Highly divisible triangular number.""" # https://projecteuler.net/problem=12 from app import Problem from utils import Prime class Problem12(Problem): """Highly divisible triangular number.""" def __init__(self): self.name = "problem 12" self.num = 500 sel...
UTF-8
Python
false
false
1,127
py
28
problem_12.py
27
0.510204
0.488909
0
48
22.479167
46
AlexPraefectus/labs_web
2,396,591,773,523
5fce201ecfac0aa59eb2ddb3083b70dd62aa018f
327482022ed6ba5ce79c63ceb1bbf9538cbdb338
/labs_web/views/tutor/answer_ticket.py
07260c3b9c2beaad61f6d88990c8590e2a3b62b0
[ "BSD-3-Clause" ]
permissive
https://github.com/AlexPraefectus/labs_web
b798d2e352d81b2dd065440581480d9b350df2dc
9bfd69ffc2196832523d5809cf921debe530f886
refs/heads/master
2021-08-16T11:07:27.637687
2020-06-19T08:18:25
2020-06-19T08:18:25
127,518,643
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask.views import View from flask_login import current_user, login_required from labs_web.extensions import AnswerTicketForm, Tickets, mongo_oid from flask import request, flash, render_template, abort from datetime import datetime import math class AnswerTicket(View): PER_PAGE = 5 methods = ["GET", "PO...
UTF-8
Python
false
false
2,753
py
143
answer_ticket.py
89
0.455866
0.452597
0
52
51.942308
110
fictionic/pacman_ai
2,843,268,369,026
4951ddda4cf3ef88d3261d4844958d352d351fb0
e7e2e74dbe32be78f2ca4a483066ebe83eb0f5e0
/project2/multiAgents.py
c96d8c324f650bfde876bad2fd03a2f80aab3d19
[]
no_license
https://github.com/fictionic/pacman_ai
b3146a9b34e8f42e16dc448cd9bc0364898c8492
ce52db1fe44eeb236bacdc5973cb81b4cbb3d922
refs/heads/master
2021-06-16T14:33:33.793903
2017-02-03T04:59:07
2017-02-03T04:59:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# multiAgents.py # -------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.e...
UTF-8
Python
false
false
14,997
py
3
multiAgents.py
2
0.639595
0.633593
0
404
36.118812
91
atyamsriharsha/VideoEditor
6,914,897,386,426
b21dfb454b0e2d8dbe2223799be7a63dac357bab
74ae604fef2ecd1d53ca4150ab1d510c386251b9
/generatehighlights.py
e13f649130118c933753acca9f8e315c987b0472
[]
no_license
https://github.com/atyamsriharsha/VideoEditor
118fed5fedd9a9f869e1d9155d51e3ad890a22b4
034c8904931bb3ac4b0356093747a031ab03f991
refs/heads/master
2021-01-22T04:01:26.413506
2016-10-20T16:42:49
2016-10-20T16:42:49
69,271,536
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from moviepy.editor import VideoFileClip, concatenate clip = VideoFileClip("match.mp4") cut = lambda i: clip.audio.subclip(i,i+1).to_soundarray(fps=22000) volume = lambda array: np.sqrt(((1.0*array)**2).mean()) volumes = [volume(cut(i)) for i in range(0,int(clip.audio.duration-2))] averaged_volumes ...
UTF-8
Python
false
false
1,053
py
12
generatehighlights.py
7
0.660019
0.624881
0
27
38
71