hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
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
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
79e4b5d7744f735bc87dbe2f8b797031f5cdbd6d
261
py
Python
chainer/training/triggers/__init__.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
chainer/training/triggers/__init__.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
chainer/training/triggers/__init__.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
from chainer.training.triggers import interval from chainer.training.triggers import minmax_value_trigger IntervalTrigger = interval.IntervalTrigger MaxValueTrigger = minmax_value_trigger.MaxValueTrigger MinValueTrigger = minmax_value_trigger.MinValueTrigger
32.625
58
0.888889
from chainer.training.triggers import interval from chainer.training.triggers import minmax_value_trigger IntervalTrigger = interval.IntervalTrigger MaxValueTrigger = minmax_value_trigger.MaxValueTrigger MinValueTrigger = minmax_value_trigger.MinValueTrigger
0
0
0
0
0
0
0
0
0
58c73ee2160235ee30a1f30f8cadaaff4c87fe20
996
py
Python
Section 1/1.6/code.py
PacktPublishing/-Data-Wrangling-with-Python-3.x
0273db00752a05e347e149d68decb45ed4778d2c
[ "MIT" ]
16
2019-02-07T09:17:11.000Z
2022-01-30T12:38:47.000Z
Section 1/1.6/code.py
PacktPublishing/-Data-Wrangling-with-Python-3.x
0273db00752a05e347e149d68decb45ed4778d2c
[ "MIT" ]
1
2019-07-06T15:36:28.000Z
2019-07-06T15:36:28.000Z
Section 1/1.6/code.py
PacktPublishing/-Data-Wrangling-with-Python-3.x
0273db00752a05e347e149d68decb45ed4778d2c
[ "MIT" ]
15
2019-02-12T09:46:03.000Z
2022-01-04T16:54:28.000Z
import urllib.request wiki = "https://en.wikipedia.org/wiki/List_of_countries_by_the_number_of_billionaires" page = urllib.request.urlopen(wiki) from bs4 import BeautifulSoup soup = BeautifulSoup(page) print (soup.prettify()) soup.title.text soup.a soup.find_all("a") right_table = soup.find('table',class_ = 'wiki...
16.881356
88
0.646586
import urllib.request wiki = "https://en.wikipedia.org/wiki/List_of_countries_by_the_number_of_billionaires" page = urllib.request.urlopen(wiki) from bs4 import BeautifulSoup soup = BeautifulSoup(page) print (soup.prettify()) soup.title.text soup.a soup.find_all("a") right_table = soup.find('table',class_ = 'wiki...
0
0
0
0
0
0
0
0
0
530aad8900697cdb2560f83461febedd71854e6c
1,894
py
Python
src/django/app/api.py
ScottGarland/MonteCarlo
8d2a8026da8a0ce38e94c9e045820a6f55a46866
[ "MIT" ]
null
null
null
src/django/app/api.py
ScottGarland/MonteCarlo
8d2a8026da8a0ce38e94c9e045820a6f55a46866
[ "MIT" ]
1
2020-11-16T18:56:13.000Z
2020-11-16T18:56:13.000Z
src/django/app/api.py
ScottGarland/MonteCarlo
8d2a8026da8a0ce38e94c9e045820a6f55a46866
[ "MIT" ]
2
2020-11-17T02:54:07.000Z
2021-04-10T19:42:48.000Z
from django.http import HttpResponse from django.http import HttpResponseBadRequest import datetime as dt from shared.Monte import Monte def simulate(request): """ Generates the Monte object from the user input parameters in the request and reponds with an html string. """ if request.method == 'GET':...
35.735849
109
0.649947
from django.shortcuts import redirect from django.http import HttpResponse from django.http import HttpResponseBadRequest from django.http import Http404 import datetime as dt from shared.Monte import Monte def simulate(request): """ Generates the Monte object from the user input parameters in the request and...
0
0
0
0
0
0
0
26
44
3ad01121e0e4758af28a223626760b1f576c4b12
1,694
py
Python
snn/single/usual_models.py
arnogranier/SNN
f916c97e36430719ff255963d9f7f7c46d55fa76
[ "MIT" ]
9
2019-02-20T07:15:20.000Z
2021-12-22T20:27:28.000Z
snn/single/usual_models.py
arnogranier/SNN
f916c97e36430719ff255963d9f7f7c46d55fa76
[ "MIT" ]
1
2018-02-11T17:53:59.000Z
2018-02-11T17:53:59.000Z
snn/single/usual_models.py
ArnoGranier/SNN
f916c97e36430719ff255963d9f7f7c46d55fa76
[ "MIT" ]
3
2019-04-11T15:02:18.000Z
2021-02-11T16:34:43.000Z
from .core import Variable, Model # Hodgkin-Huxley Model V = Variable(name='V', init_value=-60, unit='mV', ddt='(1/Cm)*(-gk*n**4*(V-Vk)-gna*m**3*h*(V-Vna)-gl*(V-Vl)+Iapp)') n = Variable(name='n', ddt='alpha_n*(1-n)-beta_n*n', init_value=1/3) m = Variable(name='m', ddt='alpha_m*(1-m)-beta_m*m', init_...
45.783784
79
0.530697
from .core import Variable, Model # Hodgkin-Huxley Model V = Variable(name='V', init_value=-60, unit='mV', ddt='(1/Cm)*(-gk*n**4*(V-Vk)-gna*m**3*h*(V-Vna)-gl*(V-Vl)+Iapp)') n = Variable(name='n', ddt='alpha_n*(1-n)-beta_n*n', init_value=1/3) m = Variable(name='m', ddt='alpha_m*(1-m)-beta_m*m', init_...
0
0
0
0
0
0
0
0
0
ac4399fe6c7124b45fd2ff97d2a80b1b89a2d416
31,222
py
Python
tapy/indicators.py
Pascal66/tapy
492044cb75f9cd63a6fc78748104f72f9e27bce2
[ "MIT" ]
null
null
null
tapy/indicators.py
Pascal66/tapy
492044cb75f9cd63a6fc78748104f72f9e27bce2
[ "MIT" ]
null
null
null
tapy/indicators.py
Pascal66/tapy
492044cb75f9cd63a6fc78748104f72f9e27bce2
[ "MIT" ]
null
null
null
__version__ = '1.9.0'
45.847283
309
0.605406
import pandas as pd import numpy as np from .utils import calculate_ao, calculate_sma, calculate_smma, mad __version__ = '1.9.0' class Indicators: """ Add technical indicators data to a pandas data frame Example: ~~~~~~~~ >>> import pandas as pd >>> from tapy import Indicators ...
0
0
0
31,067
0
0
0
41
90
b0cb7425c67d6587404a8d9cd44ccaf5b68b5596
73
py
Python
homedisplay/info_transportation/__init__.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2016-11-28T04:35:06.000Z
2016-11-28T04:35:06.000Z
homedisplay/info_transportation/__init__.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
160
2015-01-01T20:59:29.000Z
2016-04-25T13:36:52.000Z
homedisplay/info_transportation/__init__.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2015-02-25T21:24:01.000Z
2015-02-25T21:24:01.000Z
default_app_config = 'info_transportation.apps.InfoTransportationConfig'
36.5
72
0.890411
default_app_config = 'info_transportation.apps.InfoTransportationConfig'
0
0
0
0
0
0
0
0
0
5de63bbd68073c94e5f8f8a56e35ba98ef82a635
3,122
py
Python
online-demo/test_00_optic_inventory.py
wasabi222/nanog77-nrfu-tutorial
43d5cfe488c3a231f03f979b47c3e61b021f2936
[ "Apache-2.0" ]
33
2019-10-29T18:32:48.000Z
2022-03-20T19:57:59.000Z
online-demo/test_00_optic_inventory.py
wasabi222/nanog77-nrfu-tutorial
43d5cfe488c3a231f03f979b47c3e61b021f2936
[ "Apache-2.0" ]
null
null
null
online-demo/test_00_optic_inventory.py
wasabi222/nanog77-nrfu-tutorial
43d5cfe488c3a231f03f979b47c3e61b021f2936
[ "Apache-2.0" ]
12
2019-10-25T19:36:44.000Z
2021-12-07T10:21:07.000Z
# Copyright 2019 Jeremy Schulman, nwkautomaniac@gmail.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
32.185567
79
0.714606
# Copyright 2019 Jeremy Schulman, nwkautomaniac@gmail.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
0
360
0
0
0
0
0
-8
45
3bfaf7ffe4d90756205ed1d274f64c449803021e
1,173
py
Python
src/plasmid_verification/domain/service/sequence_alignment_service.py
Midnighter/plasmid_verification
844b38047b1bf19fa9903299a1e6470583b9c3d5
[ "Apache-2.0" ]
null
null
null
src/plasmid_verification/domain/service/sequence_alignment_service.py
Midnighter/plasmid_verification
844b38047b1bf19fa9903299a1e6470583b9c3d5
[ "Apache-2.0" ]
null
null
null
src/plasmid_verification/domain/service/sequence_alignment_service.py
Midnighter/plasmid_verification
844b38047b1bf19fa9903299a1e6470583b9c3d5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, Moritz E. Beber. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
29.325
74
0.709292
# Copyright (c) 2021, Moritz E. Beber. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
0
273
0
116
0
0
0
32
92
90c3cbc906ed2d988ff2bb717dc2411c4f9d4041
463
py
Python
removeDuplicate.py
JyutdictEB/Word2Vec
70d5472ba6c6cad036ab5394ca15a154771429d4
[ "CC0-1.0" ]
null
null
null
removeDuplicate.py
JyutdictEB/Word2Vec
70d5472ba6c6cad036ab5394ca15a154771429d4
[ "CC0-1.0" ]
null
null
null
removeDuplicate.py
JyutdictEB/Word2Vec
70d5472ba6c6cad036ab5394ca15a154771429d4
[ "CC0-1.0" ]
null
null
null
import sys input_path = './partial_lihkg.txt' output_path = './partial_lihkg_no_dup.txt' seen = set() with open(input_path,encoding='utf-8',mode='r') as fin, open(output_path,mode='w',encoding='utf-8') as fout: while True: line = str(fin.readline()) if len(line) == 0: break lin...
25.722222
108
0.611231
import sys input_path = './partial_lihkg.txt' output_path = './partial_lihkg_no_dup.txt' seen = set() with open(input_path,encoding='utf-8',mode='r') as fin, open(output_path,mode='w',encoding='utf-8') as fout: while True: line = str(fin.readline()) if len(line) == 0: break lin...
0
0
0
0
0
0
0
0
0
7c4eecc2d88b86db2a93b82370828d8d54e7faba
1,191
py
Python
pulsarpy/scripts/clone_crispr_modification.py
nathankw/pulsar_py
b00e2e32fe407c96023bca1d81838567078c2e4e
[ "MIT" ]
null
null
null
pulsarpy/scripts/clone_crispr_modification.py
nathankw/pulsar_py
b00e2e32fe407c96023bca1d81838567078c2e4e
[ "MIT" ]
null
null
null
pulsarpy/scripts/clone_crispr_modification.py
nathankw/pulsar_py
b00e2e32fe407c96023bca1d81838567078c2e4e
[ "MIT" ]
1
2020-07-08T15:15:31.000Z
2020-07-08T15:15:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ###Author #Nathaniel Watson #2017-09-18 #nathankw@stanford.edu ### """ Clones the specified CrisprModification onto the desired biosamples. """ import pulsarpy.models as models if __name__ == "__main__": main()
27.068182
245
0.670025
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ###Author #Nathaniel Watson #2017-09-18 #nathankw@stanford.edu ### """ Clones the specified CrisprModification onto the desired biosamples. """ import argparse import pdb import pulsarpy.models as models import pulsarpy.utils def get_parser(): parser = argparse.Ar...
0
0
0
0
0
829
0
-17
113
70d97c152604201abb4b2026390ab7599749922c
1,037
py
Python
fluctua_nft_backend/nfts/utils/assign_ids.py
denisgranha/fluctua_nft_backend
bd83b45094a77426519608c960277e8d5ac1ca77
[ "Apache-2.0" ]
1
2022-02-20T20:35:32.000Z
2022-02-20T20:35:32.000Z
fluctua_nft_backend/nfts/utils/assign_ids.py
denisgranha/fluctua_nft_backend
bd83b45094a77426519608c960277e8d5ac1ca77
[ "Apache-2.0" ]
6
2022-02-15T06:30:23.000Z
2022-03-31T06:31:18.000Z
fluctua_nft_backend/nfts/utils/assign_ids.py
denisgranha/fluctua_nft_backend
bd83b45094a77426519608c960277e8d5ac1ca77
[ "Apache-2.0" ]
null
null
null
import json from os import path from django.conf import settings from web3 import Web3 from web3.middleware import geth_poa_middleware from fluctua_nft_backend.nfts import models # load abi abi_path = path.join( path.dirname(__file__), "..", "..", "contracts", "RumiaNFT.json" ) with open(abi_path) as f: abi ...
33.451613
103
0.768563
import json from os import path from django.conf import settings from web3 import Web3 from web3.middleware import geth_poa_middleware from fluctua_nft_backend.nfts import models # load abi abi_path = path.join( path.dirname(__file__), "..", "..", "contracts", "RumiaNFT.json" ) with open(abi_path) as f: abi ...
0
0
0
0
0
0
0
0
0
3ea6d2486663392012c641b4006f95700910409a
2,047
py
Python
player.py
hadware/gstreamer-python-player
55e10ed1a46583cec7f4953babc541c4bb3a0a8f
[ "MIT" ]
37
2015-07-31T18:07:41.000Z
2022-03-27T20:35:48.000Z
player.py
hadware/gstreamer-python-player
55e10ed1a46583cec7f4953babc541c4bb3a0a8f
[ "MIT" ]
2
2016-02-18T02:18:33.000Z
2018-08-08T14:18:18.000Z
player.py
hadware/gstreamer-python-player
55e10ed1a46583cec7f4953babc541c4bb3a0a8f
[ "MIT" ]
8
2016-10-05T11:28:39.000Z
2021-06-23T20:48:31.000Z
import gi gi.require_version('Gst', '1.0') from gi.repository import GObject, Gst # Initializing threads used by the Gst various elements GObject.threads_init() #Initializes the GStreamer library, setting up internal path lists, registering built-in elements, and loading standard plugins. Gst.init(None) start=Main() ...
45.488889
189
0.692721
import gi gi.require_version('Gst', '1.0') from gi.repository import GObject, Gst, Gtk # Initializing threads used by the Gst various elements GObject.threads_init() #Initializes the GStreamer library, setting up internal path lists, registering built-in elements, and loading standard plugins. Gst.init(None) class Ma...
0
0
0
1,687
0
0
0
5
23
bc83784adcb2e3e5afc4a1235b584bca590892a3
1,349
py
Python
dask/dataframe/tests/test_extensions.py
rockwellw/dask
c1f6d61368af6f9c67d39d23406eb267a0308bb9
[ "BSD-3-Clause" ]
1
2020-06-04T06:17:22.000Z
2020-06-04T06:17:22.000Z
dask/dataframe/tests/test_extensions.py
rockwellw/dask
c1f6d61368af6f9c67d39d23406eb267a0308bb9
[ "BSD-3-Clause" ]
30
2020-04-15T19:37:40.000Z
2020-04-22T21:19:35.000Z
dask/dataframe/tests/test_extensions.py
rockwellw/dask
c1f6d61368af6f9c67d39d23406eb267a0308bb9
[ "BSD-3-Clause" ]
2
2020-03-12T23:20:22.000Z
2021-02-15T21:54:02.000Z
import pytest pd = pytest.importorskip("pandas", minversion="0.23.4")
26.98
84
0.702743
from decimal import Decimal import pytest import dask.dataframe as dd from dask.dataframe.utils import assert_eq, PANDAS_VERSION pd = pytest.importorskip("pandas", minversion="0.23.4") from pandas.tests.extension.decimal.array import DecimalArray, DecimalDtype from dask.dataframe.extensions import make_array_nonempt...
0
247
0
0
0
647
0
152
227
d1f91c9167e4968c1d7b28f0f09a0d7a88d10ed4
865
py
Python
setup.py
oudalab/phyllo
e724c6126395e20cd8d7406703456b8a19462974
[ "Apache-2.0" ]
null
null
null
setup.py
oudalab/phyllo
e724c6126395e20cd8d7406703456b8a19462974
[ "Apache-2.0" ]
5
2017-09-06T22:45:28.000Z
2021-01-03T04:58:45.000Z
setup.py
oudalab/phyllo
e724c6126395e20cd8d7406703456b8a19462974
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup( name="phyllo", version="0.1", description="PHilologicallY Linguistic LegwOrk.", author="Jordan Nguyen, Christan Grant", author_email="Jordan.Nguyen-1@ou.edu, cgrant@ou.edu", url="https://github.com/oudalab/phyllo", download_url="https://gi...
27.03125
57
0.624277
from setuptools import setup, find_packages setup( name="phyllo", version="0.1", description="PHilologicallY Linguistic LegwOrk.", author="Jordan Nguyen, Christan Grant", author_email="Jordan.Nguyen-1@ou.edu, cgrant@ou.edu", url="https://github.com/oudalab/phyllo", download_url="https://gi...
0
0
0
0
0
0
0
0
0
0029669dd26fab0f18894ecb4849c5ad546fd0f3
4,707
py
Python
gameloop.py
LeongBryan/inky1.0
1617318162481c74a9803ddd4fd8a8081bc9fbcc
[ "MIT" ]
null
null
null
gameloop.py
LeongBryan/inky1.0
1617318162481c74a9803ddd4fd8a8081bc9fbcc
[ "MIT" ]
null
null
null
gameloop.py
LeongBryan/inky1.0
1617318162481c74a9803ddd4fd8a8081bc9fbcc
[ "MIT" ]
null
null
null
import pygame as pg vec = pg.math.Vector2 Game = Game() Game.show_start_screen() while Game.running: Game.level1() Game.show_go_screen() pg.quit()
30.173077
102
0.558317
import pygame as pg import random from settings import * from main import * import os vec = pg.math.Vector2 class Game: def __init__(self): # Initialise game window etc pg.init() pg.mixer.init() self.screen = pg.display.set_mode((WIDTH, HEIGHT)) pg.display.set_caption(TITLE)...
0
0
0
4,460
0
0
0
-22
111
de8f837ee953c8d5010bd441417f816067560169
162
py
Python
wcics/server/forms/forms/admin/__init__.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
null
null
null
wcics/server/forms/forms/admin/__init__.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
6
2019-12-06T18:06:28.000Z
2021-12-01T20:19:05.000Z
wcics/server/forms/forms/admin/__init__.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
20.25
27
0.691358
# -*- coding: utf-8 -*- from .database import * from .lessons import * from .news import * from .organization import * from .topics import * from .users import *
0
0
0
0
0
0
0
6
133
eb71cd4fdab2fc919ce1e5f0188258ed1dd6b256
2,289
py
Python
practice_problems/MorePractice.py
smenon8/practice_scripts
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
null
null
null
practice_problems/MorePractice.py
smenon8/practice_scripts
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
1
2017-02-13T20:48:06.000Z
2017-02-13T20:48:06.000Z
practice_problems/MorePractice.py
smenon8/AlgDataStruct_practice
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
null
null
null
# Divide and Conquer Algorithm for finding the maximum sub array sum arr = [-2,-5,6,-2,-3,1,5,-6] print("Maximum Sub Array Sum") print(maxSubArraySum(arr,0,len(arr)-1)) print() # Similar problem: Given a sum find the pair of numbers which add upto the sum arr = [6,8,2,3,10,11] print("Two sum problem") print(twoSumPr...
24.094737
118
0.671472
# Divide and Conquer Algorithm for finding the maximum sub array sum def maxSubArraySum(arr,h,t): if h == t: return arr[h] m = (h+t)//2 # 1. find max in left subarray leftSum = maxSubArraySum(arr,h,m) # 2. find max in right subarray rightSum = maxSubArraySum(arr,m+1,t) # 3. find max in mid-point crossin...
0
0
0
0
0
1,487
0
0
89
455dfb42a457f333dfa2bb065bc541a0c8bd6153
196
py
Python
threeML/plugins/SwiftXRTLike.py
jasonfan1997/threeML
21b1c76ad3423f745b9f56413d93ee01d1d5855f
[ "BSD-3-Clause" ]
42
2019-01-10T06:11:38.000Z
2022-03-21T20:08:37.000Z
threeML/plugins/SwiftXRTLike.py
jasonfan1997/threeML
21b1c76ad3423f745b9f56413d93ee01d1d5855f
[ "BSD-3-Clause" ]
187
2019-01-15T13:21:16.000Z
2022-03-31T12:15:55.000Z
threeML/plugins/SwiftXRTLike.py
jasonfan1997/threeML
21b1c76ad3423f745b9f56413d93ee01d1d5855f
[ "BSD-3-Clause" ]
32
2019-01-14T10:24:56.000Z
2022-03-10T10:09:59.000Z
__instrument_name = "Swift XRT" # At the moment this is just another name for the GenericOGIPLike spectrum
19.6
74
0.790816
from threeML.plugins.OGIPLike import OGIPLike __instrument_name = "Swift XRT" # At the moment this is just another name for the GenericOGIPLike spectrum class SwiftXRTLike(OGIPLike): pass
0
0
0
18
0
0
0
24
44
a01bb11c58f7fe8149df23ea207ce80bdf65f5c9
1,751
py
Python
examples/tle_propagation_with_sorts.py
danielk333/SORTS
f8454901fda405c0e8ce6553366553c3f043da0b
[ "MIT" ]
4
2020-09-14T11:38:31.000Z
2021-05-19T08:10:37.000Z
examples/tle_propagation_with_sorts.py
danielk333/SORTS
f8454901fda405c0e8ce6553366553c3f043da0b
[ "MIT" ]
6
2020-09-14T05:48:02.000Z
2021-05-29T14:12:16.000Z
examples/tle_propagation_with_sorts.py
danielk333/SORTS
f8454901fda405c0e8ce6553366553c3f043da0b
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' TLE propagation with SGP4 ============================ This shows that TLEs really should be propagated as TLEs, not as states. ''' import numpy as np import matplotlib.pyplot as plt from sorts.propagator import SGP4 # Uncomment this to see what is actually recovered as mean elements fr...
25.75
90
0.664763
#!/usr/bin/env python ''' TLE propagation with SGP4 ============================ This shows that TLEs really should be propagated as TLEs, not as states. ''' import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from sorts.propagator import SGP4 from sgp4.api import Satrec #...
0
0
0
0
0
0
0
24
45
223bab2f8ffdbb87ee94a350290319e46388229b
1,044
py
Python
server/api/delete_qr.py
Red350/SocietiesApp
35991603f61ab2bbd918019ef13cb3dcdd9f67f3
[ "MIT" ]
null
null
null
server/api/delete_qr.py
Red350/SocietiesApp
35991603f61ab2bbd918019ef13cb3dcdd9f67f3
[ "MIT" ]
null
null
null
server/api/delete_qr.py
Red350/SocietiesApp
35991603f61ab2bbd918019ef13cb3dcdd9f67f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import database import subprocess db = database.Database() # Delete old tokens and qr images from the server # Command for testing: # SELECT token, UNIX_TIMESTAMP(CURRENT_TIMESTAMP) - UNIX_TIMESTAMP(creation_time) FROM join_token WHERE(UNIX_TIMESTAMP(CURRENT_TIMESTAMP) - UNIX_TIMESTAMP(creatio...
38.666667
177
0.734674
#!/usr/bin/env python3 import database import http import subprocess db = database.Database() # Delete old tokens and qr images from the server # Command for testing: # SELECT token, UNIX_TIMESTAMP(CURRENT_TIMESTAMP) - UNIX_TIMESTAMP(creation_time) FROM join_token WHERE(UNIX_TIMESTAMP(CURRENT_TIMESTAMP) - UNIX_TIMES...
0
0
0
0
0
0
0
-10
22
10bf712b9c0e4c0f3bdfd5226a8e5f8305e8079b
1,146
py
Python
algo_probs/jzoffer/jz14_1.py
Jackthebighead/recruiment-2022
a81007908e3c2f65a6be3ff2d62dfb92d0753b0d
[ "MIT" ]
null
null
null
algo_probs/jzoffer/jz14_1.py
Jackthebighead/recruiment-2022
a81007908e3c2f65a6be3ff2d62dfb92d0753b0d
[ "MIT" ]
null
null
null
algo_probs/jzoffer/jz14_1.py
Jackthebighead/recruiment-2022
a81007908e3c2f65a6be3ff2d62dfb92d0753b0d
[ "MIT" ]
null
null
null
# n m mnn>1m>1 k[0],k[1]...k[m-1] k[0]*k[1]*...*k[m-1] # 823318 # 1: 1-ndp[n]dp[i] = max(dp[i-j]*j, (i-j)*j)idp[i] # dpdp # 2: 3312
34.727273
122
0.572426
# 题意:剪绳子,给你一根长度为 n 的绳子,请把绳子剪成整数长度的 m 段(m、n都是整数,n>1并且m>1),每段绳子的长度记为 k[0],k[1]...k[m-1] 。请问 k[0]*k[1]*...*k[m-1] 可能的最大乘积是多少? # 例如,当绳子的长度是8时,我们把它剪成长度分别为2、3、3的三段,此时得到的最大乘积是18。 # 题解1: 动态规划。注意到我们所求的乘积可以当作动态规划中的状态。设置1-n的状态数组dp[n]在存,动态归化的状态方程是:dp[i] = max(dp[i-j]*j, (i-j)*j)即对于一段长度i的绳子,其最大乘积dp[i] # 可以分为对这一段进行裁剪和不裁剪两种情形,对...
1,017
0
0
618
0
0
0
0
46
07da0a89a6264b2c680a8833575c7d256e12446e
36,427
py
Python
tests/interfaces/test_qnode_tf.py
QDaria/pennylane
5a28983fc7bd950cde8a4014e54261fef4b54293
[ "Apache-2.0" ]
null
null
null
tests/interfaces/test_qnode_tf.py
QDaria/pennylane
5a28983fc7bd950cde8a4014e54261fef4b54293
[ "Apache-2.0" ]
null
null
null
tests/interfaces/test_qnode_tf.py
QDaria/pennylane
5a28983fc7bd950cde8a4014e54261fef4b54293
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Xanadu Quantum Technologies Inc. # 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 applicabl...
35.853346
120
0.546682
# Copyright 2018-2020 Xanadu Quantum Technologies Inc. # 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 applicabl...
90
31,717
0
2,564
0
0
0
22
123
b0a426d92e88a5a5903764f283f473a777298b00
7,618
py
Python
src/elasticizefiles/engine.py
pierluigi-failla/elasticize_files
2530d74f1b56344ee73ca113bcb2870566a565a0
[ "MIT" ]
null
null
null
src/elasticizefiles/engine.py
pierluigi-failla/elasticize_files
2530d74f1b56344ee73ca113bcb2870566a565a0
[ "MIT" ]
null
null
null
src/elasticizefiles/engine.py
pierluigi-failla/elasticize_files
2530d74f1b56344ee73ca113bcb2870566a565a0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created by Pierluigi on 2020-02-01 project: elasticizefiles """
39.884817
111
0.521134
# -*- coding: utf-8 -*- """ Created by Pierluigi on 2020-02-01 project: elasticizefiles """ import logging import os import re from datetime import datetime from hashlib import sha256 from multiprocessing import cpu_count from time import time from joblib import Parallel from joblib import delayed from elasticizefile...
0
2,974
0
4,070
0
0
0
148
333
d4477077dfae955280f980685478d7932e782622
5,962
py
Python
scripts/exec_clustering.py
TirolJPN/ngweight
37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c
[ "MIT" ]
null
null
null
scripts/exec_clustering.py
TirolJPN/ngweight
37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c
[ "MIT" ]
null
null
null
scripts/exec_clustering.py
TirolJPN/ngweight
37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c
[ "MIT" ]
null
null
null
""" TODO: linkage() fcluster() """ import mysql.connector as cn import sys import sys sys.setrecursionlimit(10000) # cnx = cn.connect( host='127.0.0.1', user='kosuke', password='localhost', port='3306', database='codeforces' ) cur = cnx.cursor(buffered=True, dictionary=True) ...
35.278107
129
0.588225
""" TODO: 問題ごとに階層クラスタリングをlinkage()で実行。 fcluster()でクたスター番号の索引付けを行う。 """ import os import mysql.connector as cn from pyquery import PyQuery as pq from enum import Enum import re import subprocess import sys import csv import pandas as pd import copy import matplotlib.pyplot as plt import sys from pand...
462
0
0
0
0
4,689
0
47
424
12b3e76cb33ac112b3e3d93d1b12220d79d80efb
1,353
py
Python
py_se_day05/solution_four.py
letscodedjango/py-se-bootcamp
302e2acb69f4aaefbb2fe6361083c9135b000394
[ "MIT" ]
null
null
null
py_se_day05/solution_four.py
letscodedjango/py-se-bootcamp
302e2acb69f4aaefbb2fe6361083c9135b000394
[ "MIT" ]
null
null
null
py_se_day05/solution_four.py
letscodedjango/py-se-bootcamp
302e2acb69f4aaefbb2fe6361083c9135b000394
[ "MIT" ]
1
2020-05-20T14:48:48.000Z
2020-05-20T14:48:48.000Z
# Define a function that helps to calculate the area of circle with different radius and print the area only when the area is divisible by 4 # 23.48, 56.78, 45.67, 78.28 Please consider the unit of these values as cm # Define a function using Python that helps to find the first five character of string in all the...
18.04
140
0.643016
# Define a function that helps to calculate the area of circle with different radius and print the area only when the area is divisible by 4 # 23.48, 56.78, 45.67, 78.28 Please consider the unit of these values as cm def calculate_area(radius): PI = 3.14 area = PI * radius * radius if area % 6 != 0: print('The...
0
0
0
0
0
537
0
0
69
9422ced1909c3f5d4a7907abfbe6b4c03b418ee8
3,878
py
Python
tools/xrdb2putty.py
smartfish/iTerm2-Color-Schemes
f0a40ddf631185c66a6f6cbfeb1b9724086fa9c3
[ "MIT" ]
21,573
2015-01-01T00:03:35.000Z
2022-03-31T22:31:16.000Z
tools/xrdb2putty.py
studioThirteen/Terminal-Color-Schemes
c9e4b3c7cef87b4b8bc8c10a2ebf7a7870e7902b
[ "MIT" ]
313
2015-01-20T18:39:13.000Z
2022-03-30T17:45:50.000Z
tools/xrdb2putty.py
studioThirteen/Terminal-Color-Schemes
c9e4b3c7cef87b4b8bc8c10a2ebf7a7870e7902b
[ "MIT" ]
8,250
2015-01-01T13:15:12.000Z
2022-03-31T22:42:46.000Z
#!/usr/bin/env python # coding: utf-8 # # This script converts xrdb (X11) color scheme format to PuTTY registry # file which creates a new session with proper colors. # # Usage: # xrdb2putty.py path/to/xrdb/files -d path/to/putty/files # # Author: Caesar Kabalan <caesar.kabalan@gmail.com> # Adapted from xrdb2konsole b...
29.830769
145
0.690304
#!/usr/bin/env python # coding: utf-8 # # This script converts xrdb (X11) color scheme format to PuTTY registry # file which creates a new session with proper colors. # # Usage: # xrdb2putty.py path/to/xrdb/files -d path/to/putty/files # # Author: Caesar Kabalan <caesar.kabalan@gmail.com> # Adapted from xrdb2konsole b...
2
0
0
0
0
2,878
0
-35
135
63f92c30eb31f0e762640b7e181136ca978c9bf7
2,734
py
Python
google_appengine/main.py
evanchueng/gerrit.contactstore
4ee70f23058c2b1ced8b3891d5e91676639f3b3e
[ "Apache-2.0" ]
null
null
null
google_appengine/main.py
evanchueng/gerrit.contactstore
4ee70f23058c2b1ced8b3891d5e91676639f3b3e
[ "Apache-2.0" ]
null
null
null
google_appengine/main.py
evanchueng/gerrit.contactstore
4ee70f23058c2b1ced8b3891d5e91676639f3b3e
[ "Apache-2.0" ]
null
null
null
# Copyright 2009 Google Inc. # # 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 in writing, ...
26.543689
74
0.657644
# Copyright 2009 Google Inc. # # 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 in writing, ...
0
0
0
1,577
0
171
0
88
249
b30ea5d72e2c9d160b030071734f3bb49aa1d19a
7,556
py
Python
docs/images/plotlib.py
JuliaTagBot/QuantumPEPS.jl
cf9ed897f24a213d550d0a683ee6704d853889a0
[ "Apache-2.0" ]
15
2019-07-01T08:54:29.000Z
2021-11-17T22:57:46.000Z
docs/images/plotlib.py
JuliaTagBot/QuantumPEPS.jl
cf9ed897f24a213d550d0a683ee6704d853889a0
[ "Apache-2.0" ]
1
2020-02-01T03:43:31.000Z
2020-02-04T02:27:44.000Z
docs/images/plotlib.py
JuliaTagBot/QuantumPEPS.jl
cf9ed897f24a213d550d0a683ee6704d853889a0
[ "Apache-2.0" ]
3
2020-02-08T11:17:35.000Z
2022-03-31T09:49:34.000Z
try: from matplotlib import pyplot as plt import matplotlib except: import matplotlib matplotlib.rcParams['backend'] = 'TkAgg' from matplotlib import pyplot as plt def _setup_mpl(): '''customize matplotlib.''' plt.rcParams['lines.linewidth'] = 2 plt.rcParams['axes.labelsize'] = 16 ...
35.474178
127
0.577422
try: from matplotlib import pyplot as plt import matplotlib except: import matplotlib matplotlib.rcParams['backend'] = 'TkAgg' from matplotlib import pyplot as plt import numpy as np import pdb def cornertex(s, ax, offset=(0,0), fontsize=14): plt.text(0.02+offset[0],0.95+offset[1],s,transform=a...
0
0
0
3,205
0
3,424
0
-14
182
6cd4675da4e71a8069f805b703f2013eaf129b37
1,690
py
Python
alipay/aop/api/domain/AlipayOverseasOpenPreorderCancelModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayOverseasOpenPreorderCancelModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayOverseasOpenPreorderCancelModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*-
28.166667
79
0.628994
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.TuitionISVAgentInfoDTO import TuitionISVAgentInfoDTO class AlipayOverseasOpenPreorderCancelModel(object): def __init__(self): self._agent_info = None self._pr...
0
662
0
810
0
0
0
79
90
487039f83a472b4e7176bb06c0cb5769117638a2
10,320
py
Python
main.py
usingnamespacestc/sketchKeras-pytorch
56c779cd11aa5157dd7dca7cdebe9d3c317468d1
[ "Apache-2.0" ]
null
null
null
main.py
usingnamespacestc/sketchKeras-pytorch
56c779cd11aa5157dd7dca7cdebe9d3c317468d1
[ "Apache-2.0" ]
null
null
null
main.py
usingnamespacestc/sketchKeras-pytorch
56c779cd11aa5157dd7dca7cdebe9d3c317468d1
[ "Apache-2.0" ]
null
null
null
# Encoding: UTF-8 import numpy as np import torch import cv2 import os from src.model import SketchKeras import src.image_cutter as img_ctr import src.image_stitcher as img_str import random from tqdm import tqdm # import copy # import glob # import time device = "cuda" if torch.cuda.is_available() else "cpu" # def...
38.507463
97
0.455233
# Encoding: UTF-8 import argparse import numpy as np import torch import cv2 import os from src.model import SketchKeras import src.image_cutter as img_ctr import src.image_stitcher as img_str import random from tqdm import tqdm # import copy # import glob # import time device = "cuda" if torch.cuda.is_available() el...
765
0
0
0
0
2,688
0
-6
137
c3a263f06617fa861057b44128afa4596e1d50df
188
py
Python
src/python/stup/crypto/digest.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
14
2017-05-06T10:14:32.000Z
2018-07-17T02:58:00.000Z
src/python/stup/crypto/digest.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
2
2017-06-13T05:40:18.000Z
2017-06-13T16:23:01.000Z
src/python/stup/crypto/digest.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
4
2017-06-09T20:20:54.000Z
2018-07-17T02:58:10.000Z
from __future__ import absolute_import, print_function, with_statement
26.857143
70
0.792553
from __future__ import absolute_import, print_function, with_statement import Crypto.Hash.MD5 def digest(plain_text): return Crypto.Hash.MD5.new(plain_text.encode('UTF-8')).digest()
0
0
0
0
0
70
0
1
46
7ab4ce0cd20f735efd474f33db4f9fa53b76876e
544
py
Python
go_id_count.py
oneilsh/apcb_files
4912f96ad9348817788285221d2f5c96a0dba9dc
[ "MIT" ]
null
null
null
go_id_count.py
oneilsh/apcb_files
4912f96ad9348817788285221d2f5c96a0dba9dc
[ "MIT" ]
null
null
null
go_id_count.py
oneilsh/apcb_files
4912f96ad9348817788285221d2f5c96a0dba9dc
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys if(sys.stdin.isatty()): print("Usage: cat <annotation file> | ./countannots.py") quit() ids_to_counts = dict() # Parse input for line in sys.stdin: line_list = line.strip().split("\t") seqid = line_list[0] if ids_to_counts.has_key(seqid): ids_to_counts[seq...
20.923077
60
0.654412
#!/usr/bin/env python import sys if(sys.stdin.isatty()): print("Usage: cat <annotation file> | ./countannots.py") quit() ids_to_counts = dict() # Parse input for line in sys.stdin: line_list = line.strip().split("\t") seqid = line_list[0] if ids_to_counts.has_key(seqid): ids_to_counts[seq...
0
0
0
0
0
0
0
0
0
4dc4294f6310f796d9128788e6d7ff6401720093
1,548
py
Python
common/xrd-ui-tests-python/tests/xroad_local_group/XroadRemoveLocalGroupMembers.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
3
2018-03-15T14:22:50.000Z
2021-11-08T10:30:35.000Z
common/xrd-ui-tests-python/tests/xroad_local_group/XroadRemoveLocalGroupMembers.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
11
2017-04-06T09:25:41.000Z
2018-06-04T09:08:48.000Z
common/xrd-ui-tests-python/tests/xroad_local_group/XroadRemoveLocalGroupMembers.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
20
2017-03-14T07:21:58.000Z
2019-05-21T09:26:30.000Z
from __future__ import absolute_import
35.181818
96
0.674419
from __future__ import absolute_import import unittest from main.maincontroller import MainController from tests.xroad_local_group import xroad_local_group class XroadRemoveLocalGroupMembers(unittest.TestCase): """ UC SERVICE_27 Remove Members from a Local Group RIA URL: https://jira.ria.ee/browse/XT-28...
0
0
0
1,366
0
0
0
51
91
0eef6aed6cb9e895362da852afb25b9cdaac5abf
2,515
py
Python
Proyecto_albergue_mascotas_local/Albergue_mascotas/pagina1app/urls.py
hefecaso/Tareas_proyectos_1S_2022
39e8b569d5b871ac303e0c5b906c627ae5038149
[ "Apache-2.0" ]
null
null
null
Proyecto_albergue_mascotas_local/Albergue_mascotas/pagina1app/urls.py
hefecaso/Tareas_proyectos_1S_2022
39e8b569d5b871ac303e0c5b906c627ae5038149
[ "Apache-2.0" ]
null
null
null
Proyecto_albergue_mascotas_local/Albergue_mascotas/pagina1app/urls.py
hefecaso/Tareas_proyectos_1S_2022
39e8b569d5b871ac303e0c5b906c627ae5038149
[ "Apache-2.0" ]
null
null
null
from django.urls import path #importamos de la primer app lo relacionado #a las vistas from pagina1app import views from django.conf import settings from django.conf.urls.static import static from django.contrib.auth import views as auth_views #Password reset urlpatterns = [ path('',views.home, name="Home"), ...
41.916667
104
0.726839
from django.urls import path, include #importamos de la primer app lo relacionado #a las vistas from pagina1app import views from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.contrib.auth import views as auth_views #Password reset urlpatterns = [ ...
6
0
0
0
0
0
0
20
22
26946124c99441b370ef41ae050e91297cbdb9be
171
py
Python
ultrasonic_ranger/main.py
philgough/grove_pygestures
fed8ab4a0938c6606cb8ec579a324e6d4b53c56b
[ "MIT" ]
3
2019-09-01T22:53:06.000Z
2019-09-10T00:42:57.000Z
ultrasonic_ranger/main.py
philgough/grove_pygestures
fed8ab4a0938c6606cb8ec579a324e6d4b53c56b
[ "MIT" ]
null
null
null
ultrasonic_ranger/main.py
philgough/grove_pygestures
fed8ab4a0938c6606cb8ec579a324e6d4b53c56b
[ "MIT" ]
2
2019-09-24T07:00:03.000Z
2019-11-05T05:22:49.000Z
rf = Rangefinder(pin1) display.show(Image.YES) while True: dist = rf.distance_cm() print((dist,)) sleep(10)
14.25
27
0.678363
from microbit import * from ultrasonic import * rf = Rangefinder(pin1) display.show(Image.YES) while True: dist = rf.distance_cm() print((dist,)) sleep(10)
0
0
0
0
0
0
0
4
44
0acedd5aae222dd1ce03293104c84e9170ec35e1
2,299
py
Python
composer/functional/__init__.py
coryMosaicML/composer
16622c9457874f4f3811287fe933b0ec58107fc7
[ "Apache-2.0" ]
null
null
null
composer/functional/__init__.py
coryMosaicML/composer
16622c9457874f4f3811287fe933b0ec58107fc7
[ "Apache-2.0" ]
null
null
null
composer/functional/__init__.py
coryMosaicML/composer
16622c9457874f4f3811287fe933b0ec58107fc7
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """Functional API for applying algorithms in your own training loop. .. code-block:: python from composer import functional as cf from torchvision import models model = models.resnet50() # replace some layers with blur...
36.492063
95
0.811222
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """Functional API for applying algorithms in your own training loop. .. code-block:: python from composer import functional as cf from torchvision import models model = models.resnet50() # replace some layers with blur...
0
0
0
0
0
0
0
0
0
5c6a64e14ffacccb495d1b66099c9fd6b91368eb
1,839
py
Python
scripts/get_virustotal_info.py
drobotun/python_pefile_scripts
4feee14414984580d12894a2319fc926995e6108
[ "MIT" ]
null
null
null
scripts/get_virustotal_info.py
drobotun/python_pefile_scripts
4feee14414984580d12894a2319fc926995e6108
[ "MIT" ]
null
null
null
scripts/get_virustotal_info.py
drobotun/python_pefile_scripts
4feee14414984580d12894a2319fc926995e6108
[ "MIT" ]
1
2021-03-01T11:37:34.000Z
2021-03-01T11:37:34.000Z
""" , - VirusTotal. API VirusTotal. VirusTotal. VT_API_KEY. md5, sha1 sha256 , . : python get_virustotal_info.py 44d88612fea8a8f36de82e1278abb02f """ import sys import os import requests if 'VT_API_KEY' in os.environ: vt_api_key = os.environ['VT_API_K...
36.058824
81
0.69603
""" Скрипт, отправляющий хэш-сумму файла для проверки на VirusTotal. Для работы необходим ключ доступа к API сервиса VirusTotal. Ключ можно получить после регистрации на VirusTotal. Для корректной работы скрипта ключ необходимо прописать в переменную среды VT_API_KEY. В качестве параметра скрипту передается md5,...
1,064
0
0
0
0
0
0
0
0
b17b62fd89be1a06fa2a86ad6f14426dec8cca8a
1,344
py
Python
planegeometry/structures/events.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
planegeometry/structures/events.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
planegeometry/structures/events.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python
31.255814
84
0.609375
#!/usr/bin/python from functools import total_ordering @total_ordering class Event: """The class defining an event.""" LEFT = 0 # BentleyOttmann, ShamosHoey CROSSING = 1 # BentleyOttmann RIGHT = 2 # BentleyOttmann, ShamosHoey HORIZONTAL = 3 # HorizontalVertical VERTICAL = 4 # Horiz...
0
1,265
0
0
0
0
0
15
46
3120927cf3efe6b9bf75b4496ced99b69864aac4
5,105
py
Python
brie/utils/io_utils.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
38
2017-01-06T00:18:46.000Z
2022-01-25T19:44:10.000Z
brie/utils/io_utils.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
28
2017-01-11T09:12:57.000Z
2022-02-14T14:53:48.000Z
brie/utils/io_utils.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
12
2018-02-13T20:23:00.000Z
2022-01-05T18:39:19.000Z
# Containing API to load the count matrix data import anndata import numpy as np import pandas as pd from scipy.sparse import csc_matrix def convert_to_annData(Rmat_dict, effLen_tensor, cell_note, gene_note, fill_missing=True): """Convert matrices and annotation to annData """ Rmat = {} for _key...
31.319018
80
0.55906
# Containing API to load the count matrix data import anndata import numpy as np import pandas as pd from scipy.sparse import csc_matrix from anndata import read_h5ad from .gtf_utils import load_genes as read_gff def convert_to_annData(Rmat_dict, effLen_tensor, cell_note, gene_note, fill_missing=True): """...
0
0
0
0
0
0
0
32
45
a63c71982f1f14d9a78ed6b754efe97256164a40
3,088
py
Python
weak_scaling_sleeps.py
annawoodard/CHEP2019-funcx-coffea-benchmarks
2bb5de22ec765e7e5ab2a2b437415ebac1b80300
[ "Apache-2.0" ]
null
null
null
weak_scaling_sleeps.py
annawoodard/CHEP2019-funcx-coffea-benchmarks
2bb5de22ec765e7e5ab2a2b437415ebac1b80300
[ "Apache-2.0" ]
null
null
null
weak_scaling_sleeps.py
annawoodard/CHEP2019-funcx-coffea-benchmarks
2bb5de22ec765e7e5ab2a2b437415ebac1b80300
[ "Apache-2.0" ]
null
null
null
import argparse import os import time import sqlite3 import funcx from coffea.processor.funcx.detail import MappedFuncXFuture funcx.set_file_logger('funcx.log') client = funcx.sdk.client.FuncXClient(funcx_service_address='https://dev.funcx.org/api/v1') parser = argparse.ArgumentParser() parser.add_argument("--tasks_...
27.087719
147
0.68329
import argparse import os import time import sqlite3 from tqdm.auto import tqdm import funcx from coffea.processor.funcx.detail import MappedFuncXFuture funcx.set_file_logger('funcx.log') client = funcx.sdk.client.FuncXClient(funcx_service_address='https://dev.funcx.org/api/v1') parser = argparse.ArgumentParser() pa...
0
0
0
0
0
150
0
5
45
82bf7afa972b21988abca0d58016ef694980208d
2,461
py
Python
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[nl_NL-2017] 1.py
ghlecl/holidata
1db24d4aecab7ec7a007720987d84ffb0988b6db
[ "MIT" ]
null
null
null
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[nl_NL-2017] 1.py
ghlecl/holidata
1db24d4aecab7ec7a007720987d84ffb0988b6db
[ "MIT" ]
null
null
null
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[nl_NL-2017] 1.py
ghlecl/holidata
1db24d4aecab7ec7a007720987d84ffb0988b6db
[ "MIT" ]
null
null
null
[ { 'date': '2017-01-01', 'description': 'Nieuwjaarsdag', 'locale': 'nl-NL', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2017-04-14', 'description': 'Goede Vrijdag', 'locale': 'nl-NL', 'notes': '', 'region': ''...
21.587719
44
0.364892
[ { 'date': '2017-01-01', 'description': 'Nieuwjaarsdag', 'locale': 'nl-NL', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2017-04-14', 'description': 'Goede Vrijdag', 'locale': 'nl-NL', 'notes': '', 'region': ''...
0
0
0
0
0
0
0
0
0
5248beb60aa8b4799e73e97c7945f674a720e7b2
539
py
Python
Exercicios/ex033.py
HenriqueSOliver/Python_CursoEmVideo
6a8ab0c0fa3443990fc0bbbd817314065cf4e01b
[ "MIT" ]
1
2021-04-08T19:54:01.000Z
2021-04-08T19:54:01.000Z
Python (3)/Ex_finalizados/ex033.py
Gafanhoto742/Python-3
b0a13ec4cf60185af3ed2508fc69188e36415b80
[ "MIT" ]
null
null
null
Python (3)/Ex_finalizados/ex033.py
Gafanhoto742/Python-3
b0a13ec4cf60185af3ed2508fc69188e36415b80
[ "MIT" ]
null
null
null
# Faa um programa que leia trs nmeros e mostre qual o maior e qual o menor. a = int(input('Digite primeiro valor: ')) b = int(input('Digite segundo valor: ')) c = int(input('Digite terceiro valor: ')) #Verificar quem o menor nmero menor = a if b < a and b < c: menor = b if c < a and c < b: menor = c # verif...
28.368421
82
0.640074
# Faça um programa que leia três números e mostre qual é o maior e qual é o menor. a = int(input('Digite primeiro valor: ')) b = int(input('Digite segundo valor: ')) c = int(input('Digite terceiro valor: ')) #Verificar quem é o menor número menor = a if b < a and b < c: menor = b if c < a and c < b: menor = c ...
16
0
0
0
0
0
0
0
0
0e83aef00aa9d8880999797c4837be07366f1de0
1,257
py
Python
courses/python/cursoemvideo/exercicios/ex091_jogo_de_dados_com_sort_de_dicionarios.py
bdpcampos/public
dda57c265718f3e1cc0d6bce73f149051f5647ef
[ "MIT" ]
3
2020-04-28T01:42:09.000Z
2020-05-03T12:05:23.000Z
courses/python/cursoemvideo/exercicios/ex091_jogo_de_dados_com_sort_de_dicionarios.py
bdpcampos/public
dda57c265718f3e1cc0d6bce73f149051f5647ef
[ "MIT" ]
null
null
null
courses/python/cursoemvideo/exercicios/ex091_jogo_de_dados_com_sort_de_dicionarios.py
bdpcampos/public
dda57c265718f3e1cc0d6bce73f149051f5647ef
[ "MIT" ]
null
null
null
from random import randint jogo = dict() print('-=' * 25) print(f'{"Jogo de dados":^50}') print('-=' * 25) n = input('\nJogador 1 aperte [Q] e [ENTER] para jogar o dado: ') jogo['jogador1'] = randint(1, 6) rolar_dados() print(f'O dado caiu no {jogo["jogador1"]}') print('-' * 50) n = input('\nJogador 2 aperte [Q] e...
22.052632
73
0.585521
from random import randint from time import sleep def rolar_dados(): sleep(0.3) print('.', end='') sleep(0.3) print('.', end='') sleep(0.3) print('.', end='') sleep(0.3) print('.', end='') sleep(0.3) print('.', end='') jogo = dict() print('-=' * 25) print(f'{"Jogo de dados":^5...
2
0
0
0
0
187
0
1
45
38a9e35acdcff9cab573ca716fc25d85386197fa
10,426
py
Python
services/aggregation/spark_app.py
mikael-kolanowski/AIDA-Framework
fc131bb3575041e796b3052b0cce02964060a86e
[ "MIT" ]
8
2019-12-13T02:01:42.000Z
2022-01-09T10:37:03.000Z
services/aggregation/spark_app.py
mikael-kolanowski/AIDA-Framework
fc131bb3575041e796b3052b0cce02964060a86e
[ "MIT" ]
null
null
null
services/aggregation/spark_app.py
mikael-kolanowski/AIDA-Framework
fc131bb3575041e796b3052b0cce02964060a86e
[ "MIT" ]
4
2020-05-11T12:30:39.000Z
2021-09-27T08:11:54.000Z
""" Script for aggregation of IDEA events. Aggregates are marked in json IDEA message and send to output kafka topic. Example of marking: {..., '_aida:{'Duplicate: 'true, 'Continuing: <first_idea_id>}, ...} """ import sys import argparse import ujson as json from idea import Idea from kafka import KafkaProd...
33.960912
120
0.636198
""" Script for aggregation of IDEA events. Aggregates are marked in json IDEA message and send to output kafka topic. Example of marking: {..., '_aida’:{'Duplicate’: 'true’, 'Continuing’: <first_idea_id>}, ...} """ import os import sys import argparse import ujson as json from idea import Idea from kafka...
12
0
0
481
0
0
0
11
96
34d6b5d648551fde8088534053f50ed742dc0a43
70
py
Python
tests/effects/__init__.py
Nikolay-Lysenko/sinethesizer
fe6855186a00e701113ea5bb4fac104bf8497035
[ "MIT" ]
8
2019-07-25T12:17:38.000Z
2021-09-04T19:38:21.000Z
tests/effects/__init__.py
Nikolay-Lysenko/sinethesizer
fe6855186a00e701113ea5bb4fac104bf8497035
[ "MIT" ]
7
2019-07-20T18:04:54.000Z
2021-08-03T17:31:26.000Z
tests/effects/__init__.py
Nikolay-Lysenko/sinethesizer
fe6855186a00e701113ea5bb4fac104bf8497035
[ "MIT" ]
1
2019-10-16T18:44:43.000Z
2019-10-16T18:44:43.000Z
""" Test `sinethesizer.effects` package. Author: Nikolay Lysenko """
11.666667
36
0.714286
""" Test `sinethesizer.effects` package. Author: Nikolay Lysenko """
0
0
0
0
0
0
0
0
0
ecf313852012844253d8d44b953e9f87dc5cc415
253
py
Python
manipulacao_de_arquivos/List-Comprehension/comprehension_v4.py
andremartins746/curso_de_PYTHON
3b4d79e3310b2442cf57a98f213a153492f2a89a
[ "MIT" ]
null
null
null
manipulacao_de_arquivos/List-Comprehension/comprehension_v4.py
andremartins746/curso_de_PYTHON
3b4d79e3310b2442cf57a98f213a153492f2a89a
[ "MIT" ]
null
null
null
manipulacao_de_arquivos/List-Comprehension/comprehension_v4.py
andremartins746/curso_de_PYTHON
3b4d79e3310b2442cf57a98f213a153492f2a89a
[ "MIT" ]
null
null
null
# usando generator, ele comsome menos memoria generator = (i ** 2 for i in range(10) if i % 2 == 0) #aqui diferente das vercoes anteriores ele faz o sistema de stremer. #ele vai carregando sobre a nessecidade! for numero in generator: print(numero)
36.142857
68
0.735178
# usando generator, ele comsome menos memoria generator = (i ** 2 for i in range(10) if i % 2 == 0) #aqui diferente das vercoes anteriores ele faz o sistema de stremer. #ele vai carregando sobre a nessecidade! for numero in generator: print(numero)
0
0
0
0
0
0
0
0
0
fabb4e8be50b41c943673814506bd447cca13c8b
2,843
py
Python
slap_dj/scripts/fix_openapi_specs.py
FuckBrains/slap
dfd5ae095980920c12ba1451926aa5b819997a47
[ "BSD-3-Clause" ]
null
null
null
slap_dj/scripts/fix_openapi_specs.py
FuckBrains/slap
dfd5ae095980920c12ba1451926aa5b819997a47
[ "BSD-3-Clause" ]
null
null
null
slap_dj/scripts/fix_openapi_specs.py
FuckBrains/slap
dfd5ae095980920c12ba1451926aa5b819997a47
[ "BSD-3-Clause" ]
1
2021-07-09T15:34:52.000Z
2021-07-09T15:34:52.000Z
param_location_choices = ('query', 'header', 'path', 'cookie') if __name__ == '__main__': info = InfoObject(title='SLAP API', version='1.0.0')
30.244681
103
0.667253
import typing from dataclasses import dataclass import yaml import attr class AsDictMixin: def as_dict(self) -> dict: dct = {} for field in self.__slots__: if field: dct[field] = getattr(self, field) return dct @attr.s(slots=True) class InfoObject(AsDictMixin...
0
2,039
0
173
0
214
0
-16
273
b9c1c2829a093effcc324603cbf1032f1e838893
214
py
Python
hyppo/__init__.py
zdbzdb123123/hyppo
c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde
[ "MIT" ]
null
null
null
hyppo/__init__.py
zdbzdb123123/hyppo
c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde
[ "MIT" ]
null
null
null
hyppo/__init__.py
zdbzdb123123/hyppo
c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde
[ "MIT" ]
null
null
null
import hyppo.discrim import hyppo.independence import hyppo.ksample import hyppo.time_series import hyppo.kgof import hyppo.tools import hyppo.d_variate __version__ = "0.3.2"
19.454545
37
0.845794
import hyppo.discrim import hyppo.independence import hyppo.ksample import hyppo.time_series import hyppo.kgof import hyppo.tools import hyppo.d_variate import hyppo.conditional_independence __version__ = "0.3.2"
0
0
0
0
0
0
0
16
22
a2a2bfee0eaacba1b656eb066b884f7ba9d9dcde
7,277
py
Python
gendered-pronoun-resolution/optim.py
yasserglez/kaggle_titanic
7a4857ec9a99c31eb53a91dda3ad9ecd5b647278
[ "MIT" ]
2
2019-09-29T02:26:58.000Z
2020-03-06T07:38:58.000Z
gendered-pronoun-resolution/optim.py
yasserglez/kaggle_titanic
7a4857ec9a99c31eb53a91dda3ad9ecd5b647278
[ "MIT" ]
2
2018-12-17T04:32:09.000Z
2019-10-22T00:31:06.000Z
gendered-pronoun-resolution/optim.py
yasserglez/kaggle
7a4857ec9a99c31eb53a91dda3ad9ecd5b647278
[ "MIT" ]
null
null
null
import math import logging logger = logging.getLogger(__name__) def lr_schedule(step, total_steps, lr, lr_warmup, lr_cooldown): """Calculate a scheduled learning rate value.""" if lr_warmup is None: lr_warmup = 0 else: if 0 < lr_warmup <= 1: lr_warmup = math.ceil(lr_warmup * ...
45.48125
100
0.581558
import math import logging import numpy as np import torch from torch.optim import Optimizer from torch.nn.utils import clip_grad_norm_ logger = logging.getLogger(__name__) def lr_schedule(step, total_steps, lr, lr_warmup, lr_cooldown): """Calculate a scheduled learning rate value.""" if lr_warmup is None:...
0
0
0
6,575
0
0
0
21
112
853704f24ebc2d7646b79badfd5927d20a6b03ac
1,636
py
Python
training.py
DanielFlockhart/mnist-n--prediction-dbot
53b72d4b3123a67371693854552f1e27bf4451e4
[ "MIT" ]
null
null
null
training.py
DanielFlockhart/mnist-n--prediction-dbot
53b72d4b3123a67371693854552f1e27bf4451e4
[ "MIT" ]
null
null
null
training.py
DanielFlockhart/mnist-n--prediction-dbot
53b72d4b3123a67371693854552f1e27bf4451e4
[ "MIT" ]
null
null
null
import tensorflow as tf import matplotlib.pyplot as plt (x_train,y_train),(x_test,y_test)= tf.keras.datasets.mnist.load_data() x_train = tf.keras.utils.normalize(x_train, axis=1) x_test = tf.keras.utils.normalize(x_test, axis=1) x_train = x_train.reshape(-1, 28, 28, 1) x_test = x_test.reshape(-1, 28, 28, 1) ''' ...
33.387755
71
0.704768
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt from keras.datasets import mnist import time (x_train,y_train),(x_test,y_test)= tf.keras.datasets.mnist.load_data() x_train = tf.keras.utils.normalize(x_train, axis=1) x_test = tf.keras.utils.normalize(x_test, axis=1) x_train = x_train.r...
0
0
0
0
0
0
0
-2
69
d7e978f677498841591482f6c118206f86105ddf
640
py
Python
ParallelTrapezoidal/timing.py
KyleBond/genome-pattern-finder
78b8abf39a53bd4210b84d14523c16d34a9d2f59
[ "MIT" ]
null
null
null
ParallelTrapezoidal/timing.py
KyleBond/genome-pattern-finder
78b8abf39a53bd4210b84d14523c16d34a9d2f59
[ "MIT" ]
null
null
null
ParallelTrapezoidal/timing.py
KyleBond/genome-pattern-finder
78b8abf39a53bd4210b84d14523c16d34a9d2f59
[ "MIT" ]
null
null
null
import atexit from time import clock line = "="*40 start = clock() atexit.register(endlog)
20.645161
64
0.610938
import atexit import functools from time import clock def secondsToStr(t): return "%d:%02d:%02d.%03d" % \ functools.reduce(lambda ll,b : divmod(ll[0],b) + ll[1:], [(t*1000,),1000,60,60]) line = "="*40 def log(s, outputFile): print(line) outputFile.write(line) print(secondsToStr(clo...
0
0
0
0
0
430
0
-5
113
4e59ce6dd4946dd110e94e26d866b03054af3cb1
1,426
py
Python
tests/test_fusions.py
Karol-G/block.bootstrap.pytorch
f84cf08fb9276f7eab5ac096898b45f27c92e073
[ "BSD-3-Clause" ]
312
2018-11-16T00:36:51.000Z
2022-03-20T22:56:23.000Z
tests/test_fusions.py
cdancette/block.bootstrap.pytorch
6a39ed2c6fc931a9df39d2fdd8e4f2aa3168919e
[ "BSD-3-Clause" ]
21
2019-03-07T04:10:12.000Z
2021-07-01T09:07:22.000Z
tests/test_fusions.py
cdancette/block.bootstrap.pytorch
6a39ed2c6fc931a9df39d2fdd8e4f2aa3168919e
[ "BSD-3-Clause" ]
70
2019-02-16T13:31:11.000Z
2022-02-22T14:41:10.000Z
import torch import inspect import itertools from block.models.networks.fusions import fusions bsize = 2 x_arg = [ [torch.randn(bsize, 10), torch.randn(bsize, 20)], [torch.randn(bsize, 20), torch.randn(bsize, 10)], [torch.randn(bsize, 10), torch.randn(bsize, 10)] ] F_arg = [F for k, F in fusions.__dict__.i...
26.90566
67
0.599579
import pytest import torch import inspect import itertools from block.models.networks.fusions import fusions bsize = 2 x_arg = [ [torch.randn(bsize, 10), torch.randn(bsize, 20)], [torch.randn(bsize, 20), torch.randn(bsize, 10)], [torch.randn(bsize, 10), torch.randn(bsize, 10)] ] F_arg = [F for k, F in fusi...
0
886
0
0
0
0
0
-8
91
a29d8af563d1262c8d5913d21683e7a21aabc998
4,344
py
Python
dwi_ml/data/processing/space/neighbourhood.py
jhlegarreta/dwi_ml
f07327a5ac772f5d9569c1d24ef3c42511e8c874
[ "MIT" ]
null
null
null
dwi_ml/data/processing/space/neighbourhood.py
jhlegarreta/dwi_ml
f07327a5ac772f5d9569c1d24ef3c42511e8c874
[ "MIT" ]
null
null
null
dwi_ml/data/processing/space/neighbourhood.py
jhlegarreta/dwi_ml
f07327a5ac772f5d9569c1d24ef3c42511e8c874
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import itertools from typing import Iterable, Union import numpy as np def get_neighborhood_vectors_axes(radius: Union[float, Iterable[float]]): """This neighborhood definition lies on a sphere. Returns a list of 6 positions (up, down, left, right, behind, in front) at exactly `radius...
36.504202
80
0.660912
# -*- coding: utf-8 -*- import itertools from typing import Iterable, Union import numpy as np def get_neighborhood_vectors_axes(radius: Union[float, Iterable[float]]): """This neighborhood definition lies on a sphere. Returns a list of 6 positions (up, down, left, right, behind, in front) at exactly `radius...
0
0
0
0
0
0
0
0
0
5b061d331fcb3d984eb9bf1ce7601ae2404b6440
57
py
Python
enthought/pyface/ui/qt4/python_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/pyface/ui/qt4/python_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/pyface/ui/qt4/python_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module
19
41
0.789474
# proxy module from pyface.ui.qt4.python_editor import *
0
0
0
0
0
0
0
20
22
ebb99f8372be193a840d379f4910cf0e5885b448
445
py
Python
scripts/android_activity.py
prabhudeva17/AUBA
e4294db84d0e0f50e33bc1bb5d2e5cb91d6f74f2
[ "MIT" ]
null
null
null
scripts/android_activity.py
prabhudeva17/AUBA
e4294db84d0e0f50e33bc1bb5d2e5cb91d6f74f2
[ "MIT" ]
null
null
null
scripts/android_activity.py
prabhudeva17/AUBA
e4294db84d0e0f50e33bc1bb5d2e5cb91d6f74f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 ''' Android Activity Most Used Android Apps ''' import re #--activity in HTML format-- a=gethtmldata() #--Regex Expression-- androidapp=re.findall(r'\">([\w\s]+)</a><br>([\w\s\,\:]+)</div>',a) #--write data to csv file-- writecsv("Android_Application_Activity",['APPLICATION','DATE'],androi...
22.25
74
0.68764
#!/usr/bin/env python2.7 ''' Android Activity Most Used Android Apps ''' import re from wrcsv import * #--activity in HTML format-- a=gethtmldata() #--Regex Expression-- androidapp=re.findall(r'\">([\w\s]+)</a><br>([\w\s\,\:]+)</div>',a) #--write data to csv file-- writecsv("Android_Application_Activity",['APPLICA...
0
0
0
0
0
0
0
-2
22
053ce4ec4d1e667f64a93376dfee033b00809180
430
py
Python
Patient/migrations/0020_patient_state.py
s0hailAnsari/ARCIT
b1d6a0596efaa887a498c518e6a387adc7ec12c6
[ "MIT" ]
null
null
null
Patient/migrations/0020_patient_state.py
s0hailAnsari/ARCIT
b1d6a0596efaa887a498c518e6a387adc7ec12c6
[ "MIT" ]
20
2021-04-19T11:31:48.000Z
2021-09-07T07:51:10.000Z
Patient/migrations/0020_patient_state.py
s0hailAnsari/ARCIT
b1d6a0596efaa887a498c518e6a387adc7ec12c6
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-08-11 08:54
21.5
62
0.6
# Generated by Django 3.2 on 2021-08-11 08:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Patient', '0019_auto_20210713_1422'), ] operations = [ migrations.AddField( model_name='patient', name='state', ...
0
0
0
318
0
0
0
19
46
51175ba3d3a50ea311b8e561a4b8bb1125db5c0f
295
py
Python
map/urls.py
cobyc15/uvacampusmap
a6ba817a1fd6e14dbece395812728decfe6d537a
[ "MIT" ]
null
null
null
map/urls.py
cobyc15/uvacampusmap
a6ba817a1fd6e14dbece395812728decfe6d537a
[ "MIT" ]
null
null
null
map/urls.py
cobyc15/uvacampusmap
a6ba817a1fd6e14dbece395812728decfe6d537a
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url('', views.MapTemplate, name="default"), url('template2/', views.MapTemplate2, name="default"), url('template3/', views.MapTemplate3, name="default"), ]
32.777778
58
0.725424
from django.conf.urls import url from . import views from django.contrib.auth.decorators import login_required urlpatterns = [ url('', views.MapTemplate, name="default"), url('template2/', views.MapTemplate2, name="default"), url('template3/', views.MapTemplate3, name="default"), ]
0
0
0
0
0
0
0
36
22
f2cdafc8a58de3b79f577533d9024d65b3750ffd
1,836
py
Python
crichtonweb/core/introspection_rules.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
crichtonweb/core/introspection_rules.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
crichtonweb/core/introspection_rules.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
# Crichton, Admirable Source Configuration Management # Copyright 2012 British Broadcasting Corporation # # 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/licens...
32.785714
75
0.656318
# Crichton, Admirable Source Configuration Management # Copyright 2012 British Broadcasting Corporation # # 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/licens...
0
0
0
0
0
847
0
58
66
9c91203de9c716e6ca28280d11afef5e11ec4e3e
422
py
Python
solutions/minimum_deletions_balance_string/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/minimum_deletions_balance_string/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/minimum_deletions_balance_string/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
from .solution import minimumDeletions from ..utils import io, printer print('Enter string only consisting of "a"s and "b"s:', end=' ') s = io.get(str).lower() violating_characters = set(s) - set('ab') assert len(violating_characters) == 0, f'Violating characters: {", ".join(violating_characters)}' deletions = minim...
38.363636
97
0.729858
from .solution import minimumDeletions from ..utils import io, printer print('Enter string only consisting of "a"s and "b"s:', end=' ') s = io.get(str).lower() violating_characters = set(s) - set('ab') assert len(violating_characters) == 0, f'Violating characters: {", ".join(violating_characters)}' deletions = minim...
0
0
0
0
0
0
0
0
0
fe61d2d2f5f1833b68e2f9bd129597220ef28192
904
py
Python
web/app/__init__.py
pierre-chaville/automlk
61386beba62f72360e1f5f8d6bcce17df653e2e8
[ "MIT" ]
16
2017-09-05T12:26:11.000Z
2019-10-26T22:55:41.000Z
web/app/__init__.py
pierre-chaville/automlk
61386beba62f72360e1f5f8d6bcce17df653e2e8
[ "MIT" ]
1
2018-02-07T11:16:43.000Z
2018-02-07T11:16:43.000Z
web/app/__init__.py
pierre-chaville/automlk
61386beba62f72360e1f5f8d6bcce17df653e2e8
[ "MIT" ]
8
2017-09-21T01:20:52.000Z
2021-01-21T10:03:34.000Z
from flask import Flask from automlk.folders import has_subfolders app = Flask(__name__) SESSION_TYPE = 'redis' app.config.from_object('config') app.jinja_env.globals.update(print_summary=print_summary) app.jinja_env.globals.update(print_summary=print_summary) app.jinja_env.globals.update(print_list=print_list) app.ji...
41.090909
69
0.860619
from flask import Flask, session from automlk.print import * from automlk.folders import has_subfolders app = Flask(__name__) SESSION_TYPE = 'redis' app.config.from_object('config') app.jinja_env.globals.update(print_summary=print_summary) app.jinja_env.globals.update(print_summary=print_summary) app.jinja_env.globals...
0
0
0
0
0
0
0
15
45
ab4e598b95f8d66d32758c5a2c2a4d55724aeef0
466
py
Python
rallybooking/migrations/0002_auto_20181005_1339.py
DaleShipp/devoncc
8bec11cf363ac5a5c16eda9a6c50e9f901142211
[ "BSD-3-Clause" ]
null
null
null
rallybooking/migrations/0002_auto_20181005_1339.py
DaleShipp/devoncc
8bec11cf363ac5a5c16eda9a6c50e9f901142211
[ "BSD-3-Clause" ]
null
null
null
rallybooking/migrations/0002_auto_20181005_1339.py
DaleShipp/devoncc
8bec11cf363ac5a5c16eda9a6c50e9f901142211
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.1 on 2018-10-05 12:39
19.416667
47
0.545064
# Generated by Django 2.1.1 on 2018-10-05 12:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('rallybooking', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='choice', name='question', ), ...
0
0
0
360
0
0
0
11
46
c3d07282b97c4e0f2a6c9e6212cc324e43edb8b7
2,873
py
Python
python/hdlc_framer.py
artemies/gr-kiss
2e0d74ac91976ce0bfdc9ffff2d84146f333ede9
[ "Unlicense" ]
20
2016-05-31T10:42:49.000Z
2022-02-18T00:59:07.000Z
python/hdlc_framer.py
artemies/gr-kiss
2e0d74ac91976ce0bfdc9ffff2d84146f333ede9
[ "Unlicense" ]
2
2016-08-30T10:02:05.000Z
2017-02-16T22:17:45.000Z
python/hdlc_framer.py
artemies/gr-kiss
2e0d74ac91976ce0bfdc9ffff2d84146f333ede9
[ "Unlicense" ]
8
2016-06-12T01:41:29.000Z
2021-03-18T05:47:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2016 Daniel Estevez <daniel@destevez.net>. # # 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 witho...
35.9125
107
0.638705
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2016 Daniel Estevez <daniel@destevez.net>. # # 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 witho...
0
0
0
1,596
0
0
0
-40
157
b010590ec4ead0cb50715bad094369aae692bf70
7,134
py
Python
skyproj/skyproj.py
erykoff/skyproj
f00af06df032c6956e9ce191b55b173eb5415b3a
[ "BSD-3-Clause" ]
6
2022-02-22T15:44:35.000Z
2022-03-31T17:14:18.000Z
skyproj/skyproj.py
erykoff/skyproj
f00af06df032c6956e9ce191b55b173eb5415b3a
[ "BSD-3-Clause" ]
15
2022-01-11T22:06:16.000Z
2022-03-07T21:49:48.000Z
skyproj/skyproj.py
LSSTDESC/skyproj
c1e3365e958b2bd99e72e4e053da6b0ddaceb2b2
[ "BSD-3-Clause" ]
null
null
null
__all__ = ['Skyproj', 'McBrydeSkyproj', 'LaeaSkyproj', 'MollweideSkyproj', 'HammerSkyproj', 'EqualEarthSkyproj', 'GnomonicSkyproj', 'ObliqueMollweideSkyproj'] # The default skyproj is a cylindrical Plate Carree projection. # The following skyprojs include the equal-area projections that ar...
29.118367
75
0.561396
import numpy as np from ._skyproj import _Skyproj __all__ = ['Skyproj', 'McBrydeSkyproj', 'LaeaSkyproj', 'MollweideSkyproj', 'HammerSkyproj', 'EqualEarthSkyproj', 'GnomonicSkyproj', 'ObliqueMollweideSkyproj'] class _Stadium: """Extension class to create a stadium-shaped projection boundary...
0
1,073
0
5,259
0
0
0
6
297
993d9fbda4a2a330d2b65835c966d28691cb4372
1,069
py
Python
application.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
application.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
application.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
import sys import logging import argparse from logging.config import fileConfig from calculator import ExpressionCalculator def main(): """ Driver function that collects user inputs and passes it to the underlying engine :returns integer indicating success or failure """ logger = logging.getLogg...
30.542857
101
0.737138
import sys import logging import argparse from logging.config import fileConfig from calculator import ExpressionCalculator def main(): """ Driver function that collects user inputs and passes it to the underlying engine :returns integer indicating success or failure """ logger = logging.getLogg...
0
0
0
0
0
0
0
0
0
2b6feae1aa0b1a0450a463a5faef82db81a55dbb
108,656
py
Python
integreat_cms/cms/migrations/0001_initial.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
21
2018-10-26T20:10:45.000Z
2020-10-22T09:41:46.000Z
integreat_cms/cms/migrations/0001_initial.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
392
2018-10-25T08:34:07.000Z
2020-11-19T08:20:30.000Z
integreat_cms/cms/migrations/0001_initial.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
23
2019-03-06T17:11:35.000Z
2020-10-16T04:36:41.000Z
# Generated by Django 3.2.11 on 2022-01-16 01:51 import django.contrib.auth.validators import django.contrib.postgres.fields import django.core.validators import integreat_cms.cms.models.media.media_file
40.035372
279
0.356584
# Generated by Django 3.2.11 on 2022-01-16 01:51 import datetime from django.conf import settings import django.contrib.auth.validators import django.contrib.postgres.fields import django.core.validators from django.db import migrations, models from django.utils.timezone import utc import django.utils.timezone import ...
4
0
0
108,225
0
0
0
68
156
2be27c104f6250e33ed2eb77997c5ec583067a86
1,475
py
Python
tests/test_service.py
croixbleueqc/scaffold-aiohttp
9a2a6b5f367e663f37f23a982bc894c46547cb38
[ "Apache-2.0" ]
null
null
null
tests/test_service.py
croixbleueqc/scaffold-aiohttp
9a2a6b5f367e663f37f23a982bc894c46547cb38
[ "Apache-2.0" ]
null
null
null
tests/test_service.py
croixbleueqc/scaffold-aiohttp
9a2a6b5f367e663f37f23a982bc894c46547cb38
[ "Apache-2.0" ]
2
2020-08-31T21:46:24.000Z
2020-09-14T15:35:28.000Z
'''Test service module ''' # Copyright 2019 mickybart # 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...
28.365385
74
0.68339
'''Test service module ''' # Copyright 2019 mickybart # 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...
0
0
0
724
0
0
0
-6
159
cfa5e72c8ca54c153603f981fdc77d73ea340667
1,925
py
Python
pyrules/rules.py
petrilli/pyrules
c41e1a8b91a20bf28ba410ba9ffeb225b8092fd6
[ "BSD-3-Clause" ]
2
2017-06-29T15:44:41.000Z
2019-05-06T08:33:52.000Z
pyrules/rules.py
petrilli/pyrules
c41e1a8b91a20bf28ba410ba9ffeb225b8092fd6
[ "BSD-3-Clause" ]
353
2017-06-09T16:49:17.000Z
2022-03-28T05:20:17.000Z
pyrules/rules.py
petrilli/pyrules
c41e1a8b91a20bf28ba410ba9ffeb225b8092fd6
[ "BSD-3-Clause" ]
2
2017-06-29T15:50:32.000Z
2019-06-12T10:49:08.000Z
# -*- coding: utf-8 -*- """Rule definitions Rules are the core of the system. They express specifically what we want to happen as data is processed. The RuleEngine runs in a slightly modified version of the OPS5 model, but Rules generally follow. """
30.555556
77
0.648312
# -*- coding: utf-8 -*- """Rule definitions Rules are the core of the system. They express specifically what we want to happen as data is processed. The RuleEngine runs in a slightly modified version of the OPS5 model, but Rules generally follow. """ from weakref import proxy from .memory import WorkingMemory class...
0
0
0
1,588
0
0
0
16
67
587fc8edb1566ec27a5c9292ba3efe21924f3872
10,729
py
Python
trove/tests/unittests/cluster/test_mongodb_cluster.py
Tesora-Release/tesora-trove
042145a573ce08b5d7cb25e1491e391e777a20be
[ "Apache-2.0" ]
2
2016-08-27T01:59:08.000Z
2018-06-08T10:02:08.000Z
trove/tests/unittests/cluster/test_mongodb_cluster.py
Tesora-Release/tesora-trove
042145a573ce08b5d7cb25e1491e391e777a20be
[ "Apache-2.0" ]
null
null
null
trove/tests/unittests/cluster/test_mongodb_cluster.py
Tesora-Release/tesora-trove
042145a573ce08b5d7cb25e1491e391e777a20be
[ "Apache-2.0" ]
7
2016-04-06T19:03:03.000Z
2018-10-12T21:50:51.000Z
# Copyright 2015 Tesora Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
47.897321
79
0.58039
# Copyright 2015 Tesora Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
0
6,577
0
3,095
0
0
0
138
245
7ad67d50af53029ec19131031fcd586d4dc241f7
7,474
py
Python
apps/lib/helpers/maps/static_maps.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
9
2015-05-29T22:22:20.000Z
2022-02-01T20:39:00.000Z
apps/lib/helpers/maps/static_maps.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
143
2015-01-22T15:03:40.000Z
2020-06-27T01:55:29.000Z
apps/lib/helpers/maps/static_maps.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
5
2015-03-16T20:51:49.000Z
2017-02-07T20:48:49.000Z
#!/usr/bin/env python from django.conf import settings
42.954023
189
0.628847
#!/usr/bin/env python import os from os import path from django.conf import settings from django.conf import settings from django.http import HttpResponse from PIL import Image, ImageFilter, ImageDraw, ImageFont, ImageOps from localground.apps.lib.helpers.units import Units from django.contrib.gis.geos import Point, Li...
0
1,119
0
5,867
0
0
0
154
248
e0cab193fbc66a2066d05e963caa0969c6b0d668
2,674
py
Python
instmakeplugins/report_duplicate.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
instmakeplugins/report_duplicate.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
instmakeplugins/report_duplicate.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2010 by Cisco Systems, Inc. """ Report duplicate actions: same action in same workding dir. """ import getopt import sys from instmakelib import instmake_log as LOG def make_key(dir, cmdline): """Make a single string, combining multiple fields.""" return dir + "|" + cmdline def report_duplica...
24.53211
64
0.579656
# Copyright (c) 2010 by Cisco Systems, Inc. """ Report duplicate actions: same action in same workding dir. """ import getopt import sys from instmakelib import instmake_log as LOG def make_key(dir, cmdline): """Make a single string, combining multiple fields.""" return dir + "|" + cmdline def report_duplica...
0
0
0
0
0
1,527
0
0
46
f9ef714bcde92626b66413da28a81f356320a8bd
429
py
Python
ThreadInGroup.py
nmondal/pyunitperf
cf0c041264aed596bd62f6b11c1c0e77a2a692ec
[ "Apache-2.0" ]
2
2015-07-01T06:22:54.000Z
2016-07-28T14:16:19.000Z
ThreadInGroup.py
nmondal/pyunitperf
cf0c041264aed596bd62f6b11c1c0e77a2a692ec
[ "Apache-2.0" ]
1
2015-07-14T11:39:59.000Z
2015-07-14T17:51:56.000Z
ThreadInGroup.py
nmondal/pyunitperf
cf0c041264aed596bd62f6b11c1c0e77a2a692ec
[ "Apache-2.0" ]
null
null
null
""" Port of jUnitPerf to Python ************************************** * Ported to Python by Grig Gheorghiu * ************************************** """
21.45
61
0.592075
""" Port of jUnitPerf to Python ************************************** * Ported to Python by Grig Gheorghiu * ************************************** """ from threading import Thread class ThreadInGroup(Thread): def __init__(self, group, target, name=None): Thread.__init__(self, group=None, target=target, name=...
0
0
0
217
0
0
0
7
46
a966b0427e04f99ab14c55e6626867a7eff41082
2,089
py
Python
chapters/src_folder_desc.py
joha2/FreeCAD_Mod_Dev_Guide
580bf175e76eaaffdc9632b405aa681461a74f5f
[ "CC0-1.0" ]
1
2021-09-13T07:20:17.000Z
2021-09-13T07:20:17.000Z
chapters/src_folder_desc.py
joha2/FreeCAD_Mod_Dev_Guide
580bf175e76eaaffdc9632b405aa681461a74f5f
[ "CC0-1.0" ]
null
null
null
chapters/src_folder_desc.py
joha2/FreeCAD_Mod_Dev_Guide
580bf175e76eaaffdc9632b405aa681461a74f5f
[ "CC0-1.0" ]
null
null
null
# initial based on FreeCAD 0.17dev #last edit: 2019-08 SourceFolder=[ ("Base","Foundamental classes for FreeCAD", """import as FreeCAD in Python, see detailed description in later section"""), ("App","nonGUI code: Document, Property and DocumentObject", """import as FreeCAD in Python, see detailed description in late...
56.459459
125
0.744375
# initial based on FreeCAD 0.17dev #last edit: 2019-08 SourceFolder=[ ("Base","Foundamental classes for FreeCAD", """import as FreeCAD in Python, see detailed description in later section"""), ("App","nonGUI code: Document, Property and DocumentObject", """import as FreeCAD in Python, see detailed description in late...
0
0
0
0
0
0
0
0
0
36d21c29ac212c1dffce9cdf32e2aebc6edc715a
1,514
py
Python
astron/client_messages.py
Astron/astron.libpython
d0dbb23c638d4caf17e3ec534a8fbcf5c4550b35
[ "BSD-3-Clause" ]
3
2015-04-21T20:24:42.000Z
2021-02-25T06:07:41.000Z
astron/client_messages.py
chandler14362/astron.libpython
d0dbb23c638d4caf17e3ec534a8fbcf5c4550b35
[ "BSD-3-Clause" ]
null
null
null
astron/client_messages.py
chandler14362/astron.libpython
d0dbb23c638d4caf17e3ec534a8fbcf5c4550b35
[ "BSD-3-Clause" ]
3
2015-12-09T06:59:10.000Z
2021-02-25T06:07:43.000Z
# This file defines messages used by the Astron "Client Protocol" # See https://astron.github.io/astron/en/master/10-client.html. CLIENT_HELLO = 1 # Sent to handshake the protocol CLIENT_HELLO_RESP = 2 # CLIENT_DISCONNECT = 3 # Sent when client is leaving. CLIENT_EJECT = 4 # Received when server is booting ...
60.56
132
0.771466
# This file defines messages used by the Astron "Client Protocol" # See https://astron.github.io/astron/en/master/10-client.html. CLIENT_HELLO = 1 # Sent to handshake the protocol CLIENT_HELLO_RESP = 2 # CLIENT_DISCONNECT = 3 # Sent when client is leaving. CLIENT_EJECT = 4 # Received when server is booting ...
0
0
0
0
0
0
0
0
0
a26ef7208288a79086a1424940debd0cc701ee2c
2,822
py
Python
swagat/views.py
AmanGiri007/helloaman
f1dd886c630a5276009b77159e0516a80148f65a
[ "MIT" ]
null
null
null
swagat/views.py
AmanGiri007/helloaman
f1dd886c630a5276009b77159e0516a80148f65a
[ "MIT" ]
1
2021-06-04T23:34:09.000Z
2021-06-04T23:34:09.000Z
swagat/views.py
AmanGiri007/helloaman
f1dd886c630a5276009b77159e0516a80148f65a
[ "MIT" ]
null
null
null
# Create your views here.
34.839506
83
0.661942
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect from django.views.generic import View from .forms import LoginForm,RegisterForm from .models import List from django.views.decorators.csrf import csrf_exempt from django.contrib.auth import login,logout,authenticate from djang...
0
456
0
1,617
0
213
0
178
333
644970bac1ded8ee6a8b2f7b8594f0d7e6f467a1
1,629
py
Python
python/PyQt5/18_color_test.py
nnaabbcc/exercise
255fd32b39473b3d0e7702d4b1a8a97bed2a68f8
[ "MIT" ]
1
2016-11-23T08:18:08.000Z
2016-11-23T08:18:08.000Z
python/PyQt5/18_color_test.py
nnaabbcc/exercise
255fd32b39473b3d0e7702d4b1a8a97bed2a68f8
[ "MIT" ]
null
null
null
python/PyQt5/18_color_test.py
nnaabbcc/exercise
255fd32b39473b3d0e7702d4b1a8a97bed2a68f8
[ "MIT" ]
1
2016-11-23T08:17:34.000Z
2016-11-23T08:17:34.000Z
from PyQt5.QtWidgets import QApplication if __name__ == '__main__': import sys app = QApplication(sys.argv) w = MyWidget() w.show() sys.exit(app.exec_())
24.681818
70
0.5752
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout from PyQt5.QtGui import QColor, QPainter from PyQt5.QtCore import Qt class MyWidget(QWidget): def __init__(self): super(QWidget, self).__init__() self.title = 'PyQt5 Color example' self.left = 100 self.top = 100 ...
0
0
0
1,314
0
0
0
47
90
f3af6e3ca5e2efa450f4f97c979ac85d1bd720d9
1,857
py
Python
source/diagrams.py
jpconsuegra/compilers-uh
794a080a1b0c7fc4fb16ae21c4cc58940cf8ba92
[ "MIT" ]
null
null
null
source/diagrams.py
jpconsuegra/compilers-uh
794a080a1b0c7fc4fb16ae21c4cc58940cf8ba92
[ "MIT" ]
null
null
null
source/diagrams.py
jpconsuegra/compilers-uh
794a080a1b0c7fc4fb16ae21c4cc58940cf8ba92
[ "MIT" ]
1
2022-02-17T00:05:53.000Z
2022-02-17T00:05:53.000Z
# coding: utf8
29.015625
144
0.558966
# coding: utf8 import pydot from .base import Graph class Pipeline(Graph): """Represents a pipeline diagram. `nodes` is a dictionary of nodes `name` -> `shape`. `edges` is a list of edges, tuples of the form `(name, name, label)`. `**kwargs` is a list of args passed to `pydot` directly. >>> Pi...
6
0
0
1,752
0
0
0
-7
92
7c804d98ac5e1146099df41da1dabf4cf36b4024
1,368
py
Python
safe_transaction_service/tokens/migrations/0002_auto_20200903_1045.py
alvarof2/safe-transaction-service
61ee03ee2f712941c2b319d1cf2240c414a2177c
[ "MIT" ]
2
2021-09-14T06:41:28.000Z
2022-01-22T14:50:26.000Z
safe_transaction_service/tokens/migrations/0002_auto_20200903_1045.py
protofire/safe-transaction-service
5e84b9828f73e0419a2a8828b68e23eea7848895
[ "MIT" ]
8
2022-03-15T18:39:45.000Z
2022-03-28T01:28:13.000Z
safe_transaction_service/tokens/migrations/0002_auto_20200903_1045.py
protofire/safe-transaction-service
5e84b9828f73e0419a2a8828b68e23eea7848895
[ "MIT" ]
1
2022-03-29T12:19:51.000Z
2022-03-29T12:19:51.000Z
# Generated by Django 3.0.9 on 2020-09-03 10:45
30.4
89
0.653509
# Generated by Django 3.0.9 on 2020-09-03 10:45 from django.db import migrations, models from eth_abi.exceptions import DecodingError from web3.exceptions import BadFunctionCallOutput from gnosis.eth import EthereumClientProvider def fix_token_decimals(apps, schema_editor): Token = apps.get_model('tokens', 'To...
0
0
0
541
0
546
0
94
137
c2fbc9307c6275709a44b2c6e844cc3b822c648b
5,714
py
Python
Server/messaging.py
JohannaLatt/SHM-Server
7897032dc861748b8b9b7083c0ea1ac3d412ba3b
[ "MIT" ]
null
null
null
Server/messaging.py
JohannaLatt/SHM-Server
7897032dc861748b8b9b7083c0ea1ac3d412ba3b
[ "MIT" ]
null
null
null
Server/messaging.py
JohannaLatt/SHM-Server
7897032dc861748b8b9b7083c0ea1ac3d412ba3b
[ "MIT" ]
null
null
null
# The format in which messages are shared accross the service
39.958042
159
0.641757
from Server.utils.enums import MSG_FROM_MIRROR_KEYS from Server.utils.enums import MSG_FROM_KINECT_KEYS from Server.utils.enums import MSG_TO_MIRROR_KEYS from amqpstorm import Connection import configparser import queue import json from datetime import datetime # The format in which messages are shared accross the ...
0
0
0
5,340
0
0
0
86
223
00f8e4f2bdfd864ae4303122c09587f1578fa207
1,620
py
Python
src/sage/combinat/sf/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/combinat/sf/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/combinat/sf/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
r""" Symmetric Functions - :class:`Introduction to Symmetric Functions <sage.combinat.sf.sf.SymmetricFunctions>` - :ref:`sage.combinat.sf.sfa` - :ref:`sage.combinat.sf.sf` - :ref:`sage.combinat.sf.classical` - :ref:`sage.combinat.sf.schur` - :ref:`sage.combinat.sf.monomial` - :ref:`sage.combinat.sf.multiplicative` - ...
33.75
87
0.708642
r""" Symmetric Functions - :class:`Introduction to Symmetric Functions <sage.combinat.sf.sf.SymmetricFunctions>` - :ref:`sage.combinat.sf.sfa` - :ref:`sage.combinat.sf.sf` - :ref:`sage.combinat.sf.classical` - :ref:`sage.combinat.sf.schur` - :ref:`sage.combinat.sf.monomial` - :ref:`sage.combinat.sf.multiplicative` - ...
0
0
0
0
0
0
0
0
0
39fd2d645db243cd13398df68a6d2cc1597bf61a
17,188
py
Python
schedulesy/apps/ade_api/ade.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
1
2020-07-24T19:17:56.000Z
2020-07-24T19:17:56.000Z
schedulesy/apps/ade_api/ade.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
1
2020-07-09T10:23:28.000Z
2020-07-09T10:23:28.000Z
schedulesy/apps/ade_api/ade.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """ ADE Web API Copyright (C) 2011-2015 "Sbastien Celles" <s.celles@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License,...
30.260563
106
0.562195
#!/usr/bin/python """ ADE Web API Copyright (C) 2011-2015 "Sébastien Celles" <s.celles@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License...
2
275
0
13,814
0
0
0
29
478
e4b5fc17ee7dd19a5575bcd6f6c2ef85d216b54b
1,814
py
Python
Python/tdw/FBOutput/IdPassGrayscale.py
felixbinder/tdw
eb2b00b74b9fcf8ef2dcba1baa62424640c520b1
[ "BSD-2-Clause" ]
307
2020-05-20T18:08:49.000Z
2022-03-21T19:55:08.000Z
Python/tdw/FBOutput/IdPassGrayscale.py
felixbinder/tdw
eb2b00b74b9fcf8ef2dcba1baa62424640c520b1
[ "BSD-2-Clause" ]
92
2020-07-21T18:29:13.000Z
2022-03-28T07:25:54.000Z
Python/tdw/FBOutput/IdPassGrayscale.py
felixbinder/tdw
eb2b00b74b9fcf8ef2dcba1baa62424640c520b1
[ "BSD-2-Clause" ]
53
2020-07-14T15:55:17.000Z
2022-03-20T16:20:01.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FBOutput
38.595745
161
0.692944
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FBOutput import tdw.flatbuffers class IdPassGrayscale(object): __slots__ = ['_tab'] @classmethod def GetRootAsIdPassGrayscale(cls, buf, offset): n = tdw.flatbuffers.encode.Get(tdw.flatbuffers.packer.uoff...
0
211
0
917
0
423
0
1
167
abd3c1c642cdd4f7274c2a99340f96a535520f0a
313
py
Python
teaparty/__init__.py
idooo/teaparty
7e8affa8bd75c624adbe298bc47d33cb5d6a70fc
[ "MIT" ]
null
null
null
teaparty/__init__.py
idooo/teaparty
7e8affa8bd75c624adbe298bc47d33cb5d6a70fc
[ "MIT" ]
null
null
null
teaparty/__init__.py
idooo/teaparty
7e8affa8bd75c624adbe298bc47d33cb5d6a70fc
[ "MIT" ]
null
null
null
__version__ = 0.2 import sys if sys.argv[0] != 'setup.py': try: except Exception: pass
17.388889
35
0.638978
__version__ = 0.2 import sys if sys.argv[0] != 'setup.py': from ec2_helper import * from cloudwatch_helper import * from elb_helper import * from model import * from metric_queue import * from executor import * try: from sockets import * except Exception: pass
0
0
0
0
0
0
0
20
187
e91fe85ad2374a8380d00217d7a65b9aeb3ce719
1,518
py
Python
python/server.py
EasonGuo666/ComputerNetworkingExperiment
5202bc7704d7201778747855fa8ba02dbf079ec4
[ "BSD-2-Clause" ]
1
2021-11-02T12:38:15.000Z
2021-11-02T12:38:15.000Z
python/server.py
EasonGuo666/ComputerNetworkingExperiment
5202bc7704d7201778747855fa8ba02dbf079ec4
[ "BSD-2-Clause" ]
null
null
null
python/server.py
EasonGuo666/ComputerNetworkingExperiment
5202bc7704d7201778747855fa8ba02dbf079ec4
[ "BSD-2-Clause" ]
1
2020-03-26T13:00:19.000Z
2020-03-26T13:00:19.000Z
# -*- coding: utf-8 -*- """ Created on Mon Apr 22 09:45:25 2019 @author: Guo """ import socket expected_frame = 0 ## socket server_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_sock.bind(("127.0.0.1", 8888)) file_size_byte, ad = server_sock.recvfrom(1024) file_size = 0 fi...
20.513514
72
0.594862
# -*- coding: utf-8 -*- """ Created on Mon Apr 22 09:45:25 2019 @author: Guo """ import socket import sys import os import numpy as np import math expected_frame = 0 def get_crc_code(data_str,num,crc): for index in range(num): ch = ord(data_str[index]) crc = crc ^(ch << 8) ...
12
0
0
0
0
666
0
-36
167
b8775c2f99f4a105ae35f1b04a919e64c987df0f
2,151
py
Python
youtube_dl/extractor/sbs.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
1
2015-02-19T13:13:47.000Z
2015-02-19T13:13:47.000Z
youtube_dl/extractor/sbs.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
2
2019-05-20T12:46:30.000Z
2020-11-07T12:50:32.000Z
youtube_dl/extractor/sbs.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
5
2020-10-25T09:18:58.000Z
2021-05-23T22:57:55.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals
35.85
218
0.607159
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json import re from .common import InfoExtractor from ..utils import ( js_to_json, remove_end, ) class SBSIE(InfoExtractor): IE_DESC = 'sbs.com.au' _VALID_URL = r'https?://(?:www\.)?sbs\.com\.au/ondemand/video/(?:single/)?(?P<id>[...
0
0
0
1,950
0
0
0
24
112
b9d80801b21c85d142f40b91f5fd5398d441df4b
9,784
py
Python
multi_scale.py
Abhi-Tiw1/Multi-scale-entropy-calculation
e49cf173ffbbcf9b5fb386c51328ecb2cf104fbe
[ "MIT" ]
null
null
null
multi_scale.py
Abhi-Tiw1/Multi-scale-entropy-calculation
e49cf173ffbbcf9b5fb386c51328ecb2cf104fbe
[ "MIT" ]
null
null
null
multi_scale.py
Abhi-Tiw1/Multi-scale-entropy-calculation
e49cf173ffbbcf9b5fb386c51328ecb2cf104fbe
[ "MIT" ]
null
null
null
import numpy as np from scipy.stats import rankdata import itertools import nolds """Complete package for calculating any kind of multiscale entropy features """ """Coarse graining methods - Normal - Moving average (X) - Volatility series (X) - Moving average volatility series (X) - EMD- Coarse to fine series (X) --...
24.582915
112
0.678148
import numpy as np from scipy.stats import rankdata import itertools from PyEMD import EMD import nolds """Complete package for calculating any kind of multiscale entropy features """ """Coarse graining methods - Normal - Moving average (X) - Volatility series (X) - Moving average volatility series (X) - EMD- Coarse...
0
0
0
0
0
929
0
0
69
224540103b242145e7a47d74c2b728191137f3c2
3,673
py
Python
SIFTS/SIFTSXMLMapModel.py
ajing/SIFTS.py
e6bfef6cd047fe90fba4cfa77b09c405ea3caa4b
[ "MIT" ]
null
null
null
SIFTS/SIFTSXMLMapModel.py
ajing/SIFTS.py
e6bfef6cd047fe90fba4cfa77b09c405ea3caa4b
[ "MIT" ]
1
2015-01-16T03:45:07.000Z
2015-01-16T03:47:36.000Z
SIFTS/SIFTSXMLMapModel.py
ajing/SIFTS.py
e6bfef6cd047fe90fba4cfa77b09c405ea3caa4b
[ "MIT" ]
null
null
null
''' Map PDBe residue to SIFTS residue ''' #PDBDIR = "pdbtest" #XMLDIR = "xmltest" PDBDIR = "pdb" #PDBDIR = "../ligandNet/2013_biounits" XMLDIR = "xml" PAIRFILE = "pair.txt" SAMPLESIZE = 3000
24.986395
69
0.587258
''' Map PDBe residue to SIFTS residue ''' #PDBDIR = "pdbtest" #XMLDIR = "xmltest" PDBDIR = "pdb" #PDBDIR = "../ligandNet/2013_biounits" XMLDIR = "xml" PAIRFILE = "pair.txt" SAMPLESIZE = 3000 class UniProtInfo: def __init__(self, accid, resname, resnum): self._accid = accid self._resname = res...
0
150
0
3,256
0
0
0
0
69
ce0491cae1a8c19b857b718b55d68460cb73405f
1,029
py
Python
data/test_font_files.py
tsutterley/tsutterley.github.io
5ea365aa34b46c8f0b471252e37e1a93bb126ff8
[ "MIT" ]
null
null
null
data/test_font_files.py
tsutterley/tsutterley.github.io
5ea365aa34b46c8f0b471252e37e1a93bb126ff8
[ "MIT" ]
null
null
null
data/test_font_files.py
tsutterley/tsutterley.github.io
5ea365aa34b46c8f0b471252e37e1a93bb126ff8
[ "MIT" ]
null
null
null
#!/usr/bin/env python u""" test_font_files.py """
38.111111
77
0.720117
#!/usr/bin/env python u""" test_font_files.py """ import os import pytest import warnings import matplotlib.font_manager import matplotlib.pyplot as plt def test_font_files(verbose=True): basedir = os.path.join(os.sep,'usr','share','fonts','truetype') fonts = ['HelveticaBoldOblique.ttf','HelveticaBold.ttf', ...
0
0
0
0
0
853
0
-7
133
66981c994a58b64ef65c19dc60838b5456a9500d
3,780
py
Python
baleen/utils/timez.py
Rizwanabro/DataLabs
9e095bc4cac584e906dfd6e38eb77b1ef5afe107
[ "MIT" ]
null
null
null
baleen/utils/timez.py
Rizwanabro/DataLabs
9e095bc4cac584e906dfd6e38eb77b1ef5afe107
[ "MIT" ]
null
null
null
baleen/utils/timez.py
Rizwanabro/DataLabs
9e095bc4cac584e906dfd6e38eb77b1ef5afe107
[ "MIT" ]
null
null
null
# baleen.utils.timez # Utility functions for Baleen # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Mon Sep 22 10:14:57 2014 -0400 # # Copyright (C) 2014 Bengfort.com # For license information, see LICENSE.txt # # ID: utils.py [] benjamin@bengfort.com $ """ Utility functions for Baleenc """ ######...
29.53125
88
0.522487
# baleen.utils.timez # Utility functions for Baleen # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Mon Sep 22 10:14:57 2014 -0400 # # Copyright (C) 2014 Bengfort.com # For license information, see LICENSE.txt # # ID: utils.py [] benjamin@bengfort.com $ """ Utility functions for Baleenc """ ######...
0
0
0
920
0
102
0
5
91
5ee3b522c33c47adae3349d6dc20b5937bfd76a3
404
py
Python
数据结构/NowCode/A0_inserttSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/A0_inserttSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/A0_inserttSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# if __name__ == '__main__': print(Solution().insertSort([1,8,3,2,6,9]))
26.933333
67
0.45297
# 插入排序 class Solution: def insertSort(self, alist): n = len(alist) for j in range(0, n): for i in range(j, 0, -1): if alist[i] < alist[i - 1]: alist[i], alist[i - 1] = alist[i - 1], alist[i] else: break retur...
12
0
0
299
0
0
0
0
22
518dc2af56bee9aff5452a0014d070b9795ebd7e
6,436
py
Python
tests/test_genetic_maps.py
LohmuellerLab/stdpopsim
ed2625b31a02a9b110115f37ab00e250cf5d8da5
[ "MIT" ]
1
2020-09-29T18:42:27.000Z
2020-09-29T18:42:27.000Z
tests/test_genetic_maps.py
carjed/stdpopsim
203ed10207ecdbe68c2dd6cf75d17679496a8afa
[ "MIT" ]
null
null
null
tests/test_genetic_maps.py
carjed/stdpopsim
203ed10207ecdbe68c2dd6cf75d17679496a8afa
[ "MIT" ]
2
2019-02-21T18:43:23.000Z
2020-02-23T15:44:51.000Z
""" Tests for the genetic maps management. """ import tarfile import tempfile import os.path import urllib.request from stdpopsim import genetic_maps # Infrastructure for keeping a local cache of the downloaded tarballs that # which we 'download' from when we're running tests below. def download_map_tarballs(destina...
34.789189
87
0.641703
""" Tests for the genetic maps management. """ import unittest from unittest import mock import tarfile import tempfile import os.path import shutil import urllib.request import pathlib import msprime import stdpopsim from stdpopsim import genetic_maps import tests # Infrastructure for keeping a local cache of the ...
0
0
0
3,265
0
644
0
-38
317
8dbd971a036f692b282148fa951cbacea802736c
2,199
py
Python
icetea_lib/Reports/ReportBase.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
6
2018-08-10T17:11:10.000Z
2020-04-29T07:05:36.000Z
icetea_lib/Reports/ReportBase.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
58
2018-08-13T08:36:08.000Z
2021-07-07T08:32:52.000Z
icetea_lib/Reports/ReportBase.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
7
2018-08-10T12:53:18.000Z
2021-11-08T05:15:42.000Z
""" Copyright 2017 ARM Limited 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 in writing, software dis...
31.869565
91
0.688495
""" Copyright 2017 ARM Limited 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 in writing, software dis...
0
0
0
1,433
0
0
0
-3
68
8156297ad42cbaaf323ab136147a6386d944cdc0
550
py
Python
datyy/components/bubble_charts.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
datyy/components/bubble_charts.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
datyy/components/bubble_charts.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
import dash_html_components as html import dash_core_components as dcc def simple_bubble_chart(id_, title): """Generates simple bubble chart component Args: id (str): Component id title (str): Component title Returns: obj: Html div object """ return html.Div( cla...
20.37037
54
0.538182
import dash_html_components as html import dash_core_components as dcc def simple_bubble_chart(id_, title): """Generates simple bubble chart component Args: id (str): Component id title (str): Component title Returns: obj: Html div object """ return html.Div( cla...
0
0
0
0
0
0
0
0
0
a8526ddf582fa0cae3b0316eaf1fa135010e78f0
1,288
py
Python
P06/ex04_for.py
ChanganXLTZ/project_test
b6aa323de105beb6281045bf7b89ed3857ed3d9f
[ "CNRI-Python" ]
1
2018-09-16T13:51:06.000Z
2018-09-16T13:51:06.000Z
P06/ex04_for.py
ChanganXLTZ/project_test
b6aa323de105beb6281045bf7b89ed3857ed3d9f
[ "CNRI-Python" ]
null
null
null
P06/ex04_for.py
ChanganXLTZ/project_test
b6aa323de105beb6281045bf7b89ed3857ed3d9f
[ "CNRI-Python" ]
null
null
null
# -*- coding:UTF-8 -*- #! /usr/bin/python3 print('''for for <variable> in <sequence>: <statements> else: <statements>\n''') # for break break for a in [1,2,3,4,5,5,6,7,7,8,8,9,9,10,12,13,14,56,78]: if a == 8: print('a = 8 ') break # print('a',a,end= ';') print( ) # cont...
25.254902
82
0.548913
# -*- coding:UTF-8 -*- #! /usr/bin/python3 print('''for循环使用格式: for <variable> in <sequence>: <statements> else: <statements>\n''') # 以下 for 实例中使用了 break 语句,break 语句用于跳出当前循环体 for a in [1,2,3,4,5,5,6,7,7,8,8,9,9,10,12,13,14,56,78]: if a == 8: print('a = 8 了') break # 直接结束循环 pri...
645
0
0
0
0
0
0
0
0
de453d95549c74e5f2f333c385c17e8e764cebe4
2,257
py
Python
test/test_pypi.py
matthewdeanmartin/caniuseonlywheels
8174a1fae1f531750c6a80b044c1b92d85039421
[ "Apache-2.0" ]
null
null
null
test/test_pypi.py
matthewdeanmartin/caniuseonlywheels
8174a1fae1f531750c6a80b044c1b92d85039421
[ "Apache-2.0" ]
null
null
null
test/test_pypi.py
matthewdeanmartin/caniuseonlywheels
8174a1fae1f531750c6a80b044c1b92d85039421
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Google Inc. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
34.19697
87
0.707133
# Copyright 2014 Google Inc. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
0
620
0
786
0
0
0
38
216
c5c995d4fb4af0698845544bbd38a70bcaadb45a
2,155
py
Python
src/code.py
aniketdashpute/Watermark-python
10060af56f6fc67bc66248dd23dbdbb1fbfc40b9
[ "Apache-2.0" ]
null
null
null
src/code.py
aniketdashpute/Watermark-python
10060af56f6fc67bc66248dd23dbdbb1fbfc40b9
[ "Apache-2.0" ]
null
null
null
src/code.py
aniketdashpute/Watermark-python
10060af56f6fc67bc66248dd23dbdbb1fbfc40b9
[ "Apache-2.0" ]
null
null
null
import sys savedir = "./output/" # Add main support to run file from terminal directly if __name__ == '__main__': args = sys.argv # args[0] = current file # args[1] = function name # args[2:] = function args : (*unpacked) globals()[args[1]](*args[2:])
31.691176
94
0.673782
import numpy as np import cv2 import matplotlib.pyplot as plt from pathlib import Path import glob2 as glob import os import sys savedir = "./output/" def AddWatermarkFolder(str_foldername, str_watermarkname, alpha1=1.0, alpha2=0.2): path = str_foldername + '/*.png*' for iter, path_name in enumerate(glob.glob...
0
0
0
0
0
1,686
0
-14
205
a05068debdb0db6f4431e19ea9382ad99a0d1c27
15,030
py
Python
sdk/servicebus/azure-servicebus/tests/stress_tests/test_stress_queues.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
sdk/servicebus/azure-servicebus/tests/stress_tests/test_stress_queues.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
sdk/servicebus/azure-servicebus/tests/stress_tests/test_stress_queues.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- LOGGING_ENA...
49.768212
148
0.678709
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- from dateti...
0
11,927
0
2,294
0
0
0
230
247
2bd37e7d0c7bc38440aa13af148a8f3279a85f85
994
py
Python
src/stringology/lis.py
luismsgomes/stringology
f5c8d4ec5f4b0de64ef3c481b631f7db382a3658
[ "MIT" ]
1
2021-04-08T14:43:01.000Z
2021-04-08T14:43:01.000Z
src/stringology/lis.py
luismsgomes/stringology
f5c8d4ec5f4b0de64ef3c481b631f7db382a3658
[ "MIT" ]
null
null
null
src/stringology/lis.py
luismsgomes/stringology
f5c8d4ec5f4b0de64ef3c481b631f7db382a3658
[ "MIT" ]
null
null
null
from bisect import bisect def lis(seq, indices=False): '''longest increasing subsequence >>> lis([1, 2, 5, 3, 4]) [1, 2, 3, 4] ''' if not seq: return [] # prevs[i] is the index of the previous element in the longest subsequence # containing element i prevs = [None] * len(seq) ...
28.4
78
0.517103
from bisect import bisect def lis(seq, indices=False): '''longest increasing subsequence >>> lis([1, 2, 5, 3, 4]) [1, 2, 3, 4] ''' if not seq: return [] # prevs[i] is the index of the previous element in the longest subsequence # containing element i prevs = [None] * len(seq) ...
0
0
0
0
0
0
0
0
0
0ce71dc2932ed60501397b918dc908d1811ee915
415
py
Python
utils.py
drehak/obscurator
dbcb5d4b43c5bd8a5480fcb95dd3379d12e33573
[ "WTFPL" ]
null
null
null
utils.py
drehak/obscurator
dbcb5d4b43c5bd8a5480fcb95dd3379d12e33573
[ "WTFPL" ]
null
null
null
utils.py
drehak/obscurator
dbcb5d4b43c5bd8a5480fcb95dd3379d12e33573
[ "WTFPL" ]
null
null
null
'''A collection of auxiliary functions that might be useful.''' from obscurator import Obscurator from common import Similarity def showcase(s): '''Showcase all tiers of characters on a given sentence.''' print(s) for tiers in [ [Similarity.HIGH], [Similarity.MEDIUM], [Similarity.LO...
27.666667
63
0.653012
'''A collection of auxiliary functions that might be useful.''' from obscurator import Obscurator from common import Similarity def showcase(s): '''Showcase all tiers of characters on a given sentence.''' print(s) for tiers in [ [Similarity.HIGH], [Similarity.MEDIUM], [Similarity.LO...
0
0
0
0
0
0
0
0
0
4256ed28157b7cdd1ca6284fce7c4cab88eab936
607
py
Python
SmartAnno/test/TestIntroStep.py
jianlins/SmartAnno
e0925c45853967683aa2955588437bd120fe39c3
[ "Apache-2.0" ]
null
null
null
SmartAnno/test/TestIntroStep.py
jianlins/SmartAnno
e0925c45853967683aa2955588437bd120fe39c3
[ "Apache-2.0" ]
null
null
null
SmartAnno/test/TestIntroStep.py
jianlins/SmartAnno
e0925c45853967683aa2955588437bd120fe39c3
[ "Apache-2.0" ]
null
null
null
from SmartAnno.utils.ConfigReader import ConfigReader from SmartAnno.gui.PreviousNextWidgets import PreviousNextHTML from SmartAnno.gui.Workflow import Workflow from SmartAnno.utils.IntroStep import IntroStep ConfigReader('../conf/smartanno_conf2.json') intro=IntroStep('<h2>Welcome to SmartAnno!</h2><h4>First, let&apos...
46.692308
110
0.749588
from SmartAnno.utils.ConfigReader import ConfigReader from SmartAnno.gui.PreviousNextWidgets import PreviousNextHTML from SmartAnno.gui.Workflow import Workflow from SmartAnno.utils.IntroStep import IntroStep ConfigReader('../conf/smartanno_conf2.json') intro=IntroStep('<h2>Welcome to SmartAnno!</h2><h4>First, let&apos...
0
0
0
0
0
0
0
0
0
bf964fa59cf143596c93f31eec4abf46c156d3a5
453
py
Python
Chapter 10/3.py
icaksh/Python-Projects-Protek
dfd56ea5afc637a8850911a9296131652de383c5
[ "MIT" ]
null
null
null
Chapter 10/3.py
icaksh/Python-Projects-Protek
dfd56ea5afc637a8850911a9296131652de383c5
[ "MIT" ]
null
null
null
Chapter 10/3.py
icaksh/Python-Projects-Protek
dfd56ea5afc637a8850911a9296131652de383c5
[ "MIT" ]
null
null
null
import os, sys file = os.path.join(sys.path[0],"txt/2.txt") print(printText(file))
21.571429
45
0.483444
import os, sys def printText(file): file = open(file,'r') fileLine = file.read().splitlines() dataMhs = [] for i in fileLine: data = i.split("|") dataTambah = { "nim": data[0], "nama": data[1], "alamat": data[2] } data...
0
0
0
0
0
328
0
0
25