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
0ed1e225e00c574cabde72e06f429759b38ea0a3
1,796
py
Python
example-plugins/emorand_plugin.py
gsi-upm/senpy
c5a2cf23cb5ccb5ba96ae11aa1dcbb3d902c6218
[ "Apache-2.0" ]
74
2015-02-26T18:27:00.000Z
2022-02-17T17:14:43.000Z
example-plugins/emorand_plugin.py
gsi-upm/senpy
c5a2cf23cb5ccb5ba96ae11aa1dcbb3d902c6218
[ "Apache-2.0" ]
39
2015-02-26T18:26:45.000Z
2018-05-14T09:42:59.000Z
example-plugins/emorand_plugin.py
gsi-upm/senpy
c5a2cf23cb5ccb5ba96ae11aa1dcbb3d902c6218
[ "Apache-2.0" ]
24
2016-03-10T11:52:55.000Z
2020-11-27T06:38:37.000Z
# # Copyright 2014 Grupo de Sistemas Inteligentes (GSI) DIT, UPM # # 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 # # Unles...
35.92
95
0.672606
# # Copyright 2014 Grupo de Sistemas Inteligentes (GSI) DIT, UPM # # 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 # # Unles...
0
0
0
1,021
0
0
0
40
91
9f657525382f71d187facef0cf2bd508ed5ad88c
1,451
py
Python
setup.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
setup.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
setup.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
import os from setuptools import setup about = {} here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(os.path.dirname(__file__), "README.md")).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) extra_files = package_files("recipe_parser/ingredient_parser/...
32.244444
78
0.68091
import os import glob from setuptools import find_packages, setup about = {} here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(os.path.dirname(__file__), "README.md")).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) def package_files(directory): p...
0
0
0
0
0
198
0
5
45
356fdb728a10942cacde6ea987542938dbd25a5b
2,906
py
Python
chorus/rdkit.py
mojaie/chorus
63cbe4764ab2498b7b1da11a628bec01d03ca012
[ "MIT" ]
5
2018-03-23T04:56:17.000Z
2022-03-04T15:54:39.000Z
chorus/rdkit.py
mojaie/chorus
63cbe4764ab2498b7b1da11a628bec01d03ca012
[ "MIT" ]
4
2017-09-08T02:08:12.000Z
2018-06-12T00:55:18.000Z
chorus/rdkit.py
mojaie/chorus
63cbe4764ab2498b7b1da11a628bec01d03ca012
[ "MIT" ]
6
2018-01-22T22:21:20.000Z
2021-03-25T04:47:11.000Z
# # (C) 2014-2017 Seiji Matsuoka # Licensed under the MIT License (MIT) # http://opensource.org/licenses/MIT # from rdkit import Chem from rdkit.Chem import AllChem from rdkit import DataStructs from chorus.model.graphmol import Compound from chorus.model.atom import Atom, atom_number from chorus.model.bond import Bo...
30.270833
75
0.659326
# # (C) 2014-2017 Seiji Matsuoka # Licensed under the MIT License (MIT) # http://opensource.org/licenses/MIT # from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import rdFMCS from rdkit import DataStructs from chorus.model.graphmol import Compound from chorus.model.atom import Atom, atom_number fr...
0
0
0
0
0
673
0
8
68
c44dccf155b9b70e34f552e0f9ae4ca324dce910
1,617
py
Python
shooting method.py
Cecilia-ChenJY/transition-pathway
498df12fc022b036a3b45540513bccf519dcf2c1
[ "MIT" ]
null
null
null
shooting method.py
Cecilia-ChenJY/transition-pathway
498df12fc022b036a3b45540513bccf519dcf2c1
[ "MIT" ]
null
null
null
shooting method.py
Cecilia-ChenJY/transition-pathway
498df12fc022b036a3b45540513bccf519dcf2c1
[ "MIT" ]
null
null
null
# %% import tensorflow as tf #%% model = tf.keras.models.Sequential([ tf.keras.Input(shape=(2,)), tf.keras.layers.Dense(80, activation='sigmoid'), tf.keras.layers.Dense(2) ]) # %% # x_train=tf.reshape(tf.constant([6.1723,2.3504,7.3475,3.7095,8.5227,3.8935,9.6979,2.9022,10.8731,4.2614,12.0483,4.4453,13.2235,3.45...
23.1
158
0.635127
# %% import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.python.keras.layers.core import Dropout #%% model = tf.keras.models.Sequential([ tf.keras.Input(shape=(2,)), tf.keras.layers.Dense(80, activation='sigmoid'), tf.keras.layers.Dense(2) ]) # %% # x_train=t...
0
0
0
0
0
0
0
55
66
8d810281c058b88b280cf98d189172065a5be063
566
py
Python
sl_cutscenes/lighting.py
AIS-Bonn/sl-cutscenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
2
2022-03-25T08:24:10.000Z
2022-03-29T09:06:47.000Z
sl_cutscenes/lighting.py
AIS-Bonn/sl-scenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
null
null
null
sl_cutscenes/lighting.py
AIS-Bonn/sl-scenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
null
null
null
import random import stillleben as sl import sl_cutscenes.constants as CONSTANTS def get_lightmap(map_name="random"): """ Fetches the right lightmap given command line argument. """ assert map_name in ["default", "random"] + list(CONSTANTS.ALL_LIGHTMAPS.keys()), f"Unknown lightmap {map_name}..." ...
29.789474
118
0.701413
import random import stillleben as sl import sl_cutscenes.constants as CONSTANTS def get_lightmap(map_name="random"): """ Fetches the right lightmap given command line argument. """ assert map_name in ["default", "random"] + list(CONSTANTS.ALL_LIGHTMAPS.keys()), f"Unknown lightmap {map_name}..." ...
0
0
0
0
0
0
0
0
0
3a9028379ee755f1eaf5837d3fe07532341bdfc1
236
py
Python
imugi/compiler/types/__init__.py
hahnlee/imugi
4095f5ba7fb475ec4389798c247ac540cff2c983
[ "BSD-2-Clause" ]
5
2018-09-09T14:48:13.000Z
2021-03-01T01:58:20.000Z
imugi/compiler/types/__init__.py
me2nuk/imugi
4095f5ba7fb475ec4389798c247ac540cff2c983
[ "BSD-2-Clause" ]
null
null
null
imugi/compiler/types/__init__.py
me2nuk/imugi
4095f5ba7fb475ec4389798c247ac540cff2c983
[ "BSD-2-Clause" ]
3
2021-05-24T16:26:21.000Z
2022-02-10T13:52:52.000Z
from .llvm_type import (char_pointer, i8, i32, i64) from .objc import (objc_ivar, objc_ivar_list) __all__ = [ 'char_pointer', 'i8', 'i32', 'i64', 'objc_ivar', 'objc_ivar_list', ]
10.727273
24
0.533898
from .llvm_type import ( char_pointer, i8, i32, i64, ) from .objc import ( objc_ivar, objc_ivar_list, ) __all__ = [ 'char_pointer', 'i8', 'i32', 'i64', 'objc_ivar', 'objc_ivar_list', ]
0
0
0
0
0
0
0
30
0
c60aa4271fbb35402de9018343cf37b5cdd7f47b
926
py
Python
scraper/tests.py
bartromgens/waarnemingkaart
3889d429a1c10586115b045a17be3e9c98931613
[ "MIT" ]
null
null
null
scraper/tests.py
bartromgens/waarnemingkaart
3889d429a1c10586115b045a17be3e9c98931613
[ "MIT" ]
8
2020-01-01T16:11:19.000Z
2021-12-13T19:42:07.000Z
scraper/tests.py
bartromgens/waarnemingkaart
3889d429a1c10586115b045a17be3e9c98931613
[ "MIT" ]
1
2020-11-15T23:06:43.000Z
2020-11-15T23:06:43.000Z
import pprint pp = pprint.PrettyPrinter(indent=4)
27.235294
93
0.676026
import datetime import json import pprint from django.test import TestCase from scraper import scraper pp = pprint.PrettyPrinter(indent=4) class TestObservationListScraper(TestCase): def test_scrape_observations(self): date = datetime.date(year=2017, month=9, day=1) max_n = 2 observati...
0
0
0
736
0
0
0
1
136
878a3b5f99b514948fe12ecc35b54f5e10ee7016
2,881
py
Python
ocr_handler_factory.py
weenerberg/guildtracker
1957018cdaa93678b6591248905804dc4d892d04
[ "MIT" ]
null
null
null
ocr_handler_factory.py
weenerberg/guildtracker
1957018cdaa93678b6591248905804dc4d892d04
[ "MIT" ]
null
null
null
ocr_handler_factory.py
weenerberg/guildtracker
1957018cdaa93678b6591248905804dc4d892d04
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__)
64.022222
236
0.816383
import logging from sith_score_handler import SithScoreHandler from raidtickets_lifetime_handler import RaidticketsLifetimeHandler from guildtickets_lifetime_handler import GuildticketsLifetimeHandler from territory_battle_total_score_handler import TerritoryBattleTotalScoreHandler from territory_battle_total_combat_wa...
0
0
0
2,326
0
0
0
324
177
acd013c99d99968db3e82b68c59e53f87908a78f
2,204
py
Python
DallasPlayers/repeat_outcome_player.py
fras2560/Competition
b4671573f547a82a159c3f2e98686a9855491892
[ "MIT" ]
null
null
null
DallasPlayers/repeat_outcome_player.py
fras2560/Competition
b4671573f547a82a159c3f2e98686a9855491892
[ "MIT" ]
null
null
null
DallasPlayers/repeat_outcome_player.py
fras2560/Competition
b4671573f547a82a159c3f2e98686a9855491892
[ "MIT" ]
null
null
null
''' @author: Dallas Fraser @id: 20652186 @class: CS686 @date: 2016-02-13 @note: contains a player using a repeat (Pavlov) strategy '''
34.4375
72
0.617967
''' @author: Dallas Fraser @id: 20652186 @class: CS686 @date: 2016-02-13 @note: contains a player using a repeat (Pavlov) strategy ''' from DallasPlayers.player import COOPERATE, Player, DEFECT import unittest class RepeatOutcomePlayer(Player): """ Repeat Outcome Player - repeat last choice if good outcome ...
0
0
0
1,946
0
0
0
31
90
53238245cb95ddc1dce0b7800b91c719d6a1110e
61
py
Python
adain/cfg/__init__.py
srihari-humbarwadi/adain-tensorflow2.x
c0da16e4d39d5316683ed0988787aedbb1c9768c
[ "MIT" ]
6
2020-12-27T08:20:19.000Z
2021-07-03T10:28:21.000Z
adain/cfg/__init__.py
srihari-humbarwadi/adain-tensorflow2.x
c0da16e4d39d5316683ed0988787aedbb1c9768c
[ "MIT" ]
null
null
null
adain/cfg/__init__.py
srihari-humbarwadi/adain-tensorflow2.x
c0da16e4d39d5316683ed0988787aedbb1c9768c
[ "MIT" ]
null
null
null
from adain.cfg.config import Config __all__ = ['Config']
15.25
36
0.704918
from adain.cfg.config import Config __all__ = ['Config']
0
0
0
0
0
0
0
0
0
169eac8b55d04972afcb92a805c952f20a9a5da6
29,826
py
Python
google/cloud/iam_credentials_v1/services/iam_credentials/client.py
Sandy1811/python-iam
f895427f7e59820931de194af42a10f44c5e9ae6
[ "Apache-2.0" ]
null
null
null
google/cloud/iam_credentials_v1/services/iam_credentials/client.py
Sandy1811/python-iam
f895427f7e59820931de194af42a10f44c5e9ae6
[ "Apache-2.0" ]
null
null
null
google/cloud/iam_credentials_v1/services/iam_credentials/client.py
Sandy1811/python-iam
f895427f7e59820931de194af42a10f44c5e9ae6
[ "Apache-2.0" ]
1
2021-06-21T07:25:10.000Z
2021-06-21T07:25:10.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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 o...
42.008451
106
0.599846
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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 o...
0
1,672
0
26,221
0
0
0
406
568
649d2c724b47b9dc4e3e609cd5390cfac81c2bc4
3,608
py
Python
os_testr/testlist_builder.py
mail2nsrajesh/os-testr
e605216736c1867d7f03d0530f6e26fc20e064ce
[ "Apache-2.0" ]
null
null
null
os_testr/testlist_builder.py
mail2nsrajesh/os-testr
e605216736c1867d7f03d0530f6e26fc20e064ce
[ "Apache-2.0" ]
null
null
null
os_testr/testlist_builder.py
mail2nsrajesh/os-testr
e605216736c1867d7f03d0530f6e26fc20e064ce
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# Copyright 2016 RedHat, 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...
33.407407
78
0.645233
# Copyright 2016 RedHat, 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
0
0
783
0
0
46
0435041c010170c69d01cc26aec3f6bd9ca040c1
91
py
Python
src/functions_framework/__main__.py
uraniun/functions-framework-python
748f51f08a72d798544f5e8aa20c8a426a2dbb30
[ "Apache-2.0" ]
1
2021-02-11T13:09:03.000Z
2021-02-11T13:09:03.000Z
src/functions_framework/__main__.py
uraniun/functions-framework-python
748f51f08a72d798544f5e8aa20c8a426a2dbb30
[ "Apache-2.0" ]
null
null
null
src/functions_framework/__main__.py
uraniun/functions-framework-python
748f51f08a72d798544f5e8aa20c8a426a2dbb30
[ "Apache-2.0" ]
1
2020-04-23T21:37:50.000Z
2020-04-23T21:37:50.000Z
from functions_framework._cli import _cli _cli(prog_name="python -m functions_framework")
22.75
47
0.835165
from functions_framework._cli import _cli _cli(prog_name="python -m functions_framework")
0
0
0
0
0
0
0
0
0
346e22a22f276cb6603d6d67db3aad27ceae71ef
426
py
Python
handover/migrations/0006_auto_20190603_0327.py
utkarsh3mehta/todo
8b1b22a3b016658050572abf818beabac8658f12
[ "MIT" ]
null
null
null
handover/migrations/0006_auto_20190603_0327.py
utkarsh3mehta/todo
8b1b22a3b016658050572abf818beabac8658f12
[ "MIT" ]
null
null
null
handover/migrations/0006_auto_20190603_0327.py
utkarsh3mehta/todo
8b1b22a3b016658050572abf818beabac8658f12
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-06-03 10:27
22.421053
87
0.619718
# Generated by Django 2.2 on 2019-06-03 10:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('handover', '0005_auto_20190603_0203'), ] operations = [ migrations.AlterField( model_name='user', name='userlastname',...
0
0
0
314
0
0
0
19
46
220d83971dc2ce007c674a09a95d458f14926a9a
1,607
py
Python
pylibs/pymode/queue.py
thekuffs/dotfiles
2567136e941c428f10ca3a8e256f487ec36f5dbd
[ "Vim" ]
1
2020-04-05T16:51:30.000Z
2020-04-05T16:51:30.000Z
pylibs/pymode/queue.py
teranex/python-mode
51d0c3f341b5d0cd68300e16cc29a97a5783ce02
[ "Vim" ]
null
null
null
pylibs/pymode/queue.py
teranex/python-mode
51d0c3f341b5d0cd68300e16cc29a97a5783ce02
[ "Vim" ]
null
null
null
import threading from .interface import show_message def stop_queue(): " Stop all tasks. " for thread in threading.enumerate(): if isinstance(thread, Task): thread.stop() show_message('%s stopped.' % thread.title) def add_task(target, callback=None, buffer=None, title=None, ...
26.344262
96
0.598009
import threading from .interface import show_message import time class Task(threading.Thread): def __init__(self, buffer, callback=None, title=None, *args, **kwargs): self.buffer = buffer self._stop = threading.Event() self.result = None self.callback = callback self.done ...
0
0
0
700
0
0
0
-10
45
9eba67aa60edbd5993f9d92bce188d5381ea2235
418
py
Python
mem_filter.py
cpt-wigger/filters
f2fa14196cfa1c6dd242746dd96e23b5dba02af8
[ "Apache-2.0" ]
1
2019-08-19T06:39:29.000Z
2019-08-19T06:39:29.000Z
mem_filter.py
cpt-wigger/filters
f2fa14196cfa1c6dd242746dd96e23b5dba02af8
[ "Apache-2.0" ]
null
null
null
mem_filter.py
cpt-wigger/filters
f2fa14196cfa1c6dd242746dd96e23b5dba02af8
[ "Apache-2.0" ]
null
null
null
""" """
16.076923
43
0.576555
""" 基于内存进行去重,非持久 """ from base import BaseFilter class MemFilter(BaseFilter): def _get_storage(self): return set() def _save(self, hash_value): """ 利用集合进行存储 :param hash_value: :return: """ return self.storage.add(hash_value) def _is_exists(self, h...
60
0
0
334
0
0
0
6
45
44a4559200be6a1b3bbcec88db0afa7080c254d1
1,156
py
Python
learning/state_space.py
lmzintgraf/MultiMAuS
629a64ecb1f2587283611a5cdc15802cfeaf3bf5
[ "MIT" ]
14
2017-08-16T09:57:13.000Z
2022-03-22T06:37:17.000Z
learning/state_space.py
lmzintgraf/MultiMAuS
629a64ecb1f2587283611a5cdc15802cfeaf3bf5
[ "MIT" ]
null
null
null
learning/state_space.py
lmzintgraf/MultiMAuS
629a64ecb1f2587283611a5cdc15802cfeaf3bf5
[ "MIT" ]
8
2017-11-21T13:26:06.000Z
2022-03-24T23:54:35.000Z
""" In here we create a discrete state space representation which can be used in learning algorithms such as Q-Learning. The state space is intended to represent a single transaction sufficiently, meaning it should include all relevant information that an agent could use when making a decision; and it should not includ...
27.52381
78
0.716263
""" In here we create a discrete state space representation which can be used in learning algorithms such as Q-Learning. The state space is intended to represent a single transaction sufficiently, meaning it should include all relevant information that an agent could use when making a decision; and it should not includ...
0
0
0
0
0
326
0
0
23
ff321447747a09e8db814bfba8288e7e71bd279a
960
py
Python
main.py
p1rkr41n/-S-Pomodoro
e4fce57423f44b9357d6e596122943ada6875703
[ "MIT" ]
null
null
null
main.py
p1rkr41n/-S-Pomodoro
e4fce57423f44b9357d6e596122943ada6875703
[ "MIT" ]
null
null
null
main.py
p1rkr41n/-S-Pomodoro
e4fce57423f44b9357d6e596122943ada6875703
[ "MIT" ]
null
null
null
from time import sleep from exec import pomodoro as pomodoro from threading import Thread import os import psutil if __name__ == "__main__": #print("buscu") worker1() #worker2() t2 =Thread(target = worker2) t3 =Thread(target = worker3) t2.start() t3.start() #Kill all process...
25.945946
74
0.596875
from time import process_time, sleep from PyQt5.QtCore import pyqtRemoveInputHook from exec import pomodoro as pomodoro import gui3 import gui31 from threading import Thread import os import psutil import sys def worker1(): gui3.run() #sys.exit(gui3) def worker2(): #pomodoro(25,5,25,4) g...
0
0
0
0
0
332
0
7
162
00863625acddcae295185e43b0b58664b41f72fc
506
py
Python
apps/demo/hello_world.py
HaydenTWilson/Dash_applications
9f464ea374a043bf4ea9a9d37d431ca52ae1cde7
[ "MIT" ]
null
null
null
apps/demo/hello_world.py
HaydenTWilson/Dash_applications
9f464ea374a043bf4ea9a9d37d431ca52ae1cde7
[ "MIT" ]
1
2021-09-13T10:01:42.000Z
2021-09-13T10:01:42.000Z
apps/demo/hello_world.py
HaydenTWilson/Dash_applications
9f464ea374a043bf4ea9a9d37d431ca52ae1cde7
[ "MIT" ]
6
2021-09-01T12:24:51.000Z
2021-09-13T12:12:36.000Z
import dash_core_components as dcc import dash_html_components as html data = { 1: 'One', 2: 'Two', 3: 'Three', 4: 'Four' } layout = html.Div([ html.H1('Hello World!'), dcc.Slider(id='demo-slider', min=1, max=4, value=1), html.H3(data[1], id='demo-text') ])
18.740741
56
0.646245
import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app data = { 1: 'One', 2: 'Two', 3: 'Three', 4: 'Four' } layout = html.Div([ html.H1('Hello World!'), dcc.Slider(id='demo-slider', min=1, max=4, value=1), htm...
0
129
0
0
0
0
0
20
68
ae8eb3804ebce0c09ee13274e2d2162ecb460713
1,173
py
Python
pi_test.py
mslinn/ibm-personality-insights-fun
7b1470f04cb199dc0bbddd1f76c13e4c3b7c32f9
[ "Apache-2.0" ]
2
2019-12-16T13:34:50.000Z
2020-05-30T16:36:40.000Z
pi_test.py
mslinn/ibm-personality-insights-fun
7b1470f04cb199dc0bbddd1f76c13e4c3b7c32f9
[ "Apache-2.0" ]
null
null
null
pi_test.py
mslinn/ibm-personality-insights-fun
7b1470f04cb199dc0bbddd1f76c13e4c3b7c32f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import json import os from watson_developer_cloud import PersonalityInsightsV3 def insights(user_text): """ Analyze text using IBM Personality Insights. ``pip install --upgrade watson-developer-cloud`` This code is based on the `IBM Watson Python SDK`_ docs. Environment variables mus...
27.928571
114
0.724638
#!/usr/bin/env python import json import os from watson_developer_cloud import PersonalityInsightsV3 def insights(user_text): """ Analyze text using IBM Personality Insights. ``pip install --upgrade watson-developer-cloud`` This code is based on the `IBM Watson Python SDK`_ docs. Environment variables mus...
0
0
0
0
0
0
0
0
0
c9db9cc2ab6177edaf7061083941fa7e3c1bc227
79
py
Python
micropython/010_press.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
2
2021-06-29T17:18:09.000Z
2022-01-25T08:29:59.000Z
micropython/010_press.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
null
null
null
micropython/010_press.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
null
null
null
sleep(10000) display.scroll(str(button_a.get_presses()))
26.333333
43
0.797468
from microbit import * sleep(10000) display.scroll(str(button_a.get_presses()))
0
0
0
0
0
0
0
1
22
ad0ced3dfb10c1fb26045807f0f33765478ec140
28
py
Python
pyscriptdeck/_version.py
uicodefr/pyscriptdeck
d145bc9a644c908a66dfbe28f306500b5f6b93b2
[ "MIT" ]
null
null
null
pyscriptdeck/_version.py
uicodefr/pyscriptdeck
d145bc9a644c908a66dfbe28f306500b5f6b93b2
[ "MIT" ]
null
null
null
pyscriptdeck/_version.py
uicodefr/pyscriptdeck
d145bc9a644c908a66dfbe28f306500b5f6b93b2
[ "MIT" ]
null
null
null
VERSION = "0.2.2-SNAPSHOT"
9.333333
26
0.642857
VERSION = "0.2.2-SNAPSHOT"
0
0
0
0
0
0
0
0
0
18a38b7690d154ce3b685ff2f52ecda1c10a1e13
1,551
py
Python
astrofunc/LensingProfiles/spemd.py
LBJ-Wade/astrofunc_lensing_profile
d2223705bc44d07575a5e93291375ab8e69ebfa8
[ "MIT" ]
null
null
null
astrofunc/LensingProfiles/spemd.py
LBJ-Wade/astrofunc_lensing_profile
d2223705bc44d07575a5e93291375ab8e69ebfa8
[ "MIT" ]
null
null
null
astrofunc/LensingProfiles/spemd.py
LBJ-Wade/astrofunc_lensing_profile
d2223705bc44d07575a5e93291375ab8e69ebfa8
[ "MIT" ]
null
null
null
__author__ = 'sibirrer'
34.466667
105
0.640232
__author__ = 'sibirrer' from astrofunc.LensingProfiles.spp import SPP from astrofunc.LensingProfiles.spemd_smooth import SPEMD_SMOOTH class SPEMD(object): """ class for smooth power law ellipse mass density profile """ def __init__(self): self.s2 = 0.00000001 self.spp = SPP() ...
0
0
0
1,393
0
0
0
66
68
7478c823ce1ee11f4fcd7bb45981dbe3bcd08105
3,149
py
Python
plugins/polio/preparedness/spread_cache.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
plugins/polio/preparedness/spread_cache.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
null
null
null
plugins/polio/preparedness/spread_cache.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
1
2022-03-23T16:44:12.000Z
2022-03-23T16:44:12.000Z
import gspread
31.49
99
0.576691
import gspread import gspread.utils class CachedSpread: def __init__(self, cache_dict): self.c = cache_dict @staticmethod def from_spread(spread: gspread.Spreadsheet): dict_spread = {} dict_spread["title"] = spread.title dict_spread["id"] = spread.id dict_spread["p...
0
862
0
2,203
0
0
0
-1
68
03537bdfd96d3eee95ed97f589ab5ede4eb48dd1
2,632
py
Python
markov.py
fgdorais/MarkovModel
2d2c8df5dfdd0d5d1d13ad66e35b7a5cbaea3f77
[ "MIT" ]
null
null
null
markov.py
fgdorais/MarkovModel
2d2c8df5dfdd0d5d1d13ad66e35b7a5cbaea3f77
[ "MIT" ]
null
null
null
markov.py
fgdorais/MarkovModel
2d2c8df5dfdd0d5d1d13ad66e35b7a5cbaea3f77
[ "MIT" ]
null
null
null
from __future__ import unicode_literals # Python 2/3 compatibility # from __future__ import print_function # Python 2/3 compatibility # import sys import argparse import modelio from parser import TokenParser from trainer import MarkovTrainer from generator import MarkovGenerator parser = argparse.ArgumentParser(d...
38.144928
114
0.700608
from __future__ import unicode_literals # Python 2/3 compatibility # from __future__ import print_function # Python 2/3 compatibility # import sys import argparse import modelio from parser import TokenParser from trainer import MarkovTrainer from generator import MarkovGenerator parser = argparse.ArgumentParser(d...
0
0
0
0
0
0
0
0
0
d3131f985d21cdc2819702064c09b0e083f44196
623
py
Python
run.py
ACK-J/Quantum-Key-Distribution-BB84
2899de51aed62b7355e92b6b70efb921abffdd6b
[ "MIT" ]
1
2021-07-10T10:51:26.000Z
2021-07-10T10:51:26.000Z
run.py
ACK-J/Quantum-Key-Distribution-BB84
2899de51aed62b7355e92b6b70efb921abffdd6b
[ "MIT" ]
null
null
null
run.py
ACK-J/Quantum-Key-Distribution-BB84
2899de51aed62b7355e92b6b70efb921abffdd6b
[ "MIT" ]
null
null
null
from BB84 import Start import onetimepad success, aliceKey, BobKey = Start.simulate() binaryKeyAlice = "" binaryKeyBob = "" for each in aliceKey: if each is True: binaryKeyAlice = binaryKeyAlice + "1" else: binaryKeyAlice = binaryKeyAlice + "0" for each in BobKey: if each is True: ...
22.25
52
0.699839
import qsharp from BB84 import Start import onetimepad success, aliceKey, BobKey = Start.simulate() binaryKeyAlice = "" binaryKeyBob = "" for each in aliceKey: if each is True: binaryKeyAlice = binaryKeyAlice + "1" else: binaryKeyAlice = binaryKeyAlice + "0" for each in BobKey: if each is...
0
0
0
0
0
0
0
-8
22
fb4c9b7825915a8be20c6ad60069ea6a843b636f
1,022
py
Python
libya_site/tests/factories.py
SmartElect/SmartElect
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
[ "Apache-2.0" ]
23
2015-10-28T14:08:23.000Z
2021-09-11T21:38:41.000Z
libya_site/tests/factories.py
SmartElect/SmartElect
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
[ "Apache-2.0" ]
4
2019-12-05T20:36:10.000Z
2020-06-05T18:41:54.000Z
libya_site/tests/factories.py
SmartElect/SmartElect
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
[ "Apache-2.0" ]
11
2015-10-28T15:49:56.000Z
2021-09-14T14:18:36.000Z
DEFAULT_USER_PASSWORD = 'password'
35.241379
87
0.683953
from django.contrib.auth import get_user_model import factory DEFAULT_USER_PASSWORD = 'password' class UserFactory(factory.DjangoModelFactory): class Meta: model = get_user_model() username = factory.Sequence(lambda n: 'user%s' % n) password = DEFAULT_USER_PASSWORD email = factory.LazyAttr...
0
508
0
390
0
0
0
18
68
ca6c21dff9b289603037d0123cbf0069676e49c7
369
py
Python
popnet/exceptions.py
vincentpainchaud/PopNet
a95a66fa933dea0dc29a2744c4fd1f44622bbe36
[ "MIT" ]
null
null
null
popnet/exceptions.py
vincentpainchaud/PopNet
a95a66fa933dea0dc29a2744c4fd1f44622bbe36
[ "MIT" ]
null
null
null
popnet/exceptions.py
vincentpainchaud/PopNet
a95a66fa933dea0dc29a2744c4fd1f44622bbe36
[ "MIT" ]
null
null
null
"""Exceptions related to PopNet. """
21.705882
78
0.674797
"""Exceptions related to PopNet. """ class PopNetError(Exception): """Generic class for exceptions related to PopNet.""" pass class FormatError(PopNetError): """Exceptions related to formatting errors in files handled by PopNet.""" pass class PopNetWarning(Warning): """Generic c...
0
0
0
251
0
0
0
0
74
bb5cdc48ea74ef5667a7333484b610440ee9f96f
758
py
Python
melodic/migrations/0004_auto_20211115_1712.py
V3rita2/capstone
77d1abb2239b5a3aa1d7bd64d6ed891526c7d8a1
[ "MIT" ]
null
null
null
melodic/migrations/0004_auto_20211115_1712.py
V3rita2/capstone
77d1abb2239b5a3aa1d7bd64d6ed891526c7d8a1
[ "MIT" ]
null
null
null
melodic/migrations/0004_auto_20211115_1712.py
V3rita2/capstone
77d1abb2239b5a3aa1d7bd64d6ed891526c7d8a1
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-11-15 17:12
28.074074
140
0.622691
# Generated by Django 3.2.7 on 2021-11-15 17:12 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('melodic', '0003_remove_track_author'), ] operations = [ migrations.AddField( model_name='commen...
0
0
0
611
0
0
0
30
68
27728b8c8bf1ba2618f3442fd0ac58795ff703be
5,060
py
Python
enhanced-binary-randomization/test-disp.py
pwwl/enhanced-binary-diversification
deac4bfebc336845347cd1a9fd428df1f12b0c79
[ "MIT" ]
11
2021-05-28T11:52:06.000Z
2022-03-28T11:30:48.000Z
enhanced-binary-randomization/test-disp.py
pwwl/enhanced-binary-diversification
deac4bfebc336845347cd1a9fd428df1f12b0c79
[ "MIT" ]
2
2021-05-22T05:26:40.000Z
2021-07-14T22:41:07.000Z
enhanced-binary-randomization/test-disp.py
pwwl/enhanced-binary-diversification
deac4bfebc336845347cd1a9fd428df1f12b0c79
[ "MIT" ]
1
2022-03-01T16:56:06.000Z
2022-03-01T16:56:06.000Z
# Copyright (c) 2021, Mahmood Sharif, Keane Lucas, Michael K. Reiter, Lujo Bauer, and Saurabh Shintre # This file is code used in Malware Makeover """ Code to develop/test code-displacement transformations. """ import random import time random.seed(time.time()) import sys sys.path.append('orp') VER="0.3" if _...
29.248555
101
0.634783
# Copyright (c) 2021, Mahmood Sharif, Keane Lucas, Michael K. Reiter, Lujo Bauer, and Saurabh Shintre # This file is code used in Malware Makeover """ Code to develop/test code-displacement transformations. """ import random import time random.seed(time.time()) import sys sys.path.append('orp') import peLib import ...
0
0
0
0
0
3,844
0
-28
202
ca1ca984df5581e18f5d529694c0f639bbc97437
4,692
py
Python
scripts/owner/suggest_owners.py
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
210
2019-02-05T12:45:09.000Z
2022-03-28T07:59:06.000Z
scripts/owner/suggest_owners.py
PlugFox/fuchsia
39afe5230d41628b3c736a6e384393df954968c8
[ "BSD-2-Clause" ]
56
2021-06-03T03:16:25.000Z
2022-03-20T01:07:44.000Z
scripts/owner/suggest_owners.py
PlugFox/fuchsia
39afe5230d41628b3c736a6e384393df954968c8
[ "BSD-2-Clause" ]
73
2019-03-06T18:55:23.000Z
2022-03-26T12:04:51.000Z
#!/usr/bin/env python3.8 # Copyright 2021 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Suggests OWNERS for projects in a jiri manifest without owners. For each project in a given jiri manifest file, do the following:...
34
80
0.62127
#!/usr/bin/env python3.8 # Copyright 2021 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Suggests OWNERS for projects in a jiri manifest without owners. For each project in a given jiri manifest file, do the following:...
0
0
0
0
0
3,610
0
-9
204
fbbcff01309dc538dce335623a46e29f85f0ca13
731
py
Python
Tokenization/Tokenizer and pad_sequences sarcasm.py
reddyprasade/Natural-Language-Processing
d02ef63832f595635645ea3468bf5dc8cafc0e76
[ "Apache-2.0" ]
null
null
null
Tokenization/Tokenizer and pad_sequences sarcasm.py
reddyprasade/Natural-Language-Processing
d02ef63832f595635645ea3468bf5dc8cafc0e76
[ "Apache-2.0" ]
null
null
null
Tokenization/Tokenizer and pad_sequences sarcasm.py
reddyprasade/Natural-Language-Processing
d02ef63832f595635645ea3468bf5dc8cafc0e76
[ "Apache-2.0" ]
null
null
null
import json with open("Data/sarcasm.json", 'r') as f: datastore = json.load(f) sentences = [] labels = [] urls = [] for item in datastore: sentences.append(item['headline']) labels.append(item['is_sarcastic']) urls.append(item['article_link']) from tensorflow.keras.preprocessing.text im...
23.580645
66
0.729138
import json with open("Data/sarcasm.json", 'r') as f: datastore = json.load(f) sentences = [] labels = [] urls = [] for item in datastore: sentences.append(item['headline']) labels.append(item['is_sarcastic']) urls.append(item['article_link']) from tensorflow.keras.preprocessing.text im...
0
0
0
0
0
0
0
0
0
12b9bd7c12372343af689d54b3257cbece097433
1,146
py
Python
code/models/decoder/Deeplabv3p_Decoder.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
1
2021-11-16T12:24:43.000Z
2021-11-16T12:24:43.000Z
code/models/decoder/Deeplabv3p_Decoder.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
null
null
null
code/models/decoder/Deeplabv3p_Decoder.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function import torch.nn as nn
33.705882
95
0.602094
from __future__ import absolute_import, print_function import torch import torch.nn as nn import torch.nn.functional as F from code.models.backbone.ResNet_Dilated import _ConvBnReLU from collections import OrderedDict class DeepLabv3p_decoder(nn.Module): def __init__(self, mid_ch, reduce_ch, n_classes): ...
0
0
0
904
0
0
0
53
113
9516e2614644f8a4e1d53349de322d9b69fc8177
3,529
py
Python
3rdparty/pytorch/tools/setup_helpers/cudnn.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
1
2019-07-23T11:20:58.000Z
2019-07-23T11:20:58.000Z
3rdparty/pytorch/tools/setup_helpers/cudnn.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
1
2019-07-22T09:48:46.000Z
2019-07-22T09:48:46.000Z
pytorch/tools/setup_helpers/cudnn.py
raghavnauhria/whatmt
c20483a437c82936cb0fb8080925e37b9c4bba87
[ "MIT" ]
null
null
null
import os import glob from .env import IS_WINDOWS, IS_CONDA, CONDA_DIR, check_negative_env_flag, gather_paths, lib_paths_from_base from .cuda import USE_CUDA, CUDA_HOME USE_CUDNN = False CUDNN_LIB_DIR = None CUDNN_INCLUDE_DIR = None CUDNN_LIBRARY = None WITH_STATIC_CUDNN = os.getenv("USE_STATIC_CUDNN") if USE_CUDA ...
36.381443
108
0.622273
import os import glob from .env import IS_WINDOWS, IS_CONDA, CONDA_DIR, check_negative_env_flag, gather_paths, lib_paths_from_base from .cuda import USE_CUDA, CUDA_HOME USE_CUDNN = False CUDNN_LIB_DIR = None CUDNN_INCLUDE_DIR = None CUDNN_LIBRARY = None WITH_STATIC_CUDNN = os.getenv("USE_STATIC_CUDNN") if USE_CUDA ...
0
0
0
0
0
0
0
0
0
552536ee85002d05a625aa6d866ca130ffde03a2
670
py
Python
onepercentclub/settings/testing.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
7
2015-01-02T19:31:14.000Z
2021-03-22T17:30:23.000Z
onepercentclub/settings/testing.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
1
2015-03-06T08:34:59.000Z
2015-03-06T08:34:59.000Z
onepercentclub/settings/testing.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
null
null
null
# # NOTE: This is the settings file for the server at https://testing.onepercentclub.com # This is not for running tests! # try: except ImportError: import sys sys.exit('secrets.py settings file not found. Please run `prepare.sh` to create one.') # # Put testing environment specific overrides below. # ...
21.612903
90
0.741791
# # NOTE: This is the settings file for the server at https://testing.onepercentclub.com # This is not for running tests! # try: from .secrets import * except ImportError: import sys sys.exit('secrets.py settings file not found. Please run `prepare.sh` to create one.') from .server import * # # Put...
0
0
0
0
0
0
0
1
49
1392dbe8d51ffbca470715d64eabacb4e01d9797
8,480
py
Python
tests/conftest.py
hendrikdutoit/SQLAlchemyExample
6078219101daf1917eced84d45b5fbb91cbed9e4
[ "MIT" ]
null
null
null
tests/conftest.py
hendrikdutoit/SQLAlchemyExample
6078219101daf1917eced84d45b5fbb91cbed9e4
[ "MIT" ]
2
2022-01-12T15:24:53.000Z
2022-01-13T08:18:41.000Z
tests/conftest.py
hendrikdutoit/SQLAlchemyExample
6078219101daf1917eced84d45b5fbb91cbed9e4
[ "MIT" ]
null
null
null
'''Create a conftest.py Define the fixture functions in this file to make them accessible across multiple test files. ''' from pathlib import Path # from github import Github, GithubException as gh_exc _DESC = __doc__.split('\n')[0] _PATH = Path(__file__) # _CLASSIFIERS = [ # 'Development Status :...
29.444444
105
0.630425
'''Create a conftest.py Define the fixture functions in this file to make them accessible across multiple test files. ''' from pathlib import Path import pytest from tempfile import mkdtemp from beetools import rm_tree # from github import Github, GithubException as gh_exc _DESC = __doc__.split('\n')[0] ...
0
551
0
309
0
0
0
6
194
e068be4ae383b596c8ddfa770f53dcd6c9e99336
900
py
Python
working_directory/utils/string_handling.py
projectscara2014/scara
bd1b8f11e40cbc351cd72f78e706e56ae11e34fe
[ "MIT" ]
2
2020-05-11T12:58:28.000Z
2021-06-29T09:11:37.000Z
working_directory/utils/string_handling.py
projectscara2014/scara
bd1b8f11e40cbc351cd72f78e706e56ae11e34fe
[ "MIT" ]
null
null
null
working_directory/utils/string_handling.py
projectscara2014/scara
bd1b8f11e40cbc351cd72f78e706e56ae11e34fe
[ "MIT" ]
4
2015-12-19T12:57:55.000Z
2017-07-29T08:38:01.000Z
useless_array = [' ','\n','\t','%']
21.428571
65
0.601111
def char_to_int(c) : for i in range(256) : if(chr(i) == c) : return i def skip_character(string,character,i) : j = i while((string[j] == character)and(i<len(string))) : j += 1 return j-i def skip_until_character(string,character,i) : j = i while((string[j] != character)and(i<len(string))) : j +...
0
0
0
0
0
728
0
0
136
82ae77e0d236637aa7a6a5861bec99da11270cc7
1,772
py
Python
gram/models.py
karushi/Instagram
40ae3c55d37fd2be5555a14413440ca1dc22e703
[ "MIT" ]
null
null
null
gram/models.py
karushi/Instagram
40ae3c55d37fd2be5555a14413440ca1dc22e703
[ "MIT" ]
null
null
null
gram/models.py
karushi/Instagram
40ae3c55d37fd2be5555a14413440ca1dc22e703
[ "MIT" ]
null
null
null
# Create your models here.
26.848485
100
0.701467
from django.db import models from django.contrib.auth.models import User # Create your models here. class Profile(models.Model): bio = models.TextField(max_length=150) photo = models.ImageField(upload_to='pics/',null=True, blank=True) user = models.ForeignKey(User) @classmethod def search_by_use...
0
348
0
1,252
0
0
0
29
113
dcc8212c479d35716d6171cc58afb361e94c045d
1,670
py
Python
tests/acceptance/commercial/test_delta_update_module.py
bdx-iot/meta-mender
d6a24868fca3e4d9839e71fb65a02de95e28df64
[ "Apache-2.0" ]
null
null
null
tests/acceptance/commercial/test_delta_update_module.py
bdx-iot/meta-mender
d6a24868fca3e4d9839e71fb65a02de95e28df64
[ "Apache-2.0" ]
null
null
null
tests/acceptance/commercial/test_delta_update_module.py
bdx-iot/meta-mender
d6a24868fca3e4d9839e71fb65a02de95e28df64
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2019 Northern.tech AS # # 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 ap...
41.75
115
0.70479
#!/usr/bin/python # Copyright 2019 Northern.tech AS # # 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 ap...
0
967
0
0
0
0
0
-13
91
7e0c40bb30d0f5912cc06ea629bffa5efe44c86d
2,355
py
Python
tests/test_cascade.py
bio2bel/ComPath
26c43da61a0329f56013d3e3b39d83cf0a127134
[ "MIT" ]
8
2019-02-01T03:21:09.000Z
2022-01-12T04:01:42.000Z
tests/test_cascade.py
ComPath/ComPath
26c43da61a0329f56013d3e3b39d83cf0a127134
[ "MIT" ]
78
2018-02-28T14:34:10.000Z
2020-11-18T19:05:00.000Z
tests/test_cascade.py
bio2bel/ComPath
26c43da61a0329f56013d3e3b39d83cf0a127134
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Test cascade."""
30.584416
71
0.615711
# -*- coding: utf-8 -*- """Test cascade.""" from compath.constants import EQUIVALENT_TO from compath.models import User from tests.constants import DatabaseMixin, KEGG, REACTOME class TestCascades(DatabaseMixin): """Test that votes are cascaded properly.""" def setUp(self): """Create fakes emails....
0
0
0
2,150
0
0
0
68
90
286b65b8a6ceac8d3ec38e6c514b36d04d7a09c1
21,168
py
Python
bud.py
Sichengthebest/Pokegod
b5e5aa82e674a495e1096ead98b9a8702f0c19de
[ "BSD-2-Clause" ]
1
2021-07-19T16:14:18.000Z
2021-07-19T16:14:18.000Z
bud.py
Sichengthebest/Pokegod
b5e5aa82e674a495e1096ead98b9a8702f0c19de
[ "BSD-2-Clause" ]
null
null
null
bud.py
Sichengthebest/Pokegod
b5e5aa82e674a495e1096ead98b9a8702f0c19de
[ "BSD-2-Clause" ]
null
null
null
import pokeconfig typeTrans = { 'Grass': '', 'Fire': '', 'Water': '', 'Electric': '', 'Normal': '', 'Ice': '', 'Fighting': '', 'Poison': '', 'Ground': '', 'Flying': '', 'Psychic': '', 'Bug': '', 'Rock': '', 'Ghost': '', 'Dragon': '', 'Dark': '', 'Stee...
48.774194
383
0.596136
import random import pokeconfig import pokemon_new import pokelist import pokeutils import pokemoves import movelist from telegram.ext import CommandHandler, CallbackQueryHandler from telegram import InputMediaPhoto from datetime import datetime typeTrans = { 'Grass': '🌱', 'Fire': '🔥', 'Water': '💧', ...
214
0
0
0
0
20,061
0
30
639
11b0e17e7a3bc9ecf25b4afc8c30a58db3df1baa
221
py
Python
fabric_bolt/core/settings/example_channels.py
jooni22/fabric-bolt
129d83036f84018b62624794d2cbf9cca80ab210
[ "MIT" ]
219
2015-08-16T15:36:50.000Z
2021-11-15T09:38:54.000Z
fabric_bolt/core/settings/example_channels.py
jooni22/fabric-bolt
129d83036f84018b62624794d2cbf9cca80ab210
[ "MIT" ]
76
2015-08-12T14:49:09.000Z
2022-03-11T23:20:33.000Z
fabric_bolt/core/settings/example_channels.py
jooni22/fabric-bolt
129d83036f84018b62624794d2cbf9cca80ab210
[ "MIT" ]
67
2015-08-18T11:04:41.000Z
2021-01-10T13:46:42.000Z
""" This settings file is an example of what you need to do to use the channels backend. """ INSTALLED_APPS += ['channels'] TASK_RUNNER_BACKEND = 'fabric_bolt.task_runners.channels.ChannelsBackend'
22.1
84
0.760181
""" This settings file is an example of what you need to do to use the channels backend. """ from .base import * INSTALLED_APPS += ['channels'] TASK_RUNNER_BACKEND = 'fabric_bolt.task_runners.channels.ChannelsBackend'
0
0
0
0
0
0
0
-2
23
32c85ca2f16fb99b3e445985b9ecfc63867e8a86
473
py
Python
tests/echoschema.py
Zapix/mtpylon
b268a4e2d1bc641cace1962ea68de73c1156e44c
[ "MIT" ]
9
2021-11-10T08:53:51.000Z
2021-12-15T12:03:44.000Z
tests/echoschema.py
Zapix/mtpylon
b268a4e2d1bc641cace1962ea68de73c1156e44c
[ "MIT" ]
123
2020-10-22T07:08:20.000Z
2021-09-29T15:26:22.000Z
tests/echoschema.py
Zapix/mtpylon
b268a4e2d1bc641cace1962ea68de73c1156e44c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from mtpylon import Schema schema = Schema(constructors=[Reply], functions=[echo])
16.892857
60
0.646934
# -*- coding: utf-8 -*- import random from dataclasses import dataclass from aiohttp import web from mtpylon import Schema @dataclass class Reply: rand_id: int content: str class Meta: name = 'reply' order = ('rand_id', 'content') async def echo(request: web.Request, content: str) -> ...
0
115
127
0
0
0
0
6
113
dbff888c5a055155585e62bdf918a7c442453d77
3,291
py
Python
tests/conftest.py
MrVoi/ric-plt-xapp-frame-py
9c09be1e9598d4e145faea412b047b64d38feb22
[ "Apache-2.0", "CC-BY-4.0" ]
3
2020-10-10T08:35:22.000Z
2021-12-28T21:39:01.000Z
tests/conftest.py
MrVoi/ric-plt-xapp-frame-py
9c09be1e9598d4e145faea412b047b64d38feb22
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
tests/conftest.py
MrVoi/ric-plt-xapp-frame-py
9c09be1e9598d4e145faea412b047b64d38feb22
[ "Apache-2.0", "CC-BY-4.0" ]
9
2020-11-03T04:33:47.000Z
2022-03-21T21:47:37.000Z
# ================================================================================== # Copyright (c) 2019 Nokia # Copyright (c) 2018-2019 AT&T Intellectual Property. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
33.927835
147
0.614099
# ================================================================================== # Copyright (c) 2019 Nokia # Copyright (c) 2018-2019 AT&T Intellectual Property. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
0
1,849
0
0
0
0
0
36
113
fefee34dcd51050a11b00a5f229c5107a5475ef0
3,089
py
Python
process_nas_results.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
28
2020-06-30T00:40:33.000Z
2022-03-22T05:16:27.000Z
process_nas_results.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
5
2020-09-17T07:15:52.000Z
2022-03-31T23:33:27.000Z
process_nas_results.py
young-geng/design-baselines-icml
ce4183babac304ed5f83151a602d75de6c4740c4
[ "MIT" ]
3
2020-09-17T06:55:53.000Z
2021-08-09T20:27:26.000Z
import tensorflow as tf import numpy as np import argparse import os import string import pickle as pkl import glob import design_bench as db from datetime import datetime if __name__ == "__main__": baseline_to_iteration = { "autofocused-cbas": 20, "cbas": 20, "bo-qei": 10...
33.945055
115
0.580447
import tensorflow as tf import numpy as np import argparse import os import random import string import pickle as pkl import glob import design_bench as db from datetime import datetime if __name__ == "__main__": baseline_to_iteration = { "autofocused-cbas": 20, "cbas": 20, ...
0
0
0
0
0
0
0
-8
23
2331e2f962a5a782f51042da8d0328c972476fbd
2,285
py
Python
libhandy/list.py
jeteokeeffe/gtk-python-examples
fd0ea414d5cf91f905f7081117136379cd4768fe
[ "MIT" ]
null
null
null
libhandy/list.py
jeteokeeffe/gtk-python-examples
fd0ea414d5cf91f905f7081117136379cd4768fe
[ "MIT" ]
null
null
null
libhandy/list.py
jeteokeeffe/gtk-python-examples
fd0ea414d5cf91f905f7081117136379cd4768fe
[ "MIT" ]
null
null
null
import gi gi.require_version('Handy', '0.0') gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Handy, Gio Handy.init() # Create Window window = Gtk.Window(title="LibHandy List example") window.set_border_width(10) # Create a Button # button = Gtk.Button.new_from_icon_name('battery-good', ...
25.10989
86
0.719475
import gi gi.require_version('Handy', '0.0') gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Handy, Gio, GObject class Flatpak(GObject.GObject): name = GObject.Property(type=str) repo = GObject.Property(type=str) def __init__(self, name, repo): GObject.GObject.__init__(self) ...
0
0
0
212
0
165
0
9
69
03761f9ec58d486452021f425aaec846a8ecc2b7
1,052
py
Python
tests/pause_command_tests.py
rluzuriaga/TogglCLI
bb172ba5a6bcfbed6a2f969d7ae12f983394a5c7
[ "MIT" ]
null
null
null
tests/pause_command_tests.py
rluzuriaga/TogglCLI
bb172ba5a6bcfbed6a2f969d7ae12f983394a5c7
[ "MIT" ]
11
2020-04-30T02:48:33.000Z
2020-07-02T20:23:46.000Z
tests/pause_command_tests.py
rluzuriaga/TogglCLI
bb172ba5a6bcfbed6a2f969d7ae12f983394a5c7
[ "MIT" ]
null
null
null
import unittest if __name__ == "__main__": unittest.main()
30.941176
74
0.665399
import unittest from tgl.utils import delete_user_data from tests.utils import setup_credentials, run_command, tgl_stop class TestPauseCommand(unittest.TestCase): def setUp(self) -> None: delete_user_data() setup_credentials() return super().setUp() def tearDown(self) -> None: ...
0
0
0
858
0
0
0
60
68
95a00a7427ef9c56fecc12bd59285407fc5e4ff2
6,507
py
Python
main.py
yashwardhan-gautam/AlgoTrading
fee9c1caf019f7e328da63843f8d82b799751047
[ "MIT" ]
1
2021-07-24T06:15:09.000Z
2021-07-24T06:15:09.000Z
main.py
yashwardhan-gautam/AlgoTrading
fee9c1caf019f7e328da63843f8d82b799751047
[ "MIT" ]
null
null
null
main.py
yashwardhan-gautam/AlgoTrading
fee9c1caf019f7e328da63843f8d82b799751047
[ "MIT" ]
null
null
null
import logging from datetime import datetime from time import sleep logging.basicConfig(level=logging.DEBUG) ltp = 0 EMA_CROSS_SCRIP = 'INFY' NIFTY_BANK_IDX = '' lots = 1 sl_percentage = 0.25 # exit if it goes more than 25% on either size of our straddle if __name__ == '__main__': global socket_opened, bn_call,...
36.55618
166
0.582911
import dateutil.utils from alice_blue import * import conf import logging from datetime import datetime import statistics from time import sleep def generate_key_token(): try: access_token = AliceBlue.login_and_get_access_token(username=conf.username, password=conf.password, twoFA='a', api_secret=conf.app_...
0
0
0
0
0
5,106
0
-11
318
d37853652caf3ae06869be8c3f76d2886037c66c
283
py
Python
setup.py
SharpKoi/SproutNet
c3363eaa295fa92da162973b161a5718d75fc7dc
[ "MIT" ]
null
null
null
setup.py
SharpKoi/SproutNet
c3363eaa295fa92da162973b161a5718d75fc7dc
[ "MIT" ]
null
null
null
setup.py
SharpKoi/SproutNet
c3363eaa295fa92da162973b161a5718d75fc7dc
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='sproutnet', version='0.3.0', author='Sharpkoi', author_email='sharpkoi1222@gmail.com', license='LICENSE', description='neural network for learning and education.', packages=find_packages())
28.3
63
0.685512
from setuptools import setup, find_packages setup(name='sproutnet', version='0.3.0', author='Sharpkoi', author_email='sharpkoi1222@gmail.com', license='LICENSE', description='neural network for learning and education.', packages=find_packages())
0
0
0
0
0
0
0
0
0
a6b94cef82a627df04c84937f9c36f847cd8a358
534
py
Python
facebook_sdk/constants.py
zetahernandez/facebook-py-sdk
ab41452b884592f3330336d173fe99491979e1b8
[ "MIT" ]
17
2017-09-29T20:14:36.000Z
2018-12-19T19:57:01.000Z
facebook_sdk/constants.py
zetahernandez/facebook-py-sdk
ab41452b884592f3330336d173fe99491979e1b8
[ "MIT" ]
18
2017-10-10T14:20:31.000Z
2020-10-15T17:06:50.000Z
facebook_sdk/constants.py
zetahernandez/facebook-py-sdk
ab41452b884592f3330336d173fe99491979e1b8
[ "MIT" ]
10
2017-10-31T22:59:49.000Z
2021-09-08T11:22:16.000Z
BASE_GRAPH_URL = 'https://graph.facebook.com' BASE_AUTHORIZATION_URL = 'https://www.facebook.com' GRAPH_VERSION_V2_5 = 'v2.5' GRAPH_VERSION_V2_6 = 'v2.6' GRAPH_VERSION_V2_7 = 'v2.7' GRAPH_VERSION_V2_8 = 'v2.8' GRAPH_VERSION_V2_9 = 'v2.9' GRAPH_VERSION_V2_10 = 'v2.10' GRAPH_VERSION_V2_11 = 'v2.11' GRAPH_VERSION_V2_12 =...
24.272727
51
0.754682
BASE_GRAPH_URL = 'https://graph.facebook.com' BASE_AUTHORIZATION_URL = 'https://www.facebook.com' GRAPH_VERSION_V2_5 = 'v2.5' GRAPH_VERSION_V2_6 = 'v2.6' GRAPH_VERSION_V2_7 = 'v2.7' GRAPH_VERSION_V2_8 = 'v2.8' GRAPH_VERSION_V2_9 = 'v2.9' GRAPH_VERSION_V2_10 = 'v2.10' GRAPH_VERSION_V2_11 = 'v2.11' GRAPH_VERSION_V2_12 =...
0
0
0
0
0
0
0
0
0
97656c44c6efd1260688e2504da0149385039b77
4,988
py
Python
train_dtp.py
lnsndn/neural-word-search
cae82593a546590ff272b6062004d66dd2497337
[ "MIT" ]
5
2018-12-15T00:02:05.000Z
2021-07-06T14:40:32.000Z
train_dtp.py
lnsndn/neural-word-search
cae82593a546590ff272b6062004d66dd2497337
[ "MIT" ]
4
2019-07-31T15:43:41.000Z
2022-03-09T09:57:48.000Z
train_dtp.py
lnsndn/neural-word-search
cae82593a546590ff272b6062004d66dd2497337
[ "MIT" ]
7
2019-01-04T10:50:20.000Z
2022-01-18T18:03:01.000Z
import warnings warnings.filterwarnings("ignore") import os import json import easydict import time import torch from misc.dataloader import DataLoader import torch.optim as optim import misc.datasets as datasets import ctrlfnet_model_dtp as ctrlf from misc.h5_dataset import H5Dataset from train_opts import parse_args...
30.790123
111
0.65838
import warnings warnings.filterwarnings("ignore") import os import json import easydict import time import torch from misc.dataloader import DataLoader import torch.optim as optim import misc.datasets as datasets import ctrlfnet_model_dtp as ctrlf from misc.h5_dataset import H5Dataset from train_opts import parse_args...
0
0
0
0
0
0
0
0
0
8684acb247e85075aa50f50171da10a5939759a9
1,043
py
Python
Chapter10/mandelbrot_ctypes.py
gyf135/Hands-On-GPU-Programming-with-Python-and-CUDA
4fbd14d3a9fbc68305ffaa16490221b1ef49a934
[ "MIT" ]
164
2018-11-25T19:03:58.000Z
2022-03-30T12:02:40.000Z
Chapter10/mandelbrot_ctypes.py
gyf135/Hands-On-GPU-Programming-with-Python-and-CUDA
4fbd14d3a9fbc68305ffaa16490221b1ef49a934
[ "MIT" ]
2
2020-05-16T19:25:23.000Z
2021-06-24T15:29:56.000Z
Chapter10/mandelbrot_ctypes.py
gyf135/Hands-On-GPU-Programming-with-Python-and-CUDA
4fbd14d3a9fbc68305ffaa16490221b1ef49a934
[ "MIT" ]
89
2018-11-29T12:44:26.000Z
2022-03-03T04:56:01.000Z
from __future__ import division from time import time import matplotlib from matplotlib import pyplot as plt import numpy as np # Linux users: change the filename below to './mandelbrot.so' mandel_dll = CDLL('./mandelbrot.dll') mandel_c = mandel_dll.launch_mandelbrot mandel_c.argtypes = [POINTER(c_float), POINTER(c_fl...
27.447368
156
0.705657
from __future__ import division from time import time import matplotlib from matplotlib import pyplot as plt import numpy as np from ctypes import * # Linux users: change the filename below to './mandelbrot.so' mandel_dll = CDLL('./mandelbrot.dll') mandel_c = mandel_dll.launch_mandelbrot mandel_c.argtypes = [POINTER(c...
0
0
0
0
0
352
0
-1
45
c074b4532136d0952920ebc3ea17b89e1c9e86fe
4,241
py
Python
igor/std-plugins/ca/igorplugin.py
cwi-dis/igor
1d973731a8e9378c8609401fe9fd5be963b54233
[ "MIT" ]
5
2017-09-05T12:13:50.000Z
2020-07-15T15:12:08.000Z
igor/std-plugins/ca/igorplugin.py
cwi-dis/igor
1d973731a8e9378c8609401fe9fd5be963b54233
[ "MIT" ]
75
2017-05-22T13:19:58.000Z
2021-01-25T00:22:12.000Z
igor/std-plugins/ca/igorplugin.py
cwi-dis/igor
1d973731a8e9378c8609401fe9fd5be963b54233
[ "MIT" ]
3
2017-06-11T19:50:41.000Z
2019-04-29T13:30:59.000Z
DEBUG=False
37.866071
178
0.618486
import json import igorCA import os import sys import tempfile import urllib DEBUG=False class CAPlugin: def __init__(self, igor, pluginData): self.igor = igor self.ca = None self.caServerUrl = pluginData.get('ca') def initCA(self): if self.ca: return self.ca =...
0
0
0
4,029
0
62
0
-55
186
8a4e73ba3400822aae8cc18de0cacf63e102fbb5
3,493
py
Python
19_blastomatic/solution3_pandas.py
ilaydabozan/biofx_python
b7bef85dcf0b0a9e049f10a0766b9da20bf676c7
[ "MIT" ]
74
2020-12-18T16:04:31.000Z
2022-03-02T09:05:54.000Z
19_blastomatic/solution3_pandas.py
ilaydabozan/biofx_python
b7bef85dcf0b0a9e049f10a0766b9da20bf676c7
[ "MIT" ]
6
2021-06-30T19:42:04.000Z
2022-02-07T04:45:31.000Z
19_blastomatic/solution3_pandas.py
ilaydabozan/biofx_python
b7bef85dcf0b0a9e049f10a0766b9da20bf676c7
[ "MIT" ]
169
2020-11-06T19:44:36.000Z
2022-03-30T08:38:42.000Z
#!/usr/bin/env python3 """ Annotate BLAST output """ import argparse import pandas as pd import os # -------------------------------------------------- def get_args(): """ Get command-line arguments """ parser = argparse.ArgumentParser( description='Annotate BLAST output', formatter_class=a...
30.640351
79
0.442599
#!/usr/bin/env python3 """ Annotate BLAST output """ import argparse import pandas as pd import os from typing import NamedTuple, TextIO class Args(NamedTuple): """ Command-line arguments """ hits: TextIO annotations: TextIO outfile: TextIO delimiter: str pctid: float # --------------------...
0
0
0
134
0
0
0
16
45
a6521ff210264e8d0cd6c6236416f25a7b2ea2f9
2,385
py
Python
echopype/convert/convert.py
emiliom/echopype
3665faeb251d4db4bd8e1dfe05f41942c86f10ea
[ "Apache-2.0" ]
null
null
null
echopype/convert/convert.py
emiliom/echopype
3665faeb251d4db4bd8e1dfe05f41942c86f10ea
[ "Apache-2.0" ]
null
null
null
echopype/convert/convert.py
emiliom/echopype
3665faeb251d4db4bd8e1dfe05f41942c86f10ea
[ "Apache-2.0" ]
null
null
null
""" This file provides a wrapper for the convert objects and functions. Users will not need to know the names of the specific objects they need to create. """
39.098361
109
0.607128
""" This file provides a wrapper for the convert objects and functions. Users will not need to know the names of the specific objects they need to create. """ import os from echopype.convert.azfp import ConvertAZFP from echopype.convert.ek60 import ConvertEK60 class Convert: def __new__(cls, path='', xml_path='')...
0
0
0
2,100
0
0
0
36
89
86fcd9bd06f46da62a3b3763f7736ab6a9c8ff6a
200
py
Python
src/sylenium/helper/_filesystem_helper.py
symonk/browzer
4d9ee5adba6819d787357247da69b5429af9cde1
[ "MIT" ]
6
2018-07-25T09:14:08.000Z
2020-12-18T21:25:28.000Z
src/sylenium/helper/_filesystem_helper.py
symonk/sylenium
4d9ee5adba6819d787357247da69b5429af9cde1
[ "MIT" ]
32
2018-07-23T19:34:27.000Z
2020-11-18T01:38:42.000Z
src/sylenium/helper/_filesystem_helper.py
symonk/browzer
4d9ee5adba6819d787357247da69b5429af9cde1
[ "MIT" ]
3
2018-10-10T07:43:55.000Z
2020-01-10T21:50:24.000Z
import pathlib def does_file_exist(path_to_file: str) -> bool: """ Performs a simple exists check on a given file path """ path = pathlib.Path(path_to_file) return path.exists()
20
55
0.675
import pathlib def does_file_exist(path_to_file: str) -> bool: """ Performs a simple exists check on a given file path """ path = pathlib.Path(path_to_file) return path.exists()
0
0
0
0
0
0
0
0
0
2f5cb5ebfe13e26f81d8752aef7ba96356b7b2ba
2,224
py
Python
slack-bot/app.py
rapid7/alcide-github-actions
527ca967441fe3b4602f0f411fdd8b89877e04ea
[ "MIT" ]
null
null
null
slack-bot/app.py
rapid7/alcide-github-actions
527ca967441fe3b4602f0f411fdd8b89877e04ea
[ "MIT" ]
null
null
null
slack-bot/app.py
rapid7/alcide-github-actions
527ca967441fe3b4602f0f411fdd8b89877e04ea
[ "MIT" ]
1
2022-03-23T19:38:38.000Z
2022-03-23T19:38:38.000Z
import os from slack_sdk import WebClient from slack_sdk.errors import SlackApiError token=os.environ['token'] channel=os.environ['channel'] header=os.environ['header'] pre_message=os.environ['pre_message'] message=os.environ['message'] post_message=os.environ['post_message'] actor=os.environ['actor'] release=os.envir...
25.860465
78
0.42491
import os from slack_sdk import WebClient from slack_sdk.errors import SlackApiError token=os.environ['token'] channel=os.environ['channel'] header=os.environ['header'] pre_message=os.environ['pre_message'] message=os.environ['message'] post_message=os.environ['post_message'] actor=os.environ['actor'] release=os.envir...
0
0
0
0
0
0
0
0
0
cb8a9ee76940cfbe1fd57da3582d246bbc92f52a
3,866
py
Python
ophthalmology/models/heads.py
LaurenzBeck/ophthalmology
4648e74e7ae997582d835555fb81a67cf861dcc1
[ "MIT" ]
4
2022-01-16T17:00:49.000Z
2022-03-31T09:24:19.000Z
ophthalmology/models/heads.py
LaurenzBeck/ophthalmology
4648e74e7ae997582d835555fb81a67cf861dcc1
[ "MIT" ]
null
null
null
ophthalmology/models/heads.py
LaurenzBeck/ophthalmology
4648e74e7ae997582d835555fb81a67cf861dcc1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """## Task-specific heads Different heads that expect their inputs to be flattened. """ import torch.nn as nn
34.212389
115
0.54656
# -*- coding: utf-8 -*- """## Task-specific heads Different heads that expect their inputs to be flattened. """ from collections import OrderedDict from typing import List, Optional import torch.nn as nn import torch.nn.functional as F from ophthalmology.layers import activations class MultilayerHe...
0
0
0
3,514
0
0
0
59
146
c517b82b69d1346a5efbd9c857d25ef318f0b9c8
4,538
py
Python
provis/utils/__init__.py
czirjakkethz/provis
f442205e0a9e6c6c780eb0c00803af51755d44dd
[ "Apache-2.0" ]
3
2021-12-08T22:37:48.000Z
2022-01-11T15:15:54.000Z
provis/utils/__init__.py
czirjakkethz/provis
f442205e0a9e6c6c780eb0c00803af51755d44dd
[ "Apache-2.0" ]
null
null
null
provis/utils/__init__.py
czirjakkethz/provis
f442205e0a9e6c6c780eb0c00803af51755d44dd
[ "Apache-2.0" ]
null
null
null
import argparse import numpy as np from Bio.PDB import PDBParser parser = PDBParser() # RADII for atoms in explicit case. RADII = {} RADII["N"] = "1.540000" RADII["O"] = "1.400000" RADII["C"] = "1.740000" RADII["H"] = "1.200000" RADII["S"] = "1.800000" RADII["P"] = "1.800000" RADII["Z"] = "1.39" RADII["X"] = "0.77000...
24.663043
79
0.64015
import argparse import numpy as np import os from Bio.PDB import PDBParser, Selection parser = PDBParser() # RADII for atoms in explicit case. RADII = {} RADII["N"] = "1.540000" RADII["O"] = "1.400000" RADII["C"] = "1.740000" RADII["H"] = "1.200000" RADII["S"] = "1.800000" RADII["P"] = "1.800000" RADII["Z"] = "1.39" ...
0
0
0
0
0
410
0
-1
45
af2a2709e2e18e9e7f7e321fcb2d07855fe5b2cc
447
py
Python
src/course/migrations/0009_course_summary.py
sacids/acdc-el
ffaeee2fcd1ba7c7daf4b15cf2203295b70c09e5
[ "MIT" ]
null
null
null
src/course/migrations/0009_course_summary.py
sacids/acdc-el
ffaeee2fcd1ba7c7daf4b15cf2203295b70c09e5
[ "MIT" ]
4
2021-06-08T22:09:55.000Z
2022-03-12T00:44:10.000Z
src/course/migrations/0009_course_summary.py
sacids/acdc-el
ffaeee2fcd1ba7c7daf4b15cf2203295b70c09e5
[ "MIT" ]
null
null
null
# Generated by Django 2.0.9 on 2020-07-24 07:52
22.35
77
0.606264
# Generated by Django 2.0.9 on 2020-07-24 07:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('course', '0008_auto_20200724_0717'), ] operations = [ migrations.AddField( model_name='course', name='summary', ...
0
0
0
333
0
0
0
19
46
0428e6ea8b7d37ab7939174584641388a6b49043
3,337
py
Python
src/digitizer/canvas_draw.py
magonzal/CSMJobe
87b873e3448071b9e9a5732c1ec52a7f6f4bc960
[ "MIT" ]
null
null
null
src/digitizer/canvas_draw.py
magonzal/CSMJobe
87b873e3448071b9e9a5732c1ec52a7f6f4bc960
[ "MIT" ]
4
2021-03-19T01:57:14.000Z
2022-03-11T23:53:05.000Z
src/digitizer/canvas_draw.py
magonzal/CSMJobe
87b873e3448071b9e9a5732c1ec52a7f6f4bc960
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QApplication import sys if __name__ == "__main__": app = QApplication(sys.argv) window = Window() window.show() app.exec()
30.063063
124
0.625712
from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, QFileDialog import sys from PyQt5.QtGui import QImage, QPainter, QPen from PyQt5.QtCore import Qt, QPoint class Window(QMainWindow): def __init__(self): super().__init__() top = 400 left = 400 width = 800 he...
0
0
0
3,021
0
0
0
74
68
e6843e8c809f8c8fbf6545cc3eb19e2004ca240a
20,283
py
Python
astropy/convolution/tests/test_kernel_class.py
guntbert/astropy
f2d2add09e5b1638b2698f19a4d46fcca19e82be
[ "BSD-3-Clause" ]
null
null
null
astropy/convolution/tests/test_kernel_class.py
guntbert/astropy
f2d2add09e5b1638b2698f19a4d46fcca19e82be
[ "BSD-3-Clause" ]
2
2016-11-30T20:31:42.000Z
2016-12-02T23:50:10.000Z
astropy/convolution/tests/test_kernel_class.py
guntbert/astropy
f2d2add09e5b1638b2698f19a4d46fcca19e82be
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np from astropy.convolution.kernels import (Gaussian1DKernel, Gaussian2DKernel, Box1DKernel, Box2DKernel, Trapezoid1DKernel, TrapezoidDisk2DKernel, MexicanHat1DKernel, Tophat2DKernel, AiryDisk2DKernel, Ring2DKernel) try: HAS_SCIPY = Tr...
36.611913
108
0.624365
# Licensed under a 3-clause BSD style license - see LICENSE.rst import itertools import pytest import numpy as np from numpy.testing import assert_almost_equal, assert_allclose from astropy.convolution.convolve import convolve, convolve_fft from astropy.convolution.kernels import ( Gaussian1DKernel, Gaussian2DKe...
0
7,627
0
11,136
0
0
0
320
207
2f3951c4ff177d54f1fe4c26689995c77d9575f0
13,089
py
Python
mlem/hype.py
tlby/rnd-html
66239829d262bf83a7f4dd1b2968e0c14a7543e8
[ "MIT" ]
1
2021-09-01T10:39:05.000Z
2021-09-01T10:39:05.000Z
mlem/hype.py
tlby/rnd-html
66239829d262bf83a7f4dd1b2968e0c14a7543e8
[ "MIT" ]
null
null
null
mlem/hype.py
tlby/rnd-html
66239829d262bf83a7f4dd1b2968e0c14a7543e8
[ "MIT" ]
null
null
null
import numpy import ray.tune import transformers def default_hp_space(): ''' set of the traditional hp_search params (not model settings) ''' dflt = transformers.TrainingArguments space = {} samples = 1 if True: space['learning_rate'] = ray.tune.loguniform( dflt.learning_rate / ...
41.031348
91
0.597219
import contextlib import itertools import json import os import pathlib import shutil import sys import typing import datasets import numpy import ray.tune import transformers from . import metric from . import tok from . import train class TailScheduler(ray.tune.schedulers.trial_scheduler.FIFOScheduler): ''' T...
0
0
0
6,888
2,406
2,909
0
-78
382
eed150cea8d8cc14e4e707364618e2738e45cf7f
359
py
Python
exercises/practice/darts/.meta/example.py
samr1ddh1/python-1
8998d30bb0d6665dd233354670f21c4d11c2f1a0
[ "MIT" ]
1,177
2017-06-21T20:24:06.000Z
2022-03-29T02:30:55.000Z
exercises/practice/darts/.meta/example.py
samr1ddh1/python-1
8998d30bb0d6665dd233354670f21c4d11c2f1a0
[ "MIT" ]
1,890
2017-06-18T20:06:10.000Z
2022-03-31T18:35:51.000Z
exercises/practice/darts/.meta/example.py
samr1ddh1/python-1
8998d30bb0d6665dd233354670f21c4d11c2f1a0
[ "MIT" ]
1,095
2017-06-26T23:06:19.000Z
2022-03-29T03:25:38.000Z
# X, and Y variable names against [pylint]: C0104, but is the same as the stub, advise not to change this.
23.933333
106
0.601671
from math import sqrt # X, and Y variable names against [pylint]: C0104, but is the same as the stub, advise not to change this. def score(x, y): dart_location = sqrt(x * x + y * y) if dart_location <= 1.0: return 10 elif dart_location <= 5.0: return 5 elif dart_location <= 10.0: ...
0
0
0
0
0
207
0
0
44
d9be3572d7e803358eec7d2a525f2fbbaccad773
1,999
py
Python
pages/predictions.py
geraldm24/Sherrif-Sale
0332146d0b7d069dcf1f1ee574c75870f6d95962
[ "MIT" ]
null
null
null
pages/predictions.py
geraldm24/Sherrif-Sale
0332146d0b7d069dcf1f1ee574c75870f6d95962
[ "MIT" ]
null
null
null
pages/predictions.py
geraldm24/Sherrif-Sale
0332146d0b7d069dcf1f1ee574c75870f6d95962
[ "MIT" ]
null
null
null
# Imports from 3rd party libraries import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output # Imports from this application from app import app # 2 column layout. 1st column width = 4/12 # https://dash-bootst...
29.835821
105
0.565283
# Imports from 3rd party libraries import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output # Imports from this application from app import app # 2 column layout. 1st column width = 4/12 # https://dash-bootst...
0
481
0
0
0
0
0
0
22
522c1b3143648ec771e92b1c9ef79cc1e16c0474
8,719
py
Python
processor/processor.py
maxingan2412/CIL-ReID
0307ca57a5da9cfcb30fc3810469b0a953c77bfb
[ "MIT" ]
58
2021-09-02T13:09:57.000Z
2022-03-20T06:44:56.000Z
processor/processor.py
maxingan2412/CIL-ReID
0307ca57a5da9cfcb30fc3810469b0a953c77bfb
[ "MIT" ]
5
2021-11-19T06:38:43.000Z
2022-03-31T13:48:11.000Z
processor/processor.py
maxingan2412/CIL-ReID
0307ca57a5da9cfcb30fc3810469b0a953c77bfb
[ "MIT" ]
12
2021-11-03T21:32:12.000Z
2022-03-19T07:55:08.000Z
import torch.nn as nn
41.127358
91
0.487097
import logging import os import time import torch import torch.nn as nn from utils.meter import AverageMeter from utils.metrics import R1_mAP_eval from torch.cuda import amp import torchvision import torch.nn.functional as F import numpy as np import math import random def do_train(cfg, model, center_criterion, trai...
0
0
0
0
0
8,400
0
-16
311
3386bb8e72b59228558867ce6d016eb0556a45ff
11,620
py
Python
deepreg/dataset/preprocess.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
deepreg/dataset/preprocess.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
deepreg/dataset/preprocess.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
""" Module containing data augmentation techniques. - 3D Affine/DDF Transforms for moving and fixed images. """ from typing import Dict import tensorflow as tf from deepreg.model.layer_util import (resize3d) def resize_inputs( inputs: Dict[str, tf.Tensor], moving_image_size: tuple, fixed_image_size: tuple ...
35.319149
88
0.629604
""" Module containing data augmentation techniques. - 3D Affine/DDF Transforms for moving and fixed images. """ from abc import abstractmethod from typing import Dict import tensorflow as tf from deepreg.model.layer_util import ( gen_rand_affine_transform, gen_rand_ddf, get_reference_grid, resample...
0
5,720
0
3,375
0
0
0
134
114
3d30934d590182a66314e5ed5cf4a07887f68276
3,400
py
Python
tests/color_seg_test.py
osrf/baxter_demos
1678291de6addb7c3d5ac0391ccd5917398ab195
[ "Apache-2.0" ]
29
2015-03-05T19:03:00.000Z
2021-08-11T05:48:51.000Z
tests/color_seg_test.py
rethink-imcmahon/baxter_demos
1678291de6addb7c3d5ac0391ccd5917398ab195
[ "Apache-2.0" ]
1
2016-01-30T21:22:07.000Z
2016-02-04T19:33:24.000Z
tests/color_seg_test.py
rethink-imcmahon/baxter_demos
1678291de6addb7c3d5ac0391ccd5917398ab195
[ "Apache-2.0" ]
12
2015-01-30T17:14:15.000Z
2021-01-27T07:54:54.000Z
#!/usr/bin/env python """Script to test functionality of object_finder color segmentation User needs to manually run object_finder and subscribe to topic name specified here """ global centroid, axis centroid = None axis = None topic_name = "object_finder_test" if __name__ == "__main__": main()
34.343434
95
0.635294
#!/usr/bin/env python import os import sys import rospy import cv, cv2, cv_bridge import numpy from baxter_demos.msg import BlobInfo, BlobInfoArray from sensor_msgs.msg import Image import argparse """Script to test functionality of object_finder color segmentation User needs to manually run object_finder and subscri...
0
0
0
0
0
2,890
0
0
200
428f0920eed0cf67809036bf2a2b9352b10760a0
362
py
Python
app/admin/__init__.py
crudgenerator-io/django-admin-panel
b0f2d6a3ffd73a4b6e0608de486aff2cdb046222
[ "CC-BY-4.0" ]
1
2021-06-23T20:17:01.000Z
2021-06-23T20:17:01.000Z
app/admin/__init__.py
crudgenerator-io/django-admin-panel
b0f2d6a3ffd73a4b6e0608de486aff2cdb046222
[ "CC-BY-4.0" ]
null
null
null
app/admin/__init__.py
crudgenerator-io/django-admin-panel
b0f2d6a3ffd73a4b6e0608de486aff2cdb046222
[ "CC-BY-4.0" ]
null
null
null
from .sites import site from .options import ModelAdmin from django.contrib.admin import register __all__ = ["site", 'register', 'autodiscover', 'ModelAdmin']
30.166667
66
0.790055
from .sites import site from django.utils.module_loading import autodiscover_modules from .options import ModelAdmin from django.contrib.admin import register def autodiscover(): autodiscover_modules('admin', register_to=site) autodiscover_modules('django.contrib.admin', register_to=site) __all__ = ["site", ...
0
0
0
0
0
117
0
39
45
bb690f26bd5f0581b1c0c1e8c3fb65fcff126d2e
1,663
py
Python
tests/orca_unit_testing/test_function_binary_operator_mul.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
20
2019-12-02T11:49:12.000Z
2021-12-24T19:34:32.000Z
tests/orca_unit_testing/test_function_binary_operator_mul.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
null
null
null
tests/orca_unit_testing/test_function_binary_operator_mul.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
5
2019-12-02T12:16:22.000Z
2021-10-22T02:27:47.000Z
import unittest if __name__ == '__main__': unittest.main()
35.382979
120
0.594708
import unittest import orca from setup.settings import * from pandas.util.testing import * class FunctionMulTest(unittest.TestCase): @classmethod def setUpClass(cls): # connect to a DolphinDB server orca.connect(HOST, PORT, "admin", "123456") @property def pdf(self): return pd...
0
426
0
1,073
0
0
0
9
89
3c268e4f8083266094f8b9d84282315b5a5ef55c
11,999
py
Python
src/photometry/QueryCatalogue.py
nblago/utils
862a34eb9820474d1071e5ac2eec58d66d297649
[ "MIT" ]
1
2021-02-25T11:18:20.000Z
2021-02-25T11:18:20.000Z
src/photometry/QueryCatalogue.py
nblago/utils
862a34eb9820474d1071e5ac2eec58d66d297649
[ "MIT" ]
null
null
null
src/photometry/QueryCatalogue.py
nblago/utils
862a34eb9820474d1071e5ac2eec58d66d297649
[ "MIT" ]
1
2020-01-27T03:45:18.000Z
2020-01-27T03:45:18.000Z
# -*- coding: utf-8 -*- """ Created on Tue Mar 7 13:26:06 2017 @author: nblago """ from __future__ import print_function try: # For Python 3.0 and later from urllib.request import urlopen from urllib.request import urlretrieve from urllib.request import HTTPError except ImportError: # Fall...
41.375862
328
0.574798
# -*- coding: utf-8 -*- """ Created on Tue Mar 7 13:26:06 2017 @author: nblago """ from __future__ import print_function import datetime from astropy.io import votable import numpy as np import os import logging import warnings from astropy import units as u from astropy.coordinates import SkyCoord from astropy.tab...
0
0
0
11,203
0
0
0
72
373
8746143745c244455ade1c1fc288e9483445b512
417
py
Python
ocv05-03.py
LeeCheahyun/20210823-0930
12927fe918452b3e7da5fcd4d31da6095c400106
[ "Apache-2.0" ]
null
null
null
ocv05-03.py
LeeCheahyun/20210823-0930
12927fe918452b3e7da5fcd4d31da6095c400106
[ "Apache-2.0" ]
null
null
null
ocv05-03.py
LeeCheahyun/20210823-0930
12927fe918452b3e7da5fcd4d31da6095c400106
[ "Apache-2.0" ]
null
null
null
import cv2 cap = cv2.VideoCapture(0) w = round(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) h = round(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) fourcc = cv2.VideoWriter_fourcc(*'DIVX') # *'DIVX' == 'D','I','V','X' out = cv2.VideoWriter('output.avi', fourcc, 30, (w, h)) while True: # ret, frame = cap.read() out.write(fram...
21.947368
69
0.621103
import cv2 cap = cv2.VideoCapture(0) w = round(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) h = round(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) fourcc = cv2.VideoWriter_fourcc(*'DIVX') # *'DIVX' == 'D','I','V','X' out = cv2.VideoWriter('output.avi', fourcc, 30, (w, h)) while True: # 카메라 프레임 처리 ret, frame = cap.read() out.wr...
24
0
0
0
0
0
0
0
0
3efb0f4e68fa2469df0b36b596c81774fdf9a7bc
3,241
py
Python
packages/w3af/w3af/plugins/tests/audit/test_rosetta_flash.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/plugins/tests/audit/test_rosetta_flash.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/plugins/tests/audit/test_rosetta_flash.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" test_rosetta_flash.py Copyright 2015 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is distributed in the ho...
33.071429
79
0.630052
""" test_rosetta_flash.py Copyright 2015 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is distributed in the ho...
0
0
0
2,282
0
0
0
39
90
c69bf6e7f07c44751e177c6adab9529d91097593
1,309
py
Python
tests/test_check_pesel.py
gunater/check-personal-identity-number-and-credit-card
41a0241a84b7ffb7852dcaa3a5a8989e02c93709
[ "MIT" ]
null
null
null
tests/test_check_pesel.py
gunater/check-personal-identity-number-and-credit-card
41a0241a84b7ffb7852dcaa3a5a8989e02c93709
[ "MIT" ]
null
null
null
tests/test_check_pesel.py
gunater/check-personal-identity-number-and-credit-card
41a0241a84b7ffb7852dcaa3a5a8989e02c93709
[ "MIT" ]
null
null
null
correct_pesel = ["53052486359", "94120679457", "01240316649"] too_long_pesel = "5305248635923" too_short_pesel = "530524863" with_letters_pesel = "530524d6a59" bad_pesel = "53052486339"
32.725
72
0.680672
from check_personal_identity_number_and_credit_card.check_Pesel import ( valid_pesel, check_control_sum_pesel, check_age, pesel, ) correct_pesel = ["53052486359", "94120679457", "01240316649"] too_long_pesel = "5305248635923" too_short_pesel = "530524863" with_letters_pesel = "530524d6a59" bad_pesel = ...
0
0
0
951
0
0
0
125
45
d0ea0f81ad41b5fd3a5b1d8e6250b27779b573b0
4,230
py
Python
modules/python/ircd/channel.py
oftc/oftc-ircd
4d03219f6b7e2aeda8b7848eea4294b7b85aad12
[ "MIT" ]
2
2015-01-11T19:14:24.000Z
2016-12-08T16:00:10.000Z
modules/python/ircd/channel.py
oftc/oftc-ircd
4d03219f6b7e2aeda8b7848eea4294b7b85aad12
[ "MIT" ]
null
null
null
modules/python/ircd/channel.py
oftc/oftc-ircd
4d03219f6b7e2aeda8b7848eea4294b7b85aad12
[ "MIT" ]
3
2021-05-02T17:15:51.000Z
2021-05-02T17:16:04.000Z
# Copyright (c) 2012 Stuart Walsh # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without # restriction, including without limitation the rights to use, # copy, modify, merge, publish...
25.792683
114
0.661702
# Copyright (c) 2012 Stuart Walsh # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without # restriction, including without limitation the rights to use, # copy, modify, merge, publish...
0
0
0
0
0
2,957
0
20
137
5bfaaef406adc5205b6eadfd38c9c70fb073c4e4
457
py
Python
source/convert.py
sanixa/GS-WGAN-custom
77660d4ba9f0e8ae949d76c29bb1b11d0afd9f96
[ "MIT" ]
null
null
null
source/convert.py
sanixa/GS-WGAN-custom
77660d4ba9f0e8ae949d76c29bb1b11d0afd9f96
[ "MIT" ]
null
null
null
source/convert.py
sanixa/GS-WGAN-custom
77660d4ba9f0e8ae949d76c29bb1b11d0afd9f96
[ "MIT" ]
null
null
null
import os, sys import torch import torch.nn as nn args = parse_arguments() if not os.path.isfile(args.checkpoint): sys.exit("model does not exist") print(f"converting {args.checkpoint}...") model = GeneratorDCGAN(z_dim=args.z_dim, model_dim=args.model_dim, num_classes=10) model = torch.load(args.checkpoin...
30.466667
86
0.752735
import os, sys import torch import torch.nn as nn from models import * from config import * args = parse_arguments() if not os.path.isfile(args.checkpoint): sys.exit("model does not exist") print(f"converting {args.checkpoint}...") model = GeneratorDCGAN(z_dim=args.z_dim, model_dim=args.model_dim, num_cl...
0
0
0
0
0
0
0
-2
46
d388bef2e8272db16390467dbcf230825fe941af
1,712
py
Python
theano/sandbox/mkl/tests/gen_relu_graph.py
intel/Theano-dev
6ca6fd4646f9e958058c7bce52cd51923c05c2f4
[ "BSD-3-Clause" ]
64
2016-10-02T20:41:56.000Z
2020-03-11T14:59:40.000Z
theano/sandbox/mkl/tests/gen_relu_graph.py
intel/Theano-dev
6ca6fd4646f9e958058c7bce52cd51923c05c2f4
[ "BSD-3-Clause" ]
4
2017-06-12T05:12:38.000Z
2018-03-15T03:16:30.000Z
theano/sandbox/mkl/tests/gen_relu_graph.py
intel/Theano-dev
6ca6fd4646f9e958058c7bce52cd51923c05c2f4
[ "BSD-3-Clause" ]
30
2016-10-27T21:59:00.000Z
2021-02-20T09:55:14.000Z
from nose.plugins.skip import SkipTest from theano import tensor as T from theano.sandbox import mkl if not mkl.mkl_available: raise SkipTest('Optional package MKL disabled') if __name__ == '__main__': x = T.ftensor4('x_4D') run_test('forward', x) run_test('backward', x) x = T.fmatrix('x_2D') ...
34.24
127
0.672897
import numpy as np from nose.plugins.skip import SkipTest import theano from theano import tensor as T from theano.sandbox import mkl if not mkl.mkl_available: raise SkipTest('Optional package MKL disabled') def run_test(direction='forward', x=T.ftensor4('x')): print ('=' * 60) print ('generate relu gra...
0
0
0
0
0
1,281
0
-11
68
ee86da67b9084c628346ac2c39f027c911d95b44
1,874
py
Python
plugins/google_drive/komand_google_drive/actions/move_file/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/google_drive/komand_google_drive/actions/move_file/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/google_drive/komand_google_drive/actions/move_file/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT
20.822222
113
0.548559
# GENERATED BY KOMAND SDK - DO NOT EDIT import insightconnect_plugin_runtime import json class Component: DESCRIPTION = "Move a file to a different folder" class Input: FILE_ID = "file_id" FOLDER_ID = "folder_id" class Output: RESULT = "result" class MoveFileInput(insightconnect_plugin_r...
0
0
0
1,657
0
0
0
5
159
090bb49c88937ae4b1c640c78bdf2f197dc7e4fb
339
py
Python
smartmirror/mod_uber/utils/__init__.py
nirmitdesai/smartmirror
e4973e02469989501e8b9a5c6aa05d7228b06cf2
[ "BSD-3-Clause" ]
null
null
null
smartmirror/mod_uber/utils/__init__.py
nirmitdesai/smartmirror
e4973e02469989501e8b9a5c6aa05d7228b06cf2
[ "BSD-3-Clause" ]
null
null
null
smartmirror/mod_uber/utils/__init__.py
nirmitdesai/smartmirror
e4973e02469989501e8b9a5c6aa05d7228b06cf2
[ "BSD-3-Clause" ]
null
null
null
'''curl -F 'client_id=M5TNy7T9h9n8xUOQ_uWSHVLdGvfw7u6H' \ -F 'client_secret=w5P7E4Ld54d_ai3lJRhAgkU_9oWbKd9kkTJHfPgf' \ -F 'grant_type=authorization_code' \ -F 'redirect_uri=https://9bbc25ce.ngrok.io' \ -F 'code=fMiym9aqxIPA6aEIDgZcHRk0BBwVM4' \ https://login.uber.com/oauth/v2/token'''
33.9
66
0.722714
from uberUtils import * '''curl -F 'client_id=M5TNy7T9h9n8xUOQ_uWSHVLdGvfw7u6H' \ -F 'client_secret=w5P7E4Ld54d_ai3lJRhAgkU_9oWbKd9kkTJHfPgf' \ -F 'grant_type=authorization_code' \ -F 'redirect_uri=https://9bbc25ce.ngrok.io' \ -F 'code=fMiym9aqxIPA6aEIDgZcHRk0BBwVM4' \ https://login.uber.com/o...
0
0
0
0
0
0
0
2
22
e495962ef8e4e01ab3563b0bde8ad2b71a3bb4ea
1,470
py
Python
horizon/openstack_dashboard/dashboards/admin/cdn/urls.py
yianjiajia/openstack_horizon
9e36a4c3648ef29d0df6912d990465f51d6124a6
[ "Apache-2.0" ]
null
null
null
horizon/openstack_dashboard/dashboards/admin/cdn/urls.py
yianjiajia/openstack_horizon
9e36a4c3648ef29d0df6912d990465f51d6124a6
[ "Apache-2.0" ]
null
null
null
horizon/openstack_dashboard/dashboards/admin/cdn/urls.py
yianjiajia/openstack_horizon
9e36a4c3648ef29d0df6912d990465f51d6124a6
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
42
82
0.708844
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
0
0
0
0
0
0
0
1
0
6c42976620655f375bda0227097f091d6e6fda10
1,946
py
Python
chapter_10/rad.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_10/rad.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_10/rad.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
"Reloading Callback Handlers Dynamically" # reload callback handlers dynamically Hello().mainloop() ''' You can change this file any number of times while the rad scripts GUI is active; each time you do so, youll change the behavior of the GUI when a button press occurs. ''' """ There are other ways to change a GU...
37.423077
106
0.656732
"Reloading Callback Handlers Dynamically" # reload callback handlers dynamically from tkinter import * import radactions # get initial callback handlers from importlib import reload class Hello(Frame): def __init__(self, master=None): Frame.__init__(self, master)...
12
0
0
911
0
0
0
3
164
8b319d24da7fff6704db8b2901eaa45b96cb330d
5,447
py
Python
homopolymer_fit/generate_fitting_eqns.py
barricklab-at-jhu/Ising_programs
95313e3e9c783251859c6b79110cacce15d30e30
[ "Apache-2.0" ]
4
2020-06-15T00:27:43.000Z
2021-03-01T15:59:12.000Z
homopolymer_fit/generate_fitting_eqns.py
barricklab-at-jhu/Ising_programs
95313e3e9c783251859c6b79110cacce15d30e30
[ "Apache-2.0" ]
2
2020-06-07T23:05:26.000Z
2020-06-17T12:02:26.000Z
homopolymer_fit/generate_fitting_eqns.py
barricklab-at-jhu/Ising_programs
95313e3e9c783251859c6b79110cacce15d30e30
[ "Apache-2.0" ]
3
2020-05-21T13:54:18.000Z
2021-03-08T13:00:44.000Z
""" Generates partition function and fraction folded expressions for an NRC capped homopolymer series, and generates a list of experiment filenames (melts) and a constructs list. """ from __future__ import division import sympy as sp import numpy as np import json import os import time start = time.time() print("\nG...
33.832298
119
0.649165
""" Generates partition function and fraction folded expressions for an NRC capped homopolymer series, and generates a list of experiment filenames (melts) and a constructs list. """ from __future__ import division import sympy as sp import numpy as np import json import os import time start = time.time() print("\nG...
0
0
0
0
0
0
0
0
0
2abbec530b0b19f720dbd1fb7fdd515eee75a2fb
1,131
py
Python
vis.py
heyfaraday/FORTCMB
56366423546ca73e876eda58dc8a01a25e640098
[ "MIT" ]
null
null
null
vis.py
heyfaraday/FORTCMB
56366423546ca73e876eda58dc8a01a25e640098
[ "MIT" ]
null
null
null
vis.py
heyfaraday/FORTCMB
56366423546ca73e876eda58dc8a01a25e640098
[ "MIT" ]
1
2022-02-13T04:26:12.000Z
2022-02-13T04:26:12.000Z
from numpy import genfromtxt, zeros from math import pi import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap map = genfromtxt('out.dat') N = 512 projection = 'cyl' # 'cyl', 'moll', 'ortho' save_as_png = False save_as_svg = False inside_map = zeros((int(N + 1), int(N / 2 + 1))) x = zeros((int(N ...
25.133333
78
0.59328
from numpy import genfromtxt, zeros from math import pi import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap map = genfromtxt('out.dat') N = 512 projection = 'cyl' # 'cyl', 'moll', 'ortho' save_as_png = False save_as_svg = False inside_map = zeros((int(N + 1), int(N / 2 + 1))) x = zeros((int(N ...
0
0
0
0
0
0
0
0
0
f976c62eb02030389333a34d112076202fe4c488
19,495
py
Python
mtrack/track.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
mtrack/track.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
mtrack/track.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__) def connect_candidates_alias(db, name_db, collection, x_lim, y_lim, z_lim, distance_thresh...
40.195876
104
0.435086
from mtrack.cores import CoreSolver, CoreBuilder, DB from mtrack.preprocessing import g1_to_nml, Chunker, extract_maxima_candidates from mtrack.mt_utils import read_config, check_overlap from mtrack.graphs.g1_graph import G1 from solve import solve import numpy as np import h5py import os import multiprocessing, loggi...
0
0
0
0
0
18,359
0
94
402
1eab90f1fd53a4ac5c846f2d750d464eed7f1363
11,872
py
Python
lib/model/test_table.py
acetal/rcnn_edit
e46387069ac24866706af611de4080a067372c24
[ "MIT" ]
null
null
null
lib/model/test_table.py
acetal/rcnn_edit
e46387069ac24866706af611de4080a067372c24
[ "MIT" ]
null
null
null
lib/model/test_table.py
acetal/rcnn_edit
e46387069ac24866706af611de4080a067372c24
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ impor...
35.020649
149
0.624158
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ impor...
0
0
0
0
0
6,949
0
72
181
bcc137f145313c8049b02eb3ca4c6ca9ac2fd6ce
1,644
py
Python
preprocessing/data_dist.py
SLAB-NLP/Akk
baa07b0fdf8c7d8623fbd78508867c30a8a7ff6d
[ "MIT" ]
5
2021-09-14T07:09:07.000Z
2021-11-15T19:43:13.000Z
preprocessing/data_dist.py
SLAB-NLP/Akk
baa07b0fdf8c7d8623fbd78508867c30a8a7ff6d
[ "MIT" ]
null
null
null
preprocessing/data_dist.py
SLAB-NLP/Akk
baa07b0fdf8c7d8623fbd78508867c30a8a7ff6d
[ "MIT" ]
1
2021-11-15T19:43:19.000Z
2021-11-15T19:43:19.000Z
import sys import os sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir)))
35.73913
111
0.627737
import glob from collections import Counter from typing import List import sys import os import json from preprocessing.scraping import JSONS_DIR sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))) def split_data_by_properties(preprocessed_data_path: str, properties: List[str]...
0
0
0
0
0
1,357
0
15
157
6b23d6692add9b9a98b483da8e2817f82a552379
1,102
py
Python
expenses_trasker/expenses_tracker/main_app/validators.py
ivailoiliev84/Web_basic_exams_preparation_and_exam
411cc7b737fc5044029a52bd14a5d75ce79cd39e
[ "MIT" ]
null
null
null
expenses_trasker/expenses_tracker/main_app/validators.py
ivailoiliev84/Web_basic_exams_preparation_and_exam
411cc7b737fc5044029a52bd14a5d75ce79cd39e
[ "MIT" ]
null
null
null
expenses_trasker/expenses_tracker/main_app/validators.py
ivailoiliev84/Web_basic_exams_preparation_and_exam
411cc7b737fc5044029a52bd14a5d75ce79cd39e
[ "MIT" ]
null
null
null
# def validator_file_max_size_in_mb(max_size): # def validate_image(fieldfile_obj): # filesize = fieldfile_obj.file.size # megabyte_limit = 5.0 # if filesize > megabyte_limit * 1024 * 1024: # raise ValidationError("Max file size is %sMB" % str(max_size)) # # return validat...
29.783784
77
0.696915
from django.core.exceptions import ValidationError from django.utils.deconstruct import deconstructible def validator_only_letters(value): for letter in value: if not letter.isalpha(): raise ValidationError("Ensure this value contains only letters.") # def validator_file_max_size_in_mb(max_s...
0
473
0
0
0
149
0
60
90
1fab464dec76210051981c698a37ce8f75459807
1,588
py
Python
tests/smoke/test_supplier_redirects.py
mayank-sfdc/directory-tests
6e978bc1a27c19389e99e454143122aa27e47b85
[ "MIT" ]
4
2017-06-02T09:09:10.000Z
2018-01-25T19:06:12.000Z
tests/smoke/test_supplier_redirects.py
mayank-sfdc/directory-tests
6e978bc1a27c19389e99e454143122aa27e47b85
[ "MIT" ]
53
2016-10-27T22:31:03.000Z
2022-03-07T11:18:25.000Z
tests/smoke/test_supplier_redirects.py
mayank-sfdc/directory-tests
6e978bc1a27c19389e99e454143122aa27e47b85
[ "MIT" ]
3
2017-11-22T11:42:40.000Z
2022-02-21T01:20:04.000Z
# -*- coding: utf-8 -*- import allure pytestmark = [allure.suite("FAS redirects"), allure.feature("FAS redirects")]
31.76
87
0.657431
# -*- coding: utf-8 -*- import pytest from rest_framework.status import HTTP_302_FOUND import allure from directory_tests_shared import URLs from tests.smoke.cms_api_helpers import get_and_assert pytestmark = [allure.suite("FAS redirects"), allure.feature("FAS redirects")] @allure.issue("CMS-1834", "Links to legacy...
0
1,288
0
0
0
0
0
70
111
8dd6f051e01a06aeb045a540a5929cb21ec06c98
1,477
py
Python
plot_bw.py
hotpxl/low-rate-tcp-dos
25cf181080e4ff759edef438982b5e3d811797e7
[ "MIT" ]
3
2018-06-11T05:34:05.000Z
2020-11-06T05:23:34.000Z
plot_bw.py
hotpxl/low-rate-tcp-dos
25cf181080e4ff759edef438982b5e3d811797e7
[ "MIT" ]
1
2021-11-09T12:25:13.000Z
2021-11-09T12:25:13.000Z
plot_bw.py
hotpxl/low-rate-tcp-dos
25cf181080e4ff759edef438982b5e3d811797e7
[ "MIT" ]
4
2019-08-24T12:55:53.000Z
2022-03-07T12:03:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import matplotlib matplotlib.use('agg') TRANSFER_MB = 2 # Data transfered in megabytes BOTTLENECK_LINK = 1.5 # Mbps if __name__ == '__main__': main()
30.770833
78
0.602573
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import math import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt import numpy as np import sys TRANSFER_MB = 2 # Data transfered in me...
0
0
0
0
0
1,055
0
-26
133
309ef6cad1487772dcd56122ffc13161cac69638
1,786
py
Python
setup.py
LimnoTech/ODM2PythonAPI
a5088ac8ecee9213e994fc0a71831825a9e05541
[ "BSD-3-Clause" ]
4
2018-11-30T04:04:16.000Z
2021-07-09T07:29:23.000Z
setup.py
LimnoTech/ODM2PythonAPI
a5088ac8ecee9213e994fc0a71831825a9e05541
[ "BSD-3-Clause" ]
156
2015-05-20T00:17:08.000Z
2019-05-11T06:13:50.000Z
setup.py
LimnoTech/ODM2PythonAPI
a5088ac8ecee9213e994fc0a71831825a9e05541
[ "BSD-3-Clause" ]
13
2015-06-28T04:16:05.000Z
2020-04-02T08:08:19.000Z
from __future__ import (absolute_import, division, print_function) """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ import os from codecs import open from setuptools import find_packages, setup import versioneer here = os.p...
30.793103
80
0.679171
from __future__ import (absolute_import, division, print_function) """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ import os from codecs import open from setuptools import find_packages, setup import versioneer here = os.p...
0
0
0
0
0
0
0
0
0
5c35a52458575245235118efec3d3bd1bbf76d61
9,151
py
Python
src/zptess/gui/preferences/base.py
STARS4ALL/zptess
9bbe91720f283756a0938c7ac4dde180c1e1eda2
[ "MIT" ]
null
null
null
src/zptess/gui/preferences/base.py
STARS4ALL/zptess
9bbe91720f283756a0938c7ac4dde180c1e1eda2
[ "MIT" ]
null
null
null
src/zptess/gui/preferences/base.py
STARS4ALL/zptess
9bbe91720f283756a0938c7ac4dde180c1e1eda2
[ "MIT" ]
null
null
null
# ---------------------------------------------------------------------- # Copyright (c) 2022 # # See the LICENSE file for details # see the AUTHORS file for authors # ---------------------------------------------------------------------- ################################# ## APPLICATION SPECIFIC WIDGETS # ############...
36.751004
151
0.592176
# ---------------------------------------------------------------------- # Copyright (c) 2022 # # See the LICENSE file for details # see the AUTHORS file for authors # ---------------------------------------------------------------------- ################################# ## APPLICATION SPECIFIC WIDGETS # ############...
0
0
0
7,786
0
0
0
87
230
2d4c5d177119cdc4f9418e772326973cfca6b69d
291
py
Python
fontFeatures/ttLib/Chaining.py
chrissimpkins/fontFeatures
5e9187066fe431d3cacb30c605da4104f78692e6
[ "BSD-3-Clause" ]
51
2020-01-15T09:28:51.000Z
2022-03-30T06:48:36.000Z
fontFeatures/ttLib/Chaining.py
chrissimpkins/fontFeatures
5e9187066fe431d3cacb30c605da4104f78692e6
[ "BSD-3-Clause" ]
51
2020-05-11T18:51:25.000Z
2021-12-20T12:55:08.000Z
fontFeatures/ttLib/Chaining.py
chrissimpkins/fontFeatures
5e9187066fe431d3cacb30c605da4104f78692e6
[ "BSD-3-Clause" ]
8
2020-08-28T20:03:14.000Z
2021-12-08T01:22:28.000Z
"""ttLib.Chaining: Converting Chaining rules to TrueType.""" def lookup_type(self): """Mixin to determine the GSUB/GPOS lookup type of a fontFeatures.Chaining object Returns: integer GSUB/GPOS lookup type.""" if self.stage == "pos": return 8 else: return 6
26.454545
85
0.666667
"""ttLib.Chaining: Converting Chaining rules to TrueType.""" def lookup_type(self): """Mixin to determine the GSUB/GPOS lookup type of a fontFeatures.Chaining object Returns: integer GSUB/GPOS lookup type.""" if self.stage == "pos": return 8 else: return 6
0
0
0
0
0
0
0
0
0
864718a7faa2a31e72476dc90b9d51129a5954d8
6,151
py
Python
apps/greencheck/forms.py
thegreenwebfoundation/greenwebfoundation-admin
4ecf087fc7a305b410fe9dc5c13c721f98755ad7
[ "Apache-2.0" ]
10
2020-11-23T22:47:26.000Z
2022-01-28T16:26:50.000Z
apps/greencheck/forms.py
thegreenwebfoundation/admin-portal
65882871bd8c7a088127dcaf25aa534753cf51fa
[ "Apache-2.0" ]
83
2020-05-17T20:25:50.000Z
2022-03-29T18:11:50.000Z
apps/greencheck/forms.py
thegreenwebfoundation/greenwebfoundation-admin
4ecf087fc7a305b410fe9dc5c13c721f98755ad7
[ "Apache-2.0" ]
3
2020-11-30T00:13:45.000Z
2021-06-11T13:42:04.000Z
import logging from django.contrib.auth import get_user_model User = get_user_model() logger = logging.getLogger(__name__)
29.859223
87
0.603154
import logging from django import forms from django.forms import ModelForm from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from .choices import ActionChoice from .choices import StatusApproval from .models import GreencheckIp from .models import GreencheckIpApprove fr...
0
0
0
5,570
0
0
0
134
316
b1eddf2df04b0568d966ac65af3e212970d3380f
1,452
py
Python
Task/Variable-length-quantity/Python/variable-length-quantity-2.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Variable-length-quantity/Python/variable-length-quantity-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/Variable-length-quantity/Python/variable-length-quantity-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
>>> for n in (254, 255, 256, 257, -2+(1<<16), -1+(1<<16), 1<<16, 1+(1<<16), 0x200000, 0x1fffff ): print('int: %7i bin: %26s vlq: %35s vlq->int: %7i' % (n, tobits(n,_pad=True), tovlq(n), toint(tovlq(n)))) int: 254 bin: 11111110 vlq: 00000001_11111110 vlq->int: 254 int: ...
58.08
109
0.623967
>>> for n in (254, 255, 256, 257, -2+(1<<16), -1+(1<<16), 1<<16, 1+(1<<16), 0x200000, 0x1fffff ): print('int: %7i bin: %26s vlq: %35s vlq->int: %7i' % (n, tobits(n,_pad=True), tovlq(n), toint(tovlq(n)))) int: 254 bin: 11111110 vlq: 00000001_11111110 vlq->int: 254 int: ...
0
0
0
0
0
0
0
0
0
2f50ba581140ad3227f6a245aa81600c4d646bb7
7,386
py
Python
get-embeddings.py
bayesgroup/semi-supervised-NFs
8ef6a481389810988c3ffe09a228f814d2de008b
[ "BSD-2-Clause" ]
19
2020-01-30T07:25:23.000Z
2021-02-06T23:23:06.000Z
get-embeddings.py
bayesgroup/semi-supervised-NFs
8ef6a481389810988c3ffe09a228f814d2de008b
[ "BSD-2-Clause" ]
1
2021-06-04T11:01:40.000Z
2021-06-04T11:01:40.000Z
get-embeddings.py
SamsungLabs/semi-supervised-NFs
8ef6a481389810988c3ffe09a228f814d2de008b
[ "BSD-2-Clause" ]
1
2021-06-04T10:59:32.000Z
2021-06-04T10:59:32.000Z
import myexman import torch import utils import datautils import os import numpy as np from models import flows, distributions parser = myexman.ExParser(file=os.path.basename(__file__)) parser.add_argument('--name', default='') parser.add_argument('--verbose', default=0, type=int) parser.add_argument('--save_dir', d...
40.582418
106
0.701056
import myexman import torch import utils import datautils import os from logger import Logger import time import numpy as np from models import flows, distributions import matplotlib.pyplot as plt from algo.em import init_kmeans2plus_mu import warnings from sklearn.mixture import GaussianMixture import torch.nn.functio...
0
0
0
0
0
764
0
37
244
4d979201085d2e229bfe8b5fe03865b07c10d070
16,437
py
Python
web_scrapers.py
zhiose91/web_fetcher
ffff20d4801bf08096a8c37ee7aefea6259c5701
[ "MIT" ]
null
null
null
web_scrapers.py
zhiose91/web_fetcher
ffff20d4801bf08096a8c37ee7aefea6259c5701
[ "MIT" ]
null
null
null
web_scrapers.py
zhiose91/web_fetcher
ffff20d4801bf08096a8c37ee7aefea6259c5701
[ "MIT" ]
null
null
null
#!/usr/bin/env python3
40.090244
153
0.636856
#!/usr/bin/env python3 from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from datetime import datetime, timedelta from src.misc import check_n_mkdir, Logger from collections...
0
721
0
15,296
0
0
0
128
267
1e06c961a46def55ffde95f51cb96237e6d9a612
5,659
py
Python
tests/test_acl.py
pypeclub/openpype4-tests
c0c32b643f63e66609772270fff71e88dcd5b922
[ "Apache-2.0" ]
null
null
null
tests/test_acl.py
pypeclub/openpype4-tests
c0c32b643f63e66609772270fff71e88dcd5b922
[ "Apache-2.0" ]
null
null
null
tests/test_acl.py
pypeclub/openpype4-tests
c0c32b643f63e66609772270fff71e88dcd5b922
[ "Apache-2.0" ]
null
null
null
PROJECT_NAME = "test_acl" USER_NAME = "test_artist" PASSWORD = "123.456.AbCd" ROLE_NAME = "test_artist_role"
32.153409
85
0.6434
import pytest from client.api import API PROJECT_NAME = "test_acl" USER_NAME = "test_artist" PASSWORD = "123.456.AbCd" ROLE_NAME = "test_artist_role" def create_entity(api, entity_type: str, **kwargs): response = api.post(f"projects/{PROJECT_NAME}/{entity_type}s", **kwargs) assert response return respon...
0
987
0
0
0
4,400
0
-3
160
bf2e6f8f6d58ec2adac40bbca33ccffc49f6f7cb
15,254
py
Python
RRCS_based/RRCS_change.py
GiantFurosemide/scripts_work_parric
da73dfa701f7591f1a6c769fcbb73792a5f1a0e3
[ "MIT" ]
null
null
null
RRCS_based/RRCS_change.py
GiantFurosemide/scripts_work_parric
da73dfa701f7591f1a6c769fcbb73792a5f1a0e3
[ "MIT" ]
null
null
null
RRCS_based/RRCS_change.py
GiantFurosemide/scripts_work_parric
da73dfa701f7591f1a6c769fcbb73792a5f1a0e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' process pdb file to calculate contact score and write to csv. main function is prosess_save2csv() usage: python3 RRCS_change.py file.pdb input .pdb output .csv ''' import sys # atom 4.63 0 # a function to eliminate 0 score from calc_contact() # pack contact sco...
41.227027
117
0.566409
# -*- coding: utf-8 -*- ''' process pdb file to calculate contact score and write to csv. main function is prosess_save2csv() usage: python3 RRCS_change.py file.pdb input .pdb output .csv ''' import sys def calc_contact(pdbbase: "pdb file") -> (dict, dict): fi = open(pdbbase, 'r') all_lin...
378
0
0
0
0
6,430
0
0
73
b083fde9e425f414d2d430ae2e469990e3d9d778
51
py
Python
leo/test/unittest/at-shadow-unlink-clones.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
2
2020-01-19T18:11:05.000Z
2020-01-19T18:12:07.000Z
leo/test/unittest/at-shadow-unlink-clones.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
1
2020-06-19T02:28:25.000Z
2020-06-19T02:28:25.000Z
leo/test/unittest/at-shadow-unlink-clones.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
null
null
null
# Begin # node 1 text A. # node 2 text B. # End
6.375
16
0.54902
# Begin # node 1 text A. # node 2 text B. # End
0
0
0
0
0
0
0
0
0
13a2885f6e9ce0af1911261a49ae96c3f5cf9bc8
242
py
Python
Python/ArrayQueueMain.py
i-love-linux/BasicDataStructure
7853e14053d3425c836b6164cc1c78c9ee68213b
[ "MIT" ]
null
null
null
Python/ArrayQueueMain.py
i-love-linux/BasicDataStructure
7853e14053d3425c836b6164cc1c78c9ee68213b
[ "MIT" ]
null
null
null
Python/ArrayQueueMain.py
i-love-linux/BasicDataStructure
7853e14053d3425c836b6164cc1c78c9ee68213b
[ "MIT" ]
null
null
null
from BasicDS.ArrayQueue import ArrayQueue if __name__ == "__main__": queue = ArrayQueue() for i in range(10): queue.enqueue(i) print(queue) if i % 3 == 2: queue.dequeue() print(queue)
20.166667
41
0.549587
from BasicDS.ArrayQueue import ArrayQueue if __name__ == "__main__": queue = ArrayQueue() for i in range(10): queue.enqueue(i) print(queue) if i % 3 == 2: queue.dequeue() print(queue)
0
0
0
0
0
0
0
0
0