hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
4
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
125
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.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
d50dc9952d8cdb6e9b7152c99d1da1db461c6b31
1,737
py
Python
bert_e/server/server.py
tcarmet/bert-e
8e0623d9a8c7bd111790d72307862167eca18a23
[ "Apache-2.0" ]
null
null
null
bert_e/server/server.py
tcarmet/bert-e
8e0623d9a8c7bd111790d72307862167eca18a23
[ "Apache-2.0" ]
35
2020-08-26T09:25:56.000Z
2022-01-10T20:38:15.000Z
bert_e/server/server.py
tcarmet/bert-e
8e0623d9a8c7bd111790d72307862167eca18a23
[ "Apache-2.0" ]
2
2021-08-17T15:56:50.000Z
2022-01-05T19:26:48.000Z
#!/usr/bin/env python3 # Copyright 2016-2018 Scality # # 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 ...
31.017857
78
0.668969
#!/usr/bin/env python3 # Copyright 2016-2018 Scality # # 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 ...
0
0
0
7922f82221b4f47738ecfed252a3c00d4c6c30e6
3,489
py
Python
topasgraphsim/topasgraphsim.py
sebasj13/topasgraphsim
6027c7c098b319159c32108dd4ec63f4b44e8676
[ "MIT" ]
2
2022-02-19T13:02:48.000Z
2022-03-21T20:04:17.000Z
topasgraphsim/topasgraphsim.py
sebasj13/topas-create-graphs
5ccdbcbbe39461917cc015aa59805e518421431c
[ "MIT" ]
37
2022-01-18T22:40:24.000Z
2022-02-06T13:43:23.000Z
topasgraphsim/topasgraphsim.py
sebasj13/topasgraphsim
6027c7c098b319159c32108dd4ec63f4b44e8676
[ "MIT" ]
1
2022-03-09T11:34:36.000Z
2022-03-09T11:34:36.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Dec 16 12:47:50 2021 @author: Sebastian Schäfer @institution: Martin-Luther-Universität Halle-Wittenberg @email: sebastian.schaefer@student.uni-halle.de """ import os import sys import tkinter as tk import tkinter.ttk as ttk from .src.classes.install_...
25.844444
68
0.549441
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Dec 16 12:47:50 2021 @author: Sebastian Schäfer @institution: Martin-Luther-Universität Halle-Wittenberg @email: sebastian.schaefer@student.uni-halle.de """ import os import sys import tkinter as tk import tkinter.ttk as ttk from .src.classes.install_...
2,925
0
23
a65ef6695793811bbe621a54b5744868f1c8a805
7,993
py
Python
tests/test_space_time/test_nested_counters.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
10
2018-04-03T01:51:16.000Z
2022-02-07T04:27:26.000Z
tests/test_space_time/test_nested_counters.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
19
2018-05-20T00:43:31.000Z
2021-03-18T20:36:52.000Z
tests/test_space_time/test_nested_counters.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
1
2018-07-11T23:36:43.000Z
2018-07-11T23:36:43.000Z
from aetherling.space_time.type_helpers import * from aetherling.space_time.nested_counters import * import fault from aetherling.helpers.fault_helpers import compile_and_run
34.601732
86
0.61091
from aetherling.space_time.type_helpers import * from aetherling.space_time.nested_counters import * import fault from aetherling.helpers.fault_helpers import compile_and_run def test_nested_counters_TSeq_2_0(): n = 2 i = 0 t = ST_TSeq(n, i, ST_Int()) testcircuit = DefineNestedCounters(t) tester = ...
7,565
0
253
73719213febb3aaf7912003f61382fc82b463bf1
1,664
py
Python
address/migrations/0004_auto_20201108_1146.py
thapaliya19/covaplad
f3ff6db582165611d03dab6d227b4e5d81214d43
[ "MIT" ]
1
2021-02-03T15:09:45.000Z
2021-02-03T15:09:45.000Z
address/migrations/0004_auto_20201108_1146.py
thapaliya19/covaplad
f3ff6db582165611d03dab6d227b4e5d81214d43
[ "MIT" ]
25
2021-03-08T07:01:32.000Z
2022-03-31T09:05:30.000Z
address/migrations/0004_auto_20201108_1146.py
thapaliya19/covaplad
f3ff6db582165611d03dab6d227b4e5d81214d43
[ "MIT" ]
3
2021-02-22T15:06:56.000Z
2021-08-03T13:00:00.000Z
# Generated by Django 3.1.3 on 2020-11-08 06:01 from django.db import migrations, models
30.254545
85
0.564303
# Generated by Django 3.1.3 on 2020-11-08 06:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("address", "0003_municipality_is_rural"), ] operations = [ migrations.RemoveConstraint( model_name="district", name="...
0
1,550
23
5e0f22fdf5b677478e1d9722af86021df5b6a21b
958
py
Python
READ/subscribe/forms.py
DongWookK/READ_v2
f67c47a07653619b10478bf223eee5991ddf04a6
[ "Apache-2.0" ]
4
2019-10-20T14:24:50.000Z
2020-11-16T14:48:11.000Z
READ/subscribe/forms.py
DongWookK/READ_v2
f67c47a07653619b10478bf223eee5991ddf04a6
[ "Apache-2.0" ]
3
2019-12-05T01:11:22.000Z
2020-06-26T05:21:34.000Z
READ/subscribe/forms.py
DongWookK/READ_v2
f67c47a07653619b10478bf223eee5991ddf04a6
[ "Apache-2.0" ]
2
2020-05-20T12:07:51.000Z
2022-03-31T07:06:32.000Z
from django import forms from .models import Subscribe from django.db import transaction from video.models import Video
29.9375
103
0.624217
from django import forms from .models import Subscribe from django.db import transaction from video.models import Video class RegisterForm(forms.Form): # session에 접근하기 위해 request를 받아와야 한다. def __init__(self, request, *args, **kwargs): super().__init__(*args, **kwargs) self.request = request ...
529
583
23
3077a019561fddea4b27a609f1e607d644b85a1b
13,955
py
Python
storage.py
rfelixmg/util
899360382f8b097b0f3faf70e9b3e7abcdd0b255
[ "Unlicense" ]
null
null
null
storage.py
rfelixmg/util
899360382f8b097b0f3faf70e9b3e7abcdd0b255
[ "Unlicense" ]
null
null
null
storage.py
rfelixmg/util
899360382f8b097b0f3faf70e9b3e7abcdd0b255
[ "Unlicense" ]
1
2018-12-13T00:57:15.000Z
2018-12-13T00:57:15.000Z
""" MIT License Copyright (c) 2018 Rafael Felix Alves Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
32.37819
102
0.529774
""" MIT License Copyright (c) 2018 Rafael Felix Alves Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
9,552
1,739
1,093
831858eaab39b268c44947afc4f596f40497a05f
2,993
py
Python
tests/test_parser.py
kevinzg/beanbot
4558804f539720895f9fea2bb46bcdbfe886b034
[ "MIT" ]
4
2019-09-30T10:04:45.000Z
2021-09-18T05:39:08.000Z
tests/test_parser.py
kevinzg/beanbot
4558804f539720895f9fea2bb46bcdbfe886b034
[ "MIT" ]
2
2021-07-30T02:13:56.000Z
2021-07-30T02:14:02.000Z
tests/test_parser.py
kevinzg/beanbot
4558804f539720895f9fea2bb46bcdbfe886b034
[ "MIT" ]
1
2021-03-23T10:40:37.000Z
2021-03-23T10:40:37.000Z
from decimal import Decimal import pytest from freezegun import freeze_time from beanbot.errors import UserError from beanbot.models import Action, Event from beanbot.parser import parse_keyboard_data, parse_message invalid_messages = [ 'No money', 'No currency 12.0 USD', '3.0', '+ no money' '+12 st...
28.778846
84
0.556632
from decimal import Decimal import pytest from freezegun import freeze_time from beanbot.errors import UserError from beanbot.models import Action, Event from beanbot.parser import parse_keyboard_data, parse_message invalid_messages = [ 'No money', 'No currency 12.0 USD', '3.0', '+ no money' '+12 st...
2,311
7
285
38afc6f880db3b2e8eeff847100ff26ab8fb76fe
4,210
py
Python
qtstrap/extras/log_monitor/log_widget.py
qtstrap/qtstrap
7b5ea2b1e3b9dd896aabf8edfb10c8dd3cf8782e
[ "MIT" ]
2
2021-08-14T01:39:00.000Z
2022-02-07T02:07:57.000Z
qtstrap/extras/log_monitor/log_widget.py
qtstrap/qtstrap
7b5ea2b1e3b9dd896aabf8edfb10c8dd3cf8782e
[ "MIT" ]
null
null
null
qtstrap/extras/log_monitor/log_widget.py
qtstrap/qtstrap
7b5ea2b1e3b9dd896aabf8edfb10c8dd3cf8782e
[ "MIT" ]
1
2021-03-30T18:38:57.000Z
2021-03-30T18:38:57.000Z
from qtstrap import * from qtpy.QtSql import * from .log_table_view import LogTableView from .log_filter_controls import FilterControls from .log_database_handler import DatabaseHandler, db_conn_name try: from command_palette import CommandPalette, Command command_palette_available = True except: command_...
33.412698
97
0.649406
from qtstrap import * from qtpy.QtSql import * from .log_table_view import LogTableView from .log_filter_controls import FilterControls from .log_database_handler import DatabaseHandler, db_conn_name try: from command_palette import CommandPalette, Command command_palette_available = True except: command_...
3,471
43
348
17a1d486467729e659dd94dc29391166bc4ecda4
10,968
py
Python
libs/Sessions.py
lavalamp-/RootTheBox
d35d203d7aa0abc6907804bc873068773ab7367e
[ "Apache-2.0" ]
3
2016-04-21T11:21:21.000Z
2019-02-22T17:19:47.000Z
libs/Sessions.py
lavalamp-/RootTheBox
d35d203d7aa0abc6907804bc873068773ab7367e
[ "Apache-2.0" ]
null
null
null
libs/Sessions.py
lavalamp-/RootTheBox
d35d203d7aa0abc6907804bc873068773ab7367e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' @author: Milan Cermak <milan.cermak@gmail.com> @author: Moloch This module implements sessions for Tornado using Memcached. ''' import re import os import time import base64 import logging import datetime import collections import cPickle as pickle from os import _exit SID_SIZE = 16 #...
35.495146
79
0.609044
# -*- coding: utf-8 -*- ''' @author: Milan Cermak <milan.cermak@gmail.com> @author: Moloch This module implements sessions for Tornado using Memcached. ''' import re import os import time import base64 import logging import datetime import collections import cPickle as pickle from os import _exit SID_SIZE = 16 #...
2,354
0
383
451d831b5e9a7473c478029b3413a36c07c0dd71
2,263
py
Python
run.py
awesome-archive/Auto_Record_Matsuri
6f6bd01ff3be0893fa964a71b2d37ee2d2fe8b4d
[ "MIT" ]
null
null
null
run.py
awesome-archive/Auto_Record_Matsuri
6f6bd01ff3be0893fa964a71b2d37ee2d2fe8b4d
[ "MIT" ]
null
null
null
run.py
awesome-archive/Auto_Record_Matsuri
6f6bd01ff3be0893fa964a71b2d37ee2d2fe8b4d
[ "MIT" ]
null
null
null
from multiprocessing import Process from bilibili import Bilibili from config import (enable_youtube, enable_twitcasting, enable_openrec, enable_mirrativ, enable_bilibili, enable_youtube_temp, channel_id, userid, oprec_id, twitcasting_ld, bilibili_id) from daemon import VideoUpload from mirrativ im...
27.597561
105
0.645161
from multiprocessing import Process from bilibili import Bilibili from config import (enable_youtube, enable_twitcasting, enable_openrec, enable_mirrativ, enable_bilibili, enable_youtube_temp, channel_id, userid, oprec_id, twitcasting_ld, bilibili_id) from daemon import VideoUpload from mirrativ im...
1,317
368
23
6d5e0dafcbd006672ffcf9a50659e7c30f42ab70
358
py
Python
dti/__init__.py
matchu/dti.py
e5c8617150fdc60baf934599346fca1da1476c50
[ "MIT" ]
1
2020-12-02T21:19:53.000Z
2020-12-02T21:19:53.000Z
dti/__init__.py
matchu/dti.py
e5c8617150fdc60baf934599346fca1da1476c50
[ "MIT" ]
1
2021-11-17T15:31:22.000Z
2021-11-17T15:31:22.000Z
dti/__init__.py
matchu/dti.py
e5c8617150fdc60baf934599346fca1da1476c50
[ "MIT" ]
2
2021-05-22T23:30:08.000Z
2021-11-17T06:13:34.000Z
__title__ = "dti" __author__ = "diceroll123" __license__ = "MIT" __copyright__ = "Copyright 2020-present diceroll123" __version__ = "0.0.1a" import logging from . import utils from .client import Client from .constants import * from .enums import * from .errors import * from .models import * logging.getLogger(__name...
21.058824
61
0.765363
__title__ = "dti" __author__ = "diceroll123" __license__ = "MIT" __copyright__ = "Copyright 2020-present diceroll123" __version__ = "0.0.1a" import logging from . import utils from .client import Client from .constants import * from .enums import * from .errors import * from .models import * logging.getLogger(__name...
0
0
0
0444301fcbab4ba52a3b2936bda8ed9943f63d81
1,843
py
Python
2018/04.10/python/jya_gAPIclass.2.py
mksweetlife/study
0786a4bd7901ac0d1aa5efdae5b755693eee5cd3
[ "MIT" ]
1
2017-10-24T08:19:15.000Z
2017-10-24T08:19:15.000Z
2018/04.10/python/jya_gAPIclass.2.py
mksweetlife/study
0786a4bd7901ac0d1aa5efdae5b755693eee5cd3
[ "MIT" ]
31
2017-10-31T11:09:44.000Z
2018-12-04T07:47:46.000Z
2018/04.10/python/jya_gAPIclass.2.py
mksweetlife/study
0786a4bd7901ac0d1aa5efdae5b755693eee5cd3
[ "MIT" ]
5
2017-10-26T02:13:08.000Z
2018-07-05T04:58:47.000Z
import requests, base64 import config id = config.GAPI_CONFIG['client_id'] secret = config.GAPI_CONFIG['client_secret'] type = config.GAPI_CONFIG['grant_type'] # api1 = GapiClass() # a = api1.getMember('planning_d') # if __name__ == "__main__": # print(a)
31.775862
112
0.591427
import requests, base64 import config id = config.GAPI_CONFIG['client_id'] secret = config.GAPI_CONFIG['client_secret'] type = config.GAPI_CONFIG['grant_type'] class GapiClass: def __init__(self, host='https://gapi.gabia.com'): self.__host = host self.__headers = self.__encoded_token() sel...
1,408
-5
211
32ddf576131727d1fc5f3374155b0570267dcc41
5,441
py
Python
news/views.py
kneeraazon01/webNewsNepal
bb337678e79293896b88b0ccea77b090b8e1075e
[ "Apache-2.0" ]
1
2020-09-19T16:12:05.000Z
2020-09-19T16:12:05.000Z
news/views.py
kneeraazon01/webNewsNepal
bb337678e79293896b88b0ccea77b090b8e1075e
[ "Apache-2.0" ]
null
null
null
news/views.py
kneeraazon01/webNewsNepal
bb337678e79293896b88b0ccea77b090b8e1075e
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.core.mail import EmailMessage from django.shortcuts import redirect, render from .models import Newsle...
26.158654
88
0.657783
from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.core.mail import EmailMessage from django.shortcuts import redirect, render from .models import Newsle...
3,331
914
458
2900fdcc2a19bb3cdd6e1db3310132f96d8aaea1
69,149
py
Python
pysnmp-with-texts/A3COM-HUAWEI-EPON-DEVICE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/A3COM-HUAWEI-EPON-DEVICE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/A3COM-HUAWEI-EPON-DEVICE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module A3COM-HUAWEI-EPON-DEVICE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-EPON-DEVICE-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:04:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
225.977124
6,436
0.793027
# # PySNMP MIB module A3COM-HUAWEI-EPON-DEVICE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-EPON-DEVICE-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:04:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
0
0
0
f31eaaa57631730d3f49236c6cc83a9f6627b02a
1,016
py
Python
Difficult/Montagnes_russes.py
Alumet/Codingame
5cb2f779bb7107864283744f7bbac260f4641af6
[ "MIT" ]
null
null
null
Difficult/Montagnes_russes.py
Alumet/Codingame
5cb2f779bb7107864283744f7bbac260f4641af6
[ "MIT" ]
null
null
null
Difficult/Montagnes_russes.py
Alumet/Codingame
5cb2f779bb7107864283744f7bbac260f4641af6
[ "MIT" ]
null
null
null
''' Author Alumet 2015 https://github.com/Alumet/Codingame ''' l, c, n = [int(i) for i in input().split()] groupes=[] loop_g=[] loop_m=[] looping=True for i in range(n): groupes.append([i,int(input())]) result=0 j=0 while j < c: load=0 sub_group=[] for i in range (n): if l-l...
18.814815
64
0.517717
''' Author Alumet 2015 https://github.com/Alumet/Codingame ''' l, c, n = [int(i) for i in input().split()] groupes=[] loop_g=[] loop_m=[] looping=True for i in range(n): groupes.append([i,int(input())]) result=0 j=0 while j < c: load=0 sub_group=[] for i in range (n): if l-l...
0
0
0
eeb4219d0f04bc0b7451e78ea7eee261864ab821
6,685
py
Python
DRC/core/DRCCommonUtil.py
pingArnab/django-rest-commerce
d737a325cad8cf32efbdc6304b95df1b0cb92717
[ "MIT" ]
null
null
null
DRC/core/DRCCommonUtil.py
pingArnab/django-rest-commerce
d737a325cad8cf32efbdc6304b95df1b0cb92717
[ "MIT" ]
1
2021-11-14T09:14:54.000Z
2021-11-14T17:07:12.000Z
DRC/core/DRCCommonUtil.py
pingPoltergeist/django-rest-commerce
d737a325cad8cf32efbdc6304b95df1b0cb92717
[ "MIT" ]
1
2022-02-28T10:54:29.000Z
2022-02-28T10:54:29.000Z
import logging import random import secrets import string import uuid import hashlib from django.conf import settings from django.core.files.storage import FileSystemStorage from django.http import Http404 from django.shortcuts import redirect from django.core.mail import send_mail, EmailMultiAlternatives from DRC.set...
30.112613
113
0.572326
import logging import random import secrets import string import uuid import hashlib from django.conf import settings from django.core.files.storage import FileSystemStorage from django.http import Http404 from django.shortcuts import redirect from django.core.mail import send_mail, EmailMultiAlternatives from DRC.set...
3,609
679
138
c5ad80ffda2f5443beefcae452c60f3ef14f88fe
429
py
Python
kratos/apps/log/migrations/0011_log_envs.py
cipher-ops/backend-kts
7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319
[ "MIT" ]
1
2020-11-30T09:53:40.000Z
2020-11-30T09:53:40.000Z
kratos/apps/log/migrations/0011_log_envs.py
cipher-ops/backend-kts
7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319
[ "MIT" ]
null
null
null
kratos/apps/log/migrations/0011_log_envs.py
cipher-ops/backend-kts
7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-11-02 16:58 from django.db import migrations import django_mysql.models
21.45
85
0.620047
# Generated by Django 3.0.5 on 2020-11-02 16:58 from django.db import migrations import django_mysql.models class Migration(migrations.Migration): dependencies = [ ('log', '0010_auto_20201102_1401'), ] operations = [ migrations.AddField( model_name='log', name='e...
0
296
23
4a8c5462309aa52617edcd542edbe0abc2ac8724
3,175
py
Python
src/dnp/slope2.py
amunoz1/mines
106f852fe4e64ee132d74290c1a57ea716312376
[ "MIT" ]
1
2016-07-19T08:50:54.000Z
2016-07-19T08:50:54.000Z
src/dnp/slope2.py
amunoz1/mines
106f852fe4e64ee132d74290c1a57ea716312376
[ "MIT" ]
null
null
null
src/dnp/slope2.py
amunoz1/mines
106f852fe4e64ee132d74290c1a57ea716312376
[ "MIT" ]
null
null
null
import sys from java.awt import * from java.io import * from java.lang import * from javax.swing import * from edu.mines.jtk.awt import * from edu.mines.jtk.dsp import * from edu.mines.jtk.io import * from edu.mines.jtk.mosaic import * from edu.mines.jtk.util import * from edu.mines.jtk.util.ArrayMath import * from ...
26.458333
77
0.648504
import sys from java.awt import * from java.io import * from java.lang import * from javax.swing import * from edu.mines.jtk.awt import * from edu.mines.jtk.dsp import * from edu.mines.jtk.io import * from edu.mines.jtk.mosaic import * from edu.mines.jtk.util import * from edu.mines.jtk.util.ArrayMath import * from ...
1,999
4
253
bc64f241bc71e5f4032c8e8b932d2286251fc81c
10,145
py
Python
server.py
ernitron/temperature-server
7b212d4d031836cbc829d7195ce51cb85031060b
[ "MIT" ]
4
2016-06-02T21:08:27.000Z
2017-04-26T17:02:14.000Z
server.py
ernitron/temperature-server
7b212d4d031836cbc829d7195ce51cb85031060b
[ "MIT" ]
1
2016-05-19T12:38:48.000Z
2016-05-29T17:53:33.000Z
server.py
ernitron/temperature-server
7b212d4d031836cbc829d7195ce51cb85031060b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' A temperature/pressure/humidity server application ''' # Imports import os #from __future__ import division import sys import cherrypy from socket import getfqdn as gethostname from datetime import datetime # Jinja2 templating from jinja2 import Environment, FileSys...
32.620579
129
0.593593
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' A temperature/pressure/humidity server application ''' # Imports import os #from __future__ import division import sys import cherrypy from socket import getfqdn as gethostname from datetime import datetime # Jinja2 templating from jinja2 import Environment, FileSys...
5,981
785
204
a6fe02253f5e29d9bd696b124e0fc199f59b46c3
13,734
py
Python
apis/betterself/v1/events/views.py
jeffshek/betterself
51468253fc31373eb96e0e82189b9413f3d76ff5
[ "MIT" ]
98
2017-07-29T14:26:36.000Z
2022-02-28T04:10:15.000Z
apis/betterself/v1/events/views.py
jeffshek/betterself
51468253fc31373eb96e0e82189b9413f3d76ff5
[ "MIT" ]
1,483
2017-05-30T00:05:56.000Z
2022-03-31T12:37:06.000Z
apis/betterself/v1/events/views.py
lawrendran/betterself
51468253fc31373eb96e0e82189b9413f3d76ff5
[ "MIT" ]
13
2017-11-08T00:02:35.000Z
2022-02-28T04:10:32.000Z
import datetime import json import pandas as pd from dateutil import relativedelta from rest_framework.generics import ListCreateAPIView, get_object_or_404 from rest_framework.response import Response from rest_framework.views import APIView from analytics.events.utils.dataframe_builders import ProductivityLogEventsD...
45.78
118
0.730086
import datetime import json import pandas as pd from dateutil import relativedelta from rest_framework.generics import ListCreateAPIView, get_object_or_404 from rest_framework.response import Response from rest_framework.views import APIView from analytics.events.utils.dataframe_builders import ProductivityLogEventsD...
9,419
1,922
289
b0657a98ae39f18c0310eca32bbdf109e1cef3e2
849
py
Python
test/test_distro_class.py
igorlg/distros-app
c550c86db47a32267c837fba2abe4aca7211d245
[ "MIT" ]
2
2019-07-30T05:02:16.000Z
2019-07-30T08:51:18.000Z
test/test_distro_class.py
igorlg/distros-app
c550c86db47a32267c837fba2abe4aca7211d245
[ "MIT" ]
12
2019-07-30T05:11:11.000Z
2020-11-25T01:10:04.000Z
test/test_distro_class.py
igorlg/distros-app
c550c86db47a32267c837fba2abe4aca7211d245
[ "MIT" ]
1
2019-08-06T14:03:28.000Z
2019-08-06T14:03:28.000Z
import pytest from distro.distro import load
21.225
48
0.711425
import pytest from distro.distro import load class TestDistroClass(object): @pytest.fixture() def distros(self): return load() def test_name_required(self): raise NotImplementedError def test_version_or_versions_required(self): raise NotImplementedError def test_version...
452
327
23
b0ae40a8176ebb7c330fafa8ef59191624cc0c9a
4,182
py
Python
fritzconnection/core/logger.py
bufemc/fritzconnection
9f1eb3394a2740392230083bde3a6afed1b96687
[ "MIT" ]
null
null
null
fritzconnection/core/logger.py
bufemc/fritzconnection
9f1eb3394a2740392230083bde3a6afed1b96687
[ "MIT" ]
null
null
null
fritzconnection/core/logger.py
bufemc/fritzconnection
9f1eb3394a2740392230083bde3a6afed1b96687
[ "MIT" ]
null
null
null
""" Logging interface for the fritzconnection library. On module level an instance of `FritzLogger` gets created as `fritzlogger` that can get imported by: >>> from fritzconnection.core.logger import fritzlogger The fritzlogger instance is preset to report on DEBUG level, the default handler is the NullHandler. To d...
32.169231
74
0.657341
""" Logging interface for the fritzconnection library. On module level an instance of `FritzLogger` gets created as `fritzlogger` that can get imported by: >>> from fritzconnection.core.logger import fritzlogger The fritzlogger instance is preset to report on DEBUG level, the default handler is the NullHandler. To d...
0
0
0
a56cd2a49815cc48300f329be9c06010117d07aa
1,518
py
Python
build/lib/abp/openai/envs/wolf_hunt/env_map.py
LinearZoetrope/abp
2459c1b4d77606c1d70715ce8378d738ba102f37
[ "MIT" ]
null
null
null
build/lib/abp/openai/envs/wolf_hunt/env_map.py
LinearZoetrope/abp
2459c1b4d77606c1d70715ce8378d738ba102f37
[ "MIT" ]
9
2018-11-14T23:35:05.000Z
2019-05-22T18:31:30.000Z
build/lib/abp/openai/envs/wolf_hunt/env_map.py
Zaerei/abp
2459c1b4d77606c1d70715ce8378d738ba102f37
[ "MIT" ]
1
2018-11-14T22:34:09.000Z
2018-11-14T22:34:09.000Z
import numpy as np class EnvMap(object): """EnvMap object used to load and render map from file"""
25.3
72
0.549407
import numpy as np class EnvMap(object): """EnvMap object used to load and render map from file""" def __init__(self, map_path): super(EnvMap, self).__init__() self.map_path = map_path self.load_map() def get_predator_locations(self): predator_locations = {} for r...
1,163
0
243
23ae67d3bbd3324973fbb5fe0084917a06072d45
722
py
Python
exercises/ex6_calculate_square_root_C_D_H.py
ivanlmj/SnakeEggs
540843dcf6fba4b3fe0d6d57dd19654f33cccb74
[ "MIT" ]
1
2019-05-20T18:19:45.000Z
2019-05-20T18:19:45.000Z
exercises/ex6_calculate_square_root_C_D_H.py
ivanlmj/SnakeEggs
540843dcf6fba4b3fe0d6d57dd19654f33cccb74
[ "MIT" ]
null
null
null
exercises/ex6_calculate_square_root_C_D_H.py
ivanlmj/SnakeEggs
540843dcf6fba4b3fe0d6d57dd19654f33cccb74
[ "MIT" ]
null
null
null
""" Write a program that calculates and prints the value according to the given formula: Q = Square root of [(2 * C * D)/H] Following are the fixed values of C and H: C is 50. H is 30. D is the variable whose values should be input to your program in a comma-separated sequence....
21.235294
72
0.619114
""" Write a program that calculates and prints the value according to the given formula: Q = Square root of [(2 * C * D)/H] Following are the fixed values of C and H: C is 50. H is 30. D is the variable whose values should be input to your program in a comma-separated sequence....
0
0
0
51b9fe8e4d203a790dfece90649cf230af652ce4
932
py
Python
dataloader/data_preprocessing/helpers/tikz_standalone.py
ifnspaml/IFN_Dataloader
864a10f0dfea27cbbe46f18cf3c9958768f3c0be
[ "MIT" ]
6
2020-09-18T06:25:20.000Z
2021-11-16T22:33:37.000Z
dataloader/data_preprocessing/helpers/tikz_standalone.py
ifnspaml/IFN_Dataloader
864a10f0dfea27cbbe46f18cf3c9958768f3c0be
[ "MIT" ]
null
null
null
dataloader/data_preprocessing/helpers/tikz_standalone.py
ifnspaml/IFN_Dataloader
864a10f0dfea27cbbe46f18cf3c9958768f3c0be
[ "MIT" ]
1
2021-03-05T08:36:49.000Z
2021-03-05T08:36:49.000Z
# this routine creates a standalone tikz image from the code of a single tikz image
38.833333
83
0.592275
# this routine creates a standalone tikz image from the code of a single tikz image def create_standalone(filename): with open(filename, "r") as f: lines = f.readlines() f.close() with open(filename, "w") as f: f.write("\\documentclass[convert={convertexe={magick.exe}}]{standalone}\n") ...
826
0
23
8b49f5188eea943afa71043a14a374206a7dcd27
171
py
Python
recipemaster/context_processors.py
FamilieKamperud/recipemaster
44210b22ba8dd6410a4c5db41fa4dfcf1b467e80
[ "MIT" ]
null
null
null
recipemaster/context_processors.py
FamilieKamperud/recipemaster
44210b22ba8dd6410a4c5db41fa4dfcf1b467e80
[ "MIT" ]
null
null
null
recipemaster/context_processors.py
FamilieKamperud/recipemaster
44210b22ba8dd6410a4c5db41fa4dfcf1b467e80
[ "MIT" ]
null
null
null
from django.conf import settings
21.375
70
0.678363
from django.conf import settings def analytics(request): if not settings.DEBUG: return {'analytics_id': getattr(settings, 'ANALYTICS_ID', '')} return {}
114
0
23
530dad2631c0460de656c8f416927e6c8960bedf
20,643
py
Python
nibabel/tests/test_nifti1.py
satra/nibabel
b04fe7c29e4c097edc9d519fccf1c804969232f1
[ "BSD-3-Clause" ]
3
2017-01-10T17:25:50.000Z
2021-02-23T04:36:35.000Z
nibabel/tests/test_nifti1.py
satra/nibabel
b04fe7c29e4c097edc9d519fccf1c804969232f1
[ "BSD-3-Clause" ]
9
2015-10-27T15:13:37.000Z
2016-08-15T17:18:35.000Z
nibabel/tests/test_nifti1.py
satra/nibabel
b04fe7c29e4c097edc9d519fccf1c804969232f1
[ "BSD-3-Clause" ]
4
2015-07-21T20:27:15.000Z
2020-04-17T14:23:02.000Z
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the NiBabel package for the # copyright and license terms. # ### ### ### #...
37.46461
78
0.624619
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the NiBabel package for the # copyright and license terms. # ### ### ### #...
18,009
432
497
96b2185699b7d54b0081ffe886f977d686a9dc6c
4,321
py
Python
src/components/tower.py
FRCTeam2984/infiniterecharge2020
8f3e8515c69cd9c378f19a0d0e24a5de2b5011e2
[ "MIT" ]
null
null
null
src/components/tower.py
FRCTeam2984/infiniterecharge2020
8f3e8515c69cd9c378f19a0d0e24a5de2b5011e2
[ "MIT" ]
2
2020-01-04T21:00:21.000Z
2020-01-05T03:07:54.000Z
src/components/tower.py
FRCTeam2984/infiniterecharge2020
8f3e8515c69cd9c378f19a0d0e24a5de2b5011e2
[ "MIT" ]
1
2019-12-07T19:48:46.000Z
2019-12-07T19:48:46.000Z
import numpy as np from networktables import NetworkTables from utils import lazytalonsrx
33.238462
88
0.656561
import numpy as np from networktables import NetworkTables from utils import lazytalonsrx class TowerStage: LOW = 0 HIGH = 1 BOTH = 2 class Tower: # speeds at which to run motors LT_FEED_SPEED = 0.4 HT_FEED_SPEED = 0.4 LT_INTAKE_SLOW_SPEED = 0.2 HT_INTAKE_SLOW_SPEED = 0.3 LT_...
1,095
3,087
46
59dd16e6d73195cb4a3d42e0eee92b7612e8c1cf
992
py
Python
research/cv/ArtTrack/src/dataset/mpii.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ArtTrack/src/dataset/mpii.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ArtTrack/src/dataset/mpii.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.740741
92
0.645161
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
202
3
77
f01018039956a1980a5543d0afe369feca9ebc10
4,751
py
Python
python/cudf/cudf/tests/test_resampling.py
Ahsantw/cudf
e099688d5ca7dd20104930485a829881a68c522a
[ "Apache-2.0" ]
239
2018-10-10T09:55:22.000Z
2018-10-28T20:47:23.000Z
python/cudf/cudf/tests/test_resampling.py
Ahsantw/cudf
e099688d5ca7dd20104930485a829881a68c522a
[ "Apache-2.0" ]
25
2018-10-10T14:46:32.000Z
2018-10-28T22:16:14.000Z
python/cudf/cudf/tests/test_resampling.py
Ahsantw/cudf
e099688d5ca7dd20104930485a829881a68c522a
[ "Apache-2.0" ]
19
2018-10-10T12:42:51.000Z
2018-10-26T16:33:22.000Z
# Copyright (c) 2021-2022, NVIDIA CORPORATION. import numpy as np import pandas as pd import pytest import cudf from cudf.testing._utils import assert_eq @pytest.mark.parametrize("ts_resolution", ["ns", "s", "ms"]) @pytest.mark.parametrize("rule", ["2S", "10S"]) @pytest.mark.parametrize("rule", ["2S", "10S"])...
29.509317
76
0.608083
# Copyright (c) 2021-2022, NVIDIA CORPORATION. import numpy as np import pandas as pd import pytest import cudf from cudf.testing._utils import assert_eq def assert_resample_results_equal(lhs, rhs, **kwargs): assert_eq( lhs.sort_index(), rhs.sort_index(), check_dtype=False, check...
3,816
0
248
7775bd45b7ab18ca4b47eafa4d2b185cacc33198
1,808
py
Python
examples/segmentation/segmentor.py
rriyaldhi/flexinfer
523b9bf49226001c0477a3635ffe9071387ae788
[ "Apache-2.0" ]
81
2020-06-17T07:46:19.000Z
2022-03-29T23:29:33.000Z
examples/segmentation/segmentor.py
rriyaldhi/flexinfer
523b9bf49226001c0477a3635ffe9071387ae788
[ "Apache-2.0" ]
1
2020-07-02T08:14:49.000Z
2020-07-20T11:34:30.000Z
examples/segmentation/segmentor.py
rriyaldhi/flexinfer
523b9bf49226001c0477a3635ffe9071387ae788
[ "Apache-2.0" ]
20
2020-06-29T01:30:44.000Z
2022-03-23T09:47:41.000Z
import argparse import sys sys.path.insert(0, '../../') import cv2 import numpy as np from flexinfer.misc import Config, set_device from flexinfer.preprocess import build_preprocess from flexinfer.model import build_model from flexinfer.postprocess import build_postprocess PALETTE = [[0, 0, 0], [128, 0, 0], [0, 128,...
26.985075
79
0.627212
import argparse import sys sys.path.insert(0, '../../') import cv2 import numpy as np from flexinfer.misc import Config, set_device from flexinfer.preprocess import build_preprocess from flexinfer.model import build_model from flexinfer.postprocess import build_postprocess PALETTE = [[0, 0, 0], [128, 0, 0], [0, 128,...
857
0
46
ed34d3c4bb663b4131499d9255d90043cd8486d9
14,686
py
Python
tests.py
subwavesignals/hb_project
a3c19b480c43f962b7f429a856f9960d62389ca9
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
tests.py
subwavesignals/hb_project
a3c19b480c43f962b7f429a856f9960d62389ca9
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
tests.py
subwavesignals/hb_project
a3c19b480c43f962b7f429a856f9960d62389ca9
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
import unittest from server import app from model import (db, connect_to_db, example_data, User, Review, CriticReview, Game, CurrentGame, Cover, Franchise, Genre, Developer, Platform, Screenshot) from correlation import pearson import pull_data import datetime import gen_fake_dat...
43.321534
91
0.634209
import unittest from server import app from model import (db, connect_to_db, example_data, User, Review, CriticReview, Game, CurrentGame, Cover, Franchise, Genre, Developer, Platform, Screenshot) from correlation import pearson import pull_data import datetime import gen_fake_dat...
7,169
0
783
eaa71e17a2294d8c7c581a1cd6e7dc14fff64008
526
py
Python
iota/exceptions.py
plenarius/iota.lib.py
ac6167dadb8b60a64b33eeb9db755be32c7cef12
[ "MIT" ]
62
2017-12-20T20:22:15.000Z
2020-08-11T06:07:31.000Z
iota/exceptions.py
plenarius/iota.lib.py
ac6167dadb8b60a64b33eeb9db755be32c7cef12
[ "MIT" ]
null
null
null
iota/exceptions.py
plenarius/iota.lib.py
ac6167dadb8b60a64b33eeb9db755be32c7cef12
[ "MIT" ]
20
2017-12-20T20:36:13.000Z
2021-06-12T13:55:30.000Z
# coding=utf-8 from __future__ import absolute_import, division, print_function, \ unicode_literals def with_context(exc, context): # type: (Exception, dict) -> Exception """ Attaches a ``context`` value to an Exception. Before:: exc = Exception('Frog blast the vent core!') exc.context = { ... }...
20.230769
72
0.644487
# coding=utf-8 from __future__ import absolute_import, division, print_function, \ unicode_literals def with_context(exc, context): # type: (Exception, dict) -> Exception """ Attaches a ``context`` value to an Exception. Before:: exc = Exception('Frog blast the vent core!') exc.context = { ... }...
0
0
0
6b9eba98ef0f631c7b67f1c52fe69e69b037a827
241
py
Python
configserver/web/templates.py
jovanbrakus/cherrypy-example
d3eaa00d99816366e2c09699ebeba0bb3b102aaa
[ "BSD-3-Clause" ]
13
2015-02-17T07:04:16.000Z
2020-09-23T03:50:37.000Z
configserver/web/templates.py
Alex237/CherryXSS
4d8d2127240ba0f591f97a053ea2543bc3579273
[ "BSD-3-Clause" ]
null
null
null
configserver/web/templates.py
Alex237/CherryXSS
4d8d2127240ba0f591f97a053ea2543bc3579273
[ "BSD-3-Clause" ]
5
2015-05-28T18:42:13.000Z
2020-03-21T02:30:09.000Z
__author__ = 'Jovan Brakus <jovan@brakus.rs>' __contact__ = 'jovan@brakus.rs' __date__ = '31 May 2012' from jinja2 import Environment, PackageLoader jinja_env = Environment(loader=PackageLoader('configserver', 'static/templates'))
40.166667
81
0.751037
__author__ = 'Jovan Brakus <jovan@brakus.rs>' __contact__ = 'jovan@brakus.rs' __date__ = '31 May 2012' from jinja2 import Environment, PackageLoader jinja_env = Environment(loader=PackageLoader('configserver', 'static/templates'))
0
0
0
e1437d9f63348119ad0f1ab057809ed7ce89fee0
150
py
Python
zustand.py
Stefan-Gernhardt/ML-ReinforcementLearning-VehicleControl
f68aca1dae5a12ee29168df8a3e55e49ded57a55
[ "MIT" ]
null
null
null
zustand.py
Stefan-Gernhardt/ML-ReinforcementLearning-VehicleControl
f68aca1dae5a12ee29168df8a3e55e49ded57a55
[ "MIT" ]
null
null
null
zustand.py
Stefan-Gernhardt/ML-ReinforcementLearning-VehicleControl
f68aca1dae5a12ee29168df8a3e55e49ded57a55
[ "MIT" ]
null
null
null
from enum import Enum
15
26
0.586667
from enum import Enum class Zustand(Enum): READY = 0 PLAY = 1 HIT = 2 Collision = 3 GAME_OVER_LOST = 4 GAME_OVER_WIN = 5
0
105
23
b72abe75e3722a3483ad2f4e12d86cf8fd2a32d6
4,090
py
Python
main.py
TaigaOsguthorpe/PySide2-Multiple-Windows
2d2574288f290f50fcf7f908103ebe1d525395c9
[ "CC0-1.0" ]
null
null
null
main.py
TaigaOsguthorpe/PySide2-Multiple-Windows
2d2574288f290f50fcf7f908103ebe1d525395c9
[ "CC0-1.0" ]
null
null
null
main.py
TaigaOsguthorpe/PySide2-Multiple-Windows
2d2574288f290f50fcf7f908103ebe1d525395c9
[ "CC0-1.0" ]
null
null
null
import sys from PySide2.QtWidgets import QApplication, QMainWindow from PySide2.QtCore import QFile from PySide2 import QtCore from PySide2.QtGui import QPixmap from ui_files.main_gui import Ui_MainWindow from ui_files.image_window_gui import Ui_MainWindow as Ui_ImageWindow from pathlib import Path #class ImageWind...
36.19469
156
0.647433
import sys from PySide2.QtWidgets import QApplication, QMainWindow from PySide2.QtCore import QFile from PySide2 import QtCore from PySide2.QtGui import QPixmap from ui_files.main_gui import Ui_MainWindow from ui_files.image_window_gui import Ui_MainWindow as Ui_ImageWindow from pathlib import Path class MainWindow(Q...
3,328
19
206
5ebca8ed469afbba8c886b1cccfa304ab8b0ddb7
4,886
py
Python
preprocessing/create_labels.py
Jack-0-0/Detecting-and-Classifying-Animal-Calls
7632216c389b579ef048823247c835cc5942d6df
[ "MIT" ]
null
null
null
preprocessing/create_labels.py
Jack-0-0/Detecting-and-Classifying-Animal-Calls
7632216c389b579ef048823247c835cc5942d6df
[ "MIT" ]
null
null
null
preprocessing/create_labels.py
Jack-0-0/Detecting-and-Classifying-Animal-Calls
7632216c389b579ef048823247c835cc5942d6df
[ "MIT" ]
1
2019-10-24T21:19:43.000Z
2019-10-24T21:19:43.000Z
import numpy as np import pandas as pd import glob import sys import os def find_label(file, path): """Find audit label relating to spectrogram file. # Arguments file: spectrogram file. path: spectrogram directory. # Returns audit label file path relating to spectrogram file. If the ...
35.151079
113
0.576955
import numpy as np import pandas as pd import glob import sys import os def find_label(file, path): """Find audit label relating to spectrogram file. # Arguments file: spectrogram file. path: spectrogram directory. # Returns audit label file path relating to spectrogram file. If the ...
0
0
0
5cf1c1a592e9a11f76ac8c1ab93efa37046a37fb
1,654
py
Python
sight.py
userElaina/small-tools
314713a646b48e7f49179b8f5f51c5eac3f28db1
[ "MIT" ]
2
2021-03-19T08:34:01.000Z
2021-03-26T11:31:40.000Z
sight.py
userElaina/small-tools
314713a646b48e7f49179b8f5f51c5eac3f28db1
[ "MIT" ]
null
null
null
sight.py
userElaina/small-tools
314713a646b48e7f49179b8f5f51c5eac3f28db1
[ "MIT" ]
null
null
null
import sys import tkinter as tk l=sys.argv[1:] js=dict() for j in range(len(l)): i=l[j] if i.startswith('-'): try: js[i[1:]]=l[j+1] except: js['h']=1 if 'help' in js or 'h' in js: print('sight -x 1920 -y 1080 -color #ff0000 -name sight -r 20 -wd 6 -len 40') exit() u('waits',0.2,flo...
23.971014
103
0.530834
import sys import tkinter as tk l=sys.argv[1:] js=dict() for j in range(len(l)): i=l[j] if i.startswith('-'): try: js[i[1:]]=l[j+1] except: js['h']=1 if 'help' in js or 'h' in js: print('sight -x 1920 -y 1080 -color #ff0000 -name sight -r 20 -wd 6 -len 40') exit() def u(k:str,v:all...
338
0
50
e723383cba212af7b96caf20a8333eeaff4221c5
461
py
Python
GradescpeExportRenamer.py
ryancarr/ClassRoster
c84a5ba000dcb7408550779fafc83d103d07a6fc
[ "MIT" ]
null
null
null
GradescpeExportRenamer.py
ryancarr/ClassRoster
c84a5ba000dcb7408550779fafc83d103d07a6fc
[ "MIT" ]
null
null
null
GradescpeExportRenamer.py
ryancarr/ClassRoster
c84a5ba000dcb7408550779fafc83d103d07a6fc
[ "MIT" ]
null
null
null
# Name : Gradescope Export Renamer # Author : Ryan Carr # Modified : 05/17/2019 # Purppose : Opens .yml file in exports folder and renames .pdfs according # to student name. # Ask user for full path to .yml file # Open yml file and skip first line # Process file one submission at a time storing filen...
28.8125
77
0.726681
# Name : Gradescope Export Renamer # Author : Ryan Carr # Modified : 05/17/2019 # Purppose : Opens .yml file in exports folder and renames .pdfs according # to student name. # Ask user for full path to .yml file # Open yml file and skip first line # Process file one submission at a time storing filen...
0
0
0
5844ac797738ee1de2c09b685aafbad8cec46a71
10,384
py
Python
orange3/Orange/tests/test_tab_reader.py
rgschmitz1/BioDepot-workflow-builder
f74d904eeaf91ec52ec9b703d9fb38e9064e5a66
[ "MIT" ]
54
2017-01-08T17:21:49.000Z
2021-11-02T08:46:07.000Z
orange3/Orange/tests/test_tab_reader.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
22
2017-03-28T06:03:14.000Z
2021-07-28T05:43:55.000Z
orange3/Orange/tests/test_tab_reader.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
21
2017-01-26T21:12:09.000Z
2022-01-31T21:34:59.000Z
# Test methods with long descriptive names can omit docstrings # pylint: disable=missing-docstring import io from os import path, remove import unittest import tempfile import shutil import time from collections import OrderedDict import numpy as np from Orange.data import Table, DiscreteVariable from Orange.data.io...
35.319728
88
0.573286
# Test methods with long descriptive names can omit docstrings # pylint: disable=missing-docstring import io from os import path, remove import unittest import tempfile import shutil import time from collections import OrderedDict import numpy as np from Orange.data import Table, DiscreteVariable from Orange.data.io...
9,495
18
531
1c59d326eca066bfdc7a173f8079d8d2014dd45c
20,641
py
Python
airrun/utils/adb.py
Hanlen520/airtest_run
75111163443fd7ab3dfaf20f1bdc90102abba29a
[ "Apache-2.0" ]
1
2020-04-15T10:49:09.000Z
2020-04-15T10:49:09.000Z
airrun/utils/adb.py
Hanlen520/airtest_run
75111163443fd7ab3dfaf20f1bdc90102abba29a
[ "Apache-2.0" ]
null
null
null
airrun/utils/adb.py
Hanlen520/airtest_run
75111163443fd7ab3dfaf20f1bdc90102abba29a
[ "Apache-2.0" ]
1
2020-07-08T04:23:40.000Z
2020-07-08T04:23:40.000Z
import logging import os import platform import re import time import traceback import prettytable from airtest.core.android.constant import DEFAULT_ADB_PATH from airrun.common.command_helper import command_execute from airrun.common.exception import LocalPackageNotFoundException from airrun.common.helper import deal...
37.873394
114
0.53854
import logging import os import platform import re import time import traceback import prettytable from airtest.core.android.constant import DEFAULT_ADB_PATH from airrun.common.command_helper import command_execute from airrun.common.exception import LocalPackageNotFoundException from airrun.common.helper import deal...
17,854
2,682
23
60cbf3b63690e3a52221030fd20e962fb604c340
2,821
py
Python
scripts/tools/filter_bugs.py
ganler/LEMON
bc8d24ad5142c5eb7f8cdf6dfed09abf8da23619
[ "Apache-2.0" ]
29
2020-06-30T06:34:37.000Z
2022-03-24T03:12:03.000Z
scripts/tools/filter_bugs.py
terminiter/LEMON
128ee67f8c72ccb3d38c6d1d0d67c8191c833560
[ "Apache-2.0" ]
5
2020-11-28T03:32:53.000Z
2022-03-12T00:32:46.000Z
scripts/tools/filter_bugs.py
terminiter/LEMON
128ee67f8c72ccb3d38c6d1d0d67c8191c833560
[ "Apache-2.0" ]
18
2020-07-01T00:25:18.000Z
2022-01-17T07:56:48.000Z
""" # Part of localization phase """ import sys import os import pickle import keras import keras.backend as K from scripts.tools.utils import ModelUtils def simplify_layer_name(layer_name:str): """ simplify layer name 'conv2d_copy_LA' -> conv2d """ if 'copy' in layer_name: layer_name = layer_...
36.636364
95
0.648352
""" # Part of localization phase """ import sys import os import pickle import keras import keras.backend as K from scripts.tools.utils import ModelUtils def simplify_layer_name(layer_name:str): """ simplify layer name 'conv2d_copy_LA' -> conv2d """ if 'copy' in layer_name: layer_name = layer_...
1,672
0
46
e55d81a16087c62c75dcbc22f1a00ae460fb60ec
3,911
py
Python
build/lib/DataCollectTool/RecToolUI.py
Artori-kun/SpeechCommandDataCollectingTool
11cc64682e0bcff7336364b89aad06fa6872beda
[ "MIT" ]
null
null
null
build/lib/DataCollectTool/RecToolUI.py
Artori-kun/SpeechCommandDataCollectingTool
11cc64682e0bcff7336364b89aad06fa6872beda
[ "MIT" ]
null
null
null
build/lib/DataCollectTool/RecToolUI.py
Artori-kun/SpeechCommandDataCollectingTool
11cc64682e0bcff7336364b89aad06fa6872beda
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'RecToolUI.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
46.559524
115
0.693173
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'RecToolUI.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjec...
3,617
3
76
16facd8fd413e99b113f5ee437d88244f0f7c306
1,919
py
Python
plenum/persistence/client_req_rep_store.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
148
2017-07-11T19:05:25.000Z
2022-03-16T21:31:20.000Z
plenum/persistence/client_req_rep_store.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
561
2017-06-29T17:59:56.000Z
2022-03-09T15:47:14.000Z
plenum/persistence/client_req_rep_store.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
378
2017-06-29T17:45:27.000Z
2022-03-26T07:27:59.000Z
from abc import abstractmethod from typing import Any, Sequence from common.serializers.serialization import client_req_rep_store_serializer from plenum.common.request import Request
24.291139
76
0.648254
from abc import abstractmethod from typing import Any, Sequence from common.serializers.serialization import client_req_rep_store_serializer from plenum.common.request import Request class ClientReqRepStore: @abstractmethod def __init__(self, *args, **kwargs): pass @property @abstractmethod ...
913
798
23
3009a77ac62feb849ae94774db9494ef575ee1db
5,289
py
Python
webapp.py
isuruf/github-clang-format
a39641929b2370c5026f3e95aa03b54b1c380d26
[ "MIT" ]
1
2017-07-20T15:48:28.000Z
2017-07-20T15:48:28.000Z
webapp.py
isuruf/github-clang-format
a39641929b2370c5026f3e95aa03b54b1c380d26
[ "MIT" ]
null
null
null
webapp.py
isuruf/github-clang-format
a39641929b2370c5026f3e95aa03b54b1c380d26
[ "MIT" ]
null
null
null
from contextlib import contextmanager import os import tornado.httpserver import tornado.ioloop import tornado.web import requests import tempfile import shutil import subprocess from git import GitCommandError, Repo, Actor import github from fnmatch import fnmatch @contextmanager if __name__ == "__main__": ma...
35.496644
122
0.607298
from contextlib import contextmanager import os import tornado.httpserver import tornado.ioloop import tornado.web import requests import tempfile import shutil import subprocess from git import GitCommandError, Repo, Actor import github from fnmatch import fnmatch @contextmanager def tmp_directory(): tmp_dir = ...
4,772
25
167
a89761121dbc5b48c8b71d5c4986a3d03ce34808
31,600
py
Python
newapi/tests/integ/test_integration.py
hellais/ooni-measurements
05e2a144b506c015d9e2f90502a7ca036ce2c9ef
[ "BSD-3-Clause" ]
null
null
null
newapi/tests/integ/test_integration.py
hellais/ooni-measurements
05e2a144b506c015d9e2f90502a7ca036ce2c9ef
[ "BSD-3-Clause" ]
null
null
null
newapi/tests/integ/test_integration.py
hellais/ooni-measurements
05e2a144b506c015d9e2f90502a7ca036ce2c9ef
[ "BSD-3-Clause" ]
null
null
null
""" Integration test for API Warning: this test runs against a real database See README.adoc Lint using: black -t py37 -l 100 --fast ooniapi/tests/integ/test_integration.py Test using: pytest-3 -k test_aggregation """ from datetime import datetime, timedelta from hashlib import shake_128 from urllib.parse i...
35.545557
190
0.664399
""" Integration test for API Warning: this test runs against a real database See README.adoc Lint using: black -t py37 -l 100 --fast ooniapi/tests/integ/test_integration.py Test using: pytest-3 -k test_aggregation """ from datetime import datetime, timedelta from hashlib import shake_128 from urllib.parse i...
22,522
0
1,346
9d1226bb934aa8d85aebc5a8286c5873c99e466e
1,136
py
Python
geojson_buffer.py
jamaps/shell_scripts
439dae46e8c9b6f8e950ac442bc8a4dd477eff9b
[ "MIT" ]
9
2016-10-22T18:37:18.000Z
2021-07-15T23:36:33.000Z
geojson_buffer.py
jamaps/shell_scripts
439dae46e8c9b6f8e950ac442bc8a4dd477eff9b
[ "MIT" ]
null
null
null
geojson_buffer.py
jamaps/shell_scripts
439dae46e8c9b6f8e950ac442bc8a4dd477eff9b
[ "MIT" ]
3
2016-10-24T18:39:27.000Z
2020-07-05T15:30:20.000Z
# creates a polygonoal buffer in geojson format given ... # xin,yin = centre point # radius = buffer radius # npoints = number of points (e.g. 3 for triangle, 6 for hex, Inf. for circle, etc.) import math import matplotlib.pyplot as plt print buffer(50,50,1,24)
23.183673
84
0.49912
# creates a polygonoal buffer in geojson format given ... # xin,yin = centre point # radius = buffer radius # npoints = number of points (e.g. 3 for triangle, 6 for hex, Inf. for circle, etc.) import math import matplotlib.pyplot as plt def buffer(xin,yin,radius,npoints): x = [] y = [] coords = [] a...
849
0
23
5c3d230b1a892a1d3a050db854bf46226b9496f0
3,913
py
Python
tests/data/embeddings_test.py
mrbot-ai/deep_qa
a1731331e12b921b4dbb43433f9c028b362495e8
[ "Apache-2.0" ]
2
2017-01-26T13:07:13.000Z
2019-03-27T16:11:56.000Z
deep_qa-master/tests/data/embeddings_test.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
null
null
null
deep_qa-master/tests/data/embeddings_test.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
1
2019-01-04T13:08:27.000Z
2019-01-04T13:08:27.000Z
# pylint: disable=no-self-use,invalid-name import gzip import numpy import pytest from deep_qa.data.embeddings import PretrainedEmbeddings from deep_qa.data.data_indexer import DataIndexer from ..common.test_case import DeepQaTestCase # pylint: disable=protected-access
56.710145
101
0.718375
# pylint: disable=no-self-use,invalid-name import gzip import numpy import pytest from deep_qa.data.embeddings import PretrainedEmbeddings from deep_qa.data.data_indexer import DataIndexer from ..common.test_case import DeepQaTestCase class TestPretrainedEmbeddings(DeepQaTestCase): # pylint: disable=protected-acc...
3,455
26
157
4c5befdd5e200333700e147cce3fbc7aba3757e3
630
py
Python
instructors/projects/decoding_fun/examples/rotator.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/projects/decoding_fun/examples/rotator.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/projects/decoding_fun/examples/rotator.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
import rot13 if __name__ == '__main__': """ Perform rotational encryption on an input. """ source_file = 'cc.txt' state = 'r' alphabet = 'abcdefghijklmnopqrstuvwxyz' rotation = 13 output_file = 'ccenc.txt' output_mode = 'w' rotation_dict = rot13.assign_and_return_posit...
19.090909
73
0.660317
import rot13 if __name__ == '__main__': """ Perform rotational encryption on an input. """ source_file = 'cc.txt' state = 'r' alphabet = 'abcdefghijklmnopqrstuvwxyz' rotation = 13 output_file = 'ccenc.txt' output_mode = 'w' rotation_dict = rot13.assign_and_return_posit...
0
0
0
2c810743481e3cc8b1ed04f6e9a8ea16cf1dd34b
1,804
py
Python
test/test_manager/make_tc_list.py
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
301
2015-01-20T16:11:32.000Z
2021-11-25T04:29:36.000Z
test/test_manager/make_tc_list.py
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
13
2015-06-04T09:55:15.000Z
2020-09-23T00:38:07.000Z
test/test_manager/make_tc_list.py
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
233
2015-01-26T03:41:59.000Z
2022-03-18T23:54:04.000Z
#!/usr/bin/python3 ''' /****************************************************************** * * Copyright 2018 Samsung Electronics 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...
32.214286
104
0.55765
#!/usr/bin/python3 ''' /****************************************************************** * * Copyright 2018 Samsung Electronics 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...
702
0
23
01254b2360e57505c2e3c9d6e0f430a01875142e
1,046
py
Python
api/encrypt.py
ChrisBoesch/angular-csv-viewer
772557c7be900c2b3acce2d8d6bf0a871f32d69a
[ "MIT" ]
2
2016-08-10T02:34:50.000Z
2021-03-24T08:00:02.000Z
api/encrypt.py
ChrisBoesch/angular-csv-viewer
772557c7be900c2b3acce2d8d6bf0a871f32d69a
[ "MIT" ]
null
null
null
api/encrypt.py
ChrisBoesch/angular-csv-viewer
772557c7be900c2b3acce2d8d6bf0a871f32d69a
[ "MIT" ]
1
2015-07-01T02:45:39.000Z
2015-07-01T02:45:39.000Z
#!/usr/bin/env python # # Encrypt sys.stdin # import fileinput import os.path import logging from Crypto.Cipher import PKCS1_v1_5 from Crypto.PublicKey import RSA ROOT = os.path.dirname(__file__) PRIV_KEY = os.path.join(ROOT, 'rsa_1024_priv.pem') PUB_KEY = os.path.join(ROOT, 'rsa_1024_pub.pem') if __name__ ...
20.92
59
0.705545
#!/usr/bin/env python # # Encrypt sys.stdin # import fileinput import os.path import logging from Crypto.Cipher import PKCS1_v1_5 from Crypto.PublicKey import RSA ROOT = os.path.dirname(__file__) PRIV_KEY = os.path.join(ROOT, 'rsa_1024_priv.pem') PUB_KEY = os.path.join(ROOT, 'rsa_1024_pub.pem') def get_key(pem_...
568
0
92
bdb8ed994d9fd8d360aa012223f40d4422917b63
9,331
py
Python
lundy/datasets.py
Vallher/Lundy
fb15cefa2bbf9f523e9d1b6e2fc68eca59ad9a30
[ "MIT" ]
null
null
null
lundy/datasets.py
Vallher/Lundy
fb15cefa2bbf9f523e9d1b6e2fc68eca59ad9a30
[ "MIT" ]
null
null
null
lundy/datasets.py
Vallher/Lundy
fb15cefa2bbf9f523e9d1b6e2fc68eca59ad9a30
[ "MIT" ]
null
null
null
import copy import hashlib import importlib import inspect import json import os import sys from database import get_database
30.197411
141
0.588576
import copy import hashlib import importlib import inspect import json import os import sys from database import get_database def dumper(obj): try: return obj.toJSON() except: return obj.__dict__ class LundyObject(object): @property def obj_hash(self): return hashlib.md5(...
7,158
1,852
184
01029686157e349c178c6c525cd0233c6cea6f5b
5,280
py
Python
sanskrit_parser/generator/sutra.py
avinashvarna/sanskrit_parser
79338213128b29927fe2f06031379bb1e3864a83
[ "MIT" ]
54
2017-06-30T09:11:53.000Z
2022-03-22T15:35:41.000Z
sanskrit_parser/generator/sutra.py
avinashvarna/sanskrit_parser
79338213128b29927fe2f06031379bb1e3864a83
[ "MIT" ]
159
2017-06-30T07:04:36.000Z
2021-06-17T17:03:43.000Z
sanskrit_parser/generator/sutra.py
avinashvarna/sanskrit_parser
79338213128b29927fe2f06031379bb1e3864a83
[ "MIT" ]
18
2017-08-17T13:22:00.000Z
2022-01-20T01:08:58.000Z
""" Operational Sutras """ from sanskrit_parser.base.sanskrit_base import SanskritImmutableString, SLP1 from decimal import Decimal from copy import deepcopy from sanskrit_parser.generator.paninian_object import PaninianObject import logging logger = logging.getLogger(__name__) # Global Domains # Base class
30.877193
85
0.540341
""" Operational Sutras """ from sanskrit_parser.base.sanskrit_base import SanskritImmutableString, SLP1 from decimal import Decimal from copy import deepcopy from sanskrit_parser.generator.paninian_object import PaninianObject import logging logger = logging.getLogger(__name__) # Global Domains class GlobalDomains(...
4,076
637
250
e7f82b756d91da90b530eac516827be92b6587ce
1,842
py
Python
satellite/tests/vault/test_transformer.py
mnimmny/vgs-satellite
82624dc76b1e7b767e7b176c24f9867a1591f91c
[ "Apache-2.0" ]
null
null
null
satellite/tests/vault/test_transformer.py
mnimmny/vgs-satellite
82624dc76b1e7b767e7b176c24f9867a1591f91c
[ "Apache-2.0" ]
null
null
null
satellite/tests/vault/test_transformer.py
mnimmny/vgs-satellite
82624dc76b1e7b767e7b176c24f9867a1591f91c
[ "Apache-2.0" ]
null
null
null
import pytest from satellite.vault.transformer import ( FormDataTransformer, TransformerError, XMLTransformer, ) XML_PAYLOAD = b"""<CC> <Foo>PREFIX<Bar>TEXT1</Bar>TEXT2<Bar>TEXT3</Bar>TAIL</Foo> <Number>4111111111111111</Number> <Number>4444333322221111</Number> <CVC>123</CVC> </CC>""" ...
24.891892
71
0.635179
import pytest from satellite.vault.transformer import ( FormDataTransformer, TransformerError, XMLTransformer, ) XML_PAYLOAD = b"""<CC> <Foo>PREFIX<Bar>TEXT1</Bar>TEXT2<Bar>TEXT3</Bar>TAIL</Foo> <Number>4111111111111111</Number> <Number>4444333322221111</Number> <CVC>123</CVC> </CC>""" ...
1,017
0
113
558c41df94a8f85f4bed27fc8c56b4797f223639
2,813
py
Python
test/python/test_io_utils/test_pink_graph_io.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
64
2019-08-18T19:23:23.000Z
2022-03-21T04:15:04.000Z
test/python/test_io_utils/test_pink_graph_io.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
120
2019-08-16T09:10:35.000Z
2022-03-17T09:42:58.000Z
test/python/test_io_utils/test_pink_graph_io.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
12
2019-10-04T07:35:55.000Z
2021-01-10T19:59:11.000Z
############################################################################ # Copyright ESIEE Paris (2018) # # # # Contributor(s) : Benjamin Perret # # ...
31.255556
81
0.515819
############################################################################ # Copyright ESIEE Paris (2018) # # # # Contributor(s) : Benjamin Perret # # ...
1,644
20
100
bb8b378cde978876649117f8b27141698922b9e2
1,800
py
Python
Scrapers/MovieTitleScraper.py
JeremyEudy/AutoTomato
393b5e0cd9e9f6468ed7554087f6e6b7ec655198
[ "MIT" ]
null
null
null
Scrapers/MovieTitleScraper.py
JeremyEudy/AutoTomato
393b5e0cd9e9f6468ed7554087f6e6b7ec655198
[ "MIT" ]
null
null
null
Scrapers/MovieTitleScraper.py
JeremyEudy/AutoTomato
393b5e0cd9e9f6468ed7554087f6e6b7ec655198
[ "MIT" ]
null
null
null
# **************************************************************************** # # # # |\ # # MovieTitleScraper.py ------| \---- ...
41.860465
105
0.388333
# **************************************************************************** # # # # |\ # # MovieTitleScraper.py ------| \---- ...
0
0
0
ffe3a14062bdb6e547ae9e5634c9d6699a29c16e
2,810
py
Python
utils/utils.py
GunjanChourasia/WS_DAN_PyTorch
6c12a1b5b0b8980e3b69d44474e0b5edb455570c
[ "MIT" ]
134
2019-11-30T07:36:21.000Z
2022-03-21T10:53:14.000Z
utils/utils.py
GunjanChourasia/WS_DAN_PyTorch
6c12a1b5b0b8980e3b69d44474e0b5edb455570c
[ "MIT" ]
9
2020-02-01T09:28:52.000Z
2021-06-07T04:20:46.000Z
utils/utils.py
GunjanChourasia/WS_DAN_PyTorch
6c12a1b5b0b8980e3b69d44474e0b5edb455570c
[ "MIT" ]
28
2019-11-30T09:21:20.000Z
2022-03-17T12:21:01.000Z
############################################################ # File: utils.py # # Created: 2019-11-18 20:50:50 # # Author : wvinzh # # Email : wvinzh@qq.com # # -----------...
32.674419
86
0.556584
############################################################ # File: utils.py # # Created: 2019-11-18 20:50:50 # # Author : wvinzh # # Email : wvinzh@qq.com # # -----------...
1,592
0
113
aacb44c73a5196446260ba164db40bd45fe507df
4,569
py
Python
app/views/old/users.py
WilliamBesseau/Groot
9dfdc05dc6da914a65a94a57b2b56dc63ddbdb8e
[ "MIT" ]
null
null
null
app/views/old/users.py
WilliamBesseau/Groot
9dfdc05dc6da914a65a94a57b2b56dc63ddbdb8e
[ "MIT" ]
null
null
null
app/views/old/users.py
WilliamBesseau/Groot
9dfdc05dc6da914a65a94a57b2b56dc63ddbdb8e
[ "MIT" ]
null
null
null
import bcrypt as b from flask import render_template, request, redirect, url_for, session, abort from sqlalchemy import or_ from app import app from app.models.users import User from app.models.speakers import Speaker from app.models.students import Student SALT = b'$2b$12$QSEeNz4SOAKE/RUZT4zNHO' @app.route('/login...
33.595588
104
0.615233
import bcrypt as b from flask import render_template, request, redirect, url_for, session, abort from sqlalchemy import or_ from app import app from app.models.users import User from app.models.speakers import Speaker from app.models.students import Student SALT = b'$2b$12$QSEeNz4SOAKE/RUZT4zNHO' @app.route('/login...
3,913
0
154
6f51bfe7889860f1edf4cadb61e7a714c79df798
148
py
Python
optimism/treigen/test/testutils.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
null
null
null
optimism/treigen/test/testutils.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
1
2022-03-12T00:01:12.000Z
2022-03-12T00:01:12.000Z
optimism/treigen/test/testutils.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
3
2021-12-23T19:53:31.000Z
2022-03-27T23:12:03.000Z
from pytest import approx
21.142857
35
0.614865
from pytest import approx def assert_array_approx(a,b): assert(len(a)==len(b)) for i in range(len(a)): assert a[i] == approx(b[i])
99
0
23
356993ed0f0b556d62379e918eb5b95a74b902f1
616
py
Python
game_files/settings.py
ChaeDLR/Bullfrog
bf9a74753e09046d52abbe314996bc99c1b83888
[ "MIT" ]
1
2020-12-27T21:46:29.000Z
2020-12-27T21:46:29.000Z
game_files/settings.py
ChaeDLR/Bullfrog
bf9a74753e09046d52abbe314996bc99c1b83888
[ "MIT" ]
null
null
null
game_files/settings.py
ChaeDLR/Bullfrog
bf9a74753e09046d52abbe314996bc99c1b83888
[ "MIT" ]
null
null
null
class Settings: """ organize our game settings """ def __init__(self): """ initialize our game settings """ self.screen_width = 800 self.screen_height = 600 self.screen_mid_x = (self.screen_width/2) self.screen_mid_y = (self.screen_height/2) self.direction_lis...
23.692308
50
0.600649
class Settings: """ organize our game settings """ def __init__(self): """ initialize our game settings """ self.screen_width = 800 self.screen_height = 600 self.screen_mid_x = (self.screen_width/2) self.screen_mid_y = (self.screen_height/2) self.direction_lis...
0
0
0
abbd6345d8fb492ffb84d82aa6765d8e1019d6d7
615
py
Python
edx_course_team_api/apps.py
ibm-skills-network/edx-course-team-api
662a756f61047bd2f1c10ede2feb6f1a24c2717d
[ "MIT" ]
null
null
null
edx_course_team_api/apps.py
ibm-skills-network/edx-course-team-api
662a756f61047bd2f1c10ede2feb6f1a24c2717d
[ "MIT" ]
null
null
null
edx_course_team_api/apps.py
ibm-skills-network/edx-course-team-api
662a756f61047bd2f1c10ede2feb6f1a24c2717d
[ "MIT" ]
null
null
null
""" edx_course_team_api Django application initialization. """ from django.apps import AppConfig class EdxCourseTeamApiConfig(AppConfig): """ Configuration for the edx_course_team_api Django application. """ name = 'edx_course_team_api' plugin_app = { 'url_config': { 'cms.dja...
22.777778
65
0.543089
""" edx_course_team_api Django application initialization. """ from django.apps import AppConfig class EdxCourseTeamApiConfig(AppConfig): """ Configuration for the edx_course_team_api Django application. """ name = 'edx_course_team_api' plugin_app = { 'url_config': { 'cms.dja...
0
0
0
534205e088ef8c7792a1be27b11aab8cb158f1c5
4,238
py
Python
nutanix-backup.py
deviscalio/nutanix-backup-script
f43bc37e84348e02dc3c7075eb252ae5914151df
[ "Apache-2.0" ]
null
null
null
nutanix-backup.py
deviscalio/nutanix-backup-script
f43bc37e84348e02dc3c7075eb252ae5914151df
[ "Apache-2.0" ]
null
null
null
nutanix-backup.py
deviscalio/nutanix-backup-script
f43bc37e84348e02dc3c7075eb252ae5914151df
[ "Apache-2.0" ]
null
null
null
import hashlib import json import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) from datetime import datetime import sys import click import glob import os @click.group() @cli.command(help="Create Ova for VM to back...
32.6
99
0.619396
import hashlib import json import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) from datetime import datetime import sys import click import glob import os @click.group() def cli(): pass def clean_backup_folder()...
3,317
0
226
8ad4b97807caba29accad1b5317470b25cc6a08f
2,303
py
Python
other/application-mongo.py
rhotter/marinotes
db8d99acd5cf30008cc599fd1b4bfc74b66b2e2b
[ "MIT" ]
2
2018-05-28T01:39:07.000Z
2019-03-10T21:06:30.000Z
other/application-mongo.py
rhotter/marinotes
db8d99acd5cf30008cc599fd1b4bfc74b66b2e2b
[ "MIT" ]
null
null
null
other/application-mongo.py
rhotter/marinotes
db8d99acd5cf30008cc599fd1b4bfc74b66b2e2b
[ "MIT" ]
null
null
null
from flask import Flask, render_template, redirect, abort import os from flask_pymongo import PyMongo application = Flask(__name__) application.config['MONGO_DBNAME'] = 'server2' with application.app_context(): mongo = PyMongo(application) d = mongo.db.classes @application.route("/") @application.route("/c...
26.77907
94
0.641772
from flask import Flask, render_template, redirect, abort import os from flask_pymongo import PyMongo application = Flask(__name__) application.config['MONGO_DBNAME'] = 'server2' with application.app_context(): mongo = PyMongo(application) d = mongo.db.classes def getClasses(): classes = [] classes...
1,593
0
136
789e65230cc59f1f4cea1c30eabc5b8b62c876e8
6,715
py
Python
flink-ml-python/pyflink/ml/core/wrapper.py
mumuhhh/flink-ml
bd6d67f78fe5341ec992d72b633b26e2def7783a
[ "Apache-2.0" ]
null
null
null
flink-ml-python/pyflink/ml/core/wrapper.py
mumuhhh/flink-ml
bd6d67f78fe5341ec992d72b633b26e2def7783a
[ "Apache-2.0" ]
null
null
null
flink-ml-python/pyflink/ml/core/wrapper.py
mumuhhh/flink-ml
bd6d67f78fe5341ec992d72b633b26e2def7783a
[ "Apache-2.0" ]
null
null
null
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
32.129187
96
0.660462
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
2,401
0
533
639788a082231170ba459cbc29c9b32af6afe889
2,305
py
Python
sleekxmpp/features/feature_starttls/starttls.py
vijayp/SleekXMPP
b2e7f57334d27f140f079213c2016615b7168742
[ "BSD-3-Clause" ]
1
2016-10-24T05:30:25.000Z
2016-10-24T05:30:25.000Z
sleekxmpp/features/feature_starttls/starttls.py
vijayp/SleekXMPP
b2e7f57334d27f140f079213c2016615b7168742
[ "BSD-3-Clause" ]
null
null
null
sleekxmpp/features/feature_starttls/starttls.py
vijayp/SleekXMPP
b2e7f57334d27f140f079213c2016615b7168742
[ "BSD-3-Clause" ]
null
null
null
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ import logging from sleekxmpp.stanza import StreamFeatures from sleekxmpp.xmlstream import RestartStream, register_stanza_plugin from sleekxmpp...
32.464789
72
0.62603
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ import logging from sleekxmpp.stanza import StreamFeatures from sleekxmpp.xmlstream import RestartStream, register_stanza_plugin from sleekxmpp...
712
1,041
23
0ee9dfe418d5f2beafa6849568e4d49c50ef2681
423
py
Python
phonenumber_field/validators.py
bashu/django-phonenumber-field
3dcf8988dc72c26b3f9d97e5a2eabfcbfb247de7
[ "MIT" ]
1,165
2015-01-05T08:57:53.000Z
2022-03-30T06:58:53.000Z
phonenumber_field/validators.py
Alig1493/django-phonenumber-field
017f6695256fb5a536be711ae3cbdec131724c0a
[ "MIT" ]
335
2015-01-09T00:47:19.000Z
2022-03-23T14:33:34.000Z
Lib/site-packages/phonenumber_field/validators.py
PsychedVic/Portafolio
4bd59d19de41fbea5317d4f2b9e6219ea0359945
[ "bzip2-1.0.6" ]
303
2015-01-20T01:53:29.000Z
2022-03-20T11:32:30.000Z
from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ from phonenumber_field.phonenumber import to_python
32.538462
84
0.763593
from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ from phonenumber_field.phonenumber import to_python def validate_international_phonenumber(value): phone_number = to_python(value) if phone_number and not phone_number.is_valid(): raise Validatio...
240
0
23
0d1ad864dafdba382bbc872df89e13d95e6e7e52
1,933
py
Python
Permutation/Factorial.py
caidevOficial/Python_CombinatorialCalculus
b4f5b4aefef9eff26e179866c87d7ccb4d2c7894
[ "MIT" ]
4
2021-03-27T19:06:38.000Z
2021-09-21T05:46:08.000Z
Permutation/Factorial.py
caidevOficial/Python_CombinatorialCalculus
b4f5b4aefef9eff26e179866c87d7ccb4d2c7894
[ "MIT" ]
null
null
null
Permutation/Factorial.py
caidevOficial/Python_CombinatorialCalculus
b4f5b4aefef9eff26e179866c87d7ccb4d2c7894
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2021 [FacuFalcone] # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
42.021739
80
0.718572
# MIT License # # Copyright (c) 2021 [FacuFalcone] # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
0
0
0
9f7a5e6954b7bfc93338d459ac1bfa98ec56d06a
944
py
Python
tests/commands/uniaxial_material/test_uniaxial_standard.py
vijaypolimeru/o3seespy
c9ef0c27f685de705721b10eb1ea81c3a3c24c4e
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/commands/uniaxial_material/test_uniaxial_standard.py
vijaypolimeru/o3seespy
c9ef0c27f685de705721b10eb1ea81c3a3c24c4e
[ "MIT", "BSD-3-Clause" ]
1
2021-06-25T15:33:31.000Z
2021-06-25T15:33:31.000Z
tests/commands/uniaxial_material/test_uniaxial_standard.py
millen1m/o3seespy
7eead6aef8055f73af39b969e0d3499a67e1737f
[ "MIT", "BSD-3-Clause" ]
1
2020-12-12T21:01:42.000Z
2020-12-12T21:01:42.000Z
import o3seespy as o3 # for testing only import pytest @pytest.mark.skip() @pytest.mark.skip()
24.205128
98
0.691737
import o3seespy as o3 # for testing only import pytest def test_elastic(): osi = o3.OpenSeesInstance(ndm=2) o3.uniaxial_material.Elastic(osi, e_mod=1.0, eta=0.0, eneg=None) def test_elastic_pp(): osi = o3.OpenSeesInstance(ndm=2) o3.uniaxial_material.ElasticPP(osi, e_mod=1.0, epsy_p=1.0, epsy_n=None...
703
0
136
be6577434ed9f5ec17857b0699bb578b7511d36c
1,454
py
Python
Problem 001-150 Python/pb023.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
2
2015-02-11T05:47:42.000Z
2015-02-11T05:47:51.000Z
Problem 001-150 Python/pb023.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
1
2015-04-13T06:36:21.000Z
2015-04-13T06:36:21.000Z
Problem 001-150 Python/pb023.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
null
null
null
import math import time t1 = time.time() N = 28124 prime = [2,3] b = 3 while True: while True: b = b+2 i = 0 t = True while (prime[i]*prime[i] < b): i=i+1 if (b%prime[i] == 0): t = False break ...
16.155556
66
0.43879
import math import time t1 = time.time() N = 28124 prime = [2,3] b = 3 while True: while True: b = b+2 i = 0 t = True while (prime[i]*prime[i] < b): i=i+1 if (b%prime[i] == 0): t = False break ...
421
0
22
b1e21793fc6679db25270986e87e8b1ab5d0cc8e
2,538
py
Python
hsm_software/sw/safe_shutdown.py
DiamondKeySecurity/HSM
6b6a0d691a22863411e048c7c211ac63bf9ffaa7
[ "BSD-3-Clause" ]
null
null
null
hsm_software/sw/safe_shutdown.py
DiamondKeySecurity/HSM
6b6a0d691a22863411e048c7c211ac63bf9ffaa7
[ "BSD-3-Clause" ]
null
null
null
hsm_software/sw/safe_shutdown.py
DiamondKeySecurity/HSM
6b6a0d691a22863411e048c7c211ac63bf9ffaa7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019 Diamond Key Security, NFP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must retain the above copyright notice, #...
36.782609
74
0.706856
#!/usr/bin/env python # Copyright (c) 2019 Diamond Key Security, NFP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must retain the above copyright notice, #...
714
0
161
660bd7d2ea907262ea042d06c371edca1ee8baf9
6,457
py
Python
tokenizer/bpe.py
PaprikaSteiger/atmt
9fa6977a72a2790c3fb0ee7593f61118b1a60514
[ "MIT" ]
null
null
null
tokenizer/bpe.py
PaprikaSteiger/atmt
9fa6977a72a2790c3fb0ee7593f61118b1a60514
[ "MIT" ]
null
null
null
tokenizer/bpe.py
PaprikaSteiger/atmt
9fa6977a72a2790c3fb0ee7593f61118b1a60514
[ "MIT" ]
null
null
null
from pathlib import Path import json import typing as t import argparse import tokenizers.decoders from tokenizers import Tokenizer from tokenizers.pre_tokenizers import Whitespace from tokenizers.trainers import BpeTrainer from tokenizers.models import BPE from tokenizers.decoders import BPEDecoder from seq2seq.data...
39.613497
129
0.579216
from pathlib import Path import json import typing as t import argparse import tokenizers.decoders from tokenizers import Tokenizer from tokenizers.pre_tokenizers import Whitespace from tokenizers.trainers import BpeTrainer from tokenizers.models import BPE from tokenizers.decoders import BPEDecoder from seq2seq.data...
1,671
0
138
86df2083ced90d5ba4a0af7f87db6e15f117ba84
51,614
py
Python
src/tests/ftest/util/data_mover_test_base.py
Kmannth/daos
44164ad2582412a24762185d5919b293306cfae3
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/util/data_mover_test_base.py
Kmannth/daos
44164ad2582412a24762185d5919b293306cfae3
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/util/data_mover_test_base.py
Kmannth/daos
44164ad2582412a24762185d5919b293306cfae3
[ "BSD-2-Clause-Patent" ]
null
null
null
#!/usr/bin/python """ (C) Copyright 2018-2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ import os from command_utils_base import CommandFailure from test_utils_container import TestContainer from pydaos.raw import str_to_c_uuid, DaosContainer, DaosObj, IORequest from ior_test_base import Ior...
39.67256
98
0.569148
#!/usr/bin/python """ (C) Copyright 2018-2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ import os from command_utils_base import CommandFailure from test_utils_container import TestContainer from pydaos.raw import str_to_c_uuid, DaosContainer, DaosObj, IORequest from ior_test_base import Ior...
0
0
0
59020769db0211f01beffba3e1d00fdbca1c4bde
2,696
py
Python
assignments/09-grad-swissprot/swisstake.py
jaeanderson/biosys-analytics
2d92bfc584a5ee6a3072616b0f139c0a809bae1d
[ "MIT" ]
null
null
null
assignments/09-grad-swissprot/swisstake.py
jaeanderson/biosys-analytics
2d92bfc584a5ee6a3072616b0f139c0a809bae1d
[ "MIT" ]
null
null
null
assignments/09-grad-swissprot/swisstake.py
jaeanderson/biosys-analytics
2d92bfc584a5ee6a3072616b0f139c0a809bae1d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Name: jranderson Date: 03.17.19 Purpose: SwissProt to FASTA """ import argparse import os import re import sys from Bio import SeqIO # -------------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( ...
25.923077
100
0.525964
#!/usr/bin/env python3 """ Name: jranderson Date: 03.17.19 Purpose: SwissProt to FASTA """ import argparse import os import re import sys from Bio import SeqIO # -------------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( ...
0
0
0
839334f4bb2cc443095af228268cd398084ac4a0
369
py
Python
days/0/main.py
chris-cmsoft/advent-of-code-2021
a69b435f7023e07ee25dc118a2fdc478cc897230
[ "MIT" ]
null
null
null
days/0/main.py
chris-cmsoft/advent-of-code-2021
a69b435f7023e07ee25dc118a2fdc478cc897230
[ "MIT" ]
null
null
null
days/0/main.py
chris-cmsoft/advent-of-code-2021
a69b435f7023e07ee25dc118a2fdc478cc897230
[ "MIT" ]
null
null
null
import os INPUT_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "input.txt") if __name__ == '__main__': for row in get_input(INPUT_FILE): print(row)
23.0625
83
0.574526
import os INPUT_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "input.txt") def get_input(path): with open(path, "r") as file: while True: line = file.readline() if not line: break yield line.strip() if __name__ == '__main__': for ...
166
0
23
7fd1c695a7136274c4cab113a167f8435c84c807
1,234
py
Python
enterprise_manage/apps/user_center/models.py
x315904752/enterprise_manage
ac679d8e7221080dadfdbe6d8ac6ece0b19ed1f1
[ "MIT" ]
null
null
null
enterprise_manage/apps/user_center/models.py
x315904752/enterprise_manage
ac679d8e7221080dadfdbe6d8ac6ece0b19ed1f1
[ "MIT" ]
2
2020-06-06T01:09:13.000Z
2021-06-10T22:26:59.000Z
enterprise_manage/apps/user_center/models.py
x315904752/enterprise_manage
ac679d8e7221080dadfdbe6d8ac6ece0b19ed1f1
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User
37.393939
92
0.689627
from django.db import models from django.contrib.auth.models import User class UserProfile(models.Model): to_user = models.OneToOneField( User, verbose_name='用户名', on_delete=models.CASCADE, ) leader = models.CharField(verbose_name='领导', max_length=30, blank=True, default='') na...
22
1,183
23
a8b5dbc8b68c367c3db60082961c1914656da706
2,378
py
Python
tdrs-backend/tdpservice/users/test/factories.py
riatzukiza/TANF-app
e34efc87e9703bab37db76b84cc47a041e3612a1
[ "CC0-1.0" ]
18
2020-03-25T19:57:12.000Z
2021-07-26T15:37:50.000Z
tdrs-backend/tdpservice/users/test/factories.py
raft-tech/TANF-app
a4ff39ca392591c4c218ad86df3bff5056d73152
[ "CC0-1.0" ]
1,465
2020-07-22T21:16:53.000Z
2022-03-31T16:04:22.000Z
tdrs-backend/tdpservice/users/test/factories.py
riatzukiza/TANF-app
e34efc87e9703bab37db76b84cc47a041e3612a1
[ "CC0-1.0" ]
15
2020-07-22T14:58:37.000Z
2021-06-22T17:29:55.000Z
"""Generate test data for users.""" import factory from tdpservice.stts.test.factories import STTFactory class BaseUserFactory(factory.django.DjangoModelFactory): """Generate test data for users.""" class Meta: """Hardcoded metata data for users.""" model = "users.User" django_get_...
26.131868
83
0.677881
"""Generate test data for users.""" import factory from tdpservice.stts.test.factories import STTFactory class BaseUserFactory(factory.django.DjangoModelFactory): """Generate test data for users.""" class Meta: """Hardcoded metata data for users.""" model = "users.User" django_get_...
126
0
26
349d523ed3e7bdfb570f64403542fd53ed379614
1,632
py
Python
test/framework/abort_job.py
velniukas/jenkinsflow
ca09c4044fc9da683b2233404e071fad506167b8
[ "BSD-3-Clause" ]
12
2015-03-05T14:57:58.000Z
2021-03-30T09:22:04.000Z
test/framework/abort_job.py
lhupfeldt/jenkinsflow
0eda66ea4ac4ef9cd2e07149cc9a33f93a6c40b0
[ "BSD-3-Clause" ]
3
2015-02-23T04:32:11.000Z
2016-03-06T11:51:04.000Z
test/framework/abort_job.py
velniukas/jenkinsflow
ca09c4044fc9da683b2233404e071fad506167b8
[ "BSD-3-Clause" ]
4
2015-05-28T06:08:04.000Z
2019-08-26T09:35:24.000Z
# Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT # All rights reserved. This work is under a BSD license, see LICENSE.TXT. import sys import time import subprocess from jenkinsflow.test.cfg import ApiType from jenkinsflow.test.framework import api_select from jenkinsflow.test.framework.logger import log...
36.266667
128
0.706495
# Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT # All rights reserved. This work is under a BSD license, see LICENSE.TXT. import sys import time import subprocess from jenkinsflow.test.cfg import ApiType from jenkinsflow.test.framework import api_select from jenkinsflow.test.framework.logger import log...
647
0
23
b16fa4627808d674c41b42e09bbe397e89cb97fb
4,310
py
Python
target_snowflake/file_formats/parquet.py
fixdauto/pipelinewise-target-snowflake
900c350636f4ce11ec2873447239f9a670342663
[ "Apache-2.0" ]
null
null
null
target_snowflake/file_formats/parquet.py
fixdauto/pipelinewise-target-snowflake
900c350636f4ce11ec2873447239f9a670342663
[ "Apache-2.0" ]
1
2022-03-06T21:28:25.000Z
2022-03-06T21:28:25.000Z
target_snowflake/file_formats/parquet.py
isabella232/pipelinewise-target-snowflake
6abcf425ad62233181cc3120daf13f996b6b9c8c
[ "Apache-2.0" ]
1
2022-03-06T21:27:59.000Z
2022-03-06T21:27:59.000Z
"""Parquet file format functions""" import os import pandas from typing import Dict, List from tempfile import mkstemp import target_snowflake.flattening as flattening def create_copy_sql(table_name: str, stage_name: str, s3_key: str, file_format_name: str...
35.619835
116
0.561717
"""Parquet file format functions""" import os import pandas from typing import Dict, List from tempfile import mkstemp import target_snowflake.flattening as flattening def create_copy_sql(table_name: str, stage_name: str, s3_key: str, file_format_name: str...
0
0
0
e62c27b3fe3513eda2bf109dcdb7ea0da19b70cf
281
py
Python
Leetcode9.py
cherytony/test1
506ce4cab6f641beff817c81d7a616db29a7131d
[ "Apache-2.0" ]
null
null
null
Leetcode9.py
cherytony/test1
506ce4cab6f641beff817c81d7a616db29a7131d
[ "Apache-2.0" ]
null
null
null
Leetcode9.py
cherytony/test1
506ce4cab6f641beff817c81d7a616db29a7131d
[ "Apache-2.0" ]
null
null
null
# if x > 0 : # r = int(str(x)[::-1]) # # if r ==x: # return True # else: # return False # # else: # return False
18.733333
35
0.320285
class Solution: def isPalindrome(self,x): # if x > 0 : # r = int(str(x)[::-1]) # # if r ==x: # return True # else: # return False # # else: # return False
4
-6
49
cfb588c4bb1bd6e10b898ae3f586170e425d6042
16,607
py
Python
gdraw.py
cesar-aguilar/gdraw
e2590e5f7923bb46a922ab4082aba4a6b0517787
[ "MIT" ]
null
null
null
gdraw.py
cesar-aguilar/gdraw
e2590e5f7923bb46a922ab4082aba4a6b0517787
[ "MIT" ]
null
null
null
gdraw.py
cesar-aguilar/gdraw
e2590e5f7923bb46a922ab4082aba4a6b0517787
[ "MIT" ]
null
null
null
# gdraw.py """ Copyright 2021 Cesar O. Aguilar Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
29.445035
107
0.509544
# gdraw.py """ Copyright 2021 Cesar O. Aguilar Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
1,459
0
31
d4ce86f0ca0f6275f3682480e94f464d7e604c68
1,022
py
Python
Chapter08/ch08_06.py
ngkhang/py4e
e38f01e4301f8f8b6dbe1bccf953d4c7ce478a40
[ "CECILL-B" ]
null
null
null
Chapter08/ch08_06.py
ngkhang/py4e
e38f01e4301f8f8b6dbe1bccf953d4c7ce478a40
[ "CECILL-B" ]
null
null
null
Chapter08/ch08_06.py
ngkhang/py4e
e38f01e4301f8f8b6dbe1bccf953d4c7ce478a40
[ "CECILL-B" ]
null
null
null
''' Exercise 6: Rewrite the program that prompts the user for a list of numbers\ and prints out the maximum and minimum of the numbers at the end when the user enters “done”. Write the program to store the numbers the user enters in a list and use the max() and min() functions to com...
23.767442
68
0.577299
''' Exercise 6: Rewrite the program that prompts the user for a list of numbers\ and prints out the maximum and minimum of the numbers at the end when the user enters “done”. Write the program to store the numbers the user enters in a list and use the max() and min() functions to com...
0
0
0
27ec0dbd3483b66d79d8935d99fc21cca0bfc1f2
8,776
py
Python
mojo/public/bindings/pylib/parse/mojo_lexer.py
iplo/Chain
8bc8943d66285d5258fffc41bed7c840516c4422
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
231
2015-01-08T09:04:44.000Z
2021-12-30T03:03:10.000Z
mojo/public/bindings/pylib/parse/mojo_lexer.py
JasonEric/chromium
c7361d39be8abd1574e6ce8957c8dbddd4c6ccf7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2017-02-14T21:55:58.000Z
2017-02-14T21:55:58.000Z
mojo/public/bindings/pylib/parse/mojo_lexer.py
JasonEric/chromium
c7361d39be8abd1574e6ce8957c8dbddd4c6ccf7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
268
2015-01-21T05:53:28.000Z
2022-03-25T22:09:01.000Z
# PLY based Lexer class, based on pycparser by Eli Bendersky. # # Copyright (c) 2012, Eli Bendersky # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source code must retain...
28.586319
82
0.592183
# PLY based Lexer class, based on pycparser by Eli Bendersky. # # Copyright (c) 2012, Eli Bendersky # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source code must retain...
674
5,975
23
aadf9eceeb3f898003221f77981bf07bb6fbeb68
2,941
py
Python
examples/hacker_news/hacker_news/legacy/pipelines/download_pipeline.py
gergelylendvai/dagster
bbd93c33c5b092b8e9fec166e372aada44c5a627
[ "Apache-2.0" ]
null
null
null
examples/hacker_news/hacker_news/legacy/pipelines/download_pipeline.py
gergelylendvai/dagster
bbd93c33c5b092b8e9fec166e372aada44c5a627
[ "Apache-2.0" ]
null
null
null
examples/hacker_news/hacker_news/legacy/pipelines/download_pipeline.py
gergelylendvai/dagster
bbd93c33c5b092b8e9fec166e372aada44c5a627
[ "Apache-2.0" ]
null
null
null
from dagster import ModeDefinition, PresetDefinition, pipeline from dagster.seven.temp_dir import get_system_temp_directory from hacker_news.ops.download_items import build_comments, build_stories, download_items from hacker_news.ops.id_range_for_time import id_range_for_time from hacker_news.resources import RESOURCES...
30.010204
99
0.65862
from dagster import ModeDefinition, PresetDefinition, pipeline from dagster.seven.temp_dir import get_system_temp_directory from hacker_news.ops.download_items import build_comments, build_stories, download_items from hacker_news.ops.id_range_for_time import id_range_for_time from hacker_news.resources import RESOURCES...
0
0
0
d0f031e1af9d6625a407d6c65a77203c1247fbea
727
py
Python
source-code/Sum of Two Integers 371.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Sum of Two Integers 371.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Sum of Two Integers 371.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
# 371. Sum of Two Integers # ttungl@gmail.com # Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.
25.964286
97
0.423659
# 371. Sum of Two Integers # ttungl@gmail.com # Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. class Solution: def getSum(self, a, b): """ :type a: int :type b: int :rtype: int """ # sol 1: # runtime: 40ms ...
100
448
23
1cd7737542f5951f3c7bfa40668bfc48ccb49b13
7,607
py
Python
08/py/q2.py
RussellDash332/practice-makes-perfect
917822b461550a2e3679351e467362f95d9e428d
[ "MIT" ]
2
2021-11-18T06:22:09.000Z
2021-12-25T09:52:57.000Z
08/py/q2.py
RussellDash332/practice-makes-perfect
917822b461550a2e3679351e467362f95d9e428d
[ "MIT" ]
2
2021-11-17T16:28:00.000Z
2021-12-01T09:59:40.000Z
08/py/q2.py
RussellDash332/practice-makes-perfect
917822b461550a2e3679351e467362f95d9e428d
[ "MIT" ]
null
null
null
general = Channel("general-helpdesk", ["Owner", "Tutor", "Student"]) announcements = Channel("announcements", ["Owner", "Tutor"]) secret = Channel("foobar", ["Owner"]) print(general.get_name()) # #general-helpdesk print(secret.get_name()) # #foobar russell = Owner("Russell") cli...
52.826389
149
0.598791
class Channel: pass class User: pass class Tutor: pass class Student: pass class Owner: pass general = Channel("general-helpdesk", ["Owner", "Tutor", "Student"]) announcements = Channel("announcements", ["Owner", "Tutor"]) secret = Channel("foobar", ["Owner"]) print(general....
204
8
148
dfbe1b9bd6889ff2cf2e0625f279d70bfbeb97dc
8,564
py
Python
research/cv/PDarts/train.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/PDarts/train.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/PDarts/train.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # less required by applicable law or agreed to i...
42.606965
101
0.670481
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # less required by applicable law or agreed to i...
4,291
0
46
6813cfd293b108d309b69189ce8610ab6038870c
711
py
Python
chardet/icon_chardet/actions/detect_encoding/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
chardet/icon_chardet/actions/detect_encoding/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
chardet/icon_chardet/actions/detect_encoding/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
import komand from .schema import DetectEncodingInput, DetectEncodingOutput, Input, Output, Component # Custom imports below import chardet import base64
30.913043
87
0.69339
import komand from .schema import DetectEncodingInput, DetectEncodingOutput, Input, Output, Component # Custom imports below import chardet import base64 class DetectEncoding(komand.Action): def __init__(self): super(self.__class__, self).__init__( name='detect_encoding', ...
464
15
77
2f2b80d96340873d1328ad5396633c2efca45351
263
py
Python
src/conf.py
AlbertoVf/numeros-primos
868d9e147e1edbdbc7e159c0f1d3b35890235dbb
[ "MIT" ]
null
null
null
src/conf.py
AlbertoVf/numeros-primos
868d9e147e1edbdbc7e159c0f1d3b35890235dbb
[ "MIT" ]
null
null
null
src/conf.py
AlbertoVf/numeros-primos
868d9e147e1edbdbc7e159c0f1d3b35890235dbb
[ "MIT" ]
null
null
null
import os path_files = 'Primos' csv_file = os.path.join(path_files, 'Informacion.csv') incremento = 1000 * 1000 inicio = ultimo_calculo() final = inicio * 100
18.785714
54
0.722433
import os path_files = 'Primos' csv_file = os.path.join(path_files, 'Informacion.csv') def ultimo_calculo(): archivos = len(os.listdir(path_files))-1 return archivos * incremento incremento = 1000 * 1000 inicio = ultimo_calculo() final = inicio * 100
78
0
23
5777724ac5190a0ac01dbdd6d9da7c71114e7714
390
py
Python
audio/test.py
aidanchandra/PiPod
615c0c4476ac1b00518b722b7235ed3348337956
[ "MIT" ]
null
null
null
audio/test.py
aidanchandra/PiPod
615c0c4476ac1b00518b722b7235ed3348337956
[ "MIT" ]
null
null
null
audio/test.py
aidanchandra/PiPod
615c0c4476ac1b00518b722b7235ed3348337956
[ "MIT" ]
null
null
null
import http.client, urllib.parse conn = http.client.HTTPConnection('api.positionstack.com') params = urllib.parse.urlencode({ 'access_key': '0d2a35d484a0c57e8d1da1d92620249c', 'query': 'Copacabana', 'region': 'Rio de Janeiro', 'limit': 1, }) conn.request('GET', '/v1/forward?{}'.format(params)) r...
22.941176
58
0.676923
import http.client, urllib.parse conn = http.client.HTTPConnection('api.positionstack.com') params = urllib.parse.urlencode({ 'access_key': '0d2a35d484a0c57e8d1da1d92620249c', 'query': 'Copacabana', 'region': 'Rio de Janeiro', 'limit': 1, }) conn.request('GET', '/v1/forward?{}'.format(params)) r...
0
0
0
f90ecc4d09049cb07fc0768678924fca228daa45
31,100
py
Python
dipper/sources/NCBIGene.py
justaddcoffee/dipper
085c1601ae5b88848ddcdad0d52387e8f450b1be
[ "BSD-3-Clause" ]
null
null
null
dipper/sources/NCBIGene.py
justaddcoffee/dipper
085c1601ae5b88848ddcdad0d52387e8f450b1be
[ "BSD-3-Clause" ]
null
null
null
dipper/sources/NCBIGene.py
justaddcoffee/dipper
085c1601ae5b88848ddcdad0d52387e8f450b1be
[ "BSD-3-Clause" ]
null
null
null
import re import gzip import logging from dipper.sources.OMIMSource import OMIMSource from dipper.models.Model import Model from dipper.models.assoc.OrthologyAssoc import OrthologyAssoc from dipper.models.Genotype import Genotype from dipper.models.GenomicFeature import Feature, makeChromID, makeChromLabel from dipper...
42.312925
95
0.511704
import re import gzip import logging from dipper.sources.OMIMSource import OMIMSource from dipper.models.Model import Model from dipper.models.assoc.OrthologyAssoc import OrthologyAssoc from dipper.models.Genotype import Genotype from dipper.models.GenomicFeature import Feature, makeChromID, makeChromLabel from dipper...
2,425
0
108
55d667017f5faf24e21da7c56f16402ef3cd642b
446
py
Python
main.py
FishmanDefender/Evolution_Simulation
6d334f0efa966bfd98400c15661bae65fa2dc47b
[ "MIT" ]
null
null
null
main.py
FishmanDefender/Evolution_Simulation
6d334f0efa966bfd98400c15661bae65fa2dc47b
[ "MIT" ]
null
null
null
main.py
FishmanDefender/Evolution_Simulation
6d334f0efa966bfd98400c15661bae65fa2dc47b
[ "MIT" ]
null
null
null
#!/user/bin/env python import numpy as np world = World()
14.866667
68
0.56278
#!/user/bin/env python import numpy as np class World: def __init__0(self): ''' Initialization function for the World ''' self.x = 100 self.y = 100 self.food_count = 100 self.food_positions = 100*np.random.rand(self.food_count, 2) print(self.food...
0
338
46
3da9bc113a8df0953871ce584b42c7b1d3670209
18,303
py
Python
src/python/WMCore/FwkJobReport/XMLParser.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2015-02-05T13:43:46.000Z
2015-02-05T13:43:46.000Z
src/python/WMCore/FwkJobReport/XMLParser.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2016-10-13T14:57:35.000Z
2016-10-13T14:57:35.000Z
src/python/WMCore/FwkJobReport/XMLParser.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ _XMLParser_ Read the raw XML output from the cmsRun executable. """ from __future__ import division, print_function import logging import re from WMCore.Algorithms.ParseXMLFile import coroutine, xmlFileToNode from WMCore.DataStructs.Run import Run from WMCore.FwkJobReport import Report de...
33.894444
110
0.57608
#!/usr/bin/env python """ _XMLParser_ Read the raw XML output from the cmsRun executable. """ from __future__ import division, print_function import logging import re from WMCore.Algorithms.ParseXMLFile import coroutine, xmlFileToNode from WMCore.DataStructs.Run import Run from WMCore.FwkJobReport import Report de...
732
0
89
f352d31f81bdc77f8b40bae4fc830af96a07a6e8
23,950
py
Python
irodsbackend/api.py
bihealth/sodar-server
0c6a03c274ab34cd8987280fe97dc8989551d4bd
[ "MIT" ]
null
null
null
irodsbackend/api.py
bihealth/sodar-server
0c6a03c274ab34cd8987280fe97dc8989551d4bd
[ "MIT" ]
1
2021-05-28T10:59:49.000Z
2021-06-03T12:30:23.000Z
irodsbackend/api.py
bihealth/sodar-server
0c6a03c274ab34cd8987280fe97dc8989551d4bd
[ "MIT" ]
null
null
null
"""iRODS backend API for SODAR Django apps""" import logging import math import pytz import random import re import string from irods.api_number import api_number from irods.collection import iRODSCollection from irods.column import Criterion from irods.exception import CollectionDoesNotExist, CAT_NO_ROWS_FOUND from ...
34.263233
80
0.547808
"""iRODS backend API for SODAR Django apps""" import logging import math import pytz import random import re import string from irods.api_number import api_number from irods.collection import iRODSCollection from irods.column import Criterion from irods.exception import CollectionDoesNotExist, CAT_NO_ROWS_FOUND from ...
4,580
0
170
30b9dddc38369acfbd4a1d633e263dffc2e67efa
1,380
py
Python
happy_numbers/happy_numbers.py
bm5w/codeeval
ca214643b2a93bd9362182134624a8641b44aba2
[ "MIT" ]
null
null
null
happy_numbers/happy_numbers.py
bm5w/codeeval
ca214643b2a93bd9362182134624a8641b44aba2
[ "MIT" ]
null
null
null
happy_numbers/happy_numbers.py
bm5w/codeeval
ca214643b2a93bd9362182134624a8641b44aba2
[ "MIT" ]
null
null
null
""" Happy numbers solution, code eval. https://www.codeeval.com/open_challenges/39/ A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endle...
31.363636
397
0.681884
""" Happy numbers solution, code eval. https://www.codeeval.com/open_challenges/39/ A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endle...
328
0
46
fbf31559cfeabd2dc7ee7c93ec82f2198f8e9b73
5,835
py
Python
src/api/dataflow/flow/tasklog/yarn_util.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/dataflow/flow/tasklog/yarn_util.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/dataflow/flow/tasklog/yarn_util.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
44.204545
119
0.613882
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
94
4,242
23
437c027418bc4209b808faab28ed7ff1efca3bec
2,945
py
Python
Greedy/042. Trapping Rain Water.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
Greedy/042. Trapping Rain Water.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
Greedy/042. Trapping Rain Water.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
""" 42. Trapping Rain Water Example: Input: [0,1,0,2,1,0,1,3,2,1,2,1] Output: 6 """ #Descending Stack # Greedy # @param {integer[]} height # @return {integer}
28.592233
70
0.413582
""" 42. Trapping Rain Water Example: Input: [0,1,0,2,1,0,1,3,2,1,2,1] Output: 6 """ #Descending Stack class Solution: def trap(self, height): """ :type height: List[int] :rtype: int """ stack = [] area = 0 for i,h in enumerate(height): ...
1,409
1,139
203
19889c5299eac32e6130cb6627e1538cfd9003f2
801
py
Python
tests/elementary/test_vardiff.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
5
2019-10-14T01:06:57.000Z
2021-02-02T16:33:06.000Z
tests/elementary/test_vardiff.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
tests/elementary/test_vardiff.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
#!/usr/bin/env python from load import ROOT as R from gna.env import env from gna.parameters.printer import print_parameters from gna.converters import convert ns = env.globalns names = [ 'one', 'two', 'three', 'four', 'five' ] for i, name in enumerate( names ): ns.defparameter( name, central=(100-i*20), relsigma...
24.272727
61
0.667915
#!/usr/bin/env python from load import ROOT as R from gna.env import env from gna.parameters.printer import print_parameters from gna.converters import convert ns = env.globalns names = [ 'one', 'two', 'three', 'four', 'five' ] for i, name in enumerate( names ): ns.defparameter( name, central=(100-i*20), relsigma...
0
0
0
73ae203ba7c7f7af5be740a88b2ebf560dc422cd
149
py
Python
docker_images/timm/app/pipelines/__init__.py
huggingface/api-inference-community
5edcd6aecbb14fefc74755ac929ab9cf29ac841a
[ "Apache-2.0" ]
2
2022-03-24T19:41:23.000Z
2022-03-25T10:41:26.000Z
docker_images/keras/app/pipelines/__init__.py
huggingface/api-inference-community
5edcd6aecbb14fefc74755ac929ab9cf29ac841a
[ "Apache-2.0" ]
6
2022-03-16T12:51:45.000Z
2022-03-17T08:40:35.000Z
docker_images/timm/app/pipelines/__init__.py
huggingface/api-inference-community
5edcd6aecbb14fefc74755ac929ab9cf29ac841a
[ "Apache-2.0" ]
null
null
null
from app.pipelines.base import Pipeline, PipelineException # isort:skip from app.pipelines.image_classification import ImageClassificationPipeline
37.25
74
0.865772
from app.pipelines.base import Pipeline, PipelineException # isort:skip from app.pipelines.image_classification import ImageClassificationPipeline
0
0
0
f0d58dbf7db2ecb12af76efec0d5817b59bec64e
4,279
py
Python
hg/display.py
manzt/hg
ed94c6dbdecdb2ad884ebc54e62f2f262dc084e6
[ "MIT" ]
4
2022-02-01T17:41:59.000Z
2022-02-04T15:21:55.000Z
hg/display.py
manzt/hg
ed94c6dbdecdb2ad884ebc54e62f2f262dc084e6
[ "MIT" ]
9
2022-02-06T17:59:08.000Z
2022-03-23T20:20:45.000Z
hg/display.py
manzt/hg
ed94c6dbdecdb2ad884ebc54e62f2f262dc084e6
[ "MIT" ]
null
null
null
import json import uuid from dataclasses import dataclass, field from typing import Any, Dict, List, Optional import jinja2 HTML_TEMPLATE = jinja2.Template( """ <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="{{ base_url }}/higlass@{{ higlass_version }}/dist/hglib.css"> </head> <body> <div id="{{ o...
28.718121
95
0.632858
import json import uuid from dataclasses import dataclass, field from typing import Any, Dict, List, Optional import jinja2 HTML_TEMPLATE = jinja2.Template( """ <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="{{ base_url }}/higlass@{{ higlass_version }}/dist/hglib.css"> </head> <body> <div id="{{ o...
1,419
289
117
2a457c7ff3790c904105b938a2daba3d41eca262
7,934
py
Python
pybda/corrupting_gains.py
OxfordSKA/bda
0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d
[ "BSD-3-Clause" ]
2
2019-11-22T18:39:49.000Z
2020-03-13T04:03:50.000Z
pybda/corrupting_gains.py
OxfordSKA/bda
0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d
[ "BSD-3-Clause" ]
null
null
null
pybda/corrupting_gains.py
OxfordSKA/bda
0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Module to evaluate corrupting gains for BDA simulations.""" from __future__ import (print_function, absolute_import) import numpy import time import os def allan_deviation(data, dt, tau): """ Evaluate the Allan deviation of a time series. References: https://en.wikiped...
34.051502
80
0.572095
# -*- coding: utf-8 -*- """Module to evaluate corrupting gains for BDA simulations.""" from __future__ import (print_function, absolute_import) import numpy import time import os def allan_deviation(data, dt, tau): """ Evaluate the Allan deviation of a time series. References: https://en.wikiped...
5,760
0
92