hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
3736d63ff73d0b10a801f51f602f6aaddc8db142
746
py
Python
Exam/oppgave_2.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
null
null
null
Exam/oppgave_2.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
null
null
null
Exam/oppgave_2.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
1
2021-04-26T14:32:52.000Z
2021-04-26T14:32:52.000Z
import turtle if __name__ == "__main__": turtle.tracer(0, 0) tegn_stjerner(7) turtle.update() turtle.mainloop() input()
21.314286
56
0.577748
3737f665e231d9f0a760461d0daa2bfa21140b4e
2,103
py
Python
YatzyPy/tests.py
markomanninen/YatzyPy
a6904b22473ae909f588e3b82a67b8b4f2dce0f2
[ "MIT" ]
null
null
null
YatzyPy/tests.py
markomanninen/YatzyPy
a6904b22473ae909f588e3b82a67b8b4f2dce0f2
[ "MIT" ]
null
null
null
YatzyPy/tests.py
markomanninen/YatzyPy
a6904b22473ae909f588e3b82a67b8b4f2dce0f2
[ "MIT" ]
null
null
null
# tests.py from . main import Yatzy
26.961538
73
0.495483
3738e841ef076c03ff9662d1673998caf409d2bf
19
py
Python
main/libx11/update.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
46
2021-06-10T02:27:32.000Z
2022-03-27T11:33:24.000Z
main/libx11/update.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
58
2021-07-03T13:58:20.000Z
2022-03-13T16:45:35.000Z
main/libx11/update.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
6
2021-07-04T10:46:40.000Z
2022-01-09T00:03:59.000Z
pkgname = "libX11"
9.5
18
0.684211
373946b2e35452274f3d0d871859ed8aa4319280
2,756
py
Python
raiden/tests/integration/test_version.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
raiden/tests/integration/test_version.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
raiden/tests/integration/test_version.py
anmolshl/raiden
f1cecb68cb43a2c00b2f719eadbe83137611a92a
[ "MIT" ]
null
null
null
import pytest import tempfile import re import os import shutil from raiden.utils import get_contract_path from raiden.utils.solc import compile_files_cwd from raiden.exceptions import ContractVersionMismatch from raiden.blockchain.abi import CONTRACT_VERSION_RE, CONTRACT_MANAGER, CONTRACT_CHANNEL_MANAGER
41.134328
99
0.736938
373f83cec206a62336b452fd4c464d8bd69932f0
2,518
py
Python
quex/engine/state_machine/algebra/TESTS/additional_laws/TEST/complement-relative.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/engine/state_machine/algebra/TESTS/additional_laws/TEST/complement-relative.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/engine/state_machine/algebra/TESTS/additional_laws/TEST/complement-relative.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(0, os.environ["QUEX_PATH"]) from quex.engine.state_machine.core import DFA from quex.engine.state_machine.algebra.TESTS.helper import test2, test1, test3, union, \ intersection, \ ...
36.492754
96
0.554011
37495bbd87853858c8dd154c007737ded2ed7429
9,920
py
Python
Pyrado/scripts/sandbox/sb_mg.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
52
2020-05-02T13:55:09.000Z
2022-03-09T14:49:36.000Z
Pyrado/scripts/sandbox/sb_mg.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
40
2020-09-01T15:19:22.000Z
2021-11-02T14:51:41.000Z
Pyrado/scripts/sandbox/sb_mg.py
theogruner/SimuRLacra
4893514ccdeb10a736c55de9aa7753fd51c5afec
[ "DOC", "Zlib", "BSD-3-Clause" ]
13
2020-07-03T11:39:21.000Z
2022-02-20T01:12:42.000Z
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source ...
40.489796
120
0.65121
374a11c37b91918c3d504846ee4f0ddf1051d985
1,161
py
Python
src/leetcode_43_multiply_strings.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_43_multiply_strings.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_43_multiply_strings.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
# @l2g 43 python3 # [43] Multiply Strings # Difficulty: Medium # https://leetcode.com/problems/multiply-strings # # Given two non-negative integers num1 and num2 represented as strings, # return the product of num1 and num2,also represented as a string. # Note:You must not use any built-in BigInteger library or convert...
25.23913
99
0.61671
374bb3040645d3989e57f95ec9ffc9f744b8af59
179
py
Python
examples/helpers/post/unlike.py
javad94/instauto
8d4d068863176b0a1df13e5be3d5e32388036921
[ "MIT" ]
79
2020-08-24T23:32:57.000Z
2022-02-20T19:03:17.000Z
examples/helpers/post/unlike.py
klaytonpaiva/instauto
7f8c26b22f84d3d966625c7fa656e91cc623bb2e
[ "MIT" ]
146
2020-07-25T16:27:48.000Z
2021-10-02T09:03:50.000Z
examples/helpers/post/unlike.py
klaytonpaiva/instauto
7f8c26b22f84d3d966625c7fa656e91cc623bb2e
[ "MIT" ]
41
2020-09-07T14:19:04.000Z
2022-02-07T23:08:10.000Z
from instauto.api.client import ApiClient from instauto.helpers.post import unlike_post client = ApiClient.initiate_from_file('.instauto.save') unlike_post(client, "media_id")
25.571429
55
0.815642
374c7d9cbe16ddf4267d0363ddef0fd64684f962
5,451
py
Python
Fund/main.py
livi2000/FundSpider
c79407241fe189b61afc54dd2e5b73c906aae0b5
[ "MIT" ]
null
null
null
Fund/main.py
livi2000/FundSpider
c79407241fe189b61afc54dd2e5b73c906aae0b5
[ "MIT" ]
null
null
null
Fund/main.py
livi2000/FundSpider
c79407241fe189b61afc54dd2e5b73c906aae0b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from url_manager import * from downloader import * from parser import * from collector import * from url_manager import FundURLIndex if __name__ == "__main__": icMain = FundMain() icMain.crawl('http://fund.eastmoney.com/allfund.html', False) # url_manager = SBURLManager() # # ...
42.255814
183
0.571455
374d67e614b5fff98eb17bf5586cf8d97b2d4b5e
2,087
py
Python
scenario/run.py
Abdelmouise/covid-19-pandemic-simulation
154c05bbaff6fc4305e00a489abb0338c9a8530d
[ "MIT" ]
3
2020-04-13T20:40:16.000Z
2020-10-30T20:01:56.000Z
scenario/run.py
Abdelmouise/covid-19-pandemic-simulation
154c05bbaff6fc4305e00a489abb0338c9a8530d
[ "MIT" ]
null
null
null
scenario/run.py
Abdelmouise/covid-19-pandemic-simulation
154c05bbaff6fc4305e00a489abb0338c9a8530d
[ "MIT" ]
null
null
null
import random import sys import time from scenario.example import sc1_simple_lockdown_removal, sc2_yoyo_lockdown_removal, sc0_base_lockdown, \ scx_base_just_a_flu, sc3_loose_lockdown, sc4_rogue_citizen, sc5_rogue_neighborhood, sc6_travelers from simulator.constants.keys import scenario_id_key, random_seed_key, dra...
45.369565
105
0.744609
374f08a2bd0965255d3871d9a77cdb705b2dfb08
224
py
Python
apps/wiki/admin.py
karpiq24/django-klima-kar
e62e79c66053749e249f55e1ab47f810f449f0aa
[ "MIT" ]
2
2018-01-23T22:38:57.000Z
2019-07-14T08:59:19.000Z
apps/wiki/admin.py
karpiq24/django-klima-kar
e62e79c66053749e249f55e1ab47f810f449f0aa
[ "MIT" ]
237
2018-08-15T23:13:52.000Z
2022-01-13T13:08:50.000Z
apps/wiki/admin.py
karpiq24/django-klima-kar
e62e79c66053749e249f55e1ab47f810f449f0aa
[ "MIT" ]
null
null
null
from django.contrib import admin from apps.wiki.models import Article, Tag, ExternalLink, ArticleFile admin.site.register(Article) admin.site.register(Tag) admin.site.register(ExternalLink) admin.site.register(ArticleFile)
28
68
0.830357
375198759bc2c16a5d5f2fdb635b642d7532765c
2,758
py
Python
code/arrange-fastq.py
jdblischak/dox
c17b4496674876b26c3e7137e4a2e2657898ea4c
[ "Apache-2.0" ]
4
2018-05-09T02:06:20.000Z
2021-07-17T15:02:54.000Z
code/arrange-fastq.py
jdblischak/dox
c17b4496674876b26c3e7137e4a2e2657898ea4c
[ "Apache-2.0" ]
null
null
null
code/arrange-fastq.py
jdblischak/dox
c17b4496674876b26c3e7137e4a2e2657898ea4c
[ "Apache-2.0" ]
3
2017-10-06T21:50:58.000Z
2018-07-05T00:50:18.000Z
#!/usr/bin/env python3 # Move and rename fastq files downloaded from FGF's FTP site. # # Usage: # # python3 arrange-fastq.py indir outdir # # indir - Highly nested directory structure from downloading data # outdir - New output directory (created if does not exist) # # Ex: # # python3 arrange-fastq.py fgfftp.uchicago....
30.307692
120
0.664975
3751d3596a32979b95ddd2523fef9f29e3bf7492
173
py
Python
sosia/establishing/__init__.py
sosia-dev/sosia
d4d2d5edb0cd1d085b5a457eb6d19bf8e9fea7f5
[ "MIT" ]
14
2019-03-12T22:07:47.000Z
2022-03-08T14:05:05.000Z
sosia/establishing/__init__.py
sosia-dev/sosia
d4d2d5edb0cd1d085b5a457eb6d19bf8e9fea7f5
[ "MIT" ]
31
2018-10-15T16:02:44.000Z
2021-04-09T08:13:44.000Z
sosia/establishing/__init__.py
sosia-dev/sosia
d4d2d5edb0cd1d085b5a457eb6d19bf8e9fea7f5
[ "MIT" ]
2
2020-01-09T06:47:09.000Z
2020-12-05T13:21:03.000Z
from sosia.establishing.config import * from sosia.establishing.constants import * from sosia.establishing.database import * from sosia.establishing.fields_sources import *
34.6
47
0.83815
3752032895f97132483d0cfa4339b37fb1eaf5c4
151
py
Python
3.py
guillesiesta/python_comprehensions
4d2765b29b8165a5fa2488e6a50a49235238c82f
[ "Apache-2.0" ]
null
null
null
3.py
guillesiesta/python_comprehensions
4d2765b29b8165a5fa2488e6a50a49235238c82f
[ "Apache-2.0" ]
null
null
null
3.py
guillesiesta/python_comprehensions
4d2765b29b8165a5fa2488e6a50a49235238c82f
[ "Apache-2.0" ]
null
null
null
hola = True adiosguillermomurielsanchezlafuente = True if (adiosguillermomurielsanchezlafuente and hola): print("ok con nombre muy largo")
21.571429
42
0.761589
375235f443ccc25c0883b3f00cf92f6d6e16776c
157
py
Python
problemas/1100/1144.py
filimor/uri-online-judge
08b3bae3e02cc35ba8f6fba869d643ba3d028e58
[ "MIT" ]
10
2020-07-05T04:56:09.000Z
2022-03-23T00:25:02.000Z
problemas/1100/1144.py
filimor/uri-online-judge
08b3bae3e02cc35ba8f6fba869d643ba3d028e58
[ "MIT" ]
1
2021-12-30T05:18:59.000Z
2021-12-30T05:18:59.000Z
problemas/1100/1144.py
filimor/uri-online-judge
08b3bae3e02cc35ba8f6fba869d643ba3d028e58
[ "MIT" ]
5
2020-03-23T09:43:40.000Z
2022-02-04T13:07:29.000Z
for i in range(1, int(input()) + 1): quadrado = i ** 2 cubo = i ** 3 print(f'{i} {quadrado} {cubo}') print(f'{i} {quadrado + 1} {cubo + 1}')
26.166667
43
0.490446
375258e86a135ff7731a5d12af097e4a448f7742
19,933
py
Python
source/origo_scrape/views.py
yinm8315/Origo_Scrape
73f5782e9bd922777de03de7fc3da74965490fa1
[ "BSD-3-Clause" ]
1
2021-06-02T03:00:26.000Z
2021-06-02T03:00:26.000Z
source/origo_scrape/views.py
yinm8315/Origo_Scrape
73f5782e9bd922777de03de7fc3da74965490fa1
[ "BSD-3-Clause" ]
null
null
null
source/origo_scrape/views.py
yinm8315/Origo_Scrape
73f5782e9bd922777de03de7fc3da74965490fa1
[ "BSD-3-Clause" ]
null
null
null
# Create your views here. from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from django.contrib.auth.models import User from django.template import loader from django.forms.utils import ErrorList from django.http import HttpResponse from .origo import Origo_Thread from .o...
36.307832
206
0.541564
375318ac03b49dec7ec6b45c2f3221456f5baf1b
8,670
py
Python
sharpy/postproc/plotflowfield.py
ACea15/sharpy
c89ecb74be3cb9e37b23ac8a282c73b9b55dd792
[ "BSD-3-Clause" ]
80
2018-08-30T13:01:52.000Z
2022-03-24T15:02:48.000Z
sharpy/postproc/plotflowfield.py
ACea15/sharpy
c89ecb74be3cb9e37b23ac8a282c73b9b55dd792
[ "BSD-3-Clause" ]
88
2018-05-17T16:18:58.000Z
2022-03-11T21:05:48.000Z
sharpy/postproc/plotflowfield.py
ACea15/sharpy
c89ecb74be3cb9e37b23ac8a282c73b9b55dd792
[ "BSD-3-Clause" ]
44
2018-01-02T14:27:28.000Z
2022-03-12T13:49:36.000Z
import os import numpy as np from tvtk.api import tvtk, write_data from sharpy.utils.solver_interface import solver, BaseSolver import sharpy.utils.generator_interface as gen_interface import sharpy.utils.settings as settings import sharpy.aero.utils.uvlmlib as uvlmlib import ctypes as ct from sharpy.utils.constants im...
45.15625
153
0.602999
37562319f7afe5cba9d3144dd3ddb0395179ad06
455
py
Python
what_apps/do/functions.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
what_apps/do/functions.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
what_apps/do/functions.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
from .models import Task from django.contrib.auth.models import User from django.template import loader, Context
50.555556
144
0.850549
3756410dd9d9c95d1fb6468b563488800ac6d65f
6,840
py
Python
distriploy/github.py
exmakhina/distriploy
ec8c7a30bdc2fa45a5b9816b33ef46283301aaf0
[ "MIT" ]
1
2020-07-07T21:19:41.000Z
2020-07-07T21:19:41.000Z
distriploy/github.py
neuropoly/distriploy
ec8c7a30bdc2fa45a5b9816b33ef46283301aaf0
[ "MIT" ]
14
2020-07-07T14:03:04.000Z
2021-03-03T17:47:02.000Z
distriploy/github.py
exmakhina/distriploy
ec8c7a30bdc2fa45a5b9816b33ef46283301aaf0
[ "MIT" ]
1
2020-10-30T14:43:38.000Z
2020-10-30T14:43:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 vi:et import sys, io, os, logging import re import json import tempfile import subprocess import urllib.request, urllib.error logger = logging.getLogger(__name__) __all__ = ( "get_remote", "create_release", "download_default_release_asset", "upload_release_asset", "u...
29.106383
106
0.616228
3756ed66b18a82931a6853bd82ac2dc78630d72b
1,597
py
Python
src/foxdot/sandbox/180823_0948_compo_036.py
Neko250/aisthesis
1d4a2c3070d10596c28b25ea2170523583e7eff0
[ "Apache-2.0" ]
4
2018-06-29T18:39:34.000Z
2021-06-20T16:44:29.000Z
src/foxdot/sandbox/180823_0948_compo_036.py
Neko250/aisthesis
1d4a2c3070d10596c28b25ea2170523583e7eff0
[ "Apache-2.0" ]
null
null
null
src/foxdot/sandbox/180823_0948_compo_036.py
Neko250/aisthesis
1d4a2c3070d10596c28b25ea2170523583e7eff0
[ "Apache-2.0" ]
null
null
null
Scale.default = Scale.chromatic Root.default = 0 Clock.bpm = 120 var.ch = var(P[1,5,0,3],8) ~p1 >> play('m', amp=.8, dur=PDur(3,8), rate=[1,(1,2)]) ~p2 >> play('-', amp=.5, dur=2, hpf=2000, hpr=linvar([.1,1],16), sample=1).often('stutter', 4, dur=3).every(8, 'sample.offadd', 1) ~p3 >> play('{ ppP[pP][Pp]}', amp=.8,...
33.270833
145
0.566061
37581aba7700b786b80fdf0d929cb3132078bc45
3,563
py
Python
test/unit/report/test_table.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
73
2016-01-28T05:02:05.000Z
2022-03-30T07:46:33.000Z
test/unit/report/test_table.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
113
2016-02-25T15:32:18.000Z
2022-03-31T13:18:13.000Z
test/unit/report/test_table.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
41
2016-03-15T19:32:07.000Z
2022-02-16T10:22:05.000Z
from pygsti.report.table import ReportTable from ..util import BaseCase
35.989899
112
0.63963
3758975e21f34ce7477e14ad7bcebc66b331327c
364
py
Python
pyFunc/pyFunc_12.py
pemtash/pyrevision2022
c1a9510729b44f61575f406865eb823cb7cabd63
[ "Apache-2.0" ]
null
null
null
pyFunc/pyFunc_12.py
pemtash/pyrevision2022
c1a9510729b44f61575f406865eb823cb7cabd63
[ "Apache-2.0" ]
null
null
null
pyFunc/pyFunc_12.py
pemtash/pyrevision2022
c1a9510729b44f61575f406865eb823cb7cabd63
[ "Apache-2.0" ]
null
null
null
namedArgumentFunction(100, 200, 300) # positional arguments namedArgumentFunction(c=3, a=1, b=2) # named arguments #namedArgumentFunction(181, a=102, b=103) # mix of position + name error namedArgumentFunction(101, b=102, c=103) # mix of position + no error
45.5
73
0.692308
37598780f2fe29fd5a5224fb42181e382bdf6a7e
1,435
py
Python
views.py
ezl/hnofficehours
3729eca064998bd2d0a9ba1b4fe7e56ccc57324b
[ "MIT" ]
2
2015-11-05T13:47:44.000Z
2020-07-20T19:57:45.000Z
views.py
ezl/hnofficehours
3729eca064998bd2d0a9ba1b4fe7e56ccc57324b
[ "MIT" ]
null
null
null
views.py
ezl/hnofficehours
3729eca064998bd2d0a9ba1b4fe7e56ccc57324b
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from datetime import datetime, timedelta from django.core.urlresolvers import reverse from django.shortcuts import render_to_response, get_object_or_404 from django.http import HttpResponseRedirect from django.template import RequestContext from django.views.generic.simple im...
44.84375
79
0.772822
3759a78356966487f78b8550100b9d77dd7fd966
712
py
Python
declarative/properties/__init__.py
jrollins/python-declarative
ac3ba9bf56611adefb4b2673e50bd8067c024e6b
[ "Apache-2.0" ]
6
2018-02-28T18:32:06.000Z
2022-03-20T13:04:05.000Z
declarative/properties/__init__.py
jrollins/python-declarative
ac3ba9bf56611adefb4b2673e50bd8067c024e6b
[ "Apache-2.0" ]
2
2021-02-22T17:18:59.000Z
2021-03-03T16:39:22.000Z
declarative/properties/__init__.py
jrollins/python-declarative
ac3ba9bf56611adefb4b2673e50bd8067c024e6b
[ "Apache-2.0" ]
1
2021-02-09T18:58:53.000Z
2021-02-09T18:58:53.000Z
# -*- coding: utf-8 -*- """ """ from __future__ import ( division, print_function, absolute_import, ) from .bases import ( PropertyTransforming, HasDeclaritiveAttributes, InnerException, PropertyAttributeError, ) from .memoized import ( memoized_class_property, mproperty, dprop...
16.181818
43
0.696629
375a12f22fefa628ea296cc515c3de78bb252ecf
4,454
py
Python
src/models.py
TahjidEshan/keras-3dgan
c9b46945466189702976b9cd88df7e8418374fee
[ "MIT" ]
22
2017-07-12T21:53:58.000Z
2021-04-25T22:34:24.000Z
src/models.py
AlanMorningLight/keras-3dgan
794af8ed8644d5f05403f97a9be9ed706324a89f
[ "MIT" ]
1
2019-03-31T04:22:22.000Z
2019-04-02T01:56:54.000Z
src/models.py
AlanMorningLight/keras-3dgan
794af8ed8644d5f05403f97a9be9ed706324a89f
[ "MIT" ]
7
2019-07-15T20:41:49.000Z
2021-07-27T07:09:49.000Z
from keras.models import Model from keras.layers import Input from keras.layers.core import Activation from keras.layers.convolutional import Conv3D, Deconv3D from keras.layers.advanced_activations import LeakyReLU from keras.layers.normalization import BatchNormalization def generator(phase_train=True, params={'z_siz...
41.240741
122
0.660979
375c4db97fae968fedba9552a5d467ff9af0a2d3
1,216
py
Python
statmail/Types.py
birm/StatMail
61e39346a4754f8e9bab1736caf02f4cb1c2c2a5
[ "MIT" ]
null
null
null
statmail/Types.py
birm/StatMail
61e39346a4754f8e9bab1736caf02f4cb1c2c2a5
[ "MIT" ]
7
2016-10-18T18:30:47.000Z
2017-01-17T21:28:40.000Z
statmail/Types.py
birm/StatMail
61e39346a4754f8e9bab1736caf02f4cb1c2c2a5
[ "MIT" ]
null
null
null
from .SMBase import SMBase """ A collection of builtin server types. """
32.864865
86
0.564967
375c83f1d331a617d630736291806350c6d98cad
10,993
py
Python
k8skiller.py
ech0png/k8skiller
1f066a0c02acf2b71bb7805c18d08899ba7ac25f
[ "Apache-2.0" ]
null
null
null
k8skiller.py
ech0png/k8skiller
1f066a0c02acf2b71bb7805c18d08899ba7ac25f
[ "Apache-2.0" ]
null
null
null
k8skiller.py
ech0png/k8skiller
1f066a0c02acf2b71bb7805c18d08899ba7ac25f
[ "Apache-2.0" ]
null
null
null
import urllib3 from art import * from terminaltables import AsciiTable from vulnsVerify import * from podTable import * from listarPods import * from menu import * from shells import * from podDeploy import * urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) tprint("K8SKILLER") print("1 - Search ...
38.844523
189
0.395888
375cd4d6dc56e6469cae24821b097bb1ab86ac19
1,676
py
Python
pokershell/intro.py
fblaha/pokershell
36a3bfff6ead7fef175e430dfdb88ac6f6a31d1f
[ "Apache-2.0" ]
6
2016-05-13T07:39:37.000Z
2022-03-05T07:23:46.000Z
pokershell/intro.py
fblaha/pokershell
36a3bfff6ead7fef175e430dfdb88ac6f6a31d1f
[ "Apache-2.0" ]
1
2017-12-18T09:08:28.000Z
2017-12-31T01:48:32.000Z
pokershell/intro.py
fblaha/pokershell
36a3bfff6ead7fef175e430dfdb88ac6f6a31d1f
[ "Apache-2.0" ]
5
2016-10-11T23:54:35.000Z
2022-03-05T07:23:47.000Z
import prettytable INTRO = _create_intro()
40.878049
86
0.603819
375d646ba6e1a05a1beb8bd9fc2faa1d4c02305c
5,216
py
Python
tests/archive/test_archive_value.py
heikomuller/histore
d600052514a1c5f672137f76a6e1388184b17cd4
[ "BSD-3-Clause" ]
2
2020-09-05T23:27:41.000Z
2021-08-08T20:46:54.000Z
tests/archive/test_archive_value.py
heikomuller/histore
d600052514a1c5f672137f76a6e1388184b17cd4
[ "BSD-3-Clause" ]
22
2020-05-22T01:38:08.000Z
2021-04-28T12:41:46.000Z
tests/archive/test_archive_value.py
heikomuller/histore
d600052514a1c5f672137f76a6e1388184b17cd4
[ "BSD-3-Clause" ]
1
2021-08-08T20:46:58.000Z
2021-08-08T20:46:58.000Z
# This file is part of the History Store (histore). # # Copyright (C) 2018-2021 New York University. # # The History Store (histore) is released under the Revised BSD License. See # file LICENSE for full license details. """Unit test for archived cell values.""" import pytest from histore.archive.value import MultiV...
35.243243
79
0.665836
375da91964c49efa8682191ed0413b8e77c32ee0
891
py
Python
server/src/api/api_environment.py
SpongeyBob/ALFRED
f91a46c5f9ed0eb1cd37adcca4c9045b129e066d
[ "MIT" ]
null
null
null
server/src/api/api_environment.py
SpongeyBob/ALFRED
f91a46c5f9ed0eb1cd37adcca4c9045b129e066d
[ "MIT" ]
null
null
null
server/src/api/api_environment.py
SpongeyBob/ALFRED
f91a46c5f9ed0eb1cd37adcca4c9045b129e066d
[ "MIT" ]
null
null
null
# Add paths toward dependecies in different subdirectories import os import sys sys.path.append(os.path.abspath('./drone')) sys.path.append(os.path.abspath('./log')) # Add dependencies from drone_list import DroneList from environment import Environment from setup_logging import LogsConfig logsConfig = LogsConfig() l...
29.7
58
0.769921
375e217f752444584219ab50db3fdf6f47a97b25
1,275
py
Python
jts/backend/event/migrations/0002_auto_20191009_1119.py
goupaz/babylon
4e638d02705469061e563fec349676d8faa9f648
[ "MIT" ]
1
2019-08-08T09:03:17.000Z
2019-08-08T09:03:17.000Z
backend/event/migrations/0002_auto_20191009_1119.py
goupaz/website
ce1bc8b6c52ee0815a7b98842ec3bde0c20e0add
[ "Apache-2.0" ]
2
2020-10-09T19:16:09.000Z
2020-10-10T20:40:41.000Z
jts/backend/event/migrations/0002_auto_20191009_1119.py
goupaz/babylon-hackathon
4e638d02705469061e563fec349676d8faa9f648
[ "MIT" ]
1
2019-07-21T01:42:21.000Z
2019-07-21T01:42:21.000Z
# Generated by Django 2.2 on 2019-10-09 18:19 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
31.875
141
0.62902
37641cfd7f9be6481d06402662c737c2251b2be7
3,971
py
Python
fennlp/layers/albert_transformer.py
transformerzhou/NLP
d3a50c7df735e97aeba70d40d1988ec4adb8f0af
[ "MIT" ]
1
2020-08-15T09:32:23.000Z
2020-08-15T09:32:23.000Z
fennlp/layers/albert_transformer.py
walker-liu/fennlp
7432595342b2f2139a788187d3b46fd2097bb10a
[ "MIT" ]
null
null
null
fennlp/layers/albert_transformer.py
walker-liu/fennlp
7432595342b2f2139a788187d3b46fd2097bb10a
[ "MIT" ]
null
null
null
#! usr/bin/env python3 # -*- coding:utf-8 -*- """ @Author:zhoukaiyin """ import tensorflow as tf from fennlp.tools import create_initializer from .attention import ALBERTAttention from fennlp.layers import dense
41.364583
90
0.648703
376519ec24ba2ad35ffc9686805878b26230c5a8
897
py
Python
ansiblemetrics/playbook/num_included_vars.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
1
2020-04-24T16:09:14.000Z
2020-04-24T16:09:14.000Z
ansiblemetrics/playbook/num_included_vars.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
ansiblemetrics/playbook/num_included_vars.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
import ansiblemetrics.utils as utils from ansiblemetrics.ansible_metric import AnsibleMetric
24.243243
80
0.57971
376705b0b8ad10c2fc0878dcf3a019ac3ddc7559
1,721
py
Python
predict.py
smacawi/tweet-classifier
948f7c4123e37f07071482e528d411203166e5f7
[ "MIT" ]
null
null
null
predict.py
smacawi/tweet-classifier
948f7c4123e37f07071482e528d411203166e5f7
[ "MIT" ]
10
2020-01-24T23:03:28.000Z
2021-04-26T12:01:09.000Z
predict.py
smacawi/tweet-classifier
948f7c4123e37f07071482e528d411203166e5f7
[ "MIT" ]
1
2019-12-23T23:46:47.000Z
2019-12-23T23:46:47.000Z
from allennlp.data.vocabulary import Vocabulary from content_analyzer.models.rnn_classifier import RnnClassifier from allennlp.data.tokenizers.word_tokenizer import WordTokenizer from content_analyzer.data.dataset_readers.twitter import TwitterNLPDatasetReader from allennlp.data.token_indexers import PretrainedBertInde...
40.97619
127
0.818129
3769d73589d328a0932e33ad97e6ca3459c3dafc
4,270
py
Python
mmur/viz/generators.py
RUrlus/ModelMetricUncertaintyResearch
37daa1421a3a45a6adaea3788e2d00493477ff96
[ "Apache-2.0" ]
null
null
null
mmur/viz/generators.py
RUrlus/ModelMetricUncertaintyResearch
37daa1421a3a45a6adaea3788e2d00493477ff96
[ "Apache-2.0" ]
null
null
null
mmur/viz/generators.py
RUrlus/ModelMetricUncertaintyResearch
37daa1421a3a45a6adaea3788e2d00493477ff96
[ "Apache-2.0" ]
null
null
null
import math import numpy as np from scipy.special import expit, logit import matplotlib.pyplot as plt from mmur.viz import _set_plot_style COLORS = _set_plot_style() def plot_logstic_dgp(N=500, figsize=None): """Plot example of DGP as used in mmur.generators.LogisticGenerator. Parameters ---------- ...
29.86014
78
0.616159
376b0aa30b86ce7e9604bcd1dba410e16ebe3476
3,456
py
Python
src/robust_deid/sequence_tagging/models/hf/crf/crf_bert_model_for_token_classification.py
obi-ml-public/ehr_deidentification
c9deaf30b8317689d28a4267d15ec13baa9791cd
[ "MIT" ]
null
null
null
src/robust_deid/sequence_tagging/models/hf/crf/crf_bert_model_for_token_classification.py
obi-ml-public/ehr_deidentification
c9deaf30b8317689d28a4267d15ec13baa9791cd
[ "MIT" ]
null
null
null
src/robust_deid/sequence_tagging/models/hf/crf/crf_bert_model_for_token_classification.py
obi-ml-public/ehr_deidentification
c9deaf30b8317689d28a4267d15ec13baa9791cd
[ "MIT" ]
null
null
null
from transformers import ( BertConfig, BertForTokenClassification, ) from .conditional_random_field_sub import ConditionalRandomFieldSub from .crf_token_classifier_output import CRFTokenClassifierOutput
40.186047
115
0.620949
376dfd5a387065c547c2e044eaa01555cf75fa7a
2,847
py
Python
Python_ch8/Ch8_1_String_Op.py
ninhnguyen01/Python_Book
e5e372f1895b06e908cd0dd07dc68a260c34d7ad
[ "Apache-2.0" ]
null
null
null
Python_ch8/Ch8_1_String_Op.py
ninhnguyen01/Python_Book
e5e372f1895b06e908cd0dd07dc68a260c34d7ad
[ "Apache-2.0" ]
null
null
null
Python_ch8/Ch8_1_String_Op.py
ninhnguyen01/Python_Book
e5e372f1895b06e908cd0dd07dc68a260c34d7ad
[ "Apache-2.0" ]
null
null
null
# Basic String Operations (Title) # Reading # Iterating over a String with the 'for' Loop (section) # General Format: # for variable in string: # statement # statement # etc. name = 'Juliet' for ch in name: print(ch) # This program counts the number of times the letter T # ...
22.776
63
0.636459
376dfe0e1d26b493cacf40c7eb5f653447f4e5c8
204
py
Python
moto/elb/__init__.py
argos83/moto
d3df810065c9c453d40fcc971f9be6b7b2846061
[ "Apache-2.0" ]
1
2021-03-06T22:01:41.000Z
2021-03-06T22:01:41.000Z
moto/elb/__init__.py
marciogh/moto
d3df810065c9c453d40fcc971f9be6b7b2846061
[ "Apache-2.0" ]
null
null
null
moto/elb/__init__.py
marciogh/moto
d3df810065c9c453d40fcc971f9be6b7b2846061
[ "Apache-2.0" ]
1
2017-10-19T00:53:28.000Z
2017-10-19T00:53:28.000Z
from __future__ import unicode_literals from .models import elb_backends from ..core.models import MockAWS, base_decorator elb_backend = elb_backends['us-east-1'] mock_elb = base_decorator(elb_backends)
29.142857
49
0.828431
3770da89f4542e5492348ec764138aaa4353f223
575
py
Python
contenttype/tree/TestStandardTree_BlackBox.py
ytyaru/GitHub.Uploader.ContentType.201705020847__old
d20574ea8ed62672c1a89e9feef24da7f720f2de
[ "CC0-1.0" ]
null
null
null
contenttype/tree/TestStandardTree_BlackBox.py
ytyaru/GitHub.Uploader.ContentType.201705020847__old
d20574ea8ed62672c1a89e9feef24da7f720f2de
[ "CC0-1.0" ]
null
null
null
contenttype/tree/TestStandardTree_BlackBox.py
ytyaru/GitHub.Uploader.ContentType.201705020847__old
d20574ea8ed62672c1a89e9feef24da7f720f2de
[ "CC0-1.0" ]
null
null
null
import unittest from SubTypeTree import SubTypeTreeFactory from SubTypeTree import VenderTreeFactory from SubTypeTree import SubTypeTree from SubTypeTree import VenderTree from SubTypeTree import GitHubVenderTree from SubTypeTree import StandardTree from SubTypeTree import ParsonalTree from SubTypeTree import Unregiste...
33.823529
51
0.805217
37726e7da8b2a5ad4ecc6708511432978e5980e1
5,331
py
Python
ade25/widgets/widgets/image/image.py
ade25/ade25.widgets
272cf1c74a3b97f4e25161c50f178ebe3c1a70d1
[ "MIT" ]
null
null
null
ade25/widgets/widgets/image/image.py
ade25/ade25.widgets
272cf1c74a3b97f4e25161c50f178ebe3c1a70d1
[ "MIT" ]
null
null
null
ade25/widgets/widgets/image/image.py
ade25/ade25.widgets
272cf1c74a3b97f4e25161c50f178ebe3c1a70d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Module providing base widget""" import uuid import uuid as uuid_tool from Acquisition import aq_inner from Products.Five import BrowserView from ade25.widgets.interfaces import IContentWidgets from plone import api from plone.api.exc import MissingParameterError class WidgetImageCover(Bro...
28.66129
76
0.572688
3773ee703ede0d70a929a64c5252f89281c909dd
5,718
py
Python
tests/test_tie_point_grid.py
Vasudha-AiDash/arosics
a5c32fab4b834938f646dc84979021e4969fdd86
[ "Apache-2.0" ]
null
null
null
tests/test_tie_point_grid.py
Vasudha-AiDash/arosics
a5c32fab4b834938f646dc84979021e4969fdd86
[ "Apache-2.0" ]
null
null
null
tests/test_tie_point_grid.py
Vasudha-AiDash/arosics
a5c32fab4b834938f646dc84979021e4969fdd86
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # AROSICS - Automated and Robust Open-Source Image Co-Registration Software # # Copyright (C) 2017-2021 # - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de) # - Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, # Germany (https...
41.136691
113
0.650927
3774af41dcc95d857b67d1577a491813ead4a946
4,664
py
Python
tests/system/action/meeting/test_delete_all_speakers_of_all_lists.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
null
null
null
tests/system/action/meeting/test_delete_all_speakers_of_all_lists.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
19
2021-11-22T16:25:54.000Z
2021-11-25T13:38:13.000Z
tests/system/action/meeting/test_delete_all_speakers_of_all_lists.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
null
null
null
from openslides_backend.permissions.permissions import Permissions from tests.system.action.base import BaseActionTestCase
39.193277
88
0.534091
3774c0f2587f5eb80eeb06a2ac9483214cae39df
589
py
Python
jpyextra/__init__.py
metal3d/jupyter-extra
ee7bd80bea397e516ff2cf44f177fb696dbfd3f1
[ "MIT" ]
null
null
null
jpyextra/__init__.py
metal3d/jupyter-extra
ee7bd80bea397e516ff2cf44f177fb696dbfd3f1
[ "MIT" ]
null
null
null
jpyextra/__init__.py
metal3d/jupyter-extra
ee7bd80bea397e516ff2cf44f177fb696dbfd3f1
[ "MIT" ]
null
null
null
import subprocess from IPython.display import HTML, display name = "jpyextra" def datadoc(data): """ Display sklearn dataset DESCR in well formed Markdown You need "pandoc" tool. Install it with conda, or with your package manager. """ doc = data.DESCR.replace('%PLU', '') pdc = subprocess.Po...
23.56
66
0.589134
3777252434bf4837cbda3b2dcda94275b7648d0e
654
py
Python
backend/core/introduction_to_algorithms/logics/catalog.py
kehuo/myweb
3c03cfb0e2380e5dc4e627e3d7decf9e07f7572f
[ "MIT" ]
null
null
null
backend/core/introduction_to_algorithms/logics/catalog.py
kehuo/myweb
3c03cfb0e2380e5dc4e627e3d7decf9e07f7572f
[ "MIT" ]
null
null
null
backend/core/introduction_to_algorithms/logics/catalog.py
kehuo/myweb
3c03cfb0e2380e5dc4e627e3d7decf9e07f7572f
[ "MIT" ]
null
null
null
# @File: catalog.py # @Author: Kevin Huo # @LastUpdate: 4/10/2020 10:13 AM import json from common.utils.http import load_json_file from core.introduction_to_algorithms.logics.replace_n_to_br import replace_n_to_br_func # python manage.py runserver backend, DATA_PATH # BASE_DATA_PATH = "./data/introduction_to_algor...
27.25
87
0.747706
377a0fd80ade074c00876ad92128f22a2396d2c3
2,772
py
Python
editregions/tests/contrib/embeds/forms.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
1
2015-01-11T18:21:27.000Z
2015-01-11T18:21:27.000Z
editregions/tests/contrib/embeds/forms.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
editregions/tests/contrib/embeds/forms.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from django.forms.models import modelform_factory try: from unittest.case import TestCase, expectedFailure except ImportError: from django.utils.unittest.case import TestCase, expectedFailure from django_ace import AceWidget from editregions.contrib.embeds.forms import JavaScriptEditorFo...
42.646154
107
0.643218
377a70f876fe9d1cf59a255b216f8b6eac6c5378
1,810
py
Python
overplot.py
EmlynG/LowFMode
7a575433f633e709ce67a6bb1bf12a22eff0d0c9
[ "MIT" ]
null
null
null
overplot.py
EmlynG/LowFMode
7a575433f633e709ce67a6bb1bf12a22eff0d0c9
[ "MIT" ]
null
null
null
overplot.py
EmlynG/LowFMode
7a575433f633e709ce67a6bb1bf12a22eff0d0c9
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import os import re import numpy as np import subprocess from matplotlib import pyplot as plt inputpath = os.path.join(os.path.realpath('..'),'INPUT/') print("Initialising") fig, ax = plt.subplots() n=0 for filenum in ['INPUT/0.txt','INPUT/1.txt','INPUT/2.txt']: os.ren...
25.492958
68
0.632044
377aac633d51d5823372233e1db44733b25a6883
4,052
py
Python
build_tflite.py
fazil47/UnityCharRecog
c6470a9e927c1a242d52e642ebcb35b2773d0dea
[ "MIT" ]
null
null
null
build_tflite.py
fazil47/UnityCharRecog
c6470a9e927c1a242d52e642ebcb35b2773d0dea
[ "MIT" ]
null
null
null
build_tflite.py
fazil47/UnityCharRecog
c6470a9e927c1a242d52e642ebcb35b2773d0dea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import platform import shlex import subprocess PLUGIN_PATH=f'{os.getcwd()}/Assets/TensorFlowLite/Plugins' TENSORFLOW_PATH='' if __name__ == '__main__': parser = argparse.ArgumentParser(description = 'Update TensorFlow Lite libraries for Unity') parser.add_arg...
47.116279
282
0.695212
377d4a85e353609bca7adf180de45b20e5d3856d
2,207
py
Python
tests/trainers/test_chesapeake.py
nilsleh/torchgeo
744078fcff7e48957ffa5d0cd6b8acf3f5767b0a
[ "MIT" ]
null
null
null
tests/trainers/test_chesapeake.py
nilsleh/torchgeo
744078fcff7e48957ffa5d0cd6b8acf3f5767b0a
[ "MIT" ]
null
null
null
tests/trainers/test_chesapeake.py
nilsleh/torchgeo
744078fcff7e48957ffa5d0cd6b8acf3f5767b0a
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os from typing import Any, Dict, Generator, cast import pytest from _pytest.fixtures import SubRequest from _pytest.monkeypatch import MonkeyPatch from omegaconf import OmegaConf from torchgeo.datamodules import Ches...
33.953846
88
0.666516
377e726c09a9222d64f6dc7224202d694a239fb8
3,120
py
Python
src/huggingmolecules/models/models_api.py
chrislybaer/huggingmolecules
210239ac46b467e900a47e8f4520054636744ca6
[ "Apache-2.0" ]
60
2021-05-07T16:07:26.000Z
2022-03-26T19:23:54.000Z
src/huggingmolecules/models/models_api.py
gabegomes/huggingmolecules
adc581c97fbc21d9967dd9334afa94b22fb77651
[ "Apache-2.0" ]
11
2021-05-07T16:01:35.000Z
2022-03-09T13:06:05.000Z
src/huggingmolecules/models/models_api.py
gabegomes/huggingmolecules
adc581c97fbc21d9967dd9334afa94b22fb77651
[ "Apache-2.0" ]
12
2021-05-20T08:02:25.000Z
2022-03-10T14:11:36.000Z
import logging import os from typing import Generic, List, Type, Any import torch import torch.nn as nn from ..downloading.downloading_utils import from_cache from ..featurization.featurization_api import T_BatchEncoding, T_Config, PretrainedFeaturizerMixin
39.493671
101
0.644872
377f113688c643f861a107b95cf2a20826771ea4
445
py
Python
check_db.py
Yaremenko-R/python_training
f198b898bd9947afd4f71bc01f992909df392a57
[ "Apache-2.0" ]
null
null
null
check_db.py
Yaremenko-R/python_training
f198b898bd9947afd4f71bc01f992909df392a57
[ "Apache-2.0" ]
null
null
null
check_db.py
Yaremenko-R/python_training
f198b898bd9947afd4f71bc01f992909df392a57
[ "Apache-2.0" ]
null
null
null
from fixture.orm import ORMFixture from fixture.db import DbFixture from model.group import Group from model.contact import Contact database = ORMFixture(host="localhost", name="addressbook", user="root", password="") try: l = database.get_contacts_in_group(Group(id="174")) # l = sorted(database.get_groups_con...
27.8125
88
0.723596
3780509baacbecefbe37741bcabfeb4d8e9efcf0
5,161
py
Python
meiduo_mall/meiduo_mall/apps/payment/views.py
ZHD165/Django_-
f89c80a22c5065b46900a20bd505614b5bcb2e6e
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/payment/views.py
ZHD165/Django_-
f89c80a22c5065b46900a20bd505614b5bcb2e6e
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/payment/views.py
ZHD165/Django_-
f89c80a22c5065b46900a20bd505614b5bcb2e6e
[ "MIT" ]
null
null
null
from django.http import JsonResponse import os from alipay import AliPay from django.views import View from django.conf import settings from orders.models import OrderInfo from payment.models import Payment
28.513812
122
0.519473
3780851862eb17225e7f115d2d0da648abc8841c
1,579
py
Python
viewer_process/ghcc/libs/config.py
lloesche/github_commit_crawler
4d2f077d0835a5d2ea2587267e5afe5137b556d9
[ "Apache-2.0" ]
null
null
null
viewer_process/ghcc/libs/config.py
lloesche/github_commit_crawler
4d2f077d0835a5d2ea2587267e5afe5137b556d9
[ "Apache-2.0" ]
1
2021-03-26T00:23:26.000Z
2021-03-26T00:23:26.000Z
viewer_process/ghcc/libs/config.py
lloesche/github_commit_crawler
4d2f077d0835a5d2ea2587267e5afe5137b556d9
[ "Apache-2.0" ]
null
null
null
import yaml
29.792453
80
0.49525
3782d181d91c88f0ef3b74b5377a70db19324f60
3,938
py
Python
utils.py
josephtjohnson/Meme_Generator
227080aad0d22d249c6bf1893d726fd3e2b0ec84
[ "MIT" ]
null
null
null
utils.py
josephtjohnson/Meme_Generator
227080aad0d22d249c6bf1893d726fd3e2b0ec84
[ "MIT" ]
null
null
null
utils.py
josephtjohnson/Meme_Generator
227080aad0d22d249c6bf1893d726fd3e2b0ec84
[ "MIT" ]
1
2021-09-30T19:10:31.000Z
2021-09-30T19:10:31.000Z
from QuoteEngine import Ingestor, QuoteModel from MemeGenerator import MemeEngine from PIL import Image import argparse import random import os import textwrap import logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)s:%(levelname)s:%(message)s') fil...
23.301775
76
0.607669
378539d2d8f38f193773d342677f939cb42a4203
746
py
Python
mdn_ik/test.py
uenian33/Franka_Panda_IK_Sensor
c9956fb7a7f1d570104296af72aa2a600085ae6e
[ "MIT" ]
null
null
null
mdn_ik/test.py
uenian33/Franka_Panda_IK_Sensor
c9956fb7a7f1d570104296af72aa2a600085ae6e
[ "MIT" ]
null
null
null
mdn_ik/test.py
uenian33/Franka_Panda_IK_Sensor
c9956fb7a7f1d570104296af72aa2a600085ae6e
[ "MIT" ]
1
2021-12-07T11:47:03.000Z
2021-12-07T11:47:03.000Z
import torch a = torch.rand(3, 4) #a = a.unsqueeze(0) #print(a.reshape(3,4,1)) b = torch.rand(3, 4) #b = b.unsqueeze(0) print(b) c = torch.stack([a, b, b, b, b], dim=1) c = torch.rand(3, 20) print(c) c = c.reshape(3, 5, 4) print(c.shape) d = torch.rand(3, 5) d = d.reshape(3,5,1) print(d) e = c*d print(c*d) print(t...
15.87234
48
0.601877
3787795e7d1f35522f3f9e121d7efa5012cb8f56
2,846
py
Python
src/plugins/yiqing/data_source.py
wizardCRain/mini_jx3_bot
ecd3c7c852438227e237157f66f5ccccaa328b8c
[ "MIT" ]
27
2021-12-24T15:59:41.000Z
2022-03-24T04:22:26.000Z
src/plugins/yiqing/data_source.py
wizardCRain/mini_jx3_bot
ecd3c7c852438227e237157f66f5ccccaa328b8c
[ "MIT" ]
3
2022-02-17T13:28:10.000Z
2022-03-01T08:55:33.000Z
src/plugins/yiqing/data_source.py
byscut/mini_jx3_bot
610b43ac8f51b1b0f6041258ded1687c88eaaf5d
[ "MIT" ]
10
2022-01-19T02:47:59.000Z
2022-03-13T15:18:43.000Z
from datetime import date from typing import Optional, Tuple from httpx import AsyncClient from nonebot.adapters.onebot.v11.message import MessageSegment from src.utils.browser import browser from src.utils.log import logger from .config import CITY_MAP def _get_city(name: str) -> Tuple[bool, Optional[str], Optiona...
36.025316
139
0.584329
378ca6c4004eb7f05493e60723c6ea0ea4a59fbb
5,136
py
Python
server/src/sdistance.py
bepnye/brat
28acfb2d3cce20bd4d4ff1a67690e271675841f2
[ "CC-BY-3.0" ]
20
2015-01-26T01:39:44.000Z
2020-05-30T19:04:14.000Z
server/src/sdistance.py
bepnye/brat
28acfb2d3cce20bd4d4ff1a67690e271675841f2
[ "CC-BY-3.0" ]
7
2015-04-11T12:57:42.000Z
2016-04-08T13:43:44.000Z
server/src/sdistance.py
bepnye/brat
28acfb2d3cce20bd4d4ff1a67690e271675841f2
[ "CC-BY-3.0" ]
13
2015-01-26T01:39:45.000Z
2022-03-09T16:45:09.000Z
#!/usr/bin/env python ''' Various string distance measures. Author: Pontus Stenetorp <pontus stenetorp se> Version: 2011-08-09 ''' from string import digits, lowercase from sys import maxint DIGITS = set(digits) LOWERCASE = set(lowercase) TSURUOKA_2004_INS_CHEAP = set((' ', '-', )) TSURUOKA_2004_DEL_CHEAP...
34.013245
154
0.573988
378cc1e59dd6dd0b75d637ce5507619c66eb1093
2,431
py
Python
expressmanage/customers/views.py
abbas133/expressmanage-free
cd4b5a37fa012781c70ade933885b1c63bc7f2df
[ "MIT" ]
null
null
null
expressmanage/customers/views.py
abbas133/expressmanage-free
cd4b5a37fa012781c70ade933885b1c63bc7f2df
[ "MIT" ]
null
null
null
expressmanage/customers/views.py
abbas133/expressmanage-free
cd4b5a37fa012781c70ade933885b1c63bc7f2df
[ "MIT" ]
null
null
null
from django.views import generic from django.urls import reverse_lazy from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin from .forms import CustomerForm from .models import Customer from .helper import CustomerSummary
33.763889
91
0.739202
378d2e428384e36ea1ae3ada251fec85dc8bfc58
1,945
py
Python
orbitals.py
inconvergent/orbitals_speedup
5a93e98dbb334946002df572d618d0d767a910a9
[ "MIT" ]
39
2015-01-21T17:39:25.000Z
2022-03-12T21:05:31.000Z
orbitals.py
inconvergent/orbitals_speedup
5a93e98dbb334946002df572d618d0d767a910a9
[ "MIT" ]
null
null
null
orbitals.py
inconvergent/orbitals_speedup
5a93e98dbb334946002df572d618d0d767a910a9
[ "MIT" ]
3
2016-02-24T22:35:46.000Z
2020-12-15T20:19:05.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from numpy.random import random, randint from numpy import zeros, sin, cos
22.356322
62
0.624679
378e3c2cc2b4aed3dd1d5afa919592ab4bfb7f68
468
py
Python
surfactant_example/micelle/micelle_factory.py
force-h2020/force-bdss-plugin-surfactant-example
ba442f2b39919f7d071f4384f8eaba0d99f44b1f
[ "BSD-2-Clause", "MIT" ]
null
null
null
surfactant_example/micelle/micelle_factory.py
force-h2020/force-bdss-plugin-surfactant-example
ba442f2b39919f7d071f4384f8eaba0d99f44b1f
[ "BSD-2-Clause", "MIT" ]
null
null
null
surfactant_example/micelle/micelle_factory.py
force-h2020/force-bdss-plugin-surfactant-example
ba442f2b39919f7d071f4384f8eaba0d99f44b1f
[ "BSD-2-Clause", "MIT" ]
null
null
null
from force_bdss.api import BaseDataSourceFactory from .micelle_model import MicelleDataSourceModel from .micelle_data_source import MicelleDataSource
23.4
50
0.767094
378e8237793b5c3217bc562c15e5d1954a382294
835
py
Python
tests/test_image_upload.py
ephes/django-cast
34b6aab98f7e9a750116ec2949e9cda4f2dcb127
[ "BSD-3-Clause" ]
11
2018-12-23T15:58:35.000Z
2021-10-04T12:14:46.000Z
tests/test_image_upload.py
ephes/django-cast
34b6aab98f7e9a750116ec2949e9cda4f2dcb127
[ "BSD-3-Clause" ]
9
2018-11-18T12:12:29.000Z
2022-02-27T09:51:36.000Z
tests/test_image_upload.py
ephes/django-cast
34b6aab98f7e9a750116ec2949e9cda4f2dcb127
[ "BSD-3-Clause" ]
12
2018-11-17T15:13:09.000Z
2020-05-02T00:10:07.000Z
import pytest from django.urls import reverse
29.821429
75
0.670659
378ea332c2db853a04b4cbceabe21b235b6c359d
925
py
Python
commit.py
Delostik/gitlab-statistics
bda26bda9e4c0fb28dd2a48b65bd1047dc85f4b9
[ "MIT" ]
null
null
null
commit.py
Delostik/gitlab-statistics
bda26bda9e4c0fb28dd2a48b65bd1047dc85f4b9
[ "MIT" ]
null
null
null
commit.py
Delostik/gitlab-statistics
bda26bda9e4c0fb28dd2a48b65bd1047dc85f4b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import requests
35.576923
95
0.620541
378eda99db9461519b18902ce8432550ad1b4efa
80
py
Python
read.py
sundeepsingh1984/openinsiderscrapper
b23d51139031380bcb34f10dcaac92e4d5803dd6
[ "MIT" ]
null
null
null
read.py
sundeepsingh1984/openinsiderscrapper
b23d51139031380bcb34f10dcaac92e4d5803dd6
[ "MIT" ]
null
null
null
read.py
sundeepsingh1984/openinsiderscrapper
b23d51139031380bcb34f10dcaac92e4d5803dd6
[ "MIT" ]
null
null
null
import pandas as pd df=pd.read_json("D:\eiaScrapper\eio.jl") print(df.info())
13.333333
40
0.7125
378fa60e9ce1cd0fbc51113706daba7125c8fc17
163
py
Python
src/adafruit_blinka/microcontroller/amlogic/s905x3/pin.py
Jcc99/Adafruit_Blinka
41f8155bab83039ed9d45276addd3d501e83f3e6
[ "MIT" ]
294
2018-06-30T19:08:27.000Z
2022-03-26T21:08:47.000Z
src/adafruit_blinka/microcontroller/amlogic/s905x3/pin.py
Jcc99/Adafruit_Blinka
41f8155bab83039ed9d45276addd3d501e83f3e6
[ "MIT" ]
421
2018-06-30T20:54:46.000Z
2022-03-31T15:08:37.000Z
src/adafruit_blinka/microcontroller/amlogic/s905x3/pin.py
Jcc99/Adafruit_Blinka
41f8155bab83039ed9d45276addd3d501e83f3e6
[ "MIT" ]
234
2018-07-23T18:49:16.000Z
2022-03-28T16:59:48.000Z
"""AmLogic s905x3 pin names""" # pylint: disable=wildcard-import,unused-wildcard-import from adafruit_blinka.microcontroller.amlogic.meson_g12_common.pin import *
40.75
74
0.822086
37928600ec08774278fa5bb3307d12131ec68be2
30,697
py
Python
qube/drivers/NI6733.py
ClementGeffroy/qube
89de914656854aaec1590ce588eac6657a31e6b7
[ "BSD-3-Clause" ]
1
2022-03-02T12:54:43.000Z
2022-03-02T12:54:43.000Z
qube/drivers/NI6733.py
ClementGeffroy/qube
89de914656854aaec1590ce588eac6657a31e6b7
[ "BSD-3-Clause" ]
null
null
null
qube/drivers/NI6733.py
ClementGeffroy/qube
89de914656854aaec1590ce588eac6657a31e6b7
[ "BSD-3-Clause" ]
1
2022-03-02T12:54:45.000Z
2022-03-02T12:54:45.000Z
# -*- coding: utf-8 -*- """ Created on Fri Aug 21 20:00:50 2020 @author: takada """ import logging import numpy as np import functools import operator from typing import List, Dict, Callable import time import nidaqmx from nidaqmx.stream_writers import ( DigitalSingleChannelWriter, AnalogMultiChannelWriter) from...
39.814527
167
0.516207
3792acb568ef9d07771f1dfc4d370f93d704c7e2
402
py
Python
v2_trip/urls.py
ruslan-ok/ruslan
fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8
[ "MIT" ]
null
null
null
v2_trip/urls.py
ruslan-ok/ruslan
fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8
[ "MIT" ]
null
null
null
v2_trip/urls.py
ruslan-ok/ruslan
fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'v2_trip' urlpatterns = [ path('', views.main, name='main'), path('<int:pk>/', views.item_form, name='item_form'), path('persons/', views.go_persons, name='go_persons'), path('trips/', views.go_trips, name='go_trips'), ...
33.5
81
0.619403
3792efaebf3dc5a8b5c922f66b2df8883d7ff1ec
1,055
py
Python
Sorting Algorithms/quick_sort.py
Divyamop/Python-DSA
43cc8ffddd632ba07ef91ac4d4daeede949341c6
[ "MIT" ]
13
2021-10-02T09:25:07.000Z
2022-01-30T17:49:52.000Z
Sorting Algorithms/quick_sort.py
Divyamop/Python-DSA
43cc8ffddd632ba07ef91ac4d4daeede949341c6
[ "MIT" ]
14
2021-10-01T12:58:14.000Z
2021-10-05T15:42:52.000Z
Sorting Algorithms/quick_sort.py
Divyamop/Python-DSA
43cc8ffddd632ba07ef91ac4d4daeede949341c6
[ "MIT" ]
32
2021-10-01T12:40:00.000Z
2021-10-14T05:09:14.000Z
""" Quick sort is a divide and conquer algorithm Steps: 1. We first select an element randomly which we call pivot element. We can choose any element as pivot element. But for consistency and performce purposes we select middle element of array as the pivot element. 2. Then we move all the elments lower than pivot t...
25.119048
111
0.641706
3792f978ea808a632abc7ad8cfbb0bfad7875985
209
py
Python
my_dataclasses/plays.py
GudniNatan/GSKI-PA6
a0f9a38bc0d2f6710f803a77276e6a76cd6f4471
[ "MIT" ]
null
null
null
my_dataclasses/plays.py
GudniNatan/GSKI-PA6
a0f9a38bc0d2f6710f803a77276e6a76cd6f4471
[ "MIT" ]
null
null
null
my_dataclasses/plays.py
GudniNatan/GSKI-PA6
a0f9a38bc0d2f6710f803a77276e6a76cd6f4471
[ "MIT" ]
null
null
null
from dataclasses import dataclass from my_dataclasses.member import Member from my_dataclasses.sport import Sport
20.9
40
0.794258
379367e9f1febecd8e0efe7f49a5b29af96989dd
2,747
py
Python
src/methods/linear_scalarization_method.py
nbingo/sMOOth
aacdc5d24b931e534e984681923ec74f1103ca2f
[ "MIT" ]
null
null
null
src/methods/linear_scalarization_method.py
nbingo/sMOOth
aacdc5d24b931e534e984681923ec74f1103ca2f
[ "MIT" ]
null
null
null
src/methods/linear_scalarization_method.py
nbingo/sMOOth
aacdc5d24b931e534e984681923ec74f1103ca2f
[ "MIT" ]
null
null
null
import time import torch from torch.distributions.dirichlet import Dirichlet from detectron2.engine.train_loop import SimpleTrainer
36.144737
100
0.662541
3793ea87d43c2eaa6c5930add1e9632bc31a7439
968
py
Python
test/proxyhttp_test.py
sancau/ivelum_test_task
c1fe0cbb2794e76f86a030a980eb16aa6a714e31
[ "MIT" ]
null
null
null
test/proxyhttp_test.py
sancau/ivelum_test_task
c1fe0cbb2794e76f86a030a980eb16aa6a714e31
[ "MIT" ]
null
null
null
test/proxyhttp_test.py
sancau/ivelum_test_task
c1fe0cbb2794e76f86a030a980eb16aa6a714e31
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import falcon from proxyhttp import Proxy from transformer import Transformer
30.25
78
0.753099
3794ed2744f1e9cb2f1c9f008aeaf5a48cae917c
79
py
Python
singletons/mail.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
singletons/mail.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
singletons/mail.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
from flask_mail import Mail from singletons.app import _app mail = Mail(_app)
15.8
31
0.797468
37959b025855b0a8b6550368174af7129e650d86
607
py
Python
system-test/testnet-automation-json-parser.py
Flawm/solana
551c24da5792f4452c3c555e562809e8c9e742e5
[ "Apache-2.0" ]
7,843
2018-03-27T22:56:27.000Z
2022-03-31T17:37:41.000Z
system-test/testnet-automation-json-parser.py
Flawm/solana
551c24da5792f4452c3c555e562809e8c9e742e5
[ "Apache-2.0" ]
18,799
2018-03-28T14:01:39.000Z
2022-03-31T23:44:12.000Z
system-test/testnet-automation-json-parser.py
Flawm/solana
551c24da5792f4452c3c555e562809e8c9e742e5
[ "Apache-2.0" ]
1,962
2018-03-30T17:02:41.000Z
2022-03-31T19:53:09.000Z
#!/usr/bin/env python3 import sys, json, argparse parser = argparse.ArgumentParser() parser.add_argument("--empty_error", action="store_true", help="If present, do not print error message") args = parser.parse_args() data=json.load(sys.stdin) if 'results' in data: for result in data['results']: if 'series' ...
33.722222
104
0.682043
37964fe5ef397296275522b31af654802f9c7a91
3,337
py
Python
perfkitbenchmarker/providers/ibmcloud/flags.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
3
2018-04-28T13:06:14.000Z
2020-06-09T02:39:44.000Z
perfkitbenchmarker/providers/ibmcloud/flags.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
1
2018-03-15T21:01:27.000Z
2018-03-15T21:01:27.000Z
perfkitbenchmarker/providers/ibmcloud/flags.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
6
2019-06-11T18:59:57.000Z
2021-03-02T19:14:42.000Z
# Copyright 2020 PerfKitBenchmarker Authors. All rights reserved. # # 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 appli...
35.126316
75
0.661073
37992a001eabfa8bb8a5b76b3449dc0f3bbdc33d
30,183
py
Python
belleflopt/optimize.py
ucd-cws/eflows_optimization
2eb9f13a042ab81541488358ad0724555a5d57fc
[ "MIT" ]
2
2020-04-19T04:05:51.000Z
2021-04-19T02:47:40.000Z
belleflopt/optimize.py
ucd-cws/eflows_optimization
2eb9f13a042ab81541488358ad0724555a5d57fc
[ "MIT" ]
7
2019-08-31T05:57:30.000Z
2019-11-27T23:58:13.000Z
belleflopt/optimize.py
ucd-cws/eflows_optimization
2eb9f13a042ab81541488358ad0724555a5d57fc
[ "MIT" ]
null
null
null
import logging import random import collections import os from itertools import chain import numpy import pandas from platypus import Problem, Real from platypus.operators import Generator, Solution from matplotlib import pyplot as plt from belleflopt import models from belleflopt import economic_components from efl...
42.691655
204
0.736872
379bf3571cc579f5ca16b10bc21ccfcf8dbbd6bb
3,146
py
Python
tests/test_booking.py
muthash/FlightBooking-Flask
77b157098d618582737979382197e5302d347017
[ "MIT" ]
1
2022-03-28T16:37:17.000Z
2022-03-28T16:37:17.000Z
tests/test_booking.py
muthash/FlightBooking-Flask
77b157098d618582737979382197e5302d347017
[ "MIT" ]
null
null
null
tests/test_booking.py
muthash/FlightBooking-Flask
77b157098d618582737979382197e5302d347017
[ "MIT" ]
1
2019-10-08T17:48:50.000Z
2019-10-08T17:48:50.000Z
"""Test case for the booking creation functionality""" import os import json from datetime import datetime from tests.base_test import BaseTestCase
39.325
72
0.593452
379cf4a3f41a62bc5af342e9b10bafd901889714
1,875
py
Python
src/constants.py
tomasmikeska/face-identification
15a65c66f840e183f83119dba35488607a4ff0b2
[ "MIT" ]
5
2019-06-24T16:22:28.000Z
2020-10-02T21:58:44.000Z
src/constants.py
tomasmikeska/face-identification
15a65c66f840e183f83119dba35488607a4ff0b2
[ "MIT" ]
2
2020-11-09T09:24:42.000Z
2020-11-09T09:24:52.000Z
src/constants.py
tomasmikeska/face-identification
15a65c66f840e183f83119dba35488607a4ff0b2
[ "MIT" ]
2
2020-03-03T15:58:27.000Z
2020-05-07T11:46:30.000Z
import os from utils import relative_path # Hyperparams ARCFACE_M = 0.5 ARCFACE_S = 10. CENTERLOSS_ALPHA = 0.008 CENTERLOSS_LAMBDA = 0.5 EMBEDDING_SIZE = 256 MIN_FACES_PER_PERSON = 5 # Min num of samples per class - or class is removed MAX_FACES_PER_PERSON = 200 # Max num of sampl...
55.147059
121
0.678933
379e57a273cd4876cffb73afd2c43311830a75c5
86
py
Python
consent/__init__.py
alekosot/django-consent
545363978e5ef9e404e633f198d94295b5aa384b
[ "MIT" ]
1
2019-09-25T06:37:45.000Z
2019-09-25T06:37:45.000Z
consent/__init__.py
d0ugal/django-consent
8b72b487ace0a09e59962646ddb63b95796ca55a
[ "MIT" ]
null
null
null
consent/__init__.py
d0ugal/django-consent
8b72b487ace0a09e59962646ddb63b95796ca55a
[ "MIT" ]
null
null
null
# following PEP 386, versiontools will pick it up __version__ = (0, 2, 0, "final", 0)
28.666667
49
0.686047
37a15290b1671fa8d820f9c2d35d5c79d583a607
229
py
Python
sample_test.py
tynski/sample_package
ab0fac6ea8cd14ebd3cbdf2666dcb9560efe31ea
[ "MIT" ]
null
null
null
sample_test.py
tynski/sample_package
ab0fac6ea8cd14ebd3cbdf2666dcb9560efe31ea
[ "MIT" ]
null
null
null
sample_test.py
tynski/sample_package
ab0fac6ea8cd14ebd3cbdf2666dcb9560efe31ea
[ "MIT" ]
null
null
null
import unittest from sample_package.sub_package1 import my_sum if __name__ == '__main__': unittest.main()
20.818182
46
0.733624
37a1dff781641c0f7cb06a0378062d227d3b4139
1,441
py
Python
tests/test_processor.py
manslogic/rasa_core
17c82e6be052fc147caef9a9914d06f79a944687
[ "Apache-2.0" ]
1
2017-12-27T04:07:24.000Z
2017-12-27T04:07:24.000Z
tests/test_processor.py
jenish-cj/botnlufoodrest
b41aa2c7a1f6e492e10f07e67562b612b5b13a53
[ "Apache-2.0" ]
null
null
null
tests/test_processor.py
jenish-cj/botnlufoodrest
b41aa2c7a1f6e492e10f07e67562b612b5b13a53
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from rasa_core.channels import UserMessage from rasa_core.channels.direct import CollectingOutputChannel from rasa_core.featurizers import BinaryFeaturizer from rasa_core...
40.027778
70
0.764053
37a2b2de5c6cf3d0a5e50389fe28c3eb4acbc10c
4,609
py
Python
metrics.py
juanmc2005/continual-cross-lingual-nlu
ce2a01ddaa8754404f3f6b5b0fe81953c8a6951f
[ "MIT" ]
null
null
null
metrics.py
juanmc2005/continual-cross-lingual-nlu
ce2a01ddaa8754404f3f6b5b0fe81953c8a6951f
[ "MIT" ]
null
null
null
metrics.py
juanmc2005/continual-cross-lingual-nlu
ce2a01ddaa8754404f3f6b5b0fe81953c8a6951f
[ "MIT" ]
null
null
null
import uuid from typing import Dict, List, Text, Union import pandas as pd import torch from datasets import load_metric from pytorch_lightning.metrics import Metric from seqeval.metrics import classification_report # MIT License # # Copyright (c) 2021 Universit Paris-Saclay # Copyright (c) 2021 Laboratoire national ...
41.151786
107
0.69169
37a3fb8a1b065ee6603e032e39ed5aad8ab6c268
430
py
Python
EulerFour.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
14
2020-10-15T21:47:18.000Z
2021-12-01T06:06:51.000Z
EulerFour.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
null
null
null
EulerFour.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
4
2020-06-15T14:40:45.000Z
2021-06-15T06:22:03.000Z
# Project Euler - Problem 4 # Find the largest palindrome made from the product of two 3-digit numbers. import time start = time.time() n1 = 100 n2 = 1000 # exclusive mx = 0 for i in range(n1, n2): for j in range(n1, n2): if pal(str(i * j)) and mx < i * j: mx = i * j print(mx) print(time.time() - start, "sec")...
15.925926
75
0.583721
37a4e47052a2d1253f3384427f9c90bfebcfbf03
4,393
py
Python
tests/testing/helpers/test_assert_function_call_count.py
munichpavel/tubular
53e277dea2cc869702f2ed49f2b495bf79b92355
[ "BSD-3-Clause" ]
null
null
null
tests/testing/helpers/test_assert_function_call_count.py
munichpavel/tubular
53e277dea2cc869702f2ed49f2b495bf79b92355
[ "BSD-3-Clause" ]
null
null
null
tests/testing/helpers/test_assert_function_call_count.py
munichpavel/tubular
53e277dea2cc869702f2ed49f2b495bf79b92355
[ "BSD-3-Clause" ]
null
null
null
import pytest import tubular import tubular.testing.helpers as h import tubular.testing.test_data as d def test_arguments(): """Test tubular.testing.helpers.assert_function_call_count has expected arguments.""" # use of contextmanager decorator means we need to use .__wrapped__ to get back to original functi...
28.160256
104
0.671068
37a645c289e6906ab538b59230d264d2e38c959a
5,002
py
Python
portfolio/Python/scrapy/petsafe/petstreetmallcom.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/petsafe/petstreetmallcom.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/petsafe/petstreetmallcom.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
5
2016-03-22T07:40:46.000Z
2021-05-30T16:12:21.000Z
from csv import DictReader from petsafeconfig import CSV_FILENAME from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from scrapy.http import Request from product_spiders.items import Product, ProductLoader import logging
41.683333
148
0.541583
37a716de9ac1554b60a3ff8e3c6b5f25ee3aacd8
897
py
Python
app.py
elben10/corona-dashboard
ce3be765ee560b9cfec364f3dca32cc804776b8a
[ "MIT" ]
null
null
null
app.py
elben10/corona-dashboard
ce3be765ee560b9cfec364f3dca32cc804776b8a
[ "MIT" ]
1
2021-05-11T07:29:24.000Z
2021-05-11T07:29:24.000Z
app.py
elben10/corona-dashboard
ce3be765ee560b9cfec364f3dca32cc804776b8a
[ "MIT" ]
null
null
null
import dash from flask_caching import Cache EXTERNAL_SCRIPTS = [ "https://code.jquery.com/jquery-3.4.1.slim.min.js", "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js", "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js", ] EXTERNAL_STYLESHEETS = [ "https://font...
29.9
116
0.721293
37a77af1f8414e70cf99ebbeef6b921b7ebf8a25
10,983
py
Python
scripts/active_inference.py
tud-cor/jackal_active_inference_versus_kalman_filter
406a110bec05967d2b158f9f0d0be703e473ab69
[ "Apache-2.0" ]
4
2020-03-29T01:41:28.000Z
2021-05-29T06:04:29.000Z
scripts/active_inference.py
tud-cor/jackal_active_inference_versus_kalman_filter
406a110bec05967d2b158f9f0d0be703e473ab69
[ "Apache-2.0" ]
2
2020-01-09T16:20:45.000Z
2021-01-29T11:32:16.000Z
scripts/active_inference.py
tud-cor/jackal_active_inference_versus_kalman_filter
406a110bec05967d2b158f9f0d0be703e473ab69
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ########################################################################### # Active Inference algorithm # # Execute the AI algorithm using the data from the # /filter/y_coloured_noise topic and publish the results to the # /filter/ai/output topic. # Note that only the filtering part of the AI ...
48.813333
534
0.558955
37a7ca05e91bd835826fe1d91d51fc3eec3454e9
828
py
Python
alembic/versions/add66992d51f_add_user_model.py
shiroyuki/2019-cfp
90c20ad01c19ddf17b0bfd1f96b264c715456c01
[ "BSD-3-Clause" ]
null
null
null
alembic/versions/add66992d51f_add_user_model.py
shiroyuki/2019-cfp
90c20ad01c19ddf17b0bfd1f96b264c715456c01
[ "BSD-3-Clause" ]
6
2019-04-27T16:48:33.000Z
2019-08-06T20:28:23.000Z
alembic/versions/add66992d51f_add_user_model.py
shiroyuki/2019-cfp
90c20ad01c19ddf17b0bfd1f96b264c715456c01
[ "BSD-3-Clause" ]
2
2019-08-06T15:23:57.000Z
2019-08-21T23:16:01.000Z
"""add user model Revision ID: add66992d51f Revises: Create Date: 2018-05-29 20:47:40.890728 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'add66992d51f' down_revision = None branch_labels = None depends_on = None
23.657143
65
0.676329
37a8a2a6f7db9c2e98f1c2a71bb16ab7202f778e
1,049
py
Python
scrapeMembers.py
iversc/lb-conforums-scraper
a99448975d13e5bd1542a7f9684938129b533ce9
[ "MIT" ]
null
null
null
scrapeMembers.py
iversc/lb-conforums-scraper
a99448975d13e5bd1542a7f9684938129b533ce9
[ "MIT" ]
null
null
null
scrapeMembers.py
iversc/lb-conforums-scraper
a99448975d13e5bd1542a7f9684938129b533ce9
[ "MIT" ]
null
null
null
import forumLogin import os from bs4 import BeautifulSoup print("Logging in to conforums site...") forumLogin.doLogin() print("Creating member indexes folder...") try: os.mkdir("member-indexes") except OSError: pass members_url = forumLogin.board_url + "index.cgi?action=mlall" print("Scraping members index page...
25.585366
77
0.692088
37aaacec4e931cb07cb16c1a2609ce1ddba1e5f7
1,158
py
Python
tests/modules/idn/test_idn_update.py
bladeroot/heppy
b597916ff80890ca057b17cdd156e90bbbd9a87a
[ "BSD-3-Clause" ]
20
2016-06-02T20:29:29.000Z
2022-01-31T07:47:02.000Z
tests/modules/idn/test_idn_update.py
bladeroot/heppy
b597916ff80890ca057b17cdd156e90bbbd9a87a
[ "BSD-3-Clause" ]
1
2018-10-09T16:09:24.000Z
2018-10-10T08:17:42.000Z
tests/modules/idn/test_idn_update.py
bladeroot/heppy
b597916ff80890ca057b17cdd156e90bbbd9a87a
[ "BSD-3-Clause" ]
7
2018-04-11T16:05:06.000Z
2020-01-28T16:30:40.000Z
#!/usr/bin/env python import unittest from ..TestCase import TestCase if __name__ == '__main__': unittest.main(verbosity=2)
25.733333
76
0.474093
37aac198548f8d29bc2f8b8cc60f05e06816e5e8
506
py
Python
Python-Basics/13.Nested Loops/06.Tower.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
Python-Basics/13.Nested Loops/06.Tower.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
Python-Basics/13.Nested Loops/06.Tower.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
height = int(input()) apartments = int(input()) is_first = True isit = 0 for f in range(height, 0, -1): for s in range(0, apartments, 1): if is_first == True: isit += 1 print(f"L{f}{s}", end=" ") if isit == apartments: is_first = False cont...
26.631579
42
0.426877
37ad375b563b64c735e0509a6bc22b77f4aa298e
2,633
py
Python
arse/biclustering/deflation.py
marianotepper/comdet
ca55083fdcd555b3f80586423cbe8a09498993d2
[ "BSD-3-Clause" ]
null
null
null
arse/biclustering/deflation.py
marianotepper/comdet
ca55083fdcd555b3f80586423cbe8a09498993d2
[ "BSD-3-Clause" ]
null
null
null
arse/biclustering/deflation.py
marianotepper/comdet
ca55083fdcd555b3f80586423cbe8a09498993d2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from . import compression from . import utils def remove_columns(self, idx_cols): super(L1CompressedDeflator, self).remove_columns(idx_cols) self._compressor.remove_columns(idx_cols) self._inner_compress() def remove_rows(self, idx_rows): ...
28.934066
76
0.635777
37ae8731e09fa6e9e10edeca8ddfee65b0deef43
12,789
py
Python
test/test.py
Trick-17/clang-build
9830f4bc18f5a082bd88b310965e974493508eab
[ "MIT" ]
8
2018-03-09T20:02:12.000Z
2021-08-21T21:38:13.000Z
test/test.py
Trick-17/clang-build
9830f4bc18f5a082bd88b310965e974493508eab
[ "MIT" ]
131
2018-03-09T20:40:30.000Z
2022-02-16T23:20:59.000Z
test/test.py
Trick-17/clang-build
9830f4bc18f5a082bd88b310965e974493508eab
[ "MIT" ]
3
2018-04-15T12:55:39.000Z
2021-07-07T00:23:55.000Z
import os, sys import unittest import subprocess import shutil import logging import io import stat from pathlib import Path as _Path from multiprocessing import freeze_support from sys import platform as _platform import json from clang_build import cli from clang_build import toolchain from clang_build.errors impor...
42.069079
154
0.642896
37afd5c2ce06e31b0fb649e3c85d0e4fb3ee953a
3,429
py
Python
Misc Learning/HackerRank 30 Days of Code/Additional Practice Problems/Dominator.py
hamil168/Learning-Data-Science
dd91e4336b6a48a30265a86f8b816658639a17e9
[ "BSD-2-Clause" ]
null
null
null
Misc Learning/HackerRank 30 Days of Code/Additional Practice Problems/Dominator.py
hamil168/Learning-Data-Science
dd91e4336b6a48a30265a86f8b816658639a17e9
[ "BSD-2-Clause" ]
1
2018-03-31T05:54:37.000Z
2018-03-31T05:54:37.000Z
Misc Learning/HackerRank 30 Days of Code/Additional Practice Problems/Dominator.py
hamil168/Data-Science-Misc
dd91e4336b6a48a30265a86f8b816658639a17e9
[ "BSD-2-Clause" ]
null
null
null
""" Dominator Problem by Codility Solution by B Hamilton An array A consisting of N integers is given. The dominator of array A is the value that occurs in more than half of the elements of A. Write a function that, given an array A consisting of N integers, returns index of any element of array A in which the ...
30.891892
80
0.624089
37b03eee963ae5d66a198ecf984f7cee7d0c3fdc
4,437
py
Python
avalon-scone/scone_worker/avalon_worker/workload/openvino.py
T-Systems-MMS/hyperledger-secure-avalon
b43796a53726242d54be526ce9f6fc8d8a2670d1
[ "Apache-2.0" ]
null
null
null
avalon-scone/scone_worker/avalon_worker/workload/openvino.py
T-Systems-MMS/hyperledger-secure-avalon
b43796a53726242d54be526ce9f6fc8d8a2670d1
[ "Apache-2.0" ]
1
2021-02-03T07:57:06.000Z
2021-02-13T13:53:49.000Z
avalon-scone/scone_worker/avalon_worker/workload/openvino.py
T-Systems-MMS/hyperledger-secure-avalon
b43796a53726242d54be526ce9f6fc8d8a2670d1
[ "Apache-2.0" ]
4
2021-06-09T08:55:26.000Z
2021-11-26T16:25:48.000Z
#!/usr/bin/python3 # Copyright 2020 Mujtaba Idrees # # 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...
39.616071
174
0.610548
37b0ef435382ce1f55b5e500c3de8d4e9d9bcd74
6,504
py
Python
MLProjects/iris-machine-learning-master/irisML.py
evidawei/HacktoberFest_2021
3c950c6a6451ac732c4090f374c7dc4b6ef36c50
[ "MIT" ]
33
2021-10-01T17:51:53.000Z
2022-03-20T11:30:09.000Z
MLProjects/iris-machine-learning-master/irisML.py
evidawei/HacktoberFest_2021
3c950c6a6451ac732c4090f374c7dc4b6ef36c50
[ "MIT" ]
69
2021-10-01T09:07:22.000Z
2021-10-20T02:21:12.000Z
MLProjects/iris-machine-learning-master/irisML.py
evidawei/HacktoberFest_2021
3c950c6a6451ac732c4090f374c7dc4b6ef36c50
[ "MIT" ]
187
2021-10-01T09:06:51.000Z
2022-01-29T03:18:30.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from IPython.display import Image from sklearn.externals.six import StringIO from sklearn.tree import export_graphviz from sklearn.neighbors import KNeighborsClassifier from sklearn.model_selection import train_test_split from...
41.692308
147
0.767066
37b13ac6a482ca464f323ea8e9763e6ccd5bd832
3,646
py
Python
Data Structures/Heap/JesseAndCookies.py
aibenStunner/HackerRank
de223f2b1fa95d1959deef9ce14b39baa61100ba
[ "MIT" ]
2
2020-04-17T02:54:59.000Z
2020-06-08T23:32:12.000Z
Data Structures/Heap/JesseAndCookies.py
aibenStunner/HackerRank
de223f2b1fa95d1959deef9ce14b39baa61100ba
[ "MIT" ]
null
null
null
Data Structures/Heap/JesseAndCookies.py
aibenStunner/HackerRank
de223f2b1fa95d1959deef9ce14b39baa61100ba
[ "MIT" ]
1
2021-11-16T14:05:22.000Z
2021-11-16T14:05:22.000Z
#!/bin/python3 import os import sys # # Complete the cookies function below. # def cookies(k, A): qHeap = minHeap() qHeap.heapify(A) count = 0 try: while qHeap.peek() < k: count += 1 a, b = qHeap.pop(), qHeap.pop() newCookie = (1*a)+(2*b) qHeap.a...
26.42029
93
0.538124
37b14ef8ca35ac4c2685b58e6101352688efef2d
4,751
py
Python
submodule.py
Jaewoo97/VisualOdomtery
cc6fc72dd40cb5f37e735502e6409d4329279c1d
[ "MIT" ]
null
null
null
submodule.py
Jaewoo97/VisualOdomtery
cc6fc72dd40cb5f37e735502e6409d4329279c1d
[ "MIT" ]
null
null
null
submodule.py
Jaewoo97/VisualOdomtery
cc6fc72dd40cb5f37e735502e6409d4329279c1d
[ "MIT" ]
null
null
null
from __future__ import print_function import torch import torch.nn as nn import torch.utils.data from torch.autograd import Variable import torch.nn.functional as F import math import numpy as np def convbn_3d(in_planes, out_planes, kernel_size, stride, pad): return nn.Sequential(nn.Conv3d(in_planes,...
37.409449
177
0.565144
37b1af8d30379fc26514ca07544d691e2506df45
15,066
py
Python
parseq/scripts/geoquery_geo880_basic_nar.py
saist1993/parseq
dce90d06d14ffbb0a471849f04c373a173475d3a
[ "MIT" ]
1
2022-01-21T16:08:08.000Z
2022-01-21T16:08:08.000Z
parseq/scripts/geoquery_geo880_basic_nar.py
saist1993/parseq
dce90d06d14ffbb0a471849f04c373a173475d3a
[ "MIT" ]
null
null
null
parseq/scripts/geoquery_geo880_basic_nar.py
saist1993/parseq
dce90d06d14ffbb0a471849f04c373a173475d3a
[ "MIT" ]
1
2020-08-19T07:09:44.000Z
2020-08-19T07:09:44.000Z
import os import re import sys from functools import partial from typing import * import torch import qelos as q from allennlp.modules.seq2seq_encoders import PytorchSeq2SeqWrapper from nltk import PorterStemmer from torch.utils.data import DataLoader # from funcparse.decoding import TransitionModel, TFActionSeqDec...
38.238579
162
0.627174
37b79a42787ab39d8a353cbbf500ada9ea93a8d8
78
py
Python
oe_site/app/admin.py
WsinGithub/ChemECar_web
aad7d8b98ac82830ddff0ec9adb99efef66e40f8
[ "MIT" ]
null
null
null
oe_site/app/admin.py
WsinGithub/ChemECar_web
aad7d8b98ac82830ddff0ec9adb99efef66e40f8
[ "MIT" ]
null
null
null
oe_site/app/admin.py
WsinGithub/ChemECar_web
aad7d8b98ac82830ddff0ec9adb99efef66e40f8
[ "MIT" ]
1
2021-07-30T04:31:43.000Z
2021-07-30T04:31:43.000Z
from django.contrib import admin # django # Register your models here.
15.6
32
0.794872
37b7a0bdfbd839a755c886e06a53cba5251f183c
4,244
py
Python
Queen's Attack II.py
Swagatamkar/Python_HackerranK
f9d61b0461286f333b3624082d577943b906c311
[ "MIT" ]
3
2020-10-28T16:01:26.000Z
2021-04-25T05:33:46.000Z
Queen's Attack II.py
Swagatamkar/Python_HackerranK
f9d61b0461286f333b3624082d577943b906c311
[ "MIT" ]
null
null
null
Queen's Attack II.py
Swagatamkar/Python_HackerranK
f9d61b0461286f333b3624082d577943b906c311
[ "MIT" ]
2
2021-01-16T15:24:36.000Z
2021-06-19T09:34:05.000Z
''' Problem Statement: https://www.hackerrank.com/challenges/queens-attack-2/problem @Coded by TSG, 2020 ''' import math import os import random import re import sys # Complete the queensAttack function below. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') nk = input().split() n ...
33.15625
80
0.514138
37b7e2ba7face03dd4882b67077f3424194c7773
271
py
Python
full-problems/twiceCounter.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
full-problems/twiceCounter.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
full-problems/twiceCounter.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # https://practice.geeksforgeeks.org/problems/twice-counter/0
22.583333
61
0.549815
37b95409e84e525a09791b57d6c976475b723763
1,810
py
Python
tests/test_player.py
ssichynskyi/lotti-karotti-calc
44eb39ce4c4bc8ddf4049d72268597c6d7411f84
[ "Apache-2.0" ]
null
null
null
tests/test_player.py
ssichynskyi/lotti-karotti-calc
44eb39ce4c4bc8ddf4049d72268597c6d7411f84
[ "Apache-2.0" ]
null
null
null
tests/test_player.py
ssichynskyi/lotti-karotti-calc
44eb39ce4c4bc8ddf4049d72268597c6d7411f84
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from logic.player import Player
42.093023
99
0.69337