hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
f982acbb2ae43ffe1765a52bb72eb973d16f653d
4,040
py
Python
experiment.py
SouthForkResearch/osGNAT
b254c775b2061e3a8c0fd7baa02d94799fc4d193
[ "MIT" ]
2
2017-08-31T15:47:22.000Z
2019-07-06T05:08:41.000Z
experiment.py
SouthForkResearch/osGNAT
b254c775b2061e3a8c0fd7baa02d94799fc4d193
[ "MIT" ]
36
2017-02-28T20:43:08.000Z
2017-08-18T19:50:22.000Z
experiment.py
SouthForkResearch/pyGNAT
b254c775b2061e3a8c0fd7baa02d94799fc4d193
[ "MIT" ]
null
null
null
from qgis.core import * import networkx as nx import network as net import time from test.utilities import get_qgis_app QGIS_APP = get_qgis_app() inSmallNetworkShp = r'C:\JL\Testing\pyGNAT\NetworkFeatures\In\NHD_SmallNetwork.shp' inMedNetworkShp = r'C:\JL\Testing\pyGNAT\NetworkFeatures\In\NHD_MedNetwork.shp' inBraids...
43.913043
98
0.697772
from qgis.core import * import networkx as nx import network as net import time from test.utilities import get_qgis_app QGIS_APP = get_qgis_app() inSmallNetworkShp = r'C:\JL\Testing\pyGNAT\NetworkFeatures\In\NHD_SmallNetwork.shp' inMedNetworkShp = r'C:\JL\Testing\pyGNAT\NetworkFeatures\In\NHD_MedNetwork.shp' inBraids...
0
0
0
0af2f9cbeeeed3de2288db5a073ca5d5a264204e
3,849
py
Python
build Android/extendes/linux.py
jadilson12/scripts
68beb0b61c68626e4e225e4128c47f7a95edd6b9
[ "MIT" ]
null
null
null
build Android/extendes/linux.py
jadilson12/scripts
68beb0b61c68626e4e225e4128c47f7a95edd6b9
[ "MIT" ]
null
null
null
build Android/extendes/linux.py
jadilson12/scripts
68beb0b61c68626e4e225e4128c47f7a95edd6b9
[ "MIT" ]
1
2021-03-03T16:20:06.000Z
2021-03-03T16:20:06.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from extendes.rom import *
29.607692
108
0.545077
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from extendes.rom import * class Linux: @staticmethod def tela(): pegunta = int(input("0 - Desligar\n1 - Ligar\n")) if pegunta == 0: os.system("xset -display :0.0 dpms force off") if pegunta == 1: os.system("xset...
3,215
533
23
69c308889093023758188a6b107f5d332d254748
2,396
py
Python
tests/test_renderer.py
telday/py_cui
9f7a5f9a72733effd5e50322774988ca998a5e8a
[ "BSD-3-Clause" ]
null
null
null
tests/test_renderer.py
telday/py_cui
9f7a5f9a72733effd5e50322774988ca998a5e8a
[ "BSD-3-Clause" ]
null
null
null
tests/test_renderer.py
telday/py_cui
9f7a5f9a72733effd5e50322774988ca998a5e8a
[ "BSD-3-Clause" ]
null
null
null
import pytest import py_cui test_string_A = "Hello world, etc 123 @ testing @ ++-- Test" test_string_B = " Test string number two Space" test_string_C = "Hi" dummy_grid = py_cui.grid.Grid(3,3,30,30) dummy_widget = py_cui.widgets.Widget('1', 'Test', dummy_grid, 1,1,1,1,1,0) dummy_renderer = py_cui.renderer.Render...
47.92
98
0.733306
import pytest import py_cui test_string_A = "Hello world, etc 123 @ testing @ ++-- Test" test_string_B = " Test string number two Space" test_string_C = "Hi" dummy_grid = py_cui.grid.Grid(3,3,30,30) dummy_widget = py_cui.widgets.Widget('1', 'Test', dummy_grid, 1,1,1,1,1,0) dummy_renderer = py_cui.renderer.Render...
1,969
0
92
d81c1636edb1eb625c7fd2a11a47379e317a19f8
53
py
Python
Aulas/a20/a17.py
rafaelbhcosta/Python_para_iniciantes
f6b750b71e3a9d6701b29cc6e8b09aad2649c700
[ "MIT" ]
null
null
null
Aulas/a20/a17.py
rafaelbhcosta/Python_para_iniciantes
f6b750b71e3a9d6701b29cc6e8b09aad2649c700
[ "MIT" ]
null
null
null
Aulas/a20/a17.py
rafaelbhcosta/Python_para_iniciantes
f6b750b71e3a9d6701b29cc6e8b09aad2649c700
[ "MIT" ]
null
null
null
# Condições aninhadas comparação a repetição aninhada
53
53
0.867925
# Condições aninhadas comparação a repetição aninhada
0
0
0
629888fac951db9c3fa3e788ee0ad0ee2b97fddb
2,133
py
Python
workflow/config/config_cpc.py
isciences/wsim
1f35dbf065e72a4aaed31eeabc08d9e18e71366b
[ "Apache-2.0" ]
5
2018-05-31T19:56:41.000Z
2022-02-09T13:04:18.000Z
workflow/config/config_cpc.py
isciences/wsim
1f35dbf065e72a4aaed31eeabc08d9e18e71366b
[ "Apache-2.0" ]
null
null
null
workflow/config/config_cpc.py
isciences/wsim
1f35dbf065e72a4aaed31eeabc08d9e18e71366b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 ISciences, LLC. # All rights reserved. # # WSIM is 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 applicab...
31.835821
115
0.723394
# Copyright (c) 2019 ISciences, LLC. # All rights reserved. # # WSIM is 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 applicab...
901
7
292
487e9393541cd0c550ed04c20409f40286cb5839
6,352
py
Python
src/main/python/pokemon_unittests/test_pokemon.py
MichelleChung-code/PokemonAdventures
25073924c7bad5d5cc38b3edb3dd9d478146489f
[ "MIT" ]
1
2021-01-01T19:01:09.000Z
2021-01-01T19:01:09.000Z
src/main/python/pokemon_unittests/test_pokemon.py
MichelleChung-code/PokemonAdventures
25073924c7bad5d5cc38b3edb3dd9d478146489f
[ "MIT" ]
9
2021-01-19T03:40:22.000Z
2022-01-23T06:27:18.000Z
src/main/python/pokemon_unittests/test_pokemon.py
MichelleChung-code/PokemonAdventures
25073924c7bad5d5cc38b3edb3dd9d478146489f
[ "MIT" ]
2
2021-01-21T02:55:07.000Z
2021-06-05T17:44:28.000Z
import battle_simulation.constants as const from battle_simulation.Pokemon import Pokemon from battle_simulation.battle_common import unittest_failure_msg import unittest import os from pathlib import Path import pandas as pd import json import copy
50.015748
122
0.68687
import battle_simulation.constants as const from battle_simulation.Pokemon import Pokemon from battle_simulation.battle_common import unittest_failure_msg import unittest import os from pathlib import Path import pandas as pd import json import copy class PokemonUnitTests(unittest.TestCase): def setUp(self): ...
606
5,472
23
f023eacd26839d9e23636235357abdcd84e5a1bb
4,696
py
Python
tests/test_vmtkScripts/test_vmtkimagevesselenhancement.py
michelebucelli/vmtk
738bd1d152e8836847ab4d75f7e8360bd574e724
[ "Apache-2.0" ]
217
2015-01-05T19:08:30.000Z
2022-03-31T12:14:59.000Z
tests/test_vmtkScripts/test_vmtkimagevesselenhancement.py
mrp089/vmtk
64675f598e31bc6be3d4fba903fb59bf1394f492
[ "Apache-2.0" ]
226
2015-03-31T07:16:06.000Z
2022-03-01T14:59:30.000Z
tests/test_vmtkScripts/test_vmtkimagevesselenhancement.py
mrp089/vmtk
64675f598e31bc6be3d4fba903fb59bf1394f492
[ "Apache-2.0" ]
132
2015-02-16T11:38:34.000Z
2022-03-18T04:38:45.000Z
## Program: VMTK ## Language: Python ## Date: January 10, 2018 ## Version: 1.4 ## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved. ## See LICENSE file for details. ## This software is distributed WITHOUT ANY WARRANTY; without even ## the implied warranty of MERCHANTABILITY or FITNES...
40.482759
120
0.603705
## Program: VMTK ## Language: Python ## Date: January 10, 2018 ## Version: 1.4 ## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved. ## See LICENSE file for details. ## This software is distributed WITHOUT ANY WARRANTY; without even ## the implied warranty of MERCHANTABILITY or FITNES...
2,549
0
88
22e555f3d3d61d4c1b472a2ec090121de7ab9908
1,441
py
Python
haruhichanbot/commands_config.py
Sugihiru/Haruhi-chan-Bot
89681b0cbe824e88c0945a04dd4ebd121d027a09
[ "MIT" ]
null
null
null
haruhichanbot/commands_config.py
Sugihiru/Haruhi-chan-Bot
89681b0cbe824e88c0945a04dd4ebd121d027a09
[ "MIT" ]
null
null
null
haruhichanbot/commands_config.py
Sugihiru/Haruhi-chan-Bot
89681b0cbe824e88c0945a04dd4ebd121d027a09
[ "MIT" ]
null
null
null
import json from . import exceptions class CommandsConfigDefaults(): """Default configuration values""" json_cfg_file = "config/commands_settings.json" if __name__ == '__main__': cfg = CommandsConfig() print(cfg.get_account_source_infos("al")) print(cfg.roles.keys())
34.309524
78
0.632894
import json from . import exceptions class CommandsConfig(): def __init__(self, json_cfg_file=None): if not json_cfg_file: json_cfg_file = CommandsConfigDefaults.json_cfg_file self.json_cfg_file = json_cfg_file with open(self.json_cfg_file, "r") as f: ...
348
759
25
8e74ff6b083d36a481ff28a449671088c09fcc8a
4,893
py
Python
os_image_handler/image_handler.py
osfunapps/os_image_handler
5e05a0d7bf281503685778864564faaccb460660
[ "MIT" ]
null
null
null
os_image_handler/image_handler.py
osfunapps/os_image_handler
5e05a0d7bf281503685778864564faaccb460660
[ "MIT" ]
null
null
null
os_image_handler/image_handler.py
osfunapps/os_image_handler
5e05a0d7bf281503685778864564faaccb460660
[ "MIT" ]
null
null
null
from PIL import Image, ImageDraw from PIL import ImageFont from os_tools import tools def load_img(img_path): """Will load image to a variable. Parameters: :param img_path: the path to the image file :return image file to work on """ img = Image.open(img_path) return img.convert('RGBA') ...
35.456522
119
0.69814
from PIL import Image, ImageDraw from PIL import ImageFont from os_tools import tools def load_img(img_path): """Will load image to a variable. Parameters: :param img_path: the path to the image file :return image file to work on """ img = Image.open(img_path) return img.convert('RGBA') ...
901
0
46
a931a583f0337396d34103c91f68511ff826c199
1,144
py
Python
setup.py
grucin/flask-arango
37fb93e733b8ecbfabea43931aa4d232573d99b2
[ "Apache-2.0" ]
2
2016-08-23T18:07:00.000Z
2017-09-08T20:03:36.000Z
setup.py
grucin/flask-arango
37fb93e733b8ecbfabea43931aa4d232573d99b2
[ "Apache-2.0" ]
2
2016-07-19T15:46:47.000Z
2016-07-19T22:06:37.000Z
setup.py
grucin/flask-arango
37fb93e733b8ecbfabea43931aa4d232573d99b2
[ "Apache-2.0" ]
2
2016-07-14T22:45:50.000Z
2017-09-08T22:25:27.000Z
""" Flask-Arango ------------- Flask extension that provides integration with the Arango graph database using the pyArango library. Under initial development. """ from setuptools import setup setup( name='Flask-Arango', version='0.1.1', url='https://github.com/grucin/flask-arango', license='Apache L...
28.6
78
0.640734
""" Flask-Arango ------------- Flask extension that provides integration with the Arango graph database using the pyArango library. Under initial development. """ from setuptools import setup setup( name='Flask-Arango', version='0.1.1', url='https://github.com/grucin/flask-arango', license='Apache L...
0
0
0
69faf4f6d6472a265d5c0d936a95a95b5abdbecc
4,647
py
Python
md_davis/plotting/plot_timeseries.py
djmaity/md-davis
5ddc446a31366ca242b81a603ff4d09b4368f0f2
[ "MIT" ]
2
2020-05-06T04:56:13.000Z
2020-08-31T18:29:08.000Z
md_davis/plotting/plot_timeseries.py
djmaity/md_davis
040f3128f20310f21788110f61c6fc7317b1dcf2
[ "MIT" ]
null
null
null
md_davis/plotting/plot_timeseries.py
djmaity/md_davis
040f3128f20310f21788110f61c6fc7317b1dcf2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from warnings import simplefilter import numpy import plotly from plotly.offline import plot import plotly.graph_objs as go import h5py import click import colorsys from md_davis.common.stats import * class TimeSeries: """Create a time series object from data like RMSD and radius of gyrat...
36.590551
94
0.630299
#!/usr/bin/env python3 from warnings import simplefilter import numpy import plotly from plotly.offline import plot import plotly.graph_objs as go import h5py import click import colorsys from md_davis.common.stats import * class TimeSeries: """Create a time series object from data like RMSD and radius of gyrat...
2,640
0
72
c0fc6d03d54a7079cfa80ec69c12fb0d6ec62521
11,484
py
Python
wifuzzit_ap.py
HectorTa1989/802.11-Wireless-Fuzzer
e30d45e12fdad39b256a8cca4eb165e13bf4eeec
[ "MIT" ]
null
null
null
wifuzzit_ap.py
HectorTa1989/802.11-Wireless-Fuzzer
e30d45e12fdad39b256a8cca4eb165e13bf4eeec
[ "MIT" ]
null
null
null
wifuzzit_ap.py
HectorTa1989/802.11-Wireless-Fuzzer
e30d45e12fdad39b256a8cca4eb165e13bf4eeec
[ "MIT" ]
null
null
null
#!/usr/bin/env python from sulley import * from ap_requests import * from optparse import OptionParser import re import socket import struct import time # Assume that wireless card is in monitor mode on appropriate channel # Saves from lot of dependencies (lorcon, pylorcon...) ############### if __name__ == '__...
37.529412
162
0.598398
#!/usr/bin/env python from sulley import * from ap_requests import * from optparse import OptionParser import re import socket import struct import time # Assume that wireless card is in monitor mode on appropriate channel # Saves from lot of dependencies (lorcon, pylorcon...) ############### def fuzz_ap(): d...
7,910
0
23
d676cd478bc089a142b37ad88ed4eebc26424d65
409
py
Python
hello_world.py
mjplacroix/reddit-build-week
f6c9869d49bedaf07f348b6070a4e7a7d9a2f807
[ "MIT" ]
null
null
null
hello_world.py
mjplacroix/reddit-build-week
f6c9869d49bedaf07f348b6070a4e7a7d9a2f807
[ "MIT" ]
null
null
null
hello_world.py
mjplacroix/reddit-build-week
f6c9869d49bedaf07f348b6070a4e7a7d9a2f807
[ "MIT" ]
null
null
null
"""test page for Flask and Heroku""" from flask import Flask, render_template app = Flask(__name__) # make the application #APP = Flask(__name__) # app = Flask(__name__) # make the route @app.route("/") # # make second route # @app.route("/about") # # func for about # def preds(): # return render_te...
17.782609
50
0.665037
"""test page for Flask and Heroku""" from flask import Flask, render_template app = Flask(__name__) # make the application #APP = Flask(__name__) # app = Flask(__name__) # make the route @app.route("/") def create_app(): return "Testing text for Reddit and Heroku..." # # make second route # @app.rout...
47
0
22
9fd22edfa5eceb96f9723497e0ac8f9561721dae
2,058
py
Python
src/rejection-sampling.py
waidotto/ridgelet-transform-numerial-experiment
2af1dc969347031c64e168cf071eb13d9ac1824c
[ "MIT" ]
4
2018-09-01T11:13:27.000Z
2020-10-12T02:37:44.000Z
src/rejection-sampling.py
waidotto/ridgelet-transform-numerial-experiment
2af1dc969347031c64e168cf071eb13d9ac1824c
[ "MIT" ]
null
null
null
src/rejection-sampling.py
waidotto/ridgelet-transform-numerial-experiment
2af1dc969347031c64e168cf071eb13d9ac1824c
[ "MIT" ]
null
null
null
#!/usr/bin/env python #棄却法でオラクル分布から重みを生成する import numpy as np import numpy.matlib import random #活性化関数 with open('./temp/setting.py') as f: exec(f.read()) #ファイル読み込み dist = np.loadtxt('./output/numerical-ridgelet.txt', usecols = range(J)) Max = np.max(np.abs(dist)) Min = np.min(np.abs(dist)) j = 0 tries = 0 a = ...
31.181818
107
0.675413
#!/usr/bin/env python #棄却法でオラクル分布から重みを生成する import numpy as np import numpy.matlib import random #活性化関数 def eta(x): return np.exp(-np.square(x) / 2.0) #Gauss関数(正規分布) with open('./temp/setting.py') as f: exec(f.read()) #ファイル読み込み dist = np.loadtxt('./output/numerical-ridgelet.txt', usecols = range(J)) Max = np.max(...
53
0
22
683e7aa77fe877b11bcdb26830e44c9fdd51947e
37,216
py
Python
streetlearn/python/experiment.py
turningpoint1988/streetlearn
dd348cb811064582a77abe855b9ac15799e4a1ef
[ "Apache-2.0" ]
null
null
null
streetlearn/python/experiment.py
turningpoint1988/streetlearn
dd348cb811064582a77abe855b9ac15799e4a1ef
[ "Apache-2.0" ]
null
null
null
streetlearn/python/experiment.py
turningpoint1988/streetlearn
dd348cb811064582a77abe855b9ac15799e4a1ef
[ "Apache-2.0" ]
1
2020-03-05T05:47:59.000Z
2020-03-05T05:47:59.000Z
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
41.535714
80
0.698974
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
2,700
1,895
239
da8bba88544af373b0cd2e992c2c5f268adf19e9
317
py
Python
peco/parser/read_close_paren.py
Tikubonn/peco
c77fc163ad31d3c271d299747914ce4ef3386987
[ "MIT" ]
null
null
null
peco/parser/read_close_paren.py
Tikubonn/peco
c77fc163ad31d3c271d299747914ce4ef3386987
[ "MIT" ]
null
null
null
peco/parser/read_close_paren.py
Tikubonn/peco
c77fc163ad31d3c271d299747914ce4ef3386987
[ "MIT" ]
null
null
null
from peco.template import TextNode from .read_whitespace import read_whitespace from .syntax_error import SyntaxError
26.416667
52
0.70347
from peco.template import TextNode from .read_whitespace import read_whitespace from .syntax_error import SyntaxError def read_close_paren(preread, stream, parser): read_whitespace("", stream, parser) if stream.read(3) != "-->": raise SyntaxError("could not read \"-->\".") return TextNode("")
174
0
23
71bc2a94d3426bf643f33724f7b75457cdb6f2da
1,065
py
Python
connect_four/evaluation/victor/evaluator/evaluator_test_4x6.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
connect_four/evaluation/victor/evaluator/evaluator_test_4x6.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
connect_four/evaluation/victor/evaluator/evaluator_test_4x6.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
import gym import unittest import numpy as np from connect_four.evaluation.board import Board from connect_four.evaluation.victor.evaluator import evaluator from connect_four.envs.connect_four_env import ConnectFourEnv if __name__ == '__main__': unittest.main()
26.625
62
0.50892
import gym import unittest import numpy as np from connect_four.evaluation.board import Board from connect_four.evaluation.victor.evaluator import evaluator from connect_four.envs.connect_four_env import ConnectFourEnv class TestEvaluator4x6(unittest.TestCase): def setUp(self) -> None: self.env = gym.ma...
697
21
76
01624a2fdd9adbb7bf8aa0b20f87a2a702fbf57f
603
py
Python
mysite/account/migrations/0003_auto_20170803_1146.py
ismailtimo29/e-olymp-clone
900b8eb596d893642b493c12c09e248d86d72a85
[ "Unlicense" ]
1
2021-03-03T22:25:23.000Z
2021-03-03T22:25:23.000Z
mysite/account/migrations/0003_auto_20170803_1146.py
akhadov11/e-olymp-clone
900b8eb596d893642b493c12c09e248d86d72a85
[ "Unlicense" ]
null
null
null
mysite/account/migrations/0003_auto_20170803_1146.py
akhadov11/e-olymp-clone
900b8eb596d893642b493c12c09e248d86d72a85
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-03 11:46 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion
26.217391
137
0.674959
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-03 11:46 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('account', '0002_auto_20170...
0
358
23
0b26289b27f146c186dfd97f3623746cf47ec55e
2,650
py
Python
hub.py
nshahr/Data-Visualization
ddb6b8f19ab047eb7a583f57928470e588ae90ed
[ "Apache-2.0" ]
null
null
null
hub.py
nshahr/Data-Visualization
ddb6b8f19ab047eb7a583f57928470e588ae90ed
[ "Apache-2.0" ]
null
null
null
hub.py
nshahr/Data-Visualization
ddb6b8f19ab047eb7a583f57928470e588ae90ed
[ "Apache-2.0" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from matplotlib import rcParams from matplotlib import style from os import path import numpy as np style.use('ggplot') rcParams.update({'font.size': 20}) fig, axes = plt.subplots(nrows=8, ncols=1, sharex=True, figsize=(30, 30)) df7 = pd.read_csv('Algonquin_Citygate...
35.810811
157
0.70717
import pandas as pd import matplotlib.pyplot as plt from matplotlib import rcParams from matplotlib import style from os import path import numpy as np style.use('ggplot') rcParams.update({'font.size': 20}) fig, axes = plt.subplots(nrows=8, ncols=1, sharex=True, figsize=(30, 30)) df7 = pd.read_csv('Algonquin_Citygate...
0
0
0
c1e8224502d2061ca3f04b40f2c3e24a1cd3ac47
75
py
Python
cts/taps/__init__.py
twbarber/dryhop-tap-scraper
52942e3ae133c2454b23cbc76a4ada31ddea212a
[ "MIT" ]
1
2017-09-12T16:30:56.000Z
2017-09-12T16:30:56.000Z
cts/taps/__init__.py
twbarber/dryhop-tap-scraper
52942e3ae133c2454b23cbc76a4ada31ddea212a
[ "MIT" ]
null
null
null
cts/taps/__init__.py
twbarber/dryhop-tap-scraper
52942e3ae133c2454b23cbc76a4ada31ddea212a
[ "MIT" ]
null
null
null
from cts.taps.corridor import get_menu from cts.taps.dryhop import get_menu
37.5
38
0.853333
from cts.taps.corridor import get_menu from cts.taps.dryhop import get_menu
0
0
0
cb9f5fd1884f4b0cfe841dbe2558230c6e815503
2,791
py
Python
Kode/Cleaning.py
emborg60/EAP_EF
ea69d79a2dafd4b1d913ab37bf7ecc6d950d6ab8
[ "MIT" ]
null
null
null
Kode/Cleaning.py
emborg60/EAP_EF
ea69d79a2dafd4b1d913ab37bf7ecc6d950d6ab8
[ "MIT" ]
null
null
null
Kode/Cleaning.py
emborg60/EAP_EF
ea69d79a2dafd4b1d913ab37bf7ecc6d950d6ab8
[ "MIT" ]
1
2021-04-23T02:25:45.000Z
2021-04-23T02:25:45.000Z
# Initial cleaning the comment data # Load the Pandas libraries with alias 'pd' import pandas as pd from os import listdir import re import html.parser # Get names in dir: lFiles = listdir(r'Data\Archive') lFiles.pop() df = pd.DataFrame() lFiles = lFiles[40:] print(str(lFiles[0]) + str(lFiles[-1])) for f in lFiles:...
32.453488
243
0.64493
# Initial cleaning the comment data # Load the Pandas libraries with alias 'pd' import pandas as pd from os import listdir import re import html.parser # Get names in dir: lFiles = listdir(r'Data\Archive') lFiles.pop() df = pd.DataFrame() lFiles = lFiles[40:] print(str(lFiles[0]) + str(lFiles[-1])) for f in lFiles:...
0
0
0
6941cf407050ffd905ed567598069101eb6ccdbd
206
py
Python
Ex005/Ex005.py
gleissonbispo/python-curso-em-video
1f764751eb353f9436e953361dab7c937d8c4f9f
[ "MIT" ]
null
null
null
Ex005/Ex005.py
gleissonbispo/python-curso-em-video
1f764751eb353f9436e953361dab7c937d8c4f9f
[ "MIT" ]
null
null
null
Ex005/Ex005.py
gleissonbispo/python-curso-em-video
1f764751eb353f9436e953361dab7c937d8c4f9f
[ "MIT" ]
null
null
null
n1 = int(input('Digite um número: ')) d = n1 * 2 t = n1 * 3 r = n1 ** (1 / 2) print(f"""Você digitou: {n1}! \nO dobro deste número é: {d} \nO triplo deste número é: {t} A raiz deste número é: {r:.2f}""")
22.888889
90
0.567961
n1 = int(input('Digite um número: ')) d = n1 * 2 t = n1 * 3 r = n1 ** (1 / 2) print(f"""Você digitou: {n1}! \nO dobro deste número é: {d} \nO triplo deste número é: {t} A raiz deste número é: {r:.2f}""")
0
0
0
72e03ff14d19124c9ba874952045ff123cff8075
1,517
py
Python
resultScripts/findResultDateTimes.py
SCECcode/CSEPcode
fcd9432b48bdabc6daa20e0746ffd19a9537511c
[ "BSD-3-Clause" ]
null
null
null
resultScripts/findResultDateTimes.py
SCECcode/CSEPcode
fcd9432b48bdabc6daa20e0746ffd19a9537511c
[ "BSD-3-Clause" ]
null
null
null
resultScripts/findResultDateTimes.py
SCECcode/CSEPcode
fcd9432b48bdabc6daa20e0746ffd19a9537511c
[ "BSD-3-Clause" ]
1
2020-07-26T14:29:48.000Z
2020-07-26T14:29:48.000Z
# # This contains utilities to convert the starttime endtime (and # result_interval) into a series of result dates. These result dates # are put into an array, and then processing is done for each expected # result date. This may need to be generalized to calculated expected result datetimes that # are not one-day-mode...
34.477273
97
0.711272
# # This contains utilities to convert the starttime endtime (and # result_interval) into a series of result dates. These result dates # are put into an array, and then processing is done for each expected # result date. This may need to be generalized to calculated expected result datetimes that # are not one-day-mode...
0
0
0
18234d8afa07441209c5c3269d39c2681c0b8d0f
3,010
py
Python
pandajedi/jedimsgprocessor/atlas_idds_msg_processor.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
2
2020-04-17T10:24:09.000Z
2020-05-12T17:59:06.000Z
pandajedi/jedimsgprocessor/atlas_idds_msg_processor.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
20
2015-08-25T13:40:14.000Z
2022-03-29T12:50:46.000Z
pandajedi/jedimsgprocessor/atlas_idds_msg_processor.py
PanDAWMS/panda-jedi
e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed
[ "Apache-2.0" ]
10
2015-05-27T14:01:42.000Z
2021-09-20T17:38:02.000Z
import json from pandajedi.jedimsgprocessor.base_msg_processor import BaseMsgProcPlugin from pandajedi.jedimsgprocessor.tape_carousel_msg_processor import TapeCarouselMsgProcPlugin from pandajedi.jedimsgprocessor.hpo_msg_processor import HPOMsgProcPlugin from pandajedi.jedimsgprocessor.processing_msg_processor import ...
43
126
0.662791
import json from pandajedi.jedimsgprocessor.base_msg_processor import BaseMsgProcPlugin from pandajedi.jedimsgprocessor.tape_carousel_msg_processor import TapeCarouselMsgProcPlugin from pandajedi.jedimsgprocessor.hpo_msg_processor import HPOMsgProcPlugin from pandajedi.jedimsgprocessor.processing_msg_processor import ...
2,329
27
76
d92427c105d4f7af4355c8d222a3f42a9262bbc9
1,729
py
Python
storyhub/sdk/service/ServiceData.py
wilzbach/hub-sdk-python
3dd2a3112276068080751198cb1fcc29975c0136
[ "Apache-2.0" ]
null
null
null
storyhub/sdk/service/ServiceData.py
wilzbach/hub-sdk-python
3dd2a3112276068080751198cb1fcc29975c0136
[ "Apache-2.0" ]
null
null
null
storyhub/sdk/service/ServiceData.py
wilzbach/hub-sdk-python
3dd2a3112276068080751198cb1fcc29975c0136
[ "Apache-2.0" ]
null
null
null
from storyhub.sdk.service.Configuration import Configuration from storyhub.sdk.service.Service import Service from storyhub.sdk.service.ServiceObject import ServiceObject class ServiceData(ServiceObject): """ This represents an entire service stored within the Storyscript Hub. """ @classmethod d...
27.015625
77
0.606709
from storyhub.sdk.service.Configuration import Configuration from storyhub.sdk.service.Service import Service from storyhub.sdk.service.ServiceObject import ServiceObject class ServiceData(ServiceObject): """ This represents an entire service stored within the Storyscript Hub. """ def __init__( ...
971
0
188
c56c6a9dc35897abbea9160100749c193d0f2019
255
py
Python
pycode/Visitor.py
mrybarczyk/UG-market-python
9051cb9373fa060c6d8e4eecdcb9ecaeaa1576b3
[ "MIT" ]
null
null
null
pycode/Visitor.py
mrybarczyk/UG-market-python
9051cb9373fa060c6d8e4eecdcb9ecaeaa1576b3
[ "MIT" ]
null
null
null
pycode/Visitor.py
mrybarczyk/UG-market-python
9051cb9373fa060c6d8e4eecdcb9ecaeaa1576b3
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod NOT_IMPLEMENTED = "You should implement this."
19.615385
51
0.705882
from abc import ABCMeta, abstractmethod NOT_IMPLEMENTED = "You should implement this." class Visitor: __metaclass__ = ABCMeta @abstractmethod def visit(self, element, value): raise NotImplementedError(NOT_IMPLEMENTED)
63
73
24
695ef3a4bee1ed144cf7dddfa1aa9fd8dc596639
656
py
Python
articles/urls.py
dmahon10/django-tiered-membership-web-app
a2b8ba345d3e814aa44422f7b61016538c52de61
[ "MIT" ]
null
null
null
articles/urls.py
dmahon10/django-tiered-membership-web-app
a2b8ba345d3e814aa44422f7b61016538c52de61
[ "MIT" ]
null
null
null
articles/urls.py
dmahon10/django-tiered-membership-web-app
a2b8ba345d3e814aa44422f7b61016538c52de61
[ "MIT" ]
null
null
null
from django.urls import path from .views import (FreeArticleDetailView, FreeArticleListView, PremiumArticleDetailView, PremiumArticleListView, SearchResultsListView) urlpatterns = [ path('free/', FreeArticleListView.as_view(), name='free_article_list'), path('premium/',...
43.733333
99
0.724085
from django.urls import path from .views import (FreeArticleDetailView, FreeArticleListView, PremiumArticleDetailView, PremiumArticleListView, SearchResultsListView) urlpatterns = [ path('free/', FreeArticleListView.as_view(), name='free_article_list'), path('premium/',...
0
0
0
5e1e6700b9db565b2c3b2d225d6bb8ea7c33c049
1,565
py
Python
examples/example1.py
mtingers/timedlist
3efc23c0aef61d2a45bd8a33a04c0cb4234cc1cf
[ "MIT" ]
null
null
null
examples/example1.py
mtingers/timedlist
3efc23c0aef61d2a45bd8a33a04c0cb4234cc1cf
[ "MIT" ]
null
null
null
examples/example1.py
mtingers/timedlist
3efc23c0aef61d2a45bd8a33a04c0cb4234cc1cf
[ "MIT" ]
null
null
null
import time from timedlist import TimedList # Create a TimedList object that will remove items older than 10 seconds within # 3% of maxtime tl1 = TimedList(maxtime=10, filled_percent=3.0) tl2 = TimedList(maxtime=10, filled_percent=3.0) for i in range(20): tl1.append(time.time(), i) time.sleep(0.75) print(...
26.525424
93
0.689457
import time from timedlist import TimedList # Create a TimedList object that will remove items older than 10 seconds within # 3% of maxtime tl1 = TimedList(maxtime=10, filled_percent=3.0) tl2 = TimedList(maxtime=10, filled_percent=3.0) for i in range(20): tl1.append(time.time(), i) time.sleep(0.75) print(...
0
0
0
7f2312bb9764817717d742d29b2cce4e10f3bd41
5,354
py
Python
main.py
cm-amaya/UNet_Multiclass
96132440c975790b31e332e42659e9599e092099
[ "MIT" ]
15
2020-04-30T06:30:01.000Z
2022-01-19T13:15:20.000Z
main.py
cm-amaya/UNet_Multiclass
96132440c975790b31e332e42659e9599e092099
[ "MIT" ]
5
2020-01-28T23:00:33.000Z
2022-02-10T00:46:07.000Z
main.py
cm-amaya/UNet_Multiclass
96132440c975790b31e332e42659e9599e092099
[ "MIT" ]
7
2020-07-22T13:17:17.000Z
2021-03-23T14:14:20.000Z
import os os.environ['CUDA_VISIBLE_DEVICES'] = '0' os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import keras import argparse import numpy as np import tensorflow as tf from keras import backend as K import matplotlib.pyplot as plt import segmentation_models as sm from utils import visualize, freeze_session from data_load...
36.421769
135
0.769145
import os os.environ['CUDA_VISIBLE_DEVICES'] = '0' os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import keras import argparse import numpy as np import tensorflow as tf from keras import backend as K import matplotlib.pyplot as plt import segmentation_models as sm from utils import visualize, freeze_session from data_load...
0
0
0
c70a4aa8753833fdc71d30a4953f29307cb08d66
609
py
Python
setup.py
godber/gdal_pds
169d88e9399e23202b7bfce11d1b93a5af720461
[ "MIT" ]
null
null
null
setup.py
godber/gdal_pds
169d88e9399e23202b7bfce11d1b93a5af720461
[ "MIT" ]
3
2015-04-07T01:09:40.000Z
2015-04-07T01:10:11.000Z
setup.py
godber/gdal_pds
169d88e9399e23202b7bfce11d1b93a5af720461
[ "MIT" ]
1
2015-03-30T23:32:20.000Z
2015-03-30T23:32:20.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'A PDS Image library based on the GDAL implementation.', 'author': 'Austin Godber', 'url': 'https://github.com/godber/gdal_pds', 'download_url': 'https://github.com/godber/gdal_pds',...
25.375
75
0.597701
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'A PDS Image library based on the GDAL implementation.', 'author': 'Austin Godber', 'url': 'https://github.com/godber/gdal_pds', 'download_url': 'https://github.com/godber/gdal_pds',...
0
0
0
488c100370de8c11bdbe7c8165d4bfec90a5f641
104
py
Python
mayan/apps/django_gpg/__init__.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2021-06-17T18:24:25.000Z
2021-06-17T18:24:25.000Z
mayan/apps/django_gpg/__init__.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
7
2020-06-06T00:01:04.000Z
2022-01-13T01:47:17.000Z
mayan/apps/django_gpg/__init__.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import unicode_literals default_app_config = 'mayan.apps.django_gpg.apps.DjangoGPGApp'
26
62
0.855769
from __future__ import unicode_literals default_app_config = 'mayan.apps.django_gpg.apps.DjangoGPGApp'
0
0
0
bda9477aa12f70971cfc3d2d33596de1e3f83667
13,319
py
Python
tutorials/FRDEEP.py
erikauer/as595.github.io
e714e7877add0db025d232a5f107563070238e04
[ "MIT" ]
null
null
null
tutorials/FRDEEP.py
erikauer/as595.github.io
e714e7877add0db025d232a5f107563070238e04
[ "MIT" ]
9
2020-03-24T17:36:39.000Z
2022-03-11T23:59:32.000Z
tutorials/FRDEEP.py
erikauer/as595.github.io
e714e7877add0db025d232a5f107563070238e04
[ "MIT" ]
2
2019-09-20T14:33:14.000Z
2019-09-29T08:27:30.000Z
from __future__ import print_function from PIL import Image import os import os.path import numpy as np import sys if sys.version_info[0] == 2: import cPickle as pickle else: import pickle import torch.utils.data as data from torchvision.datasets.utils import download_url, check_integrity class FRDEEPN(data....
38.383285
110
0.582326
from __future__ import print_function from PIL import Image import os import os.path import numpy as np import sys if sys.version_info[0] == 2: import cPickle as pickle else: import pickle import torch.utils.data as data from torchvision.datasets.utils import download_url, check_integrity class FRDEEPN(data....
6,838
0
324
6aaaed888930d6f10008eb732635a21cb73e4854
6,621
py
Python
yardstick/benchmark/runners/arithmetic.py
mythwm/yardstick
ea13581f450c9c44f6f73d383e6a192697a95cc1
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/runners/arithmetic.py
mythwm/yardstick
ea13581f450c9c44f6f73d383e6a192697a95cc1
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/runners/arithmetic.py
mythwm/yardstick
ea13581f450c9c44f6f73d383e6a192697a95cc1
[ "Apache-2.0" ]
null
null
null
# Copyright 2014: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
32.940299
96
0.631325
# Copyright 2014: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
3,941
0
50
5067993b7ec89138d4e0e59fdcba76e0ee25ffb2
476
py
Python
sonsuz_website/news/api/api_router.py
Jairoguo/Populus-Euphratica-Service
0032446b39b6902fa938ee771313a5602e0646b2
[ "MIT" ]
null
null
null
sonsuz_website/news/api/api_router.py
Jairoguo/Populus-Euphratica-Service
0032446b39b6902fa938ee771313a5602e0646b2
[ "MIT" ]
null
null
null
sonsuz_website/news/api/api_router.py
Jairoguo/Populus-Euphratica-Service
0032446b39b6902fa938ee771313a5602e0646b2
[ "MIT" ]
null
null
null
from dj_rest_auth.registration.views import VerifyEmailView from django.conf import settings from django.urls import path, include from rest_framework.routers import DefaultRouter, SimpleRouter from sonsuz_website.news.api.views import NewsViewSet, NewsImageViewSet, upload_file if settings.DEBUG: router = Defaul...
28
84
0.810924
from dj_rest_auth.registration.views import VerifyEmailView from django.conf import settings from django.urls import path, include from rest_framework.routers import DefaultRouter, SimpleRouter from sonsuz_website.news.api.views import NewsViewSet, NewsImageViewSet, upload_file if settings.DEBUG: router = Defaul...
0
0
0
372ca61a71687fd3a333fd31e02bbcacc1d13a10
6,440
py
Python
past-exams/2017-01-13-midterm/exercises/exercise3.py
DavidLeoni/algolab
b1c8bb3667aa1f1f08f5a37ce3fa049c7eb2c9cd
[ "Apache-2.0" ]
null
null
null
past-exams/2017-01-13-midterm/exercises/exercise3.py
DavidLeoni/algolab
b1c8bb3667aa1f1f08f5a37ce3fa049c7eb2c9cd
[ "Apache-2.0" ]
1
2017-01-24T15:29:14.000Z
2017-01-24T15:29:14.000Z
past-exams/2017-01-13-midterm/exercises/exercise3.py
DavidLeoni/algolab
b1c8bb3667aa1f1f08f5a37ce3fa049c7eb2c9cd
[ "Apache-2.0" ]
null
null
null
import unittest class Node: """ A Node of an UnorderedList. Holds data provided by the user. """ class UnorderedList: """ This is a stripped down version of the UnorderedList seen in the lab """ def to_python(self): """ Returns this UnorderedList as a regular Python list. Th...
28.370044
86
0.507298
import unittest class Node: """ A Node of an UnorderedList. Holds data provided by the user. """ def __init__(self,initdata): self._data = initdata self._next = None def get_data(self): return self._data def get_next(self): return self._next def set_data(self...
2,821
0
651
37d14812041d57bca7d7a4b8b439606e3e21f6ec
743
py
Python
cursorless-talon/src/modifiers/head_tail.py
trace-andreason/cursorless-vscode
b47fa9d2d6c1aa1170b473b9f5ac1ee1cdd09395
[ "MIT" ]
22
2021-05-06T06:18:42.000Z
2022-01-23T19:21:05.000Z
cursorless-talon/src/modifiers/head_tail.py
trace-andreason/cursorless-vscode
b47fa9d2d6c1aa1170b473b9f5ac1ee1cdd09395
[ "MIT" ]
71
2021-06-22T19:38:14.000Z
2022-01-25T14:48:36.000Z
cursorless-talon/src/modifiers/head_tail.py
trace-andreason/cursorless-vscode
b47fa9d2d6c1aa1170b473b9f5ac1ee1cdd09395
[ "MIT" ]
12
2021-05-12T19:30:34.000Z
2022-01-16T14:17:16.000Z
from talon import Module from dataclasses import dataclass mod = Module() mod.list("cursorless_head_tail", desc="Cursorless modifier for head or tail of line") @dataclass head_tail_list = [ HeadTail("head", "extendThroughStartOf", "head"), HeadTail("tail", "extendThroughEndOf", "tail"), ] head_tail_map = {...
24.766667
85
0.711978
from talon import Module from dataclasses import dataclass mod = Module() mod.list("cursorless_head_tail", desc="Cursorless modifier for head or tail of line") @dataclass class HeadTail: defaultSpokenForm: str cursorlessIdentifier: str type: str head_tail_list = [ HeadTail("head", "extendThroughSta...
125
65
44
5d00e06782e0c961f27b48bc12c77ff21088700b
1,832
py
Python
stac_fastapi/sqlalchemy/setup.py
moradology/stac-fastapi
c3dd27d0a2f5129f36904dd521d7bff22460c306
[ "MIT" ]
null
null
null
stac_fastapi/sqlalchemy/setup.py
moradology/stac-fastapi
c3dd27d0a2f5129f36904dd521d7bff22460c306
[ "MIT" ]
null
null
null
stac_fastapi/sqlalchemy/setup.py
moradology/stac-fastapi
c3dd27d0a2f5129f36904dd521d7bff22460c306
[ "MIT" ]
null
null
null
"""arturo-stac-api.""" import os from imp import load_source from setuptools import find_namespace_packages, setup with open("README.md") as f: desc = f.read() # Get version from stac-fastapi-api __version__ = load_source( "stac_fastapi.sqlalchemy.version", os.path.join(os.path.dirname(__file__), "stac_f...
28.184615
82
0.66048
"""arturo-stac-api.""" import os from imp import load_source from setuptools import find_namespace_packages, setup with open("README.md") as f: desc = f.read() # Get version from stac-fastapi-api __version__ = load_source( "stac_fastapi.sqlalchemy.version", os.path.join(os.path.dirname(__file__), "stac_f...
0
0
0
6af4e3e2b416e148a819a3539ef75e3c1649d218
4,043
py
Python
{{cookiecutter.project_slug}}/src/{{cookiecutter.package_name}}/cli.py
pcrespov/cookiecutter-simcore-pyservice
4c35ae839373cb3f28effd612350f2e5f2ee9ce9
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/src/{{cookiecutter.package_name}}/cli.py
pcrespov/cookiecutter-simcore-pyservice
4c35ae839373cb3f28effd612350f2e5f2ee9ce9
[ "MIT" ]
8
2018-10-10T16:56:55.000Z
2022-02-09T18:17:12.000Z
{{cookiecutter.project_slug}}/src/{{cookiecutter.package_name}}/cli.py
pcrespov/cookiecutter-simcore-pyservice
4c35ae839373cb3f28effd612350f2e5f2ee9ce9
[ "MIT" ]
3
2018-10-08T16:15:44.000Z
2020-05-14T10:18:39.000Z
""" Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -m{{cookiecutter.package_name}}` python will execute `...
31.834646
91
0.702943
""" Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -m{{cookiecutter.package_name}}` python will execute `...
1,206
0
69
301470b55867a4dc06c4d0aa830683d6f54aa492
2,273
py
Python
main.py
carloshernangarrido/whatsapp_sender
1489bc6cf12e1557e6e85a5ed2f15e4ba3b86a19
[ "MIT" ]
null
null
null
main.py
carloshernangarrido/whatsapp_sender
1489bc6cf12e1557e6e85a5ed2f15e4ba3b86a19
[ "MIT" ]
null
null
null
main.py
carloshernangarrido/whatsapp_sender
1489bc6cf12e1557e6e85a5ed2f15e4ba3b86a19
[ "MIT" ]
null
null
null
import pywhatkit from datetime import datetime as dt, timedelta from functions import e164, close_tab, wait_seconds import openpyxl as xl import myexceptions as ex import os wellcome_message = """ ******************************************************************************** ********************* Whatsapp...
32.014085
88
0.611527
import pywhatkit from datetime import datetime as dt, timedelta from functions import e164, close_tab, wait_seconds import openpyxl as xl import myexceptions as ex import os wellcome_message = """ ******************************************************************************** ********************* Whatsapp...
0
0
0
b605eb5c47df3489b22c2cd717704f0094912a34
889
py
Python
python/Merge-Two-Sorted-Lists/sol.py
yutong-xie/Leetcode-with-python
6578f288a757bf76213030b73ec3319a7baa2661
[ "MIT" ]
null
null
null
python/Merge-Two-Sorted-Lists/sol.py
yutong-xie/Leetcode-with-python
6578f288a757bf76213030b73ec3319a7baa2661
[ "MIT" ]
null
null
null
python/Merge-Two-Sorted-Lists/sol.py
yutong-xie/Leetcode-with-python
6578f288a757bf76213030b73ec3319a7baa2661
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Copyright 2020, Yutong Xie, UIUC. Using iteration two merge two sorted linked list ''' # Definition for singly-linked list. # class ListNode(object): # def __init__(self, val=0, next=None): # self.val = val # self.next = next
22.794872
52
0.475816
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Copyright 2020, Yutong Xie, UIUC. Using iteration two merge two sorted linked list ''' # Definition for singly-linked list. # class ListNode(object): # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solutio...
0
560
22
0a3a72a6115c233a5405fd39dfd6c7d1af66539e
3,939
py
Python
remcall/generate.py
luphord/remcall
31419ff0f5c21ea2d90f9cabdaec85b6eebcaa12
[ "MIT" ]
null
null
null
remcall/generate.py
luphord/remcall
31419ff0f5c21ea2d90f9cabdaec85b6eebcaa12
[ "MIT" ]
null
null
null
remcall/generate.py
luphord/remcall
31419ff0f5c21ea2d90f9cabdaec85b6eebcaa12
[ "MIT" ]
null
null
null
from . import schema from . import RemcallError from .naming import CSharpNameConverter
33.381356
78
0.584666
from . import schema from . import RemcallError from .naming import CSharpNameConverter class CSharphCodeGenerator: indent_chars = '\t' type_names = { schema.void: 'void', schema.boolean: 'bool', schema.int8: 'SByte', schema.uint8: 'byte', schema.int16: 'Int16', ...
2,936
891
23
fc688e689304e672905c8ffbb576f49336056119
3,742
py
Python
eh_sample_report.py
ccmbioinfo/crg
3ff7a884463e872281d723934dde904d4acffe2a
[ "MIT" ]
null
null
null
eh_sample_report.py
ccmbioinfo/crg
3ff7a884463e872281d723934dde904d4acffe2a
[ "MIT" ]
5
2020-07-06T14:02:59.000Z
2021-04-08T20:01:41.000Z
eh_sample_report.py
ccmbioinfo/crg
3ff7a884463e872281d723934dde904d4acffe2a
[ "MIT" ]
null
null
null
''' reads in disease threshold annotated EH results splits annotation into different columns fills outlier column with sample name if GT is in disease threshold adds mean, std, median GT sizes from 1000Genomes EH runs (static file) writes o/p as excel file ''' import sys, os, re from collections import namedtuple from...
33.115044
153
0.54356
''' reads in disease threshold annotated EH results splits annotation into different columns fills outlier column with sample name if GT is in disease threshold adds mean, std, median GT sizes from 1000Genomes EH runs (static file) writes o/p as excel file ''' import sys, os, re from collections import namedtuple from...
1,331
0
23
9c9a2bf1cd96338828e08958877ef1d7c4e62683
133
py
Python
labAPI/optimization/samplers/__init__.py
robertfasano/labAPI
e671c6af2bb702cde018b6d30582c269965da63c
[ "MIT" ]
null
null
null
labAPI/optimization/samplers/__init__.py
robertfasano/labAPI
e671c6af2bb702cde018b6d30582c269965da63c
[ "MIT" ]
null
null
null
labAPI/optimization/samplers/__init__.py
robertfasano/labAPI
e671c6af2bb702cde018b6d30582c269965da63c
[ "MIT" ]
null
null
null
from .grid_search import GridSearch from .differential_evolution import DifferentialEvolution from .random_search import RandomSearch
44.333333
57
0.894737
from .grid_search import GridSearch from .differential_evolution import DifferentialEvolution from .random_search import RandomSearch
0
0
0
233bb0a92b51583bc7c40dc4baaf8051b0fecbf4
3,402
py
Python
PageRank.py
josndan/urabn-fortnight
5f0413997bea4298f83e1029e26e8ea78a57ac65
[ "MIT" ]
null
null
null
PageRank.py
josndan/urabn-fortnight
5f0413997bea4298f83e1029e26e8ea78a57ac65
[ "MIT" ]
null
null
null
PageRank.py
josndan/urabn-fortnight
5f0413997bea4298f83e1029e26e8ea78a57ac65
[ "MIT" ]
null
null
null
import pandas as pd import os.path as path import pickle import collections as c import numpy as np import math webGraph = None if path.exists("web.pkl"): with open("web.pkl", "rb") as f: webGraph = pickle.load(f) else: df = pd.read_csv('links.srt.gz', compression='gzip', header=None, sep='\t') w...
29.842105
109
0.501764
import pandas as pd import os.path as path import pickle import collections as c import numpy as np import math class Web: def __init__(self, df): self.graph = {} count = 0 for __, row in df.iterrows(): if row[0] in self.graph: self.graph[row[0]].add(row[1]) ...
2,664
-11
211
81f4cc63dd0d4b35c1e0e62c0ef94cfa66751796
1,808
py
Python
geonition_utils/views.py
geonition/django_geonition_utils
75a28e82509f7b69f3817cdf56119e7fdc0315aa
[ "MIT" ]
1
2015-11-05T15:17:09.000Z
2015-11-05T15:17:09.000Z
geonition_utils/views.py
geonition/django_geonition_utils
75a28e82509f7b69f3817cdf56119e7fdc0315aa
[ "MIT" ]
null
null
null
geonition_utils/views.py
geonition/django_geonition_utils
75a28e82509f7b69f3817cdf56119e7fdc0315aa
[ "MIT" ]
null
null
null
""" This file contains view classes that can be used in other applications. """ from geonition_utils.http import HttpResponseNotImplemented from django.views.generic import View class RequestHandler(View): """ This class should be inherited by the view classes to be used for implementing REST """ d...
29.16129
71
0.581305
""" This file contains view classes that can be used in other applications. """ from geonition_utils.http import HttpResponseNotImplemented from django.views.generic import View class RequestHandler(View): """ This class should be inherited by the view classes to be used for implementing REST """ d...
0
0
0
73d073a7796469e2667913416885c8698b383e53
833
py
Python
modules/xia2/Test/regression/test_insulin.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/xia2/Test/regression/test_insulin.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/xia2/Test/regression/test_insulin.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
1
2020-02-04T15:39:06.000Z
2020-02-04T15:39:06.000Z
from __future__ import absolute_import, division, print_function import procrunner import pytest import xia2.Test.regression expected_data_files = [ "AUTOMATIC_DEFAULT_NATIVE_SWEEP1_INTEGRATE.mtz", "AUTOMATIC_DEFAULT_free.mtz", "AUTOMATIC_DEFAULT_scaled.sca", "AUTOMATIC_DEFAULT_scaled_unmerged.mtz", ...
28.724138
83
0.726291
from __future__ import absolute_import, division, print_function import procrunner import pytest import xia2.Test.regression expected_data_files = [ "AUTOMATIC_DEFAULT_NATIVE_SWEEP1_INTEGRATE.mtz", "AUTOMATIC_DEFAULT_free.mtz", "AUTOMATIC_DEFAULT_scaled.sca", "AUTOMATIC_DEFAULT_scaled_unmerged.mtz", ...
443
0
23
428c8d656814598817087448fc7eac71b0aa8f84
1,214
py
Python
LeetCode/0297_serialize_deserialize_binary_tree.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
1
2020-05-13T19:16:23.000Z
2020-05-13T19:16:23.000Z
LeetCode/0297_serialize_deserialize_binary_tree.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
null
null
null
LeetCode/0297_serialize_deserialize_binary_tree.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
null
null
null
from collections import deque tree = "1,2,3,None,None,4,5" print(serialize(deserialize(tree)))
20.931034
69
0.51318
from collections import deque class Node: def __init__(self, val): self.val = val self.left = None self.right = None def serialize(root): if not root: return "" data = [root.val] queue = deque([root]) while queue: cur = queue.popleft() if cur.left: ...
1,034
-10
95
db0abe20790d8a97ecf0aabdd2c643bc1e52e945
2,434
py
Python
airflow/dags/helpers.py
entrepreneur-interet-general/predisauvetage
4d985ee79355652709da322db48daffb3e5a895a
[ "MIT" ]
6
2018-02-16T15:07:17.000Z
2020-10-09T09:34:29.000Z
airflow/dags/helpers.py
entrepreneur-interet-general/predisauvetage
4d985ee79355652709da322db48daffb3e5a895a
[ "MIT" ]
107
2018-03-29T14:55:33.000Z
2021-12-13T19:44:50.000Z
airflow/dags/helpers.py
entrepreneur-interet-general/predisauvetage
4d985ee79355652709da322db48daffb3e5a895a
[ "MIT" ]
1
2021-03-03T21:02:33.000Z
2021-03-03T21:02:33.000Z
# -*- coding: utf-8 -*- import re from datetime import timedelta from airflow.models import Variable from airflow.operators.bash_operator import BashOperator
28.635294
81
0.661463
# -*- coding: utf-8 -*- import re from datetime import timedelta from airflow.models import Variable from airflow.operators.bash_operator import BashOperator def base_path(): return Variable.get("BASE_PATH") def opendata_sql_path(filename): return "{base}/opendata_sql/{filename}.sql".format( base=b...
2,035
0
230
428b1642c7b699cb079961e02bb144b23feada71
3,079
py
Python
music/index/migrations/0001_initial.py
xeroCBW/music
ba73151b35dbc898cfb56f1576aa7695f2d61fe9
[ "MIT" ]
null
null
null
music/index/migrations/0001_initial.py
xeroCBW/music
ba73151b35dbc898cfb56f1576aa7695f2d61fe9
[ "MIT" ]
null
null
null
music/index/migrations/0001_initial.py
xeroCBW/music
ba73151b35dbc898cfb56f1576aa7695f2d61fe9
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2020-06-01 12:28 from django.db import migrations, models import django.db.models.deletion
45.279412
129
0.58558
# Generated by Django 2.0.2 on 2020-06-01 12:28 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Comment', fields=[ ...
0
3,076
23
6c8b3e640656180b62d169749e08175ef156f33f
4,608
py
Python
tests/test_validate_cache.py
vorburger/cekit
b7680474492369ac8ef597d88792619fe3602347
[ "MIT" ]
null
null
null
tests/test_validate_cache.py
vorburger/cekit
b7680474492369ac8ef597d88792619fe3602347
[ "MIT" ]
null
null
null
tests/test_validate_cache.py
vorburger/cekit
b7680474492369ac8ef597d88792619fe3602347
[ "MIT" ]
null
null
null
import os import pytest import sys from cekit.cache.cli import CacheCli
35.446154
76
0.432509
import os import pytest import sys from cekit.cache.cli import CacheCli def test_cekit_cache_ls(mocker, tmpdir, capsys): work_dir = str(tmpdir.mkdir('work_dir')) mocker.patch.object(sys, 'argv', ['cekit-cache', '--work-dir', work_dir...
4,343
0
184
561630ce561a10a2096813a2c5d825743feae1a4
10,097
py
Python
image2pptx.py
taC-h/image2pptx
40180b02eb4139254da9768b358e8b598af63b39
[ "MIT" ]
null
null
null
image2pptx.py
taC-h/image2pptx
40180b02eb4139254da9768b358e8b598af63b39
[ "MIT" ]
null
null
null
image2pptx.py
taC-h/image2pptx
40180b02eb4139254da9768b358e8b598af63b39
[ "MIT" ]
null
null
null
#python3.8.3 import itertools import os import pathlib import shutil #IO from pptx import Presentation from PIL import Image from pdf2image import convert_from_path import json from io import BytesIO import subprocess from glob import glob #GUI import tkinter as tk import tkinter.filedialog as dialog from tkinter.mes...
33.323432
165
0.564029
#python3.8.3 import itertools import os import pathlib import shutil #IO from pptx import Presentation from PIL import Image from pdf2image import convert_from_path import json from io import BytesIO import subprocess from glob import glob #GUI import tkinter as tk import tkinter.filedialog as dialog from tkinter.mes...
7,884
2,171
23
8f7f6677cf122b71b81fb6cb47a78d2a55eb0cb7
118
py
Python
oaff/app/oaff/app/requests/collection.py
JBurkinshaw/ogc-api-fast-features
4fc6ba3cc4df1600450fe4c9f35320b00c69f158
[ "MIT" ]
19
2021-07-06T16:35:27.000Z
2022-02-08T04:59:21.000Z
oaff/app/oaff/app/requests/collection.py
JBurkinshaw/ogc-api-fast-features
4fc6ba3cc4df1600450fe4c9f35320b00c69f158
[ "MIT" ]
30
2021-07-14T04:13:11.000Z
2021-11-22T20:45:15.000Z
oaff/app/oaff/app/requests/collection.py
JBurkinshaw/ogc-api-fast-features
4fc6ba3cc4df1600450fe4c9f35320b00c69f158
[ "MIT" ]
6
2021-07-06T16:35:28.000Z
2021-09-17T19:24:49.000Z
from oaff.app.requests.common.request_type import RequestType
19.666667
61
0.813559
from oaff.app.requests.common.request_type import RequestType class Collection(RequestType): collection_id: str
0
32
23
5ce752c889fc25d620eef3e990d367d8eaa922be
9,047
py
Python
util/analysis/test_value_est.py
joelouismarino/variational_rl
11dc14bfb56f3ebbfccd5de206b78712a8039a9a
[ "MIT" ]
15
2020-10-20T22:09:36.000Z
2021-12-24T13:40:36.000Z
util/analysis/test_value_est.py
joelouismarino/variational_rl
11dc14bfb56f3ebbfccd5de206b78712a8039a9a
[ "MIT" ]
null
null
null
util/analysis/test_value_est.py
joelouismarino/variational_rl
11dc14bfb56f3ebbfccd5de206b78712a8039a9a
[ "MIT" ]
1
2020-10-23T19:48:06.000Z
2020-10-23T19:48:06.000Z
import comet_ml import numpy as np import json import torch import copy import time import math from lib import create_agent from lib.distributions import kl_divergence from util.env_util import create_env, SynchronousEnv from util.train_util import collect_episode from util.plot_util import load_checkpoint from local_...
49.437158
127
0.674699
import comet_ml import numpy as np import json import torch import copy import time import math from lib import create_agent from lib.distributions import kl_divergence from util.env_util import create_env, SynchronousEnv from util.train_util import collect_episode from util.plot_util import load_checkpoint from local_...
0
0
0
f3b2322d29e42d2876fdb619fd4dff8f7fddd9d5
159
py
Python
oxigen_api/donors/forms.py
costibleotu/oxigen-bc
10f467869cb2b451b9dfc6c61cdefa6d8637f3c4
[ "MIT" ]
1
2022-02-27T19:32:07.000Z
2022-02-27T19:32:07.000Z
oxigen_api/donors/forms.py
costibleotu/oxigen-bc
10f467869cb2b451b9dfc6c61cdefa6d8637f3c4
[ "MIT" ]
2
2020-11-29T12:31:06.000Z
2022-02-28T17:46:40.000Z
oxigen_api/donors/forms.py
costibleotu/oxigen-bc
10f467869cb2b451b9dfc6c61cdefa6d8637f3c4
[ "MIT" ]
1
2020-11-26T20:07:07.000Z
2020-11-26T20:07:07.000Z
from django.contrib.auth import forms as admin_forms from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _
39.75
54
0.861635
from django.contrib.auth import forms as admin_forms from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _
0
0
0
a6c61e39a7319302b8822328a3554a95e3af023d
344
py
Python
8.sets/1.access_sets.py
Tazri/Python
f7ca625800229c8a7e20b64810d6e162ccb6b09f
[ "DOC" ]
null
null
null
8.sets/1.access_sets.py
Tazri/Python
f7ca625800229c8a7e20b64810d6e162ccb6b09f
[ "DOC" ]
null
null
null
8.sets/1.access_sets.py
Tazri/Python
f7ca625800229c8a7e20b64810d6e162ccb6b09f
[ "DOC" ]
null
null
null
names = {'anonymous','tazri','focasa','troy','farha'}; # can use for loop for access names sets for name in names : print("Hello, "+name.title()+"!"); # can check value is exist in sets ? print("\n'tazri' in names : ",'tazri' in names); print("'solus' not in names : ",'solus' not in names); print("'xenon' in name...
34.4
54
0.633721
names = {'anonymous','tazri','focasa','troy','farha'}; # can use for loop for access names sets for name in names : print("Hello, "+name.title()+"!"); # can check value is exist in sets ? print("\n'tazri' in names : ",'tazri' in names); print("'solus' not in names : ",'solus' not in names); print("'xenon' in name...
0
0
0
b18a67b5ab80634d4413a7691e9929d2eac91aa5
2,919
py
Python
test_ee101_1wire.py
tge96/ee101-macOS-py
a38e01bd297c857d2b583578ed7aceb2c94e59c9
[ "MIT" ]
null
null
null
test_ee101_1wire.py
tge96/ee101-macOS-py
a38e01bd297c857d2b583578ed7aceb2c94e59c9
[ "MIT" ]
null
null
null
test_ee101_1wire.py
tge96/ee101-macOS-py
a38e01bd297c857d2b583578ed7aceb2c94e59c9
[ "MIT" ]
null
null
null
# $ python3 -m pip install pyserial # /dev/cu.usbserial-<XYZ> for mac, # ...you can find your XYZ using $ python3 -m serial.tools.list_ports -v # ...it might also be something like /dev/cu.usbmodem<XYZ>, depending on the USB Serial adapter # My XYZ is "FTVHYZXQ", which matches my USB Serial adapter, model n...
27.8
101
0.608428
# $ python3 -m pip install pyserial # /dev/cu.usbserial-<XYZ> for mac, # ...you can find your XYZ using $ python3 -m serial.tools.list_ports -v # ...it might also be something like /dev/cu.usbmodem<XYZ>, depending on the USB Serial adapter # My XYZ is "FTVHYZXQ", which matches my USB Serial adapter, model n...
499
0
46
d411df6e14986a4bb40cf52b0ddc2bf2f5fa40f3
265
py
Python
deepnlpf/dataset.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
3
2020-04-11T14:12:45.000Z
2020-05-30T16:31:06.000Z
deepnlpf/dataset.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
34
2020-03-20T19:36:40.000Z
2022-03-20T13:00:32.000Z
deepnlpf/dataset.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
1
2020-09-05T06:44:15.000Z
2020-09-05T06:44:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*-
16.5625
57
0.584906
#!/usr/bin/env python # -*- coding: utf-8 -*- class Dataset(object): def __init__(self): pass def save(self, path_dataset): pass def list_all(self): pass def delete(self, id_dataset=None, name_dataset=None): pass
88
1
131
5c38d96841d6e28a2079b368c55e0f0008237c80
36
py
Python
mr_subtitle/__init__.py
Iydon/mr_subtitle
b835f7b9591c2b6d89172837e134dbaddd741ca7
[ "MIT" ]
null
null
null
mr_subtitle/__init__.py
Iydon/mr_subtitle
b835f7b9591c2b6d89172837e134dbaddd741ca7
[ "MIT" ]
2
2022-02-25T08:46:44.000Z
2022-02-25T08:54:24.000Z
mr_subtitle/__init__.py
Iydon/mr_subtitle
b835f7b9591c2b6d89172837e134dbaddd741ca7
[ "MIT" ]
null
null
null
from . import config, models, utils
18
35
0.75
from . import config, models, utils
0
0
0
971c36046d3fb526a5151fb57e223235fc7e90fc
1,613
py
Python
Part4-DataInteraction/disctlib/neighbour.py
ArinaaNovikovaa/Programming_with_python_2021
890ae012d5ff8092ca1606d80d36d9e69f4e4162
[ "Apache-2.0" ]
7
2020-09-15T15:52:53.000Z
2021-05-19T17:51:56.000Z
Part4-DataInteraction/disctlib/neighbour.py
ArinaaNovikovaa/Programming_with_python_2021
890ae012d5ff8092ca1606d80d36d9e69f4e4162
[ "Apache-2.0" ]
null
null
null
Part4-DataInteraction/disctlib/neighbour.py
ArinaaNovikovaa/Programming_with_python_2021
890ae012d5ff8092ca1606d80d36d9e69f4e4162
[ "Apache-2.0" ]
49
2020-09-12T12:56:32.000Z
2021-12-30T13:27:38.000Z
# encoding: utf-8 ################################################## # This script interacts with data files to extract information and modify values given to a function. # It is part of an exercise in which data about districts and neighbourhoods are processed # Here we have the functions for manipulating information...
32.918367
101
0.561066
# encoding: utf-8 ################################################## # This script interacts with data files to extract information and modify values given to a function. # It is part of an exercise in which data about districts and neighbourhoods are processed # Here we have the functions for manipulating information...
682
0
46
ba184b7176d88c41e1edd42ecd4603e89d007bf8
575
py
Python
articles/migrations/0002_auto_20200622_2013.py
ArifCengic/fool
376816c30eff0f6a740358db2d318efca44e9a7d
[ "Apache-2.0" ]
null
null
null
articles/migrations/0002_auto_20200622_2013.py
ArifCengic/fool
376816c30eff0f6a740358db2d318efca44e9a7d
[ "Apache-2.0" ]
3
2021-03-30T13:56:20.000Z
2021-06-04T23:31:08.000Z
articles/migrations/0002_auto_20200622_2013.py
ArifCengic/fool
376816c30eff0f6a740358db2d318efca44e9a7d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-22 20:13 from django.db import migrations, models import django.utils.timezone
23
74
0.591304
# Generated by Django 3.0.7 on 2020-06-22 20:13 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('articles', '0001_initial'), ] operations = [ migrations.RenameField( model_name='comment', ...
0
432
23
ab1057445d3080a16a06ad13c766c6778a280763
3,143
py
Python
api/tests/v2/test_users.py
simpsonw/atmosphere
3a5203ef0b563de3a0e8c8c8715df88186532d7a
[ "BSD-3-Clause" ]
197
2016-12-08T02:33:32.000Z
2022-03-23T14:27:47.000Z
api/tests/v2/test_users.py
simpsonw/atmosphere
3a5203ef0b563de3a0e8c8c8715df88186532d7a
[ "BSD-3-Clause" ]
385
2017-01-03T22:51:46.000Z
2020-12-16T16:20:42.000Z
api/tests/v2/test_users.py
benlazarine/atmosphere
38fad8e4002e510e8b4294f2bb5bc75e8e1817fa
[ "BSD-3-Clause" ]
50
2016-12-08T08:32:25.000Z
2021-12-10T00:21:39.000Z
from rest_framework.test import APITestCase, APIRequestFactory, force_authenticate from api.v2.views import UserViewSet from api.tests.factories import UserFactory, AnonymousUserFactory from django.core.urlresolvers import reverse from .base import APISanityTestCase
39.2875
82
0.713649
from rest_framework.test import APITestCase, APIRequestFactory, force_authenticate from api.v2.views import UserViewSet from api.tests.factories import UserFactory, AnonymousUserFactory from django.core.urlresolvers import reverse from .base import APISanityTestCase class UserTests(APITestCase, APISanityTestCase): ...
2,514
337
23
e6bc479af0a39ac467b8cffd2df00adc7ba58bda
8,508
py
Python
nicrabgrp/cli/nitimeconv.py
tenoto/nicrabgrp
e81954526d2db9c9b73fde47df27ae9855f52bcb
[ "MIT" ]
3
2020-04-17T06:49:24.000Z
2020-08-27T03:04:44.000Z
nicrabgrp/cli/nitimeconv.py
tenoto/nicrabgrp
e81954526d2db9c9b73fde47df27ae9855f52bcb
[ "MIT" ]
null
null
null
nicrabgrp/cli/nitimeconv.py
tenoto/nicrabgrp
e81954526d2db9c9b73fde47df27ae9855f52bcb
[ "MIT" ]
1
2021-07-20T08:51:06.000Z
2021-07-20T08:51:06.000Z
#!/usr/bin/env python __name__ = 'nitimeconv' __author__ = 'Teruaki Enoto' __version__ = '1.02' __date__ = '2018 April 11' from optparse import OptionParser from astropy.time import Time NICER_MJDREFI = 56658.0 NICER_MJDREFF = 0.000777592592592593 NICER_TIMEZERO = -1.0 #LEAP_INIT = 2.0 NICER_MET_ORIGIN...
41.502439
149
0.70851
#!/usr/bin/env python __name__ = 'nitimeconv' __author__ = 'Teruaki Enoto' __version__ = '1.02' __date__ = '2018 April 11' from optparse import OptionParser from astropy.time import Time NICER_MJDREFI = 56658.0 NICER_MJDREFF = 0.000777592592592593 NICER_TIMEZERO = -1.0 #LEAP_INIT = 2.0 NICER_MET_ORIGIN...
0
0
0
d49607a29050dc6539a5304ee8aaec240b59477a
206
py
Python
files/exercises/for-loops-reversing-a-string.py
mforneris/introduction_to_python_course
8075973ee89a921a5e2693f649adbf1fc0e0b2cb
[ "CC-BY-4.0" ]
null
null
null
files/exercises/for-loops-reversing-a-string.py
mforneris/introduction_to_python_course
8075973ee89a921a5e2693f649adbf1fc0e0b2cb
[ "CC-BY-4.0" ]
null
null
null
files/exercises/for-loops-reversing-a-string.py
mforneris/introduction_to_python_course
8075973ee89a921a5e2693f649adbf1fc0e0b2cb
[ "CC-BY-4.0" ]
1
2020-01-09T10:58:56.000Z
2020-01-09T10:58:56.000Z
#Fill in the blanks in the program below so that it prints “nit” (the reverse of the original character string “tin”). original = "tin" result = ____ for char in original: result = ____ print(result)
22.888889
118
0.723301
#Fill in the blanks in the program below so that it prints “nit” (the reverse of the original character string “tin”). original = "tin" result = ____ for char in original: result = ____ print(result)
0
0
0
b50e2be2dc49bb5ea2eb9a9cc36170c45939f152
8,005
py
Python
template_engine/step04_for_block/template.py
suensky/500lines-rewrite
3b8ec12e4abc777e504dfd5ad77cabce3851a23c
[ "CC-BY-3.0" ]
80
2020-06-04T01:34:30.000Z
2022-03-21T08:10:01.000Z
template_engine/step04_for_block/template.py
suensky/500lines-rewrite
3b8ec12e4abc777e504dfd5ad77cabce3851a23c
[ "CC-BY-3.0" ]
5
2021-02-09T01:02:09.000Z
2021-03-29T02:11:06.000Z
template_engine/step04_for_block/template.py
suensky/500lines-rewrite
3b8ec12e4abc777e504dfd5ad77cabce3851a23c
[ "CC-BY-3.0" ]
11
2020-11-06T01:11:11.000Z
2022-03-06T07:19:58.000Z
import re import typing OUTPUT_VAR = "_output_" INDENT = 1 UNINDENT = -1 INDENT_SPACES = 2 INDEX_VAR = "index" class CodeBuilder: """Manage code generating context.""" class Token: """Token in template code""" def extract_last_filter(text: str) -> (str, str): """ Extract last filter from e...
28.386525
93
0.598376
import re import typing OUTPUT_VAR = "_output_" INDENT = 1 UNINDENT = -1 INDENT_SPACES = 2 INDEX_VAR = "index" class LoopVar: def __init__(self, index: int): self.index = index self.index0 = index self.index1 = index + 1 class CodeBuilder: """Manage code generating context.""" ...
3,629
107
1,074
b0a6c15a95d1873d4bde8355c3aca42dbf0f77d5
2,775
py
Python
urls.py
heidi666/WorldsAtWar
59c49462ad250cbd1fec4d5875f3f103c57217cf
[ "MIT" ]
8
2016-04-04T15:48:07.000Z
2020-08-29T22:30:26.000Z
urls.py
heidi666/WorldsAtWar
59c49462ad250cbd1fec4d5875f3f103c57217cf
[ "MIT" ]
null
null
null
urls.py
heidi666/WorldsAtWar
59c49462ad250cbd1fec4d5875f3f103c57217cf
[ "MIT" ]
8
2016-04-03T22:34:06.000Z
2020-12-28T12:17:24.000Z
# Django Imports from django.conf.urls import patterns, include, url from django.views.generic import RedirectView from django.contrib import admin from django.views.generic.base import TemplateView from django.contrib.auth import views as auth_views from registration.backends.default.views import ActivationView from r...
40.808824
104
0.692973
# Django Imports from django.conf.urls import patterns, include, url from django.views.generic import RedirectView from django.contrib import admin from django.views.generic.base import TemplateView from django.contrib.auth import views as auth_views from registration.backends.default.views import ActivationView from r...
0
0
0
cded3b34e37de5a6169f583484e399f519174ad9
297
py
Python
hackathon/column1/test_13_3.py
abdurahmanadilovic/elements-of-programming-interviews
14d05935aa901f453ea2086e449b670e993a4c83
[ "MIT" ]
null
null
null
hackathon/column1/test_13_3.py
abdurahmanadilovic/elements-of-programming-interviews
14d05935aa901f453ea2086e449b670e993a4c83
[ "MIT" ]
null
null
null
hackathon/column1/test_13_3.py
abdurahmanadilovic/elements-of-programming-interviews
14d05935aa901f453ea2086e449b670e993a4c83
[ "MIT" ]
null
null
null
from unittest import TestCase from .problem_13_3_anonymous_letter import solution
27
59
0.734007
from unittest import TestCase from .problem_13_3_anonymous_letter import solution class TestSolution(TestCase): def testBasicCase(self): self.assertEqual(True, solution('abc', 'abcccd')) def testRepeatedLetters(self): self.assertEqual(False, solution('abbc', 'abcccd'))
130
8
76
8450e9a6fa67fa3595dd0951f72ef26c8d4d3cc4
1,790
py
Python
jobs/get_us_history.py
shenzhongqiang/cnstock_py
2bb557657a646acb9d20d3ce78e15cf68390f8ea
[ "MIT" ]
2
2016-10-31T04:05:11.000Z
2017-04-17T08:46:53.000Z
jobs/get_us_history.py
shenzhongqiang/cnstock_py
2bb557657a646acb9d20d3ce78e15cf68390f8ea
[ "MIT" ]
null
null
null
jobs/get_us_history.py
shenzhongqiang/cnstock_py
2bb557657a646acb9d20d3ce78e15cf68390f8ea
[ "MIT" ]
null
null
null
import os.path import threading import Queue import cPickle as pickle import datetime from matplotlib.finance import quotes_historical_yahoo from matplotlib.dates import num2date from stock.globalvar import * us_dir = HIST_DIR['us'] if not os.path.isdir(us_dir): os.makedirs(us_dir) #for ticker in tickers: # ...
26.323529
66
0.568156
import os.path import threading import Queue import cPickle as pickle import datetime from matplotlib.finance import quotes_historical_yahoo from matplotlib.dates import num2date from stock.globalvar import * us_dir = HIST_DIR['us'] if not os.path.isdir(us_dir): os.makedirs(us_dir) class Downloader(threading.Thre...
607
14
103
2e6b14a089bc3584daff4710286eaf001c0fa6b6
4,472
py
Python
21-fs-ias-lec/06-SecretSharing/secretsharingUI.py
paultroeger/BACnet
855b931f2a0e9b64e9571f41de2a8cd71d7a01f4
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/06-SecretSharing/secretsharingUI.py
paultroeger/BACnet
855b931f2a0e9b64e9571f41de2a8cd71d7a01f4
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/06-SecretSharing/secretsharingUI.py
paultroeger/BACnet
855b931f2a0e9b64e9571f41de2a8cd71d7a01f4
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import sys import os import platform from PyQt5.QtWidgets import ( QApplication, QVBoxLayout, QWidget, QMainWindow, QScrollArea, QPushButton, QTabBar, QTabWidget ) from PyQt5.QtCore import Qt, QFile, QIODevice, QTextStream from FrontEnd.Tabs import ContactTab, ShareTab, RequestTab, ac...
35.776
108
0.673301
import sys import os import platform def setup_logging(): import logging log_formatter = logging.Formatter('%(msecs)dms %(funcName)s %(lineno)d %(message)s') log_filename = os.path.join("secret_sharing.log") log_filemode = "w" log_level = logging.DEBUG fh = logging.FileHandler(filename=log_fi...
3,124
9
125
cedd707f4d5fa5e06a5121ec8d49280192531d08
1,107
py
Python
plugins/DebugPlugin.py
Pigeoncraft/spock
391986f263f2e79e3b87725e8465e1392ecb55a8
[ "MIT" ]
1
2020-06-04T19:44:31.000Z
2020-06-04T19:44:31.000Z
plugins/DebugPlugin.py
Pigeoncraft/spock
391986f263f2e79e3b87725e8465e1392ecb55a8
[ "MIT" ]
null
null
null
plugins/DebugPlugin.py
Pigeoncraft/spock
391986f263f2e79e3b87725e8465e1392ecb55a8
[ "MIT" ]
null
null
null
#Constantly Changing, just a plugin I use to debug whatever is broken atm import sys import threading from spock.mcmap import mapdata from spock.mcp import mcdata from spock.utils import pl_announce
30.75
80
0.724481
#Constantly Changing, just a plugin I use to debug whatever is broken atm import sys import threading from spock.mcmap import mapdata from spock.mcp import mcdata from spock.utils import pl_announce class DebugPlugin: def __init__(self, ploader, settings): for packet in mcdata.hashed_structs: ploader.reg_event_h...
769
-3
142
0891dcf8937c113a00999c74b85be1fc9943969e
1,129
py
Python
tests/nsis_maker.py
Thiagojm/InfoVision
9a66d4469a2524bf3f5de22720c891881d6651ab
[ "MIT" ]
null
null
null
tests/nsis_maker.py
Thiagojm/InfoVision
9a66d4469a2524bf3f5de22720c891881d6651ab
[ "MIT" ]
null
null
null
tests/nsis_maker.py
Thiagojm/InfoVision
9a66d4469a2524bf3f5de22720c891881d6651ab
[ "MIT" ]
null
null
null
from string import Template # Change parameters appname = "InfoVision" compname = "Conscienciology" descript = "Application for training remote viewing" vmajor = 1 vminor = 1 vbuild = 2 helpurl = "" updateurl = "" abouturl = "" installsize = 16692 iconpath = "src/images/tapa_olho.ico" builder = "py" # --------------...
22.58
88
0.615589
from string import Template class MyTemplate(Template): delimiter = '&' # Change parameters appname = "InfoVision" compname = "Conscienciology" descript = "Application for training remote viewing" vmajor = 1 vminor = 1 vbuild = 2 helpurl = "" updateurl = "" abouturl = "" installsize = 16692 iconpath = "src/image...
0
26
23
f5a2d037bc6bddcfd5109a509fa031b1b3fc6138
5,492
py
Python
ven2/lib/python2.7/site-packages/persistent/list.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
34
2015-11-25T15:46:13.000Z
2021-08-04T02:17:46.000Z
ven2/lib/python2.7/site-packages/persistent/list.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
145
2015-03-16T06:38:56.000Z
2022-03-10T06:55:50.000Z
ven2/lib/python2.7/site-packages/persistent/list.py
manliu1225/Facebook_crawler
0f75a1c4382dd4effc3178d84b99b0cad97337cd
[ "Apache-2.0" ]
24
2015-03-22T04:39:51.000Z
2021-12-02T06:31:39.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
33.693252
97
0.620903
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
1,936
0
450
7c882db0db9b5747554cd6f3462d89db6cfd0cf4
19,489
py
Python
conans/test/utils/tools.py
sigiesec/conan
f966d516452380918437888811bc833c804dac39
[ "MIT" ]
null
null
null
conans/test/utils/tools.py
sigiesec/conan
f966d516452380918437888811bc833c804dac39
[ "MIT" ]
null
null
null
conans/test/utils/tools.py
sigiesec/conan
f966d516452380918437888811bc833c804dac39
[ "MIT" ]
null
null
null
import os import random import shlex import shutil import sys import threading import uuid from collections import Counter from contextlib import contextmanager from io import StringIO import bottle import requests import six import time from mock import Mock from six.moves.urllib.parse import urlsplit, urlunsplit fro...
35.891344
103
0.626251
import os import random import shlex import shutil import sys import threading import uuid from collections import Counter from contextlib import contextmanager from io import StringIO import bottle import requests import six import time from mock import Mock from six.moves.urllib.parse import urlsplit, urlunsplit fro...
8,903
2,116
1,050
ba8daea0bae4793292d70f96b7f2357d384c0091
1,530
py
Python
boucanpy/api/routers/dns_server/zone/router.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
34
2019-11-16T17:22:15.000Z
2022-02-11T23:12:46.000Z
boucanpy/api/routers/dns_server/zone/router.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
1
2021-02-09T09:34:55.000Z
2021-02-10T21:46:20.000Z
boucanpy/api/routers/dns_server/zone/router.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
9
2019-11-18T22:18:07.000Z
2021-02-08T13:23:51.000Z
from typing import List from fastapi import APIRouter, Depends, Query from boucanpy.core import only from boucanpy.core.security import ScopedTo, TokenPayload from boucanpy.db.models.zone import Zone from boucanpy.core import SortQS, PaginationQS, BaseResponse from boucanpy.core.zone import ( ZoneRepo, ZonesRes...
30
88
0.7
from typing import List from fastapi import APIRouter, Depends, Query from boucanpy.core import only from boucanpy.core.security import ScopedTo, TokenPayload from boucanpy.db.models.zone import Zone from boucanpy.core import SortQS, PaginationQS, BaseResponse from boucanpy.core.zone import ( ZoneRepo, ZonesRes...
973
0
22
d3ebbf0039b81b3c302a40eb6de89ff68dbea9a4
803
py
Python
apps/media_apps/mocp/main.py
haxwithaxe/pyLCI
6014f2f70fa232c2d68d27f74013efe7c380b7f5
[ "Apache-2.0" ]
55
2016-04-03T09:19:33.000Z
2021-02-25T09:33:43.000Z
apps/media_apps/mocp/main.py
haxwithaxe/pyLCI
6014f2f70fa232c2d68d27f74013efe7c380b7f5
[ "Apache-2.0" ]
2
2017-08-26T13:53:43.000Z
2019-01-25T03:57:10.000Z
apps/media_apps/mocp/main.py
haxwithaxe/pyLCI
6014f2f70fa232c2d68d27f74013efe7c380b7f5
[ "Apache-2.0" ]
15
2016-04-14T20:27:54.000Z
2021-02-25T09:33:47.000Z
menu_name = "MOCP control" from subprocess import call from ui import Menu, Printer #Some globals for LCS main_menu = None callback = None #Some globals for us i = None o = None #MOCP commands main_menu_contents = [ ["Toggle play/pause", mocp_toggle_play], ["Next song", mocp_next], ["Previous song", mocp_prev], ["...
19.119048
59
0.66127
menu_name = "MOCP control" from subprocess import call from ui import Menu, Printer #Some globals for LCS main_menu = None callback = None #Some globals for us i = None o = None #MOCP commands def mocp_command(*command): try: return call(['mocp'] + list(command)) except: Printer(["Oops", "Is ...
351
0
114
b8c99a42c70bcdde8cf8e31aec986dc510cbd693
5,782
py
Python
keystone/endpoint_policy/backends/base.py
dtroyer/keystone
ba21db422d4f58c185e1b4414e118f723c33b959
[ "Apache-2.0" ]
null
null
null
keystone/endpoint_policy/backends/base.py
dtroyer/keystone
ba21db422d4f58c185e1b4414e118f723c33b959
[ "Apache-2.0" ]
null
null
null
keystone/endpoint_policy/backends/base.py
dtroyer/keystone
ba21db422d4f58c185e1b4414e118f723c33b959
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
35.472393
76
0.666724
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
0
0
0
a2687e729dc9c566324fd7fe51d1b3892834ca97
4,516
py
Python
mmcls/models/backbones/binary_utils/binary_convs.py
lucifer443/BinaryNeuralNetwork
3ceadfb67cd048fc89f4eea8cc833d9bf5f62153
[ "Apache-2.0" ]
13
2021-01-19T03:12:38.000Z
2022-03-23T01:24:19.000Z
mmcls/models/backbones/binary_utils/binary_convs.py
lucifer443/BinaryNeuralNetwork
3ceadfb67cd048fc89f4eea8cc833d9bf5f62153
[ "Apache-2.0" ]
null
null
null
mmcls/models/backbones/binary_utils/binary_convs.py
lucifer443/BinaryNeuralNetwork
3ceadfb67cd048fc89f4eea8cc833d9bf5f62153
[ "Apache-2.0" ]
2
2021-03-15T09:51:05.000Z
2021-03-15T09:51:49.000Z
import torch.nn as nn import torch.nn.functional as F from .binary_functions import IRNetSign, RANetActSign, RANetWSign import torch import math
41.814815
186
0.594331
import torch.nn as nn import torch.nn.functional as F from .binary_functions import IRNetSign, RANetActSign, RANetWSign import torch import math class BaseBinaryConv2d(nn.Conv2d): def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias...
3,713
56
588
426b859755e66646ff39bc77e8209c786927826b
2,846
py
Python
rem_backend/localization.py
wishful-project/wishrem_rem_backend
71d5874ff25fb2fedb78acea6ac2442a17fce0a0
[ "Apache-2.0" ]
null
null
null
rem_backend/localization.py
wishful-project/wishrem_rem_backend
71d5874ff25fb2fedb78acea6ac2442a17fce0a0
[ "Apache-2.0" ]
null
null
null
rem_backend/localization.py
wishful-project/wishrem_rem_backend
71d5874ff25fb2fedb78acea6ac2442a17fce0a0
[ "Apache-2.0" ]
1
2020-06-05T08:23:12.000Z
2020-06-05T08:23:12.000Z
import math import numpy as np __author__ = "Valentin Rakovic" __copyright__ = "Copyright (c) 2017, Faculty of Electrical Engineering and Information Technologies, UKIM, Skopje, Macedonia" __version__ = "0.1.0" __email__ = "{valentin}@feit.ukim.edu.mk" ''' Localization Module Used for processing of the localizatio...
21.398496
125
0.614547
import math import numpy as np __author__ = "Valentin Rakovic" __copyright__ = "Copyright (c) 2017, Faculty of Electrical Engineering and Information Technologies, UKIM, Skopje, Macedonia" __version__ = "0.1.0" __email__ = "{valentin}@feit.ukim.edu.mk" ''' Localization Module Used for processing of the localizatio...
0
0
0
e8f79285676c9c79bb7909395c181600480d30c7
42
py
Python
Handbook4DSAI/RL/__init__.py
tswsxk/CodeBook
01b976418d64f5f94257ae0e2b36751afb93c105
[ "MIT" ]
null
null
null
Handbook4DSAI/RL/__init__.py
tswsxk/CodeBook
01b976418d64f5f94257ae0e2b36751afb93c105
[ "MIT" ]
1
2019-09-24T22:04:03.000Z
2019-09-24T22:04:03.000Z
tests/__init__.py
tswsxk/CodeBook
01b976418d64f5f94257ae0e2b36751afb93c105
[ "MIT" ]
null
null
null
# coding: utf-8 # 2019/12/24 @ tongshiwei
14
25
0.666667
# coding: utf-8 # 2019/12/24 @ tongshiwei
0
0
0
1bcdb0641861eae7ea2e7d75ffb67d2cc042ff5f
2,985
py
Python
preferences.py
yaroslavsokolov/SQLiteStudioMini
ba03e010d7068a9f18eb08c6bc2a8232fa38577c
[ "MIT" ]
null
null
null
preferences.py
yaroslavsokolov/SQLiteStudioMini
ba03e010d7068a9f18eb08c6bc2a8232fa38577c
[ "MIT" ]
null
null
null
preferences.py
yaroslavsokolov/SQLiteStudioMini
ba03e010d7068a9f18eb08c6bc2a8232fa38577c
[ "MIT" ]
null
null
null
from PyQt5 import uic, QtWidgets, QtCore, QtGui from PyQt5.QtCore import Qt from PyQt5.Qt import QKeySequence from PyQt5.QtGui import QFont from PyQt5.QtWidgets import QWidget, QMessageBox
35.535714
93
0.573199
from PyQt5 import uic, QtWidgets, QtCore, QtGui from PyQt5.QtCore import Qt from PyQt5.Qt import QKeySequence from PyQt5.QtGui import QFont from PyQt5.QtWidgets import QWidget, QMessageBox class PreferenceWidget(QWidget): def __init__(self, wnd): super().__init__() self.createUi() ...
2,464
11
300
14584a631db1ad2ad6474d52aebc5a1f1c6e09ac
409
py
Python
gesund_projekt/calories/migrations/0005_rename_category_id_caloriefooddetail_category.py
asis2016/gesund-projekt
cb3828b69cd6a86deeab16943e38b6ebffd86abb
[ "MIT" ]
null
null
null
gesund_projekt/calories/migrations/0005_rename_category_id_caloriefooddetail_category.py
asis2016/gesund-projekt
cb3828b69cd6a86deeab16943e38b6ebffd86abb
[ "MIT" ]
null
null
null
gesund_projekt/calories/migrations/0005_rename_category_id_caloriefooddetail_category.py
asis2016/gesund-projekt
cb3828b69cd6a86deeab16943e38b6ebffd86abb
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-03-24 10:15 from django.db import migrations
21.526316
75
0.630807
# Generated by Django 4.0.1 on 2022-03-24 10:15 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('calories', '0004_rename_category_caloriefooddetail_category_id'), ] operations = [ migrations.RenameField( model_name='caloriefooddetail...
0
303
23
85d7f26ea7b1afc06c9fd46940e324cc88ac3102
4,775
py
Python
contentai_metadata_flatten/parsers/aws_rekognition_video_labels.py
ezavesky/metadata-flatten-extractor
5e81713424970087492b7835195235575f0024e2
[ "Apache-2.0" ]
5
2020-01-30T14:04:57.000Z
2022-02-28T12:49:36.000Z
contentai_metadata_flatten/parsers/aws_rekognition_video_labels.py
ezavesky/metadata-flatten-extractor
5e81713424970087492b7835195235575f0024e2
[ "Apache-2.0" ]
4
2020-01-31T02:25:23.000Z
2020-03-11T20:22:18.000Z
contentai_metadata_flatten/parsers/aws_rekognition_video_labels.py
ezavesky/metadata-flatten-extractor
5e81713424970087492b7835195235575f0024e2
[ "Apache-2.0" ]
2
2020-11-26T06:39:38.000Z
2022-02-28T12:50:06.000Z
#! python # ===============LICENSE_START======================================================= # metadata-flatten-extractor Apache-2.0 # =================================================================================== # Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved. # =====================...
51.902174
126
0.557068
#! python # ===============LICENSE_START======================================================= # metadata-flatten-extractor Apache-2.0 # =================================================================================== # Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved. # =====================...
135
3,520
23
bd646d7466e568df81db5d0801eda6809d816125
3,524
py
Python
syslinkats/framework/common/argparse_helpers.py
stick152/SystemLink-Python-ATS
82b0fac9bae22b808ba519fa4425a931ff3c77aa
[ "MIT" ]
null
null
null
syslinkats/framework/common/argparse_helpers.py
stick152/SystemLink-Python-ATS
82b0fac9bae22b808ba519fa4425a931ff3c77aa
[ "MIT" ]
null
null
null
syslinkats/framework/common/argparse_helpers.py
stick152/SystemLink-Python-ATS
82b0fac9bae22b808ba519fa4425a931ff3c77aa
[ "MIT" ]
null
null
null
""" argparse_helpers.py This module holds helper functions for use with argparse. Some of these functions can be used for the "type" property for argparse::add_arguments calls. Simply pass the function name as such: type=<function name>. """ __author__ = 'sedwards' import ast from typing import Any, Dict, List, Opt...
30.643478
97
0.629966
""" argparse_helpers.py This module holds helper functions for use with argparse. Some of these functions can be used for the "type" property for argparse::add_arguments calls. Simply pass the function name as such: type=<function name>. """ __author__ = 'sedwards' import ast from typing import Any, Dict, List, Opt...
0
0
0
f77736f94b3e48ae05ef07fee09d8d86947077bb
409
py
Python
blockchain/t/t2.py
lijingmt/cherryhillcoin
46755a719b44a5537b3cf0fe604f9f86749f1c04
[ "MIT" ]
1
2018-06-05T04:29:57.000Z
2018-06-05T04:29:57.000Z
blockchain/t/t2.py
lijingmt/cherryhillcoin
46755a719b44a5537b3cf0fe604f9f86749f1c04
[ "MIT" ]
null
null
null
blockchain/t/t2.py
lijingmt/cherryhillcoin
46755a719b44a5537b3cf0fe604f9f86749f1c04
[ "MIT" ]
null
null
null
import shelve if __name__ == '__main__': s = shelve.open("22901.db") s["name"] = "www.itdiffer.com" s["lang"] = "python" s["pages"] = 1000 s["contents"] = {"first":"base knowledge","second":"day day up"} s.close() s = shelve.open("22901.db") name = s["name"] print (name) contents...
25.5625
68
0.518337
import shelve if __name__ == '__main__': s = shelve.open("22901.db") s["name"] = "www.itdiffer.com" s["lang"] = "python" s["pages"] = 1000 s["contents"] = {"first":"base knowledge","second":"day day up"} s.close() s = shelve.open("22901.db") name = s["name"] print (name) contents...
0
0
0
caa54a902503a87e676b9070ae2557224455edb9
3,827
py
Python
algorithms/hungarian.py
radosnystudent/Graph-algorithms
af7f09dbdeb2684395a45d2e7333e7339e9ce83f
[ "MIT" ]
null
null
null
algorithms/hungarian.py
radosnystudent/Graph-algorithms
af7f09dbdeb2684395a45d2e7333e7339e9ce83f
[ "MIT" ]
null
null
null
algorithms/hungarian.py
radosnystudent/Graph-algorithms
af7f09dbdeb2684395a45d2e7333e7339e9ce83f
[ "MIT" ]
null
null
null
if __name__ == '__main__': files = ['files/Matching.txt','files/Matching2.txt'] matrix = list() with open(files[0]) as file: for line in file: matrix.append(list(map(int,line.split()))) vertices = [i for i in range(len(matrix))] next_x = [[] for _ in range(len(matrix))] ...
32.991379
100
0.436112
class Hungarian: def __init__(self): self.edges = list() self.m_x = list() self.m_y = list() self.procedure_status = False self.S = list() self.T = list() self.p = list() def matching(self, vertices_x, next_x): self.p = [None for _ ...
3,112
-5
197
c5cc75b4efd84d6919c76bf73f89e53133e99677
2,285
py
Python
test_image.py
guyii54/UAV-SRGAN
495ef87f602996ae089185880cf9e75779c14cfd
[ "MIT" ]
null
null
null
test_image.py
guyii54/UAV-SRGAN
495ef87f602996ae089185880cf9e75779c14cfd
[ "MIT" ]
null
null
null
test_image.py
guyii54/UAV-SRGAN
495ef87f602996ae089185880cf9e75779c14cfd
[ "MIT" ]
null
null
null
import argparse import time from os.path import join import os import torch from PIL import Image from torch.autograd import Variable from torchvision.transforms import ToTensor, ToPILImage import torchvision.utils as utils from data_utils import display_transform from model import Generator parser = argparse.Argume...
38.728814
136
0.729978
import argparse import time from os.path import join import os import torch from PIL import Image from torch.autograd import Variable from torchvision.transforms import ToTensor, ToPILImage import torchvision.utils as utils from data_utils import display_transform from model import Generator parser = argparse.Argume...
0
0
0
a8f0864e5ea62d94c6741f61313534f3e9ace6af
1,128
py
Python
experiment/overlap_entities_count.py
Zuchens/ner_poleval
1988b3d814303ce5551a5ebc30104f5b6cc76e01
[ "Apache-2.0" ]
3
2019-11-02T21:21:03.000Z
2019-11-02T21:21:39.000Z
experiment/overlap_entities_count.py
Zuchens/ner_poleval
1988b3d814303ce5551a5ebc30104f5b6cc76e01
[ "Apache-2.0" ]
15
2019-12-16T21:04:38.000Z
2022-02-10T00:07:35.000Z
experiment/overlap_entities_count.py
Zuchens/ner_poleval
1988b3d814303ce5551a5ebc30104f5b6cc76e01
[ "Apache-2.0" ]
null
null
null
import os import json dir = "test" counts = 0 all_counts =0 with open("POLEVAL-NER_GOLD.json") as f: main_data = json.load(f)["questions"] for idx, doc in enumerate(main_data): answers = doc["answers"][0]["data"]["brat"].split("\n") new_labels = [] ents = [] for answer in answers...
35.25
96
0.421986
import os import json dir = "test" counts = 0 all_counts =0 with open("POLEVAL-NER_GOLD.json") as f: main_data = json.load(f)["questions"] for idx, doc in enumerate(main_data): answers = doc["answers"][0]["data"]["brat"].split("\n") new_labels = [] ents = [] for answer in answers...
0
0
0
680b04d5957bdc7faac67e25a46aca22c8bfc5b4
4,321
py
Python
ArticleSpider/ArticleSpider/pipelines.py
iahjc/spider
72dc1e651ed2d242765e4791ec21cf94a0208126
[ "MIT" ]
null
null
null
ArticleSpider/ArticleSpider/pipelines.py
iahjc/spider
72dc1e651ed2d242765e4791ec21cf94a0208126
[ "MIT" ]
null
null
null
ArticleSpider/ArticleSpider/pipelines.py
iahjc/spider
72dc1e651ed2d242765e4791ec21cf94a0208126
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import codecs import json from scrapy.pipelines.images import ImagesPipeline from scrapy.exporters import JsonItemExporter from...
30.64539
121
0.63365
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import codecs import json from scrapy.pipelines.images import ImagesPipeline from scrapy.exporters import JsonItemExporter from...
3,037
268
526
49db08ee9aa6ece5fb3ce98d190153a4c6042269
1,344
py
Python
settings/config_default.py
yattdev/Jady
77c74fa4c5cf87cea92334eba1be24d93cbd2eea
[ "MIT" ]
null
null
null
settings/config_default.py
yattdev/Jady
77c74fa4c5cf87cea92334eba1be24d93cbd2eea
[ "MIT" ]
null
null
null
settings/config_default.py
yattdev/Jady
77c74fa4c5cf87cea92334eba1be24d93cbd2eea
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ DocString: Load configuration from .yaml file.""" from pathlib import Path from os import path import confuse # get path of the projet ! BASE_DIR = path.dirname(path.dirname(path.abspath(__file__))) # BASE_DIR = '/home/alassane/Code/JimBot/chatbotapp' # Load conf...
34.461538
82
0.730655
#!/usr/bin/env python # -*- coding: utf-8 -*- """ DocString: Load configuration from .yaml file.""" from pathlib import Path from os import path import confuse # get path of the projet ! BASE_DIR = path.dirname(path.dirname(path.abspath(__file__))) # BASE_DIR = '/home/alassane/Code/JimBot/chatbotapp' # Load conf...
0
0
0
34c21d7e533e291d3295a0cb9a0af5c62974fdad
690
py
Python
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_16_bit/thumb_miscellaneous_16_bit_instructions/thumb_if_then_and_hints/it_t1.py
matan1008/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
16
2018-01-22T14:36:49.000Z
2021-12-17T15:39:52.000Z
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_16_bit/thumb_miscellaneous_16_bit_instructions/thumb_if_then_and_hints/it_t1.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
3
2019-02-19T17:51:47.000Z
2022-03-31T20:45:21.000Z
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_16_bit/thumb_miscellaneous_16_bit_instructions/thumb_if_then_and_hints/it_t1.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
4
2020-06-18T23:51:03.000Z
2022-02-09T17:43:13.000Z
from armulator.armv6.opcodes.abstract_opcodes.it import It from armulator.armv6.opcodes.opcode import Opcode
32.857143
112
0.657971
from armulator.armv6.opcodes.abstract_opcodes.it import It from armulator.armv6.opcodes.opcode import Opcode class ItT1(It, Opcode): def __init__(self, instruction, firstcond, mask): Opcode.__init__(self, instruction) It.__init__(self, firstcond, mask) def is_pc_changing_opcode(self): ...
457
100
23
9066f86d416485eb775a33427d0f1e827fc7c495
3,579
py
Python
valohai_cli/tui.py
arimbr/valohai-cli
0be10d60af96f3b03f08856f684bd3add96847c8
[ "MIT" ]
null
null
null
valohai_cli/tui.py
arimbr/valohai-cli
0be10d60af96f3b03f08856f684bd3add96847c8
[ "MIT" ]
null
null
null
valohai_cli/tui.py
arimbr/valohai-cli
0be10d60af96f3b03f08856f684bd3add96847c8
[ "MIT" ]
null
null
null
import math import time import click from valohai_cli.utils import force_text class Divider(LayoutElement): """ Full-width divider. """ def __init__(self, ch='#', style=None): """ :param ch: The character (or characters) to fill the line with :type ch: str :param st...
27.960938
102
0.560212
import math import time import click from valohai_cli.utils import force_text class LayoutElement: style = {} layout = None class Divider(LayoutElement): """ Full-width divider. """ def __init__(self, ch='#', style=None): """ :param ch: The character (or characters) to fil...
1,295
32
154
fd6c54ab778e38dc16c6563ba5877f3b76b1ce7e
2,287
py
Python
tekinstr/common.py
l-johnston/tekinstr
92d42004bc8ebc63196f8d75590090615f5301c6
[ "MIT" ]
1
2021-03-06T13:03:19.000Z
2021-03-06T13:03:19.000Z
tekinstr/common.py
l-johnston/tekinstr
92d42004bc8ebc63196f8d75590090615f5301c6
[ "MIT" ]
null
null
null
tekinstr/common.py
l-johnston/tekinstr
92d42004bc8ebc63196f8d75590090615f5301c6
[ "MIT" ]
null
null
null
"""Common definitions""" from collections import namedtuple import functools IDN = namedtuple("IDN", ["manufacturer", "model", "serial_number", "firmware_version"]) class CommandError(Exception): """Raised when CME bit of SESR is set""" def validate(func): """Read the Command Error bit (CME) of the Standa...
31.328767
87
0.606471
"""Common definitions""" from collections import namedtuple import functools IDN = namedtuple("IDN", ["manufacturer", "model", "serial_number", "firmware_version"]) def _get_idn(visa): idn = visa.query("*IDN?").strip(":\n").split(",") manufacturer = idn[0] model = idn[1].replace(" ", "") serial_numbe...
1,600
0
157
0b08d44668091dedcf71bef9c319a841209e393c
526
py
Python
psyrun/utils/doc.py
jgosmann/psyrun
42f58223f864005c9ba427fcc0ccf44bd94df1e8
[ "MIT" ]
2
2017-07-03T20:03:08.000Z
2018-04-19T20:36:17.000Z
psyrun/utils/doc.py
jgosmann/psyrun
42f58223f864005c9ba427fcc0ccf44bd94df1e8
[ "MIT" ]
67
2015-02-19T02:11:14.000Z
2018-04-20T15:51:57.000Z
psyrun/utils/doc.py
jgosmann/psyrun
42f58223f864005c9ba427fcc0ccf44bd94df1e8
[ "MIT" ]
1
2015-11-13T16:54:16.000Z
2015-11-13T16:54:16.000Z
"""Documentation utilities.""" def inherit_docs(cls): """Class decorator that makes it inherit function doc strings.""" for name in dir(cls): member = getattr(cls, name) if member.__doc__ is not None: continue for parent in cls.mro()[1:]: if hasattr(parent, nam...
27.684211
71
0.558935
"""Documentation utilities.""" def inherit_docs(cls): """Class decorator that makes it inherit function doc strings.""" for name in dir(cls): member = getattr(cls, name) if member.__doc__ is not None: continue for parent in cls.mro()[1:]: if hasattr(parent, nam...
0
0
0
604b232a73bd6a72bf227df8ef5684bd59a869a5
1,267
py
Python
core/recc/argparse/parser/cfg_parse.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
3
2021-06-20T02:24:10.000Z
2022-01-26T23:55:33.000Z
core/recc/argparse/parser/cfg_parse.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
core/recc/argparse/parser/cfg_parse.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from configparser import ConfigParser # [WARNING] Don't use any other `cfg` driver. from typing import Optional, Dict, Any from argparse import Namespace from recc.argparse.parser.dict_parse import get_namespace_by_dict
28.155556
84
0.705604
# -*- coding: utf-8 -*- from configparser import ConfigParser # [WARNING] Don't use any other `cfg` driver. from typing import Optional, Dict, Any from argparse import Namespace from recc.argparse.parser.dict_parse import get_namespace_by_dict def config_parser_to_dict(parser: ConfigParser) -> Dict[str, Dict[str, A...
925
0
92
5b66fdca7cea7c37b9d21a2f2ca0f72bc2b875bc
557
py
Python
tests/test_app.py
LiXuanqi/code-runner
d192ea7ee569fef440447767d8d85c1bd749557f
[ "MIT" ]
null
null
null
tests/test_app.py
LiXuanqi/code-runner
d192ea7ee569fef440447767d8d85c1bd749557f
[ "MIT" ]
null
null
null
tests/test_app.py
LiXuanqi/code-runner
d192ea7ee569fef440447767d8d85c1bd749557f
[ "MIT" ]
null
null
null
import pytest from coderunner import create_app @pytest.fixture() @pytest.fixture() def client(app): """A test client for the app""" return app.test_client()
16.878788
43
0.601436
import pytest from coderunner import create_app @pytest.fixture() def app(): app = create_app({ 'TESTING': True }) yield app @pytest.fixture() def client(app): """A test client for the app""" return app.test_client() def test_hello(client): rv = client.get('/hello') assert b'...
316
0
68
b53ce4585677d1a9a2d64f0a3ea8525b637d2a2d
41,015
py
Python
web/transiq/supplier/datamigrations/datafilter.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/supplier/datamigrations/datafilter.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/supplier/datamigrations/datafilter.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
from team.models import DataTablesFilter
58.676681
122
0.385152
from team.models import DataTablesFilter def filter_data(): data = [] for row in DataTablesFilter.objects.all(): data.append({ 'id': row.id, 'criteria': row.criteria }) return data def update_filter_data(): data = [{'id': 4, 'criteria': [{'field_n...
40,926
0
46
72c0aa3f663b05c530e3ebb4ca9fc11535b4a56f
758
py
Python
scheduler.py
Kaicheng-Yang0828/Vit-ImageClassification
ede55d39f36b890b78754582bc221bc4f8a9cfc1
[ "MIT" ]
2
2022-01-25T09:03:32.000Z
2022-01-25T09:05:24.000Z
scheduler.py
Kaicheng-Yang0828/Vit-ImageClassification
ede55d39f36b890b78754582bc221bc4f8a9cfc1
[ "MIT" ]
1
2022-02-16T21:47:19.000Z
2022-03-30T08:40:32.000Z
scheduler.py
Kaicheng-Yang0828/Vision-Transformer-ViT
ede55d39f36b890b78754582bc221bc4f8a9cfc1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @File : scheduler.py # @Author : Kaicheng Yang # @Time : 2022/01/26 11:04:07 import numpy as np
32.956522
61
0.634565
# -*- coding: utf-8 -*- # @File : scheduler.py # @Author : Kaicheng Yang # @Time : 2022/01/26 11:04:07 import numpy as np def assign_learning_rate(optimizer, new_lr): for param_group in optimizer.param_groups: param_group["lr"] = new_lr def _warmup_lr(base_lr, warmup_length, step): return base_lr * (st...
569
0
68
419a01d6135e75ee6e18a4c23ac48aa937b37f98
655
py
Python
setup.py
pmachek/barcode
2be24c34992fb3d7ae853d286eef19bc64b7fc80
[ "MIT" ]
1
2020-02-23T15:16:08.000Z
2020-02-23T15:16:08.000Z
setup.py
pmachek/barcode
2be24c34992fb3d7ae853d286eef19bc64b7fc80
[ "MIT" ]
null
null
null
setup.py
pmachek/barcode
2be24c34992fb3d7ae853d286eef19bc64b7fc80
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as readme_file: readme = readme_file.read() setuptools.setup( name="stripes-and-squares", version="0.0.1-rc1", author="Petr Machek", description="Barcode generator with no dependencies", long_description=readme, long_description_content_type="...
27.291667
57
0.654962
import setuptools with open("README.md", "r") as readme_file: readme = readme_file.read() setuptools.setup( name="stripes-and-squares", version="0.0.1-rc1", author="Petr Machek", description="Barcode generator with no dependencies", long_description=readme, long_description_content_type="...
0
0
0
00f1f0b9f691570d9aa7b63fe6b8f25bcb8cdbf3
1,079
py
Python
lib/script_utils.py
TimH96/proxer-dl-tools
6ceb5b47b37cdf1ae5d9d38120194c56f629e770
[ "MIT" ]
1
2021-07-07T12:16:30.000Z
2021-07-07T12:16:30.000Z
lib/script_utils.py
TimH96/proxer-dl-tools
6ceb5b47b37cdf1ae5d9d38120194c56f629e770
[ "MIT" ]
null
null
null
lib/script_utils.py
TimH96/proxer-dl-tools
6ceb5b47b37cdf1ae5d9d38120194c56f629e770
[ "MIT" ]
null
null
null
""" lib/script_utils.py lib for utility functions for cl script execution """ from sys import exit def script_exit(reason: str) -> None: """Wrapper for script exit on error""" print(f'exit with error: {reason}') exit() def check_validity_token(token: str) -> list: """Processes token input ...
27.666667
76
0.620945
""" lib/script_utils.py lib for utility functions for cl script execution """ from sys import exit def script_exit(reason: str) -> None: """Wrapper for script exit on error""" print(f'exit with error: {reason}') exit() def check_validity_token(token: str) -> list: """Processes token input ...
0
0
0
8b8581853f08627ed928bbb4426f60136dc53d6f
1,699
py
Python
src/tiden/apps/appfactory.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
14
2020-06-05T09:30:42.000Z
2022-01-19T00:26:48.000Z
src/tiden/apps/appfactory.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
6
2020-06-09T14:05:21.000Z
2021-03-18T13:55:15.000Z
src/tiden/apps/appfactory.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
1
2020-06-09T13:53:15.000Z
2020-06-09T13:53:15.000Z
#!/usr/bin/env python3 # # Copyright 2017-2020 GridGain Systems. # # 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 applicab...
39.511628
114
0.708064
#!/usr/bin/env python3 # # Copyright 2017-2020 GridGain Systems. # # 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 applicab...
862
-4
75
5d2932131385b32c6c54616f2af63d8a7059cd97
2,032
py
Python
tools/others/genfn.py
sanyaade-teachings/oxygine-framework_back
6bbc9ba40e2bfb6c27c2ac008a434244c57b6df6
[ "MIT" ]
null
null
null
tools/others/genfn.py
sanyaade-teachings/oxygine-framework_back
6bbc9ba40e2bfb6c27c2ac008a434244c57b6df6
[ "MIT" ]
null
null
null
tools/others/genfn.py
sanyaade-teachings/oxygine-framework_back
6bbc9ba40e2bfb6c27c2ac008a434244c57b6df6
[ "MIT" ]
null
null
null
import cStringIO lines = open("../../../SDL/include/SDL_opengl.h").readlines() funcs = ["glUseProgram", "glVertexAttribPointer", "glActiveTexture", "glEnableVertexAttribArray", "glDisableVertexAttribArray", "glDeleteProgram", "glGetShaderiv", "glGetS...
22.831461
80
0.533957
import cStringIO lines = open("../../../SDL/include/SDL_opengl.h").readlines() funcs = ["glUseProgram", "glVertexAttribPointer", "glActiveTexture", "glEnableVertexAttribArray", "glDisableVertexAttribArray", "glDeleteProgram", "glGetShaderiv", "glGetS...
878
0
23