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
47097dc2f5b262c4baf57ee1a7704380aa4c9964
5,109
py
Python
src/counterfactual_explanation/flow_ssl/invertible/parts.py
tridungduong16/fairCE
b13c72c253d875e68c0294b91aaddcbf93460d92
[ "MIT" ]
null
null
null
src/counterfactual_explanation/flow_ssl/invertible/parts.py
tridungduong16/fairCE
b13c72c253d875e68c0294b91aaddcbf93460d92
[ "MIT" ]
null
null
null
src/counterfactual_explanation/flow_ssl/invertible/parts.py
tridungduong16/fairCE
b13c72c253d875e68c0294b91aaddcbf93460d92
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np from ..utils import export from torch.nn import functional as F @export @export @export @export @export @export I = Id() @export @export @export
28.702247
88
0.602271
import torch import torch.nn as nn import numpy as np from ..utils import export from torch.nn import functional as F @export class iSequential(torch.nn.Sequential): def inverse(self,y): for module in reversed(self._modules.values()): assert hasattr(module,'inverse'), '{} has no inverse define...
3,715
195
981
4afc8e5614a4adb276bf0b3c984f661c12a4ee8e
1,883
py
Python
userManagment/urls.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
userManagment/urls.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
userManagment/urls.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.loadUserHome, name='loadUsersHome'), url(r'^viewProfile', views.viewProfile, name='viewProfile'), url(r'^createUser', views.createUser, name='createUser'), url(r'^submitUserCreation', views.submitUserCreation, name...
52.305556
96
0.742963
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.loadUserHome, name='loadUsersHome'), url(r'^viewProfile', views.viewProfile, name='viewProfile'), url(r'^createUser', views.createUser, name='createUser'), url(r'^submitUserCreation', views.submitUserCreation, name...
0
0
0
1cf1041e33e0a58c8bce7696f67e71f732c8f26d
838
py
Python
endorsement/views/session.py
uw-it-aca/service-endorsement
a1ba3e4221bb3fe6c81c9f6947ad5e93f10a4a45
[ "Apache-2.0" ]
3
2017-10-16T17:19:32.000Z
2019-07-31T22:31:48.000Z
endorsement/views/session.py
uw-it-aca/service-endorsement
a1ba3e4221bb3fe6c81c9f6947ad5e93f10a4a45
[ "Apache-2.0" ]
284
2016-06-17T18:21:31.000Z
2022-03-21T16:55:03.000Z
endorsement/views/session.py
uw-it-aca/service-endorsement
a1ba3e4221bb3fe6c81c9f6947ad5e93f10a4a45
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import hashlib import json import logging from userservice.user import get_original_user, get_override_user logger = logging.getLogger(__name__)
28.896552
71
0.749403
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import hashlib import json import logging from userservice.user import get_original_user, get_override_user logger = logging.getLogger(__name__) def log_session_key(request): session_key = request.session.session_key if se...
557
0
46
b3389ea62e834d6656de040ce25120a9cfde5804
3,164
py
Python
TicTacToe/environment.py
ketsonroberto/ReinforcementLearning
933783f544c31cc632d0e54f6a0cb53c46e17455
[ "MIT" ]
null
null
null
TicTacToe/environment.py
ketsonroberto/ReinforcementLearning
933783f544c31cc632d0e54f6a0cb53c46e17455
[ "MIT" ]
null
null
null
TicTacToe/environment.py
ketsonroberto/ReinforcementLearning
933783f544c31cc632d0e54f6a0cb53c46e17455
[ "MIT" ]
null
null
null
import numpy as np import random import copy from utils import *
27.754386
81
0.481985
import numpy as np import random import copy from utils import * class environment: def __init__(self, base=3, random_state=None): self.base = base self.side = base**2 self.board = np.zeros((self.base, self.base)) self.available_positions = None self.unavailabl...
2,830
190
23
244514a041950d0c71c7304b528085448d66c88e
368
py
Python
test_selenium19/test_selenium19.py
NikolayKutsoloshchenko/Selenium-1-
a027bcfd7196dbd78426b24100feb7be13f315ee
[ "Apache-2.0" ]
null
null
null
test_selenium19/test_selenium19.py
NikolayKutsoloshchenko/Selenium-1-
a027bcfd7196dbd78426b24100feb7be13f315ee
[ "Apache-2.0" ]
null
null
null
test_selenium19/test_selenium19.py
NikolayKutsoloshchenko/Selenium-1-
a027bcfd7196dbd78426b24100feb7be13f315ee
[ "Apache-2.0" ]
null
null
null
import pytest from Application import application @pytest.fixture
21.647059
41
0.733696
import pytest from Application import application @pytest.fixture def app(request): app = application() request.addfinalizer(app.driver.quit) return app def test_adding_to_cart(app): app.add_3_ducks() assert app.items_in_bag >= 1 def test_removing_from_cart(app): app.add_3_ducks() app.del...
234
0
68
dd0b89a4dbb866d5e203fdf5a2a70e4692f387fa
477
py
Python
scripts/populate_behaviors.py
vsoch/CogatPheno
c3b964d40a4fe501857e68f422e4da557625dd0d
[ "MIT" ]
null
null
null
scripts/populate_behaviors.py
vsoch/CogatPheno
c3b964d40a4fe501857e68f422e4da557625dd0d
[ "MIT" ]
12
2015-07-07T21:07:26.000Z
2015-11-05T01:10:49.000Z
scripts/populate_behaviors.py
vsoch/CogPheno
c3b964d40a4fe501857e68f422e4da557625dd0d
[ "MIT" ]
null
null
null
#!/usr/bin/python import numpy from textblob import Word from cogpheno.apps.assessments.models import BehavioralTrait from cogpheno.apps.assessments.views import for term in terms: make_new_concept(term) from textblob.wordnet import Synset # Add parts of speech for behavior in BehavioralTrait.objects.all(): ...
21.681818
60
0.725367
#!/usr/bin/python import numpy from textblob import Word from cogpheno.apps.assessments.models import BehavioralTrait from cogpheno.apps.assessments.views import for term in terms: make_new_concept(term) from textblob.wordnet import Synset # Add parts of speech for behavior in BehavioralTrait.objects.all(): ...
0
0
0
3233af617ef44e3621671df145df97d2c22da3da
375
py
Python
2019/10 October/dp10182019.py
vishrutkmr7/DailyPracticeProblemsDIP
d1bfbc75f2024736c22c05385f753a90ddcfa0f5
[ "MIT" ]
5
2019-08-06T02:34:41.000Z
2022-01-08T03:03:16.000Z
2019/10 October/dp10182019.py
ourangzeb/DailyPracticeProblemsDIP
66c07af88754e5d59b243e3ee9f02db69f7c0a77
[ "MIT" ]
15
2021-06-01T14:04:16.000Z
2022-03-08T21:17:22.000Z
2019/10 October/dp10182019.py
ourangzeb/DailyPracticeProblemsDIP
66c07af88754e5d59b243e3ee9f02db69f7c0a77
[ "MIT" ]
4
2019-09-19T20:00:05.000Z
2021-08-16T11:31:51.000Z
# This problem was recently asked by Uber: # Given a number of integers, combine them so it would create the largest number. from itertools import permutations print(largestNum([17, 7, 2, 45, 72])) # 77245217
22.058824
81
0.666667
# This problem was recently asked by Uber: # Given a number of integers, combine them so it would create the largest number. from itertools import permutations def largestNum(nums): # Fill this in. lst = [] for i in permutations(nums, len(nums)): lst.append("".join(map(str, i))) return max(l...
138
0
23
6473a5efc37f72e776278a8833b7a7b38e9f6703
12,618
py
Python
classes/signature.py
Gamer-Grad/whdbx_web
d506d173c5f82ff3a486185f4c1f9eb90705c311
[ "MIT" ]
null
null
null
classes/signature.py
Gamer-Grad/whdbx_web
d506d173c5f82ff3a486185f4c1f9eb90705c311
[ "MIT" ]
null
null
null
classes/signature.py
Gamer-Grad/whdbx_web
d506d173c5f82ff3a486185f4c1f9eb90705c311
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from . import database from . import sitecfg from . import sleeper from . import loot_prices
35.948718
102
0.537011
# -*- coding: utf-8 -*- from . import database from . import sitecfg from . import sleeper from . import loot_prices class WHSignatureWave: def __init__(self, sig_id: int): self.sig_id = sig_id self.wave_id = 0 self.is_capital = False self.sleepers_str = '' self.sleeper_id...
11,897
-2
601
135cf2e118c1d2233a48328a38f6c6c5e7fe14fd
521
py
Python
projetinhos/ex#71-simulador_de_caixa_eletronico.py
dani-fn/Projetinhos_Python
692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb
[ "MIT" ]
null
null
null
projetinhos/ex#71-simulador_de_caixa_eletronico.py
dani-fn/Projetinhos_Python
692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb
[ "MIT" ]
null
null
null
projetinhos/ex#71-simulador_de_caixa_eletronico.py
dani-fn/Projetinhos_Python
692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb
[ "MIT" ]
null
null
null
print('-' * 28) print('{:^28}'.format('BANCO DANIMONEY')) print('-' * 28) valor = int(input('Quanto deseja sacar? R$')) total = valor ced50 = total // 50 total %= 50 ced20 = total // 20 total %= 20 ced10 = total // 10 total %= 10 ced1 = total // 1 total %= 1 if ced50 > 0: print(f'Total de {ced50} cédu...
23.681818
47
0.583493
print('-' * 28) print('{:^28}'.format('BANCO DANIMONEY')) print('-' * 28) valor = int(input('Quanto deseja sacar? R$')) total = valor ced50 = total // 50 total %= 50 ced20 = total // 20 total %= 20 ced10 = total // 10 total %= 10 ced1 = total // 1 total %= 1 if ced50 > 0: print(f'Total de {ced50} cédu...
0
0
0
86995839e72dcf5d9ed6fbe02259bbeba6817052
1,153
py
Python
api/tests/favourite/test_delete_favourite.py
nzediegwu1/favourites-backend
ad3587795d1dd44d350879364d443c43b727ca0c
[ "MIT" ]
2
2019-08-05T08:03:05.000Z
2021-10-03T16:36:31.000Z
api/tests/favourite/test_delete_favourite.py
nzediegwu1/favourites-backend
ad3587795d1dd44d350879364d443c43b727ca0c
[ "MIT" ]
8
2020-02-12T00:56:35.000Z
2022-02-10T12:12:31.000Z
api/tests/favourite/test_delete_favourite.py
nzediegwu1/favorite-things
ad3587795d1dd44d350879364d443c43b727ca0c
[ "MIT" ]
null
null
null
from rest_framework.test import APITestCase from api.models import Favourite, Category from ..mocks import jellof_rice
38.433333
77
0.729402
from rest_framework.test import APITestCase from api.models import Favourite, Category from ..mocks import jellof_rice class TestDeleteFavourite(APITestCase): favourite_id = 0 url = '' def setUp(self): new_category = Category.objects.create(name='Food') new_favourite = Favourite.objects.c...
850
160
23
d8066ff84d23a02e340f1d7149ac5a45f8ec4b63
9,082
py
Python
segment/data/ircad/ircad.py
yngtodd/segment
fb6fa3d8845cdeef362589182e699c25fdc48bfa
[ "MIT" ]
4
2018-11-09T08:16:50.000Z
2021-04-16T09:50:07.000Z
segment/data/ircad/ircad.py
yngtodd/segment
fb6fa3d8845cdeef362589182e699c25fdc48bfa
[ "MIT" ]
2
2018-09-05T20:00:32.000Z
2018-09-10T01:03:47.000Z
segment/data/ircad/ircad.py
yngtodd/segment
fb6fa3d8845cdeef362589182e699c25fdc48bfa
[ "MIT" ]
1
2018-11-09T08:16:53.000Z
2018-11-09T08:16:53.000Z
import os import warnings import torch import pydicom import numpy as np from natsort import natsorted from torch.utils.data import Dataset class Patient: """ 3D-IRCADb-01 patient. Parameters ---------- path : str Path to patient records. tissue : str, optional Type of tis...
28.030864
105
0.580379
import os import warnings import torch import pydicom import numpy as np from natsort import natsorted from torch.utils.data import Dataset class ZeroMasksError(Exception): pass class Patient: """ 3D-IRCADb-01 patient. Parameters ---------- path : str Path to patient records. ...
1,927
20
343
7e902a993d2ca95cc4ba125699adcac13ddd90ca
488
py
Python
tests/unit/peapods/pods/test_pod_factory.py
slettner/jina
4140961c62359e3acd540a6d88931665c6313824
[ "Apache-2.0" ]
null
null
null
tests/unit/peapods/pods/test_pod_factory.py
slettner/jina
4140961c62359e3acd540a6d88931665c6313824
[ "Apache-2.0" ]
null
null
null
tests/unit/peapods/pods/test_pod_factory.py
slettner/jina
4140961c62359e3acd540a6d88931665c6313824
[ "Apache-2.0" ]
null
null
null
from jina.peapods.pods.factory import PodFactory from jina.peapods.pods import Pod from jina.peapods.pods.compoundpod import CompoundPod from jina.parsers import set_pod_parser
37.538462
71
0.784836
from jina.peapods.pods.factory import PodFactory from jina.peapods.pods import Pod from jina.peapods.pods.compoundpod import CompoundPod from jina.parsers import set_pod_parser def test_pod_factory_pod(): args_no_replicas = set_pod_parser().parse_args(['--replicas', '1']) assert isinstance(PodFactory.build_po...
287
0
23
a64dc029926431c011a3836faabcd26c3d898f23
6,744
py
Python
pyapprox/tests/test_nataf_transformation.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
26
2019-12-16T02:21:15.000Z
2022-03-17T09:59:18.000Z
pyapprox/tests/test_nataf_transformation.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
9
2020-03-03T03:04:55.000Z
2021-08-19T22:50:42.000Z
pyapprox/tests/test_nataf_transformation.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
7
2020-03-02T03:49:17.000Z
2021-02-17T02:07:53.000Z
from pyapprox.nataf_transformation import * from pyapprox.probability_measure_sampling import rejection_sampling from scipy.stats import norm as normal_rv from scipy.stats import beta as beta_rv from scipy.stats import gamma as gamma_rv from functools import partial import unittest from pyapprox.utilities import get_te...
41.121951
79
0.676601
from pyapprox.nataf_transformation import * from pyapprox.probability_measure_sampling import rejection_sampling from scipy.stats import norm as normal_rv from scipy.stats import beta as beta_rv from scipy.stats import gamma as gamma_rv from functools import partial import unittest from pyapprox.utilities import get_te...
6,032
28
130
5de1432d9c58c7669d666ded7e525494abba4f8f
1,430
py
Python
speedtest.py
class-tools/Web-Class-Helper
bfcbf9a6931f7fa1e782a547bf56a608aaecd9b8
[ "MIT" ]
1
2022-03-19T06:38:39.000Z
2022-03-19T06:38:39.000Z
speedtest.py
class-tools/Web-Class-Helper
bfcbf9a6931f7fa1e782a547bf56a608aaecd9b8
[ "MIT" ]
2
2022-03-19T03:12:18.000Z
2022-03-22T05:44:24.000Z
speedtest.py
class-tools/Web-Class-Helper
bfcbf9a6931f7fa1e782a547bf56a608aaecd9b8
[ "MIT" ]
null
null
null
''' Web Class Helper Speed Testing Module 2.0.1 This source code file is under MIT License. Copyright (c) 2022 Class Tools Develop Team Contributors: jsh-jsh ren-yc ''' import psutil import sys from tkinter import * from tkinter.messagebox import showerror from time import sleep root = Tk() root.geometry('200x100') ro...
30.425532
110
0.639161
''' Web Class Helper Speed Testing Module 2.0.1 This source code file is under MIT License. Copyright (c) 2022 Class Tools Develop Team Contributors: jsh-jsh ren-yc ''' import psutil import sys from tkinter import * from tkinter.messagebox import showerror from time import sleep def errno_1(): showerror(title = "F...
809
0
69
c144aea2da65c1a76ec764fab14ae5d70088b049
9,892
py
Python
app/api/api_class.py
azumia/huatian-admin-be
2cfa118477327eef3369887c8039bdc807bcd3e2
[ "MIT" ]
null
null
null
app/api/api_class.py
azumia/huatian-admin-be
2cfa118477327eef3369887c8039bdc807bcd3e2
[ "MIT" ]
null
null
null
app/api/api_class.py
azumia/huatian-admin-be
2cfa118477327eef3369887c8039bdc807bcd3e2
[ "MIT" ]
null
null
null
import logging import random from types import CodeType, new_class import uuid import os from flask import Blueprint, jsonify, session, request, current_app from datetime import datetime, timedelta from decimal import Decimal from sqlalchemy.sql.expression import null from app.models.model import Class, StuCls, Studen...
34.830986
132
0.598868
import logging import random from types import CodeType, new_class import uuid import os from flask import Blueprint, jsonify, session, request, current_app from datetime import datetime, timedelta from decimal import Decimal from sqlalchemy.sql.expression import null from app.models.model import Class, StuCls, Studen...
0
0
0
0d7c9d84d6540a05cf97d6e841351a13d9203cee
2,877
py
Python
CartPole-v0_4_Double_Q-Learning.py
AntonSax/openai-gym
c6d636aee62c4883287bf826b72e5e6b0ddf19c0
[ "MIT" ]
null
null
null
CartPole-v0_4_Double_Q-Learning.py
AntonSax/openai-gym
c6d636aee62c4883287bf826b72e5e6b0ddf19c0
[ "MIT" ]
null
null
null
CartPole-v0_4_Double_Q-Learning.py
AntonSax/openai-gym
c6d636aee62c4883287bf826b72e5e6b0ddf19c0
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import gym #discretize the spaces pole_theta_space = np.linspace(-0.20943951, 0.20943951, 10) pole_theta_velocity_space = np.linspace(-4, 4, 10) cart_position_space = np.linspace(-2.4, 2.4, 10) cart_velocity_space = np.linspace(-4, 4, 10) if __name__ == '__main__': ...
32.325843
83
0.606882
import numpy as np import matplotlib.pyplot as plt import gym def maxAction(Q1, Q2, state): values = np.array([Q1[state,a] + Q2[state,a] for a in range(2)]) action = np.argmax(values) return action #discretize the spaces pole_theta_space = np.linspace(-0.20943951, 0.20943951, 10) pole_theta_velocity_space...
742
0
69
c8f580ad26bcba621812e6da82734455d7c3a325
555
py
Python
src/angr/radare2/serial/reverse/solve.py
Sylhare/Flag
8f056593466c8611fae0f5ed0d39c711f694f41b
[ "MIT" ]
null
null
null
src/angr/radare2/serial/reverse/solve.py
Sylhare/Flag
8f056593466c8611fae0f5ed0d39c711f694f41b
[ "MIT" ]
4
2019-02-06T16:08:56.000Z
2019-03-17T20:12:50.000Z
src/angr/radare2/serial/reverse/solve.py
Sylhare/Flag
8f056593466c8611fae0f5ed0d39c711f694f41b
[ "MIT" ]
null
null
null
import angr import sys """ Solving reserial - NOT WORKING flag: EZAV ``` python solve.py ``` """ if __name__ == "__main__": main()
17.903226
57
0.695495
import angr import sys """ Solving reserial - NOT WORKING flag: EZAV ``` python solve.py ``` """ def main(): proj = angr.Project("reserial") state = proj.factory.blank_state(addr=0x100000ea4) simgr = proj.factory.simulation_manager(state) simgr.explore(find=0x100000f30) solution_state = simgr...
392
0
23
87325a06d7aabe469b3212f8c4c6ef5766437234
1,452
py
Python
developing/misc/GUI.py
Pyro4Bot-RoboLab/PYRobot
917ec23f2abf483a29f652cd2b43e1eaa49b82be
[ "MIT" ]
null
null
null
developing/misc/GUI.py
Pyro4Bot-RoboLab/PYRobot
917ec23f2abf483a29f652cd2b43e1eaa49b82be
[ "MIT" ]
null
null
null
developing/misc/GUI.py
Pyro4Bot-RoboLab/PYRobot
917ec23f2abf483a29f652cd2b43e1eaa49b82be
[ "MIT" ]
null
null
null
from tkinter import * from misc.findrobots import findrobots Application()
29.632653
68
0.626722
from tkinter import * from misc.findrobots import findrobots class Application: def __init__(self): self.window = Tk() # Adding a menu bar self.menu_bar = Menu(self.window) # Adding the file menu in the menu bar self.file_menu = Menu(self.menu_bar, tearoff=0) sel...
1,273
-3
104
918f2179ae201870a1d333f929b08edd43bfc3a3
5,608
py
Python
otto-network-setup.py
ntc-chip-revived/otto-network-setup
81b197e37cff1a2cb0ad8b9f7345cc86d89666e2
[ "MIT" ]
null
null
null
otto-network-setup.py
ntc-chip-revived/otto-network-setup
81b197e37cff1a2cb0ad8b9f7345cc86d89666e2
[ "MIT" ]
null
null
null
otto-network-setup.py
ntc-chip-revived/otto-network-setup
81b197e37cff1a2cb0ad8b9f7345cc86d89666e2
[ "MIT" ]
1
2020-08-16T07:31:37.000Z
2020-08-16T07:31:37.000Z
#!/usr/bin/python import subprocess import bottle from bottle import route, static_file, debug, run, get, redirect from bottle import post, request, template, response import os, inspect, json, time, sys import random from threading import Thread, RLock #enable bottle debug debug(True) # WebApp route path # get dir...
29.829787
120
0.624108
#!/usr/bin/python import subprocess import bottle from bottle import route, static_file, debug, run, get, redirect from bottle import post, request, template, response import os, inspect, json, time, sys import random from threading import Thread, RLock #enable bottle debug debug(True) # WebApp route path # get dir...
3,819
0
267
7bd4c4a32fbc76e4c0e08e85eb3a4bd19e9b9733
2,745
py
Python
pycloud/pycloud/model/user.py
SEI-AMS/pycloud
62764e9d2aae280e019306e3b151b7218bf82f4d
[ "MIT" ]
14
2015-08-20T11:54:56.000Z
2018-05-23T21:07:44.000Z
pycloud/pycloud/model/user.py
SEI-TAS/pycloud
62764e9d2aae280e019306e3b151b7218bf82f4d
[ "MIT" ]
10
2015-10-17T07:33:54.000Z
2018-04-27T20:50:52.000Z
pycloud/pycloud/model/user.py
SEI-AMS/pycloud
62764e9d2aae280e019306e3b151b7218bf82f4d
[ "MIT" ]
8
2016-03-31T07:04:26.000Z
2018-04-09T18:08:10.000Z
# KVM-based Discoverable Cloudlet (KD-Cloudlet) # Copyright (c) 2015 Carnegie Mellon University. # All Rights Reserved. # # THIS SOFTWARE IS PROVIDED "AS IS," WITH NO WARRANTIES WHATSOEVER. CARNEGIE MELLON UNIVERSITY EXPRESSLY DISCLAIMS TO THE FULLEST EXTENT PERMITTEDBY LAW ALL EXPRESS, IMPLIED, AND STATUTORY WARRANT...
42.230769
344
0.530055
# KVM-based Discoverable Cloudlet (KD-Cloudlet) # Copyright (c) 2015 Carnegie Mellon University. # All Rights Reserved. # # THIS SOFTWARE IS PROVIDED "AS IS," WITH NO WARRANTIES WHATSOEVER. CARNEGIE MELLON UNIVERSITY EXPRESSLY DISCLAIMS TO THE FULLEST EXTENT PERMITTEDBY LAW ALL EXPRESS, IMPLIED, AND STATUTORY WARRANT...
334
835
22
65f108f9e80250522f0fde104b71f1f7901ed661
920
py
Python
src/pyams_file/interfaces/archive.py
Py-AMS/pyams-file
a5155791787ba38e221896e9ce7d33177ae8a05b
[ "ZPL-2.1" ]
null
null
null
src/pyams_file/interfaces/archive.py
Py-AMS/pyams-file
a5155791787ba38e221896e9ce7d33177ae8a05b
[ "ZPL-2.1" ]
null
null
null
src/pyams_file/interfaces/archive.py
Py-AMS/pyams-file
a5155791787ba38e221896e9ce7d33177ae8a05b
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> # 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. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
28.75
75
0.741304
# # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> # 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. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
0
0
0
77ad68c669e565bfa2a97c70c5bb45d9e7803da9
1,627
py
Python
bobocep/rules/predicates/bobo_predicate_callable.py
r3w0p/bobocep
5f08348e9a2c3b0f92e935429d4f265c1693d26c
[ "MIT" ]
5
2019-09-02T13:19:48.000Z
2021-07-31T23:42:06.000Z
bobocep/rules/predicates/bobo_predicate_callable.py
r3w0p/bobocep
5f08348e9a2c3b0f92e935429d4f265c1693d26c
[ "MIT" ]
null
null
null
bobocep/rules/predicates/bobo_predicate_callable.py
r3w0p/bobocep
5f08348e9a2c3b0f92e935429d4f265c1693d26c
[ "MIT" ]
2
2020-11-05T07:53:37.000Z
2021-06-06T06:48:44.000Z
from inspect import isfunction, signature, ismethod from types import MethodType from typing import Callable, List from bobocep.rules.events.bobo_event import BoboEvent from bobocep.rules.events.histories.bobo_history import BoboHistory from bobocep.rules.predicates.bobo_predicate import BoboPredicate class BoboPred...
36.977273
75
0.650891
from inspect import isfunction, signature, ismethod from types import MethodType from typing import Callable, List from bobocep.rules.events.bobo_event import BoboEvent from bobocep.rules.events.histories.bobo_history import BoboHistory from bobocep.rules.predicates.bobo_predicate import BoboPredicate class BoboPred...
731
0
54
39670e5990a61002823abc8c9d4762fcb932ab37
183
py
Python
test3.py
liubaishuo-github/peening-post-processor
61f4c2d2385469bc1e9d1b7a692b72eb6afd7f75
[ "MIT" ]
null
null
null
test3.py
liubaishuo-github/peening-post-processor
61f4c2d2385469bc1e9d1b7a692b72eb6afd7f75
[ "MIT" ]
null
null
null
test3.py
liubaishuo-github/peening-post-processor
61f4c2d2385469bc1e9d1b7a692b72eb6afd7f75
[ "MIT" ]
null
null
null
import rotation_matrix x_apt = 30 y_apt = -7.6 z_apt = 22 ii = -0.5 jj = -0.6 kk = 0.33 last_b = 30.234 rotation_matrix.transf(x_apt, y_apt, z_apt, ii, jj, kk, last_b)
14.076923
64
0.622951
import rotation_matrix x_apt = 30 y_apt = -7.6 z_apt = 22 ii = -0.5 jj = -0.6 kk = 0.33 last_b = 30.234 rotation_matrix.transf(x_apt, y_apt, z_apt, ii, jj, kk, last_b)
0
0
0
578371437081a0f33464e1315a35e142ac8ff31c
1,681
py
Python
scripts/ci/copyright_check.py
danielsn/rmc
8b23f12502cbb1b4d0458b2bb4d47e0312dc7a5d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
scripts/ci/copyright_check.py
danielsn/rmc
8b23f12502cbb1b4d0458b2bb4d47e0312dc7a5d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
scripts/ci/copyright_check.py
danielsn/rmc
8b23f12502cbb1b4d0458b2bb4d47e0312dc7a5d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-08-21T23:39:31.000Z
2021-08-21T23:39:31.000Z
#!/usr/bin/python3 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 OR MIT import re import sys if __name__ == "__main__": filenames = sys.argv[1:] checks = [copyright_check(fname) for fname in filenames] for i in range(len(filenames)): ...
32.326923
100
0.657347
#!/usr/bin/python3 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 OR MIT import re import sys def copyright_check(filename): fo = open(filename) lines = fo.readlines() # The check is failed if the file is empty if len(lines) == 0: ret...
1,159
0
23
bc605bea67a9e2a0931b942e465f1433ea6ca077
3,696
py
Python
secure_socket.py
arthurdais/mimic-socks
dac3f1ad9255ce306662b30ee22c262e92718264
[ "MIT" ]
null
null
null
secure_socket.py
arthurdais/mimic-socks
dac3f1ad9255ce306662b30ee22c262e92718264
[ "MIT" ]
null
null
null
secure_socket.py
arthurdais/mimic-socks
dac3f1ad9255ce306662b30ee22c262e92718264
[ "MIT" ]
null
null
null
from random import randint, sample, choice import string from Crypto.Cipher import AES import struct import select import logging from socket_bytes_producer import SocketBytesProducer ENCODING = 'utf-8' LEN_COLUMN_LEN = 6 iv_param = 'This is an IV456' CRYPTO_INPUT_LEN_UNIT = 16 CIPHER_LEN_UNIT = 16 # aes密文长度为16的倍数 MA...
35.2
105
0.67289
from random import randint, sample, choice import string from Crypto.Cipher import AES import struct import select import logging from socket_bytes_producer import SocketBytesProducer ENCODING = 'utf-8' LEN_COLUMN_LEN = 6 iv_param = 'This is an IV456' CRYPTO_INPUT_LEN_UNIT = 16 CIPHER_LEN_UNIT = 16 # aes密文长度为16的倍数 MA...
2,553
-2
291
e9540224efd859e48f9e719325bea31c54c000c4
920
py
Python
tests/test_localapi.py
Mike-de-bike/python-airzone
8e87b15f1690075d0dcbad3012d0910706dedab6
[ "MIT" ]
null
null
null
tests/test_localapi.py
Mike-de-bike/python-airzone
8e87b15f1690075d0dcbad3012d0910706dedab6
[ "MIT" ]
null
null
null
tests/test_localapi.py
Mike-de-bike/python-airzone
8e87b15f1690075d0dcbad3012d0910706dedab6
[ "MIT" ]
null
null
null
"""Local Api tests.""" import json import os import pytest # type: ignore import requests_mock # type: ignore from airzone.localapi import Machine, OperationMode, Speed THIS_DIR = os.path.dirname(os.path.abspath(__file__)) response_test_path = os.path.join(THIS_DIR, "data/response.json") @pytest.fixture def mock...
30.666667
73
0.715217
"""Local Api tests.""" import json import os import pytest # type: ignore import requests_mock # type: ignore from airzone.localapi import Machine, OperationMode, Speed THIS_DIR = os.path.dirname(os.path.abspath(__file__)) response_test_path = os.path.join(THIS_DIR, "data/response.json") @pytest.fixture def mock...
0
0
0
ac3518fe88dc81fc044e8568d8c81557665448b9
10,721
py
Python
mla/mla/injection.py
jasonfan1997/umd_icecube_analysis_tutorial
50bf3af27f81d719953ac225f199e733b5c0bddf
[ "Apache-2.0" ]
null
null
null
mla/mla/injection.py
jasonfan1997/umd_icecube_analysis_tutorial
50bf3af27f81d719953ac225f199e733b5c0bddf
[ "Apache-2.0" ]
null
null
null
mla/mla/injection.py
jasonfan1997/umd_icecube_analysis_tutorial
50bf3af27f81d719953ac225f199e733b5c0bddf
[ "Apache-2.0" ]
null
null
null
'''Spectral Modelling''' from __future__ import print_function, division import numpy as np import numpy.lib.recfunctions as rf from mla.spectral import * from mla.timing import * import scipy.stats from mla import tools class PSinjector(object): r'''injector of point source''' def __init__(self, spectrum, mc...
46.613043
150
0.557317
'''Spectral Modelling''' from __future__ import print_function, division import numpy as np import numpy.lib.recfunctions as rf from mla.spectral import * from mla.timing import * import scipy.stats from mla import tools class PSinjector(object): r'''injector of point source''' def __init__(self, spectrum, mc...
0
0
0
87bd75ce94ba637a8d92c812bb8c0ba33947dd4f
9,941
py
Python
ptstructure/layout/ptppyolov2/ppyolov2_layout.py
Amanda-Barbara/PaddleOCR2Pytorch
7f2c85f23b13981a48a37cb90160dcd69cf21260
[ "Apache-2.0" ]
null
null
null
ptstructure/layout/ptppyolov2/ppyolov2_layout.py
Amanda-Barbara/PaddleOCR2Pytorch
7f2c85f23b13981a48a37cb90160dcd69cf21260
[ "Apache-2.0" ]
null
null
null
ptstructure/layout/ptppyolov2/ppyolov2_layout.py
Amanda-Barbara/PaddleOCR2Pytorch
7f2c85f23b13981a48a37cb90160dcd69cf21260
[ "Apache-2.0" ]
null
null
null
import os, sys import numpy as np import cv2 import torch import torch.nn as nn from .ppyolov2_base import PPYOLOv2Base from .utils import Decode from .pt_utils import yolo_box, matrix_nms ALL_CLASSES_PubLayNet = [ 'Text', 'Title', 'List', 'Table', 'Figure', ] # PubLayNet ALL_CLASSES_TableBank = ['Tabl...
37.093284
117
0.578916
import os, sys import numpy as np import cv2 import torch import torch.nn as nn from .ppyolov2_base import PPYOLOv2Base from .utils import Decode from .pt_utils import yolo_box, matrix_nms ALL_CLASSES_PubLayNet = [ 'Text', 'Title', 'List', 'Table', 'Figure', ] # PubLayNet ALL_CLASSES_TableBank = ['Tabl...
9,141
121
342
8a01297d9b6592445047efa7c1c7e3649142cb0a
1,013
py
Python
caixeiro_viajante/main.py
danielicapui/topicos-uern
99fc93855c234c9c31704468962dd95dc081f5e6
[ "MIT" ]
null
null
null
caixeiro_viajante/main.py
danielicapui/topicos-uern
99fc93855c234c9c31704468962dd95dc081f5e6
[ "MIT" ]
null
null
null
caixeiro_viajante/main.py
danielicapui/topicos-uern
99fc93855c234c9c31704468962dd95dc081f5e6
[ "MIT" ]
null
null
null
import sys from heuristica import * from adapter import Adapter from guloso import rotaMinima if __name__=='__main__': main(sys.argv)
37.518519
88
0.731491
import sys from heuristica import * from adapter import Adapter from guloso import rotaMinima def mostrar_guloso(matriz): global rota_inicial,custo_inicial rota_inicial,custo_inicial=Adapter.adaptar_rota(Adapter.adaptar_matriz(matriz,0,-1)) print("Algoritmo guloso") print(f'Custo total:{custo_inicial} e...
810
0
66
e1297a087222f0f704e13f9d48fcb104c4181dad
44
py
Python
pmaf/phylo/builders/_fasttree2/__init__.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-07-02T06:24:17.000Z
2021-07-02T06:24:17.000Z
pmaf/phylo/builders/_fasttree2/__init__.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-06-28T12:02:46.000Z
2021-06-28T12:02:46.000Z
pmaf/phylo/builders/_fasttree2/__init__.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
null
null
null
from ._fasttree2 import TreeBuilderFastTree2
44
44
0.909091
from ._fasttree2 import TreeBuilderFastTree2
0
0
0
fabae91abab8c362ced97a0cce43d8dd55da6c70
1,524
py
Python
archive/production/load_cabi_tracker.py
georgetown-analytics/DC-Bikeshare
9f5a6a3256cff15a29f0dca6e9a9d8098ab2df28
[ "MIT" ]
11
2018-07-01T16:43:05.000Z
2020-07-17T19:08:16.000Z
archive/production/load_cabi_tracker.py
noahnewberger/Bikeshare-DC
42676654d103cdaddfb76db76d1eece533251261
[ "MIT" ]
5
2021-02-08T20:21:12.000Z
2021-12-13T19:47:04.000Z
archive/production/load_cabi_tracker.py
noahnewberger/Bikeshare-DC
42676654d103cdaddfb76db76d1eece533251261
[ "MIT" ]
5
2018-10-05T19:54:20.000Z
2020-10-27T11:54:09.000Z
import requests import pandas as pd import numpy as np import io from datetime import date, timedelta from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive import zipfile gauth = GoogleAuth() gauth.LocalWebserverAuth() # Creates local webserver and auto handles authentication. drive = GoogleDrive...
39.076923
125
0.701444
import requests import pandas as pd import numpy as np import io from datetime import date, timedelta from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive import zipfile gauth = GoogleAuth() gauth.LocalWebserverAuth() # Creates local webserver and auto handles authentication. drive = GoogleDrive...
0
0
0
dd4601cc36a9f085dd1ccaa2f6d3429ddaa23a3b
215
py
Python
ege/prog_task_list.py
dluschan/olymp
dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7
[ "MIT" ]
null
null
null
ege/prog_task_list.py
dluschan/olymp
dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7
[ "MIT" ]
null
null
null
ege/prog_task_list.py
dluschan/olymp
dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7
[ "MIT" ]
1
2018-09-14T18:50:48.000Z
2018-09-14T18:50:48.000Z
task = [[i + 1, 0] for i in range(12)] for i in range(int(input())): task[int(input()) - 1][1] += 1 for i, t in sorted(filter(lambda t: t[1] != 0, task), key = lambda x: x[1], reverse = True): print(i, t)
26.875
92
0.544186
task = [[i + 1, 0] for i in range(12)] for i in range(int(input())): task[int(input()) - 1][1] += 1 for i, t in sorted(filter(lambda t: t[1] != 0, task), key = lambda x: x[1], reverse = True): print(i, t)
0
0
0
fada4fdbfd7d89eacbc57838d062c8af684571ce
8,615
py
Python
os_charms_tools/rendered_bundle.py
n-pochet/openstack-charms-tools
b21e2e92f7f628e554c07237117f8ab7ff7c8da4
[ "Apache-2.0" ]
null
null
null
os_charms_tools/rendered_bundle.py
n-pochet/openstack-charms-tools
b21e2e92f7f628e554c07237117f8ab7ff7c8da4
[ "Apache-2.0" ]
null
null
null
os_charms_tools/rendered_bundle.py
n-pochet/openstack-charms-tools
b21e2e92f7f628e554c07237117f8ab7ff7c8da4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2017 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.504237
79
0.599304
#!/usr/bin/env python3 # # Copyright 2017 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
6,750
27
558
807fc9cdbb333eb0f7fb93e6c9c0fc909c2c9f2a
1,522
py
Python
ALGO/sorting/insertion_sort.py
jainrocky/LORD
15c923129f6d5e024f6606a7d6005adfc9f9af90
[ "MIT" ]
2
2020-09-24T21:24:26.000Z
2021-11-03T09:15:40.000Z
ALGO/sorting/insertion_sort.py
jainrocky/LORD
15c923129f6d5e024f6606a7d6005adfc9f9af90
[ "MIT" ]
4
2021-06-08T22:23:44.000Z
2022-03-12T00:48:19.000Z
ALGO/sorting/insertion_sort.py
jainrocky/LORD
15c923129f6d5e024f6606a7d6005adfc9f9af90
[ "MIT" ]
1
2021-02-22T06:11:38.000Z
2021-02-22T06:11:38.000Z
import os, sys, random, warnings sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'utils')) from sorting_visualise import vis if __name__=='__main__': n = 100 item=[None]*n for i in range(n): item[i] = random.random()*100 insertion_sort(item, begin=0, end=len(item...
29.269231
118
0.531537
import os, sys, random, warnings sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'utils')) from sorting_visualise import vis def insertion_sort(item, begin, end, visualise=None, condition=None): if condition is None: condition=lambda first, second: first <= second if visualise: ...
792
0
23
132cfde7e22480231cf035ccec9d27bf1bb5fe86
2,015
py
Python
tests/test_sensor.py
xxoolm/integration
b4ae25f42ca78ec671354972f53871e4d5b66972
[ "MIT" ]
null
null
null
tests/test_sensor.py
xxoolm/integration
b4ae25f42ca78ec671354972f53871e4d5b66972
[ "MIT" ]
45
2021-07-21T13:32:44.000Z
2022-03-28T06:15:40.000Z
tests/test_sensor.py
xxoolm/integration
b4ae25f42ca78ec671354972f53871e4d5b66972
[ "MIT" ]
null
null
null
"""HACS Sensor Test Suite.""" # pylint: disable=missing-docstring import pytest from custom_components.hacs.repositories import HacsIntegrationRepository from custom_components.hacs.sensor import ( HACSSensor, async_setup_entry, async_setup_platform, ) @pytest.mark.asyncio @pytest.mark.asyncio @pyt...
30.530303
73
0.737469
"""HACS Sensor Test Suite.""" # pylint: disable=missing-docstring import pytest from custom_components.hacs.repositories import HacsIntegrationRepository from custom_components.hacs.sensor import ( HACSSensor, async_setup_entry, async_setup_platform, ) def mock_setup(entities): # pylint: disable=unused-...
1,566
0
112
5d97bde6d9305d921ebf4e627eed4c3a4c4333e1
639
py
Python
plus_one.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
plus_one.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
plus_one.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
''' Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most significant digit is at the head of the list, and each element in the array contain a single digit. You may assume the integer does not contain any leading zero, except the nu...
25.56
89
0.615023
''' Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most significant digit is at the head of the list, and each element in the array contain a single digit. You may assume the integer does not contain any leading zero, except the nu...
255
-6
49
8a9e2d4ee44dbcf7370602e45acab745d4b854a9
663
py
Python
Python/src/sort/simple/insertion_sort.py
mnk400/INFO6205
1a30679b9a7ebe8ec6b22b385091b24aa5a67720
[ "Apache-2.0" ]
null
null
null
Python/src/sort/simple/insertion_sort.py
mnk400/INFO6205
1a30679b9a7ebe8ec6b22b385091b24aa5a67720
[ "Apache-2.0" ]
null
null
null
Python/src/sort/simple/insertion_sort.py
mnk400/INFO6205
1a30679b9a7ebe8ec6b22b385091b24aa5a67720
[ "Apache-2.0" ]
null
null
null
from typing import List from sort.simple.helper import Helper from sort.simple.sort import Sort from util.generic_type import C
27.625
64
0.574661
from typing import List from sort.simple.helper import Helper from sort.simple.sort import Sort from util.generic_type import C class InsertionSort(Sort[C]): def __init__(self, helper: Helper[C] = None): if helper is None: helper = Helper[C]("InsertionSort") self.helper =...
394
8
111
9fb444e98e90ad70258cea8cacd863260f84e73e
6,674
py
Python
post_process.py
kslam07/RWA3-UA
b786659783901196554bd1b93f2c790f4b9a574b
[ "MIT" ]
null
null
null
post_process.py
kslam07/RWA3-UA
b786659783901196554bd1b93f2c790f4b9a574b
[ "MIT" ]
null
null
null
post_process.py
kslam07/RWA3-UA
b786659783901196554bd1b93f2c790f4b9a574b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import numba as nb @nb.njit def lumpvor2d(xcol, zcol, xvor, zvor, circvor=1): """ Compute the velocity at an arbitrary collocation point (xcol, zcol) due to vortex element of circulation circvor, placed at (xvor, zvor). :param xcol: x-coordinate of t...
38.356322
121
0.577465
import numpy as np import matplotlib.pyplot as plt import numba as nb @nb.njit def lumpvor2d(xcol, zcol, xvor, zvor, circvor=1): """ Compute the velocity at an arbitrary collocation point (xcol, zcol) due to vortex element of circulation circvor, placed at (xvor, zvor). :param xcol: x-coordinate of t...
2,057
0
44
ea8e9e664d87509345ade7784b3a2e9417cf780f
1,801
py
Python
src/utils/DisjointClassDetector.py
IDLabResearch/lovstats
dd33183574eed692ee89059ff3c6494160dfb8a9
[ "MIT" ]
1
2018-12-11T13:57:38.000Z
2018-12-11T13:57:38.000Z
src/utils/DisjointClassDetector.py
IDLabResearch/lovstats
dd33183574eed692ee89059ff3c6494160dfb8a9
[ "MIT" ]
null
null
null
src/utils/DisjointClassDetector.py
IDLabResearch/lovstats
dd33183574eed692ee89059ff3c6494160dfb8a9
[ "MIT" ]
null
null
null
from RestrictionTypeDetector import RestrictionTypeDetector from RestrictionTypeDetector import TYPE_INT from RestrictionTypeDetector import TYPE_FLOAT from RestrictionTypeDetector import MEASURE_OCCURRENCE class DisjointClassDetector(RestrictionTypeDetector): """ This class serves as interface for all Restri...
39.152174
101
0.714603
from RestrictionTypeDetector import RestrictionTypeDetector from RestrictionTypeDetector import TYPE_INT from RestrictionTypeDetector import TYPE_FLOAT from RestrictionTypeDetector import MEASURE_OCCURRENCE class DisjointClassDetector(RestrictionTypeDetector): """ This class serves as interface for all Restri...
965
0
215
eca75df50474ce2c977256304f0c599943eb4269
494
py
Python
signatures/decode.py
CybercentreCanada/assemblyline-service-jsjaws
957f1d9de5d0446286ad728dc4d64b94ea0499e8
[ "MIT" ]
null
null
null
signatures/decode.py
CybercentreCanada/assemblyline-service-jsjaws
957f1d9de5d0446286ad728dc4d64b94ea0499e8
[ "MIT" ]
null
null
null
signatures/decode.py
CybercentreCanada/assemblyline-service-jsjaws
957f1d9de5d0446286ad728dc4d64b94ea0499e8
[ "MIT" ]
null
null
null
""" These are all of the signatures related to decoding """ from signatures.abstracts import Signature
26
82
0.607287
""" These are all of the signatures related to decoding """ from signatures.abstracts import Signature class Unescape(Signature): def __init__(self): super().__init__( heuristic_id=3, name="unescape", description="JavaScript uses unescape() to decode an encod...
299
5
81
b7c6847834a869b008cf6fe82b0c09997aa5ab13
1,324
py
Python
fapws2/log.py
william-os4y/fapws2
5752af742b763517ce0a52d0f0c00b40b186edf8
[ "MIT" ]
2
2016-05-08T16:02:32.000Z
2018-02-17T15:03:09.000Z
fapws2/log.py
william-os4y/fapws2
5752af742b763517ce0a52d0f0c00b40b186edf8
[ "MIT" ]
null
null
null
fapws2/log.py
william-os4y/fapws2
5752af742b763517ce0a52d0f0c00b40b186edf8
[ "MIT" ]
null
null
null
# stdlib imports import sys import time # FAPWS imports import config import errors access_logfid = sys.stdout error_logfid = sys.stdout def setup(): '''Update some global variables based on command-line configuration. ''' try: if config.conf['error_log']: error_logfid...
32.292683
135
0.570997
# stdlib imports import sys import time # FAPWS imports import config import errors access_logfid = sys.stdout error_logfid = sys.stdout def error(data): ts = time.strftime('%d/%b/%Y:%H:%M:%S', time.gmtime()) error_logfid.write("%s: %s\n" % (ts, data)) error_logfid.flush() def access(ip,...
415
0
50
3474daf56431eddd7ac31e9b804091177430700b
11,372
py
Python
SC101 - Github/Class&Object (Campy, Mouse Event)/my_drawing.py
huangichen97/sc-projects
ddbbe32f68d8257027973520efd0282ee4c79513
[ "MIT" ]
1
2020-12-22T15:28:28.000Z
2020-12-22T15:28:28.000Z
SC101 - Github/Class&Object (Campy, Mouse Event)/my_drawing.py
huangichen97/sc-projects
ddbbe32f68d8257027973520efd0282ee4c79513
[ "MIT" ]
null
null
null
SC101 - Github/Class&Object (Campy, Mouse Event)/my_drawing.py
huangichen97/sc-projects
ddbbe32f68d8257027973520efd0282ee4c79513
[ "MIT" ]
null
null
null
""" File: my_drawing.py Name: Ethan Huang ---------------------- TODO: This program is a drawing I create for the drawing competition of StanCode101 It builds an interface from the background to the front layer, mimicking the "Kahoot" game to ask users to choose the real Karel. """ from campy.graphics.gobjects import ...
28.079012
77
0.620735
""" File: my_drawing.py Name: Ethan Huang ---------------------- TODO: This program is a drawing I create for the drawing competition of StanCode101 It builds an interface from the background to the front layer, mimicking the "Kahoot" game to ask users to choose the real Karel. """ from campy.graphics.gobjects import ...
0
0
0
71f274344498c9a16419b5175e0001414a11003b
3,813
py
Python
dotsandboxes/DotsAndBoxesGame.py
user01/alpha-zero-general
7edf122015e02a2e78168ac9f6eaa5c5e20600cc
[ "MIT" ]
2,836
2017-12-18T02:11:38.000Z
2022-03-30T09:07:15.000Z
dotsandboxes/DotsAndBoxesGame.py
user01/alpha-zero-general
7edf122015e02a2e78168ac9f6eaa5c5e20600cc
[ "MIT" ]
212
2017-12-28T06:47:57.000Z
2022-01-06T20:22:26.000Z
dotsandboxes/DotsAndBoxesGame.py
user01/alpha-zero-general
7edf122015e02a2e78168ac9f6eaa5c5e20600cc
[ "MIT" ]
892
2017-12-18T08:56:45.000Z
2022-03-29T23:00:45.000Z
import sys import numpy as np sys.path.append('..') from Game import Game from .DotsAndBoxesLogic import Board
30.261905
109
0.521637
import sys import numpy as np sys.path.append('..') from Game import Game from .DotsAndBoxesLogic import Board class DotsAndBoxesGame(Game): def __init__(self, n=3): self.n = n def getInitBoard(self): # return initial board (numpy board) b = Board(self.n) return np.array(b.pi...
3,356
322
23
84a3866d9a00f4da80684854da25b223b27e4b1a
2,323
py
Python
Week6/convertCSV2JSON.py
SiebrenKazemier/DataVisualisatie
5ab2f2c2c2722fb03f33387e6be41a62a4f7f286
[ "BSD-3-Clause" ]
null
null
null
Week6/convertCSV2JSON.py
SiebrenKazemier/DataVisualisatie
5ab2f2c2c2722fb03f33387e6be41a62a4f7f286
[ "BSD-3-Clause" ]
null
null
null
Week6/convertCSV2JSON.py
SiebrenKazemier/DataVisualisatie
5ab2f2c2c2722fb03f33387e6be41a62a4f7f286
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # Name: Siebren Kazemier # Student number: 12516597 # School: Uva # Project: Assignment week 4, Converting CSV file to JSON ############################################################################### import pandas as pd # csv_file = r...
37.467742
79
0.63969
############################################################################### # Name: Siebren Kazemier # Student number: 12516597 # School: Uva # Project: Assignment week 4, Converting CSV file to JSON ############################################################################### import pandas as pd # csv_file = r...
1,776
0
92
370707de6961e7607ee8a0add86dcd57ccffa2b8
4,395
py
Python
A*_8_Puzzle/AEstrelaImp.py
JP-Clemente/Programming_Projects
68ff8dccbf6bf70461cc4865840f6a187dadcb5e
[ "MIT" ]
1
2020-11-29T08:06:21.000Z
2020-11-29T08:06:21.000Z
A*_8_Puzzle/AEstrelaImp.py
JP-Clemente/College_Projects
94478657182e3dbf6ffd0fa425159d857f59a684
[ "MIT" ]
null
null
null
A*_8_Puzzle/AEstrelaImp.py
JP-Clemente/College_Projects
94478657182e3dbf6ffd0fa425159d857f59a684
[ "MIT" ]
null
null
null
from Posicao import Posicao from AEstrela import AEstrela from QuebraCabeca import QuebraCabeca from QuebraCabecaImp import QuebraCabecaImp import math import queue import heapq from random import gammavariate, shuffle
57.077922
204
0.665301
from Posicao import Posicao from AEstrela import AEstrela from QuebraCabeca import QuebraCabeca from QuebraCabecaImp import QuebraCabecaImp import math import queue import heapq from random import gammavariate, shuffle def manhattan(dest_i, dest_j, gab_origin, current_table): curr_i = 0 curr_j = 0 ...
4,122
7
96
4f1f7b37b6c52228a8018893f575ac237bcd3e04
343
py
Python
40 Algorithm challenge/challenge 11.py
T0dCNg/All-In-One
f86d7f46d3a4fafde5c5d087cffe1e3414870c48
[ "Unlicense" ]
1
2022-01-27T16:28:51.000Z
2022-01-27T16:28:51.000Z
40 Algorithm challenge/challenge 11.py
T0dCNg/All-In-One
f86d7f46d3a4fafde5c5d087cffe1e3414870c48
[ "Unlicense" ]
null
null
null
40 Algorithm challenge/challenge 11.py
T0dCNg/All-In-One
f86d7f46d3a4fafde5c5d087cffe1e3414870c48
[ "Unlicense" ]
null
null
null
#Challenge 11 #The program asks the user to input two numbers. #It will then outputthe larger of these two numbers. num1 = int(input("please enter a number: ")) num2 = int(input("please enter a second number: ")) if num1 > num2: print("Num1 is bigger") elif num2 > num1: print("Num2 is bigger") else: pr...
24.5
53
0.682216
#Challenge 11 #The program asks the user to input two numbers. #It will then outputthe larger of these two numbers. num1 = int(input("please enter a number: ")) num2 = int(input("please enter a second number: ")) if num1 > num2: print("Num1 is bigger") elif num2 > num1: print("Num2 is bigger") else: pr...
0
0
0
80297a64130b389ca1ae389aada77e0fa7b2f586
16,078
py
Python
relogic/textkit/semparse/sql/crawled_sql/sql_preprocess.py
Impavidity/data_preprocessing
47ebbf69fa5d853441e517bb8d4919ceb8552a06
[ "MIT" ]
null
null
null
relogic/textkit/semparse/sql/crawled_sql/sql_preprocess.py
Impavidity/data_preprocessing
47ebbf69fa5d853441e517bb8d4919ceb8552a06
[ "MIT" ]
null
null
null
relogic/textkit/semparse/sql/crawled_sql/sql_preprocess.py
Impavidity/data_preprocessing
47ebbf69fa5d853441e517bb8d4919ceb8552a06
[ "MIT" ]
null
null
null
from relogic.textkit.semparse.sql.crawled_sql.sql_helper import get_query_tables, get_query_columns, get_query_tokens, generalize_sql from relogic.textkit.semparse.sql.crawled_sql.verify_sequence import verify import sqlparse import copy from moz_sql_parser import format, parse import re import json if __name__ == "...
64.830645
2,079
0.697972
from relogic.textkit.semparse.sql.crawled_sql.sql_helper import get_query_tables, get_query_columns, get_query_tokens, generalize_sql from relogic.textkit.semparse.sql.crawled_sql.verify_sequence import verify import sqlparse import copy from moz_sql_parser import format, parse import re import json def extract_tables...
8,622
0
276
6415818612b9b00b2f69a98c4cba802c114d26cb
5,055
py
Python
extune/sacred/experiment.py
imsb-uke/podometric_u_net
a33afcc186d618889df73c7ab2941dfbb63574ac
[ "MIT" ]
null
null
null
extune/sacred/experiment.py
imsb-uke/podometric_u_net
a33afcc186d618889df73c7ab2941dfbb63574ac
[ "MIT" ]
null
null
null
extune/sacred/experiment.py
imsb-uke/podometric_u_net
a33afcc186d618889df73c7ab2941dfbb63574ac
[ "MIT" ]
null
null
null
import os # from extune.settings import EXPERIMENTS_DIR, MODULE_DIR from extune.sacred.utils import config_logger # from extune.model import model_fn, train_fn, input_fn from extune.sacred.ingredients import data_ingredient from network.train_network import train_network # from network.config import Config from ten...
29.561404
91
0.692582
import os # from extune.settings import EXPERIMENTS_DIR, MODULE_DIR from extune.sacred.utils import config_logger # from extune.model import model_fn, train_fn, input_fn from extune.sacred.ingredients import data_ingredient from network.train_network import train_network # from network.config import Config from ten...
948
0
48
1fe466362a9fb1ac0f05be41a151b53e7ebf60f9
1,063
py
Python
check_db_connection.py
dvkruchinin/python_tr
eaa901759e78f6036491556f71f9f19d5830bd98
[ "MIT" ]
null
null
null
check_db_connection.py
dvkruchinin/python_tr
eaa901759e78f6036491556f71f9f19d5830bd98
[ "MIT" ]
null
null
null
check_db_connection.py
dvkruchinin/python_tr
eaa901759e78f6036491556f71f9f19d5830bd98
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 """ Name : check_db_connection.py Author : Dmitry Kruchinin Date : 7/1/2021 Desc: """ from fixture.orm import ORMFixture from model.group import Group db = ORMFixture(host="localhost", database="addressbook", user="root", password="") try: groups = db.get_groups_lis...
27.973684
83
0.677328
#!/usr/bin/env python # coding:utf-8 """ Name : check_db_connection.py Author : Dmitry Kruchinin Date : 7/1/2021 Desc: """ from fixture.orm import ORMFixture from model.group import Group db = ORMFixture(host="localhost", database="addressbook", user="root", password="") try: groups = db.get_groups_lis...
0
0
0
f226f5b29cea6e5805d44621cabbfa69795b3ba2
69,288
py
Python
pycti/api/opencti_api_client.py
rhaist/client-python
680e656177736e181b5b39a3083c9c8e96cafdd9
[ "Apache-2.0" ]
null
null
null
pycti/api/opencti_api_client.py
rhaist/client-python
680e656177736e181b5b39a3083c9c8e96cafdd9
[ "Apache-2.0" ]
null
null
null
pycti/api/opencti_api_client.py
rhaist/client-python
680e656177736e181b5b39a3083c9c8e96cafdd9
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import io import magic from typing import List from deprecated import deprecated import requests import urllib3 import datetime import dateutil.parser import json import logging from pycti.api.opencti_api_connector import OpenCTIApiConnector from pycti.api.opencti_api_job import OpenCTIApiJob from py...
35.243133
111
0.5449
# coding: utf-8 import io import magic from typing import List from deprecated import deprecated import requests import urllib3 import datetime import dateutil.parser import json import logging from pycti.api.opencti_api_connector import OpenCTIApiConnector from pycti.api.opencti_api_job import OpenCTIApiJob from py...
56,195
-10
2,790
b9e5b7fec5a918cefe1740a7563f8a590cb4003c
11,039
py
Python
antelope_core/entities/entities.py
AntelopeLCA/core
ee40685add52ba41a462e2147fe8c377c6ba2a80
[ "BSD-3-Clause" ]
1
2021-10-06T18:42:49.000Z
2021-10-06T18:42:49.000Z
antelope_core/entities/entities.py
AntelopeLCA/core
ee40685add52ba41a462e2147fe8c377c6ba2a80
[ "BSD-3-Clause" ]
6
2021-01-09T08:56:46.000Z
2022-03-29T08:26:21.000Z
antelope_core/entities/entities.py
AntelopeLCA/core
ee40685add52ba41a462e2147fe8c377c6ba2a80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, unicode_literals import uuid from itertools import chain from numbers import Number from antelope import CatalogRef, BaseEntity, PropertyExists from synonym_dict import LowerDict entity_types = ('process', 'flow', 'quantity', 'fragment') entity_refs = { 'process': 'exchang...
32.372434
120
0.557206
from __future__ import print_function, unicode_literals import uuid from itertools import chain from numbers import Number from antelope import CatalogRef, BaseEntity, PropertyExists from synonym_dict import LowerDict entity_types = ('process', 'flow', 'quantity', 'fragment') entity_refs = { 'process': 'exchang...
7,129
53
762
e2369baae6d9b2ff208aa85493da6685f93ecb20
15,581
py
Python
mycv/datasets/mycocoeval.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
mycv/datasets/mycocoeval.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
mycv/datasets/mycocoeval.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
import time import datetime import copy import json from collections import defaultdict import numpy as np from pycocotools.cocoeval import COCOeval class myCOCOeval(COCOeval): ''' Make COCOeval more flexible ''' def _prepare(self): ''' Prepare ._gts and ._dts for evaluation based on ...
44.13881
103
0.512612
import time import datetime import copy import json from collections import defaultdict import numpy as np from pycocotools.cocoeval import COCOeval class myCOCOeval(COCOeval): ''' Make COCOeval more flexible ''' def __init__(self, gt_json, dt_json, iouType='segm', verbose=True): if not iouTyp...
6,123
0
253
c60c5448080cae4d43e5f8c21e210d3a8200a27e
815
py
Python
03. G2EGM/last_period.py
alanlujan91/ConsumptionSavingNotebooks
4455500d17fed4dd1f3f4844aeb5dd5d3b89903f
[ "MIT" ]
20
2019-03-09T02:08:49.000Z
2022-03-28T15:56:04.000Z
03. G2EGM/last_period.py
alanlujan91/ConsumptionSavingNotebooks
4455500d17fed4dd1f3f4844aeb5dd5d3b89903f
[ "MIT" ]
1
2019-06-03T18:33:44.000Z
2019-07-02T13:51:21.000Z
03. G2EGM/last_period.py
alanlujan91/ConsumptionSavingNotebooks
4455500d17fed4dd1f3f4844aeb5dd5d3b89903f
[ "MIT" ]
34
2019-02-26T19:27:37.000Z
2021-12-27T09:34:04.000Z
import numpy as np from numba import njit import utility # consav from consav import linear_interp # for linear interpolation @njit
20.897436
59
0.516564
import numpy as np from numba import njit import utility # consav from consav import linear_interp # for linear interpolation @njit def solve(sol,par,G2EGM=True): # unpack t = par.T-1 c = sol.c[t] d = sol.d[t] inv_v = sol.inv_v[t] inv_vm = sol.inv_vm[t] if G2EGM: inv_vn = sol.inv...
659
0
22
0b29e37527968b31aab01a478ce0275081e99f07
25,117
py
Python
cinder/volume/drivers/datera/datera_iscsi.py
2020human/cinder
04528318848620e4ce2639ea2dd5323783dc7a1f
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/datera/datera_iscsi.py
2020human/cinder
04528318848620e4ce2639ea2dd5323783dc7a1f
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/datera/datera_iscsi.py
2020human/cinder
04528318848620e4ce2639ea2dd5323783dc7a1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Datera # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
33.941892
79
0.54708
# Copyright 2016 Datera # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
6,039
0
476
a6313dc85a1cd2ba4443016989accd28ddc50e99
260
py
Python
dd_1/Part 1/Section 09 - Modules, Packages and Namespaces/02 - How Python Imports Modules/example2/main.py
Rebell-Leader/bg
616a40286fe1d34db2916762c477676ed8067cdb
[ "Apache-2.0" ]
3,266
2017-08-06T16:51:46.000Z
2022-03-30T07:34:24.000Z
python-tuts/0-beginner/8-Modules_Packages_Namespaces/02 - How Python imports Modules/Eg.2/main.py
amcs1729/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
6581190cf3623a0217f0babf437c3e519d19e64a
[ "Apache-2.0" ]
150
2017-08-28T14:59:36.000Z
2022-03-11T23:21:35.000Z
python-tuts/0-beginner/8-Modules_Packages_Namespaces/02 - How Python imports Modules/Eg.2/main.py
amcs1729/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
6581190cf3623a0217f0babf437c3e519d19e64a
[ "Apache-2.0" ]
1,449
2017-08-06T17:40:59.000Z
2022-03-31T12:03:24.000Z
# main.py import module1 # even though test was added to sys.modules # in module1, we can still access it from here import test print(test()) # don't do this! It's a bad hack to illustrate how import looks # in sys.modules for the symbol we are importing
18.571429
63
0.738462
# main.py import module1 # even though test was added to sys.modules # in module1, we can still access it from here import test print(test()) # don't do this! It's a bad hack to illustrate how import looks # in sys.modules for the symbol we are importing
0
0
0
33bb41922d2ff835e00c2580b69e6a7ca85a1620
3,172
py
Python
src/django_ftl/templatetags/ftl.py
django-ftl/django-ftl
c34e4956741b17b3af10c3f543a90a0fdc6c8dd7
[ "MIT" ]
38
2018-05-19T15:17:23.000Z
2022-03-03T17:52:55.000Z
src/django_ftl/templatetags/ftl.py
django-ftl/django-ftl
c34e4956741b17b3af10c3f543a90a0fdc6c8dd7
[ "MIT" ]
3
2020-04-02T09:22:55.000Z
2021-11-22T21:19:52.000Z
src/django_ftl/templatetags/ftl.py
django-ftl/django-ftl
c34e4956741b17b3af10c3f543a90a0fdc6c8dd7
[ "MIT" ]
3
2019-04-17T10:07:27.000Z
2021-11-23T11:50:50.000Z
from __future__ import absolute_import, print_function, unicode_literals import contextlib import six from django import template from django.template.base import token_kwargs from django.utils.module_loading import import_string import django_ftl register = template.Library() MODE_SERVER = 'server' MODES = [ ...
28.836364
94
0.653531
from __future__ import absolute_import, print_function, unicode_literals import contextlib import six from django import template from django.template.base import token_kwargs from django.utils.module_loading import import_string import django_ftl register = template.Library() MODE_SERVER = 'server' MODES = [ ...
2,381
12
237
48b6240dbec6d14739dbb306ca9ddcd38f25475e
3,359
py
Python
src/hmi/log.py
aldorobertoavila/EniBot-S
d19b076129819aab1277657d7869bd62aa15a5fa
[ "MIT" ]
null
null
null
src/hmi/log.py
aldorobertoavila/EniBot-S
d19b076129819aab1277657d7869bd62aa15a5fa
[ "MIT" ]
null
null
null
src/hmi/log.py
aldorobertoavila/EniBot-S
d19b076129819aab1277657d7869bd62aa15a5fa
[ "MIT" ]
1
2021-11-28T04:10:30.000Z
2021-11-28T04:10:30.000Z
import tkinter as tk import tkinter.ttk as ttk from tkinter import scrolledtext from datetime import datetime import logging import queue import time
30.536364
99
0.614171
import tkinter as tk import tkinter.ttk as ttk from tkinter import scrolledtext from datetime import datetime import logging import queue import time class Timer: def __init__(self, ref=0): self.ref = ref def seconds(self): return time.time() - self.ref def get_filename(): return date...
2,794
14
394
fa6bceac8eddf5b789fdcb52284d40e57d0772e1
665
py
Python
HelloWorld/Primitive Types/stringMethods.py
lazywithcrazyness/PythonForBeginners
7667d16e4f0fd0f4e659e65ab7482f5a40fa5c5c
[ "MIT" ]
null
null
null
HelloWorld/Primitive Types/stringMethods.py
lazywithcrazyness/PythonForBeginners
7667d16e4f0fd0f4e659e65ab7482f5a40fa5c5c
[ "MIT" ]
null
null
null
HelloWorld/Primitive Types/stringMethods.py
lazywithcrazyness/PythonForBeginners
7667d16e4f0fd0f4e659e65ab7482f5a40fa5c5c
[ "MIT" ]
null
null
null
course = ' Python for Beginners ' print(len(course)) # Genereal perpous function print(course.upper()) print(course) print(course.lower()) print(course.title()) print(course.lstrip()) print(course.rstrip()) # Returns the index of the first occurrence of the character. print(course.find('P')) print(course.find('B'...
27.708333
61
0.717293
course = ' Python for Beginners ' print(len(course)) # Genereal perpous function print(course.upper()) print(course) print(course.lower()) print(course.title()) print(course.lstrip()) print(course.rstrip()) # Returns the index of the first occurrence of the character. print(course.find('P')) print(course.find('B'...
0
0
0
e6a9d1ef9e3c90385307c2ef7ca9901da035b156
5,053
py
Python
create_robot_dset.py
vishalBindal/simsg
2f062131f5c6f07162e1036d3dee803f1cf71979
[ "Apache-2.0" ]
null
null
null
create_robot_dset.py
vishalBindal/simsg
2f062131f5c6f07162e1036d3dee803f1cf71979
[ "Apache-2.0" ]
null
null
null
create_robot_dset.py
vishalBindal/simsg
2f062131f5c6f07162e1036d3dee803f1cf71979
[ "Apache-2.0" ]
null
null
null
import pickle import torch import numpy as np import shutil import os import torch import cv2 from torchvision.ops.boxes import box_iou import matplotlib.pyplot as plt import matplotlib.patches as patches import json ''' This script can be used to convert dataset to the following form - a folder containing scene image...
26.594737
104
0.556105
import pickle import torch import numpy as np import shutil import os import torch import cv2 from torchvision.ops.boxes import box_iou import matplotlib.pyplot as plt import matplotlib.patches as patches import json ''' This script can be used to convert dataset to the following form - a folder containing scene image...
299
0
46
f2756dc0ba9074c59cff3bbdbc29fab4c8c80ee3
159
py
Python
func.py
OPI-py/pytorch_chatbot
5abe87c77589f9a97b209ccccfd7e6236f698b58
[ "BSD-2-Clause" ]
1
2021-03-04T21:06:17.000Z
2021-03-04T21:06:17.000Z
func.py
OPI-py/pytorch_chatbot
5abe87c77589f9a97b209ccccfd7e6236f698b58
[ "BSD-2-Clause" ]
null
null
null
func.py
OPI-py/pytorch_chatbot
5abe87c77589f9a97b209ccccfd7e6236f698b58
[ "BSD-2-Clause" ]
null
null
null
import datetime
22.714286
52
0.679245
import datetime def current_time(): return datetime.datetime.now().strftime('%H:%M') def day_today(): return datetime.date.today().strftime('%A')
94
0
50
95a81c5ebfa78f88d87606e66f50c9d7dfacae46
2,816
py
Python
Modelchecking_torch.py
hamzajaved05/text2map
c1d824896cf3b9e658687d77762766471b176bc8
[ "MIT" ]
null
null
null
Modelchecking_torch.py
hamzajaved05/text2map
c1d824896cf3b9e658687d77762766471b176bc8
[ "MIT" ]
null
null
null
Modelchecking_torch.py
hamzajaved05/text2map
c1d824896cf3b9e658687d77762766471b176bc8
[ "MIT" ]
null
null
null
""" Author: Hamza Dated: 20.04.2019 Project: texttomap """ import pickle import matplotlib.pyplot as plt import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.utils import data from util.word_encoding import getklass device = torch.device('cuda:0' if torch.cuda.is_availab...
27.339806
90
0.649503
""" Author: Hamza Dated: 20.04.2019 Project: texttomap """ import pickle import matplotlib.pyplot as plt import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.utils import data from util.word_encoding import getklass device = torch.device('cuda:0' if torch.cuda.is_availab...
1,036
13
179
8415756b0e2e5742d740f5ab56747711ef9abd30
11,611
py
Python
tests/integration_tests/connection_utils_integration_test.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
1
2020-03-20T21:33:56.000Z
2020-03-20T21:33:56.000Z
tests/integration_tests/connection_utils_integration_test.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
1
2020-03-22T03:48:45.000Z
2020-03-22T03:48:45.000Z
tests/integration_tests/connection_utils_integration_test.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
null
null
null
""" Integration Test File for service_framework.connection_utils.py """ import logging import pytest from service_framework.utils import connection_utils from service_framework.connections.out.requester import Requester LOG = logging.getLogger(__name__) def test_connection_utils__base_connection__valid_validate_add...
31.381081
88
0.615279
""" Integration Test File for service_framework.connection_utils.py """ import logging import pytest from service_framework.utils import connection_utils from service_framework.connections.out.requester import Requester LOG = logging.getLogger(__name__) def test_connection_utils__base_connection__valid_validate_add...
0
0
0
299b966824b5085d6b7928fd3418271c42c97f65
1,529
py
Python
pyproct/postprocess/postprocessingDriver.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
10
2015-03-07T09:00:06.000Z
2019-01-25T15:00:59.000Z
pyproct/postprocess/postprocessingDriver.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
6
2015-01-08T11:17:14.000Z
2018-10-08T15:17:32.000Z
pyproct/postprocess/postprocessingDriver.py
victor-gil-sepulveda/pyProCT
2777c73efb48d5ca6543c69a31719421c4d54694
[ "MIT" ]
11
2015-03-02T11:13:24.000Z
2022-02-22T16:21:56.000Z
""" Created on 16/07/2014 @author: victor """ import traceback from pyproct.tools.plugins import PluginHandler
47.78125
144
0.502289
""" Created on 16/07/2014 @author: victor """ import traceback from pyproct.tools.plugins import PluginHandler class PostprocessingDriver(object): def __init__(self): pass def run(self, clustering, postprocessing_parameters, data_handler, workspace_handler, matrix_handler, generated_files): ...
1,322
14
82
07de41066643b6fe935e88041c3268b9ccf9103e
14,918
py
Python
rcnn/lib/python3.6/site-packages/tensorflow/contrib/tensorboard/plugins/trace/trace_info_pb2.py
dreamingweaver/making_passportImage
68f23411780ff82abe934dfae5fc04acb80f2c49
[ "MIT" ]
1
2019-01-12T13:17:32.000Z
2019-01-12T13:17:32.000Z
rcnn/lib/python3.6/site-packages/tensorflow/contrib/tensorboard/plugins/trace/trace_info_pb2.py
dreamingweaver/making_passportImage
68f23411780ff82abe934dfae5fc04acb80f2c49
[ "MIT" ]
null
null
null
rcnn/lib/python3.6/site-packages/tensorflow/contrib/tensorboard/plugins/trace/trace_info_pb2.py
dreamingweaver/making_passportImage
68f23411780ff82abe934dfae5fc04acb80f2c49
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/contrib/tensorboard/plugins/trace/trace_info.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message ...
41.096419
1,307
0.754324
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/contrib/tensorboard/plugins/trace/trace_info.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message ...
0
0
0
3ac2db0dcc5147bc0f16993d7b54a84ec979d8ad
7,717
py
Python
tests/test_resources.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
tests/test_resources.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
tests/test_resources.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Python 2 and 3 from __future__ import unicode_literals import datetime import sys from unittest import TestCase from mock import patch from gapipy.client import Client from gapipy.query import Query from gapipy.models import DATE_FORMAT, AccommodationRoom from gapipy.resources import ( ...
31.497959
81
0.595957
# -*- coding: utf-8 -*- # Python 2 and 3 from __future__ import unicode_literals import datetime import sys from unittest import TestCase from mock import patch from gapipy.client import Client from gapipy.query import Query from gapipy.models import DATE_FORMAT, AccommodationRoom from gapipy.resources import ( ...
5,795
463
225
15c1a781740aaec1e5ada344928c8df50506a3a2
185
py
Python
exxer/make/windows/windows.py
prismaB/xfeezer
b738b4f51cddf5b54a0783fc617a6300a924e6aa
[ "Unlicense" ]
3
2021-10-01T20:56:52.000Z
2021-10-01T21:00:20.000Z
exxer/make/windows/windows.py
prismaB/xfeezer
b738b4f51cddf5b54a0783fc617a6300a924e6aa
[ "Unlicense" ]
null
null
null
exxer/make/windows/windows.py
prismaB/xfeezer
b738b4f51cddf5b54a0783fc617a6300a924e6aa
[ "Unlicense" ]
null
null
null
import cmd import sys if __name__ == '__main__': try: uppermethod().cmdloop() except KeyboardInterrupt: sys.exit()
20.555556
31
0.643243
import cmd import sys class uppermethod(cmd.Cmd): print("usage") if __name__ == '__main__': try: uppermethod().cmdloop() except KeyboardInterrupt: sys.exit()
0
25
22
34b8376f732b740c151e600ee84e77753c29e9a0
7,633
py
Python
benchmark.py
xywms/covert-channel
a784356a2a5bc9cce98b11ab6e80700f06aca867
[ "MIT" ]
5
2020-07-22T21:55:05.000Z
2021-12-24T12:20:05.000Z
benchmark.py
xywms/covert-channel
a784356a2a5bc9cce98b11ab6e80700f06aca867
[ "MIT" ]
1
2020-06-02T06:20:07.000Z
2020-06-02T17:55:20.000Z
benchmark.py
xywms/covert-channel
a784356a2a5bc9cce98b11ab6e80700f06aca867
[ "MIT" ]
3
2019-06-19T11:56:33.000Z
2021-09-29T19:51:07.000Z
#! /usr/bin/env /usr/bin/python3 import subprocess from time import sleep import shutil import os import numpy import json if __name__ == '__main__': data = map( lambda s: {"interval":s[0], "primeTime":s[1], "accessTime":s[2]}, [# interval, primeTime, accessTime (2000000, 800000, 800000)...
36.521531
80
0.49024
#! /usr/bin/env /usr/bin/python3 import subprocess from time import sleep import shutil import os import numpy import json class channel_benchmark(): def __init__(self, tests, runsPerTest=10, timeBetweenRuns=1, senderCore=0, readerCore=2, channelArgs=["interval", "primeTime", "ac...
6,252
5
187
5416073e44e30d15bb3a4e10a03592fb3c66612f
2,542
py
Python
corpus_generation_scripts/create_mc4.py
NbAiLab/notram
0c90d6b28008df514c4ac847e4c9d68f4709a181
[ "Apache-2.0" ]
7
2021-12-22T14:36:33.000Z
2022-03-16T09:34:05.000Z
corpus_generation_scripts/create_mc4.py
NbAiLab/notram
0c90d6b28008df514c4ac847e4c9d68f4709a181
[ "Apache-2.0" ]
1
2021-12-30T08:54:52.000Z
2021-12-30T10:35:07.000Z
corpus_generation_scripts/create_mc4.py
NbAiLab/notram
0c90d6b28008df514c4ac847e4c9d68f4709a181
[ "Apache-2.0" ]
1
2021-12-30T09:58:12.000Z
2021-12-30T09:58:12.000Z
#!/opt/anaconda3/bin/python import requests import ftfy import glob import argparse import os import jsonlines from tqdm import tqdm from datetime import datetime from slugify import slugify import json if __name__ == "__main__": args = parse_args() main(args)
34.821918
146
0.564123
#!/opt/anaconda3/bin/python import requests import ftfy import glob import argparse import os import jsonlines from tqdm import tqdm from datetime import datetime from slugify import slugify import json def main(args): # Create the new file. Overwrite if it exits f = open(args.output_file, "w+") f.close()...
2,223
0
46
d94a22679c1f16ecb7b70e1c503b89db6702fedf
1,187
py
Python
src/model/config.py
tengyu-liu/Part-GPNN
d2092917edeee835fc1888101dddf42ad76ec5e5
[ "MIT" ]
null
null
null
src/model/config.py
tengyu-liu/Part-GPNN
d2092917edeee835fc1888101dddf42ad76ec5e5
[ "MIT" ]
null
null
null
src/model/config.py
tengyu-liu/Part-GPNN
d2092917edeee835fc1888101dddf42ad76ec5e5
[ "MIT" ]
null
null
null
import tensorflow as tf tf.flags.DEFINE_string('name', 'exp', '') tf.flags.DEFINE_integer('restore_epoch', -1, '') tf.flags.DEFINE_integer('n_jobs', 16, '') tf.flags.DEFINE_integer('epochs', 100, '') tf.flags.DEFINE_integer('batch_size', 1, '') tf.flags.DEFINE_integer('node_num', 517, '') # 517 for global max, 43...
35.969697
138
0.713564
import tensorflow as tf tf.flags.DEFINE_string('name', 'exp', '') tf.flags.DEFINE_integer('restore_epoch', -1, '') tf.flags.DEFINE_integer('n_jobs', 16, '') tf.flags.DEFINE_integer('epochs', 100, '') tf.flags.DEFINE_integer('batch_size', 1, '') tf.flags.DEFINE_integer('node_num', 517, '') # 517 for global max, 43...
0
0
0
11748d8037b9e995ffbeaa663293fa38434121ba
1,657
py
Python
brent_search/_optimize.py
Horta/brent-search
2bb5d0fba23ef039a44a6382313f5c13c2adcce0
[ "MIT" ]
null
null
null
brent_search/_optimize.py
Horta/brent-search
2bb5d0fba23ef039a44a6382313f5c13c2adcce0
[ "MIT" ]
null
null
null
brent_search/_optimize.py
Horta/brent-search
2bb5d0fba23ef039a44a6382313f5c13c2adcce0
[ "MIT" ]
null
null
null
from __future__ import division from ._bracket import bracket from ._brent import brent inf = float("inf") _eps = 1.4902e-08 def minimize( f, x0=None, x1=None, a=-inf, b=+inf, gfactor=2, rtol=_eps, atol=_eps, maxiter=500 ): r"""Function minimization. Applies :func:`brent_search.bracket` to find a brac...
23.338028
85
0.576946
from __future__ import division from ._bracket import bracket from ._brent import brent inf = float("inf") _eps = 1.4902e-08 def minimize( f, x0=None, x1=None, a=-inf, b=+inf, gfactor=2, rtol=_eps, atol=_eps, maxiter=500 ): r"""Function minimization. Applies :func:`brent_search.bracket` to find a brac...
34
0
27
731b9804dc0b671dfcea4107f6527a61a5ca8944
1,375
py
Python
functions/opencast-op-counts.py
harvard-dce/zoom-ingester
ef5c8910e35e84d33f1c612cfb4643309c52040d
[ "Apache-2.0" ]
18
2018-02-05T20:03:30.000Z
2022-01-19T00:58:00.000Z
functions/opencast-op-counts.py
harvard-dce/zoom-ingester
ef5c8910e35e84d33f1c612cfb4643309c52040d
[ "Apache-2.0" ]
31
2018-01-19T14:21:03.000Z
2021-09-07T02:04:40.000Z
functions/opencast-op-counts.py
harvard-dce/zoom-ingester
ef5c8910e35e84d33f1c612cfb4643309c52040d
[ "Apache-2.0" ]
5
2019-12-04T17:44:10.000Z
2021-02-23T03:14:24.000Z
import mysql.connector from os import getenv as env import urllib.parse as urlparse import logging from utils import setup_logging logger = logging.getLogger() OPENCAST_DB_URL = env("OPENCAST_DB_URL") OPENCAST_RUNNING_JOB_STATUS = 2 @setup_logging
23.706897
78
0.608
import mysql.connector from os import getenv as env import urllib.parse as urlparse import logging from utils import setup_logging logger = logging.getLogger() OPENCAST_DB_URL = env("OPENCAST_DB_URL") OPENCAST_RUNNING_JOB_STATUS = 2 def parse_db_url(): db_url = urlparse.urlparse(OPENCAST_DB_URL) return { ...
1,076
0
45
e848953c19d3bb5905e06d0e7311e335d18134a6
368
py
Python
comments/forms.py
vodnalasricharan/StudentMithra
bfe1f07d7c38a13c3e6690bfbb5be8c26b5b72a4
[ "MIT" ]
2
2021-07-28T03:53:28.000Z
2021-07-29T06:27:09.000Z
comments/forms.py
rsaikrishnagithub/StudentMithra
bfe1f07d7c38a13c3e6690bfbb5be8c26b5b72a4
[ "MIT" ]
null
null
null
comments/forms.py
rsaikrishnagithub/StudentMithra
bfe1f07d7c38a13c3e6690bfbb5be8c26b5b72a4
[ "MIT" ]
3
2021-07-27T13:46:18.000Z
2021-07-29T06:24:09.000Z
from django import forms
36.8
77
0.758152
from django import forms class CommentForm(forms.Form): content_type = forms.CharField(widget=forms.HiddenInput) object_id = forms.IntegerField(widget=forms.HiddenInput) #parent_id = forms.IntegerField(widget=forms.HiddenInput, required=False) content = forms.CharField(label='', widget=forms.Textarea...
0
319
23
b37752114338274ff1dc744bbb12cf6cd3508244
815
py
Python
pandas.py
AkanAhmet/Python-calismalarim
756c251cbec24f76c2c2b756f05cbf1f8ee3ded8
[ "MIT" ]
null
null
null
pandas.py
AkanAhmet/Python-calismalarim
756c251cbec24f76c2c2b756f05cbf1f8ee3ded8
[ "MIT" ]
null
null
null
pandas.py
AkanAhmet/Python-calismalarim
756c251cbec24f76c2c2b756f05cbf1f8ee3ded8
[ "MIT" ]
null
null
null
import pandas as pd data = { 'ages': [14, 18, 24, 42], 'heights': [165, 180, 176, 184] } print(data) df = pd.DataFrame(data, index=['ahmet',"akan","burak","duman"]) print(df) print(df.loc["ahmet"]) print() print(df.iloc[0]) print("------------------ READING DATA FROM CSV------------------------------") df2 =...
27.166667
79
0.625767
import pandas as pd data = { 'ages': [14, 18, 24, 42], 'heights': [165, 180, 176, 184] } print(data) df = pd.DataFrame(data, index=['ahmet',"akan","burak","duman"]) print(df) print(df.loc["ahmet"]) print() print(df.iloc[0]) print("------------------ READING DATA FROM CSV------------------------------") df2 =...
0
0
0
738995891de22e982744048dedd7cc80164cfc59
8,663
py
Python
src/model_tuning.py
miyer26/airbnb_popularity_prediction
a88ba6b803cca35dba1948ed400754bd47f270df
[ "MIT" ]
null
null
null
src/model_tuning.py
miyer26/airbnb_popularity_prediction
a88ba6b803cca35dba1948ed400754bd47f270df
[ "MIT" ]
null
null
null
src/model_tuning.py
miyer26/airbnb_popularity_prediction
a88ba6b803cca35dba1948ed400754bd47f270df
[ "MIT" ]
null
null
null
# author: Mukund Iyer # date: 12/29/21 """ This script will carry out cross-validation and hyperparameter optimization for different models of the data. Usage: model_tuning.py --processed_data_path=<processed_data_path> --results_folder_path=<results_path> Options: --processed_data_path=<processed_data_path> The...
26.820433
104
0.672515
# author: Mukund Iyer # date: 12/29/21 """ This script will carry out cross-validation and hyperparameter optimization for different models of the data. Usage: model_tuning.py --processed_data_path=<processed_data_path> --results_folder_path=<results_path> Options: --processed_data_path=<processed_data_path> The...
5,968
0
226
2e9589ad7a4b08998031a20b182efefaed40afc2
1,225
py
Python
MarketData/createMKinit.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
MarketData/createMKinit.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
MarketData/createMKinit.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 18 22:56:28 2014 @author: space_000 """ from scipy.io import loadmat import numpy as np import pymongo as mg client=mg.MongoClient() db=client['MKD'] colMKInit=db['marketInit'] #%% Create market trading days d=loadmat('E:\\Code Laboratory\\MFpy\\MongoPy\\MarketData\\wtda...
27.840909
67
0.668571
# -*- coding: utf-8 -*- """ Created on Tue Nov 18 22:56:28 2014 @author: space_000 """ from scipy.io import loadmat import numpy as np import pymongo as mg client=mg.MongoClient() db=client['MKD'] colMKInit=db['marketInit'] #%% Create market trading days d=loadmat('E:\\Code Laboratory\\MFpy\\MongoPy\\MarketData\\wtda...
0
0
0
aeeb60e8b45a61abeeaa0ba36f04b09c6c80c3c9
1,384
py
Python
src/onegov/form/parser/snippets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/parser/snippets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/parser/snippets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.form import _
25.163636
56
0.376445
from onegov.form import _ class Snippets(object): fragments = ( (_("General"), None), (_("Title"), '#'), (_("Text"), '___'), (_("Multiline"), '...'), (_("E-Mail"), '@@@'), (_("Website"), 'http://'), (_("Comment"), None), (_("Example Comment"), '<< ...
107
1,227
23
589c5749c65b9b6c9c1bc5f5d95c1df37e2f3b11
7,410
py
Python
src/crosswalk/post_analysis.py
jiaweih/CrossWalk
434664ce72cd8ccdf80ced89c8fb109cc0e4417f
[ "MIT" ]
1
2020-06-25T21:51:20.000Z
2020-06-25T21:51:20.000Z
src/crosswalk/post_analysis.py
jiaweih/CrossWalk
434664ce72cd8ccdf80ced89c8fb109cc0e4417f
[ "MIT" ]
null
null
null
src/crosswalk/post_analysis.py
jiaweih/CrossWalk
434664ce72cd8ccdf80ced89c8fb109cc0e4417f
[ "MIT" ]
2
2020-06-16T23:35:05.000Z
2020-06-25T21:51:22.000Z
""" Post analysis module """ from typing import Tuple import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.stats import norm from crosswalk import CWData, CWModel from crosswalk.scorelator import Scorelator
38.195876
97
0.591363
""" Post analysis module """ from typing import Tuple import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.stats import norm from crosswalk import CWData, CWModel from crosswalk.scorelator import Scorelator class PostAnalysis: def __init__(self, model: CWModel, ...
6,899
227
46
f2bb825ca0685923f95a3c6d3dec8d4a1e69e28d
671
py
Python
jmetal/operator/__init__.py
LuckysonKhaidem/ProjectAlpha
e4b4779a8968a83f1e8add3490a4d2c4ad145d55
[ "MIT" ]
1
2020-05-26T18:57:31.000Z
2020-05-26T18:57:31.000Z
jmetal/operator/__init__.py
LuckysonKhaidem/ProjectAlpha
e4b4779a8968a83f1e8add3490a4d2c4ad145d55
[ "MIT" ]
null
null
null
jmetal/operator/__init__.py
LuckysonKhaidem/ProjectAlpha
e4b4779a8968a83f1e8add3490a4d2c4ad145d55
[ "MIT" ]
2
2019-01-08T11:52:52.000Z
2020-05-25T13:21:26.000Z
from .crossover import NullCrossover, SBX, SP from .mutation import NullMutation, BitFlip, Polynomial, IntegerPolynomial, Uniform, SimpleRandom from .selection import BestSolutionSelection, BinaryTournamentSelection, BinaryTournament2Selection, \ RandomSolutionSelection, NaryRandomSolutionSelection, RankingAndCrowd...
55.916667
114
0.80924
from .crossover import NullCrossover, SBX, SP from .mutation import NullMutation, BitFlip, Polynomial, IntegerPolynomial, Uniform, SimpleRandom from .selection import BestSolutionSelection, BinaryTournamentSelection, BinaryTournament2Selection, \ RandomSolutionSelection, NaryRandomSolutionSelection, RankingAndCrowd...
0
0
0
3244a61f064844e94077efbb1d30f17b660fb773
6,670
py
Python
nanoscint/maintext/Figure2/expt_design_analysis.py
charlesrc/nanoscint
092de9706e280661d30540b5f5da7e61feaae42d
[ "MIT" ]
1
2022-03-18T02:11:54.000Z
2022-03-18T02:11:54.000Z
nanoscint/maintext/Figure2/expt_design_analysis.py
charlesrc/nanoscint
092de9706e280661d30540b5f5da7e61feaae42d
[ "MIT" ]
1
2022-01-23T20:58:55.000Z
2022-01-23T20:58:55.000Z
nanoscint/maintext/Figure2/expt_design_analysis.py
charlesrc/nanoscint
092de9706e280661d30540b5f5da7e61feaae42d
[ "MIT" ]
1
2022-03-18T02:20:18.000Z
2022-03-18T02:20:18.000Z
# Packages import numpy as np import sys sys.path.append('../') import filters # Filters function used for topology optimization import grcwa # Python RCWA Library. See downloading instructions at https://github.com/weiliangjinca/grcwa args = {} params = {} ## Define variables args['nG'] = 51 # Always check conver...
45.684932
221
0.656672
# Packages import numpy as np import sys sys.path.append('../') import filters # Filters function used for topology optimization import grcwa # Python RCWA Library. See downloading instructions at https://github.com/weiliangjinca/grcwa args = {} params = {} ## Define variables args['nG'] = 51 # Always check conver...
0
0
0
e671d8f1b6548dc26e750eaed5e53367641f285b
2,323
py
Python
tensor2tensor/rl/envs/in_graph_batch_env.py
sivaramakrishna7/tensor2tensor
eb0118d3f459913133e3d68a96944480a928bff1
[ "Apache-2.0" ]
null
null
null
tensor2tensor/rl/envs/in_graph_batch_env.py
sivaramakrishna7/tensor2tensor
eb0118d3f459913133e3d68a96944480a928bff1
[ "Apache-2.0" ]
null
null
null
tensor2tensor/rl/envs/in_graph_batch_env.py
sivaramakrishna7/tensor2tensor
eb0118d3f459913133e3d68a96944480a928bff1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # 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...
28.679012
85
0.723633
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # 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...
0
0
0
8686a1b2f79b4cd50562d5c16c25d640fc3bd1bc
9,978
py
Python
sqlhild/relational_algebra.py
willemt/sqlhild
13815095cc38b0b72479891640a8b385d8db46d5
[ "BSD-3-Clause" ]
null
null
null
sqlhild/relational_algebra.py
willemt/sqlhild
13815095cc38b0b72479891640a8b385d8db46d5
[ "BSD-3-Clause" ]
null
null
null
sqlhild/relational_algebra.py
willemt/sqlhild
13815095cc38b0b72479891640a8b385d8db46d5
[ "BSD-3-Clause" ]
null
null
null
"""Relational algebra operators. Used to represent a query plan before it is converted into a series of iterators. References: * https://www.cs.rochester.edu/~nelson/courses/csc_173/relations/algebra.html * http://www.databasteknik.se/webbkursen/relalg-lecture/ * https://en.wikipedia.org/wiki/Relational_a...
20.658385
112
0.589597
"""Relational algebra operators. Used to represent a query plan before it is converted into a series of iterators. References: * https://www.cs.rochester.edu/~nelson/courses/csc_173/relations/algebra.html * http://www.databasteknik.se/webbkursen/relalg-lecture/ * https://en.wikipedia.org/wiki/Relational_a...
4,326
2,971
1,362
a7e532bdb223b9d4bb0b9de5bac123e5d588d5d3
7,366
py
Python
scripts/PLPCOPallet.py
agrc/roads.utah.gov
b2187b90501709d908ad2a21694e18a76c6cf979
[ "MIT" ]
2
2017-05-26T15:08:22.000Z
2019-11-25T07:20:02.000Z
scripts/PLPCOPallet.py
agrc/roads.utah.gov
b2187b90501709d908ad2a21694e18a76c6cf979
[ "MIT" ]
40
2016-10-19T16:16:09.000Z
2020-06-01T15:54:17.000Z
scripts/PLPCOPallet.py
agrc/roads.utah.gov
b2187b90501709d908ad2a21694e18a76c6cf979
[ "MIT" ]
null
null
null
''' PLPCOPallet.py Pulls fresh data from PLPCO SDE database for dissolved roads and photos. Creates optimized data for sherlock widget by combining Class B & D dissolved data into a single feature class for each county. ''' from os.path import basename, join import arcpy from forklift.models import Pallet counties ...
40.472527
152
0.613494
''' PLPCOPallet.py Pulls fresh data from PLPCO SDE database for dissolved roads and photos. Creates optimized data for sherlock widget by combining Class B & D dissolved data into a single feature class for each county. ''' from os.path import basename, join import arcpy from forklift.models import Pallet counties ...
6,044
17
250
f8633a9e20218193ccdb070fbcf1b2fde11d208f
739
py
Python
modules/pyPCloud/uploadtransfer.py
licface-django/licshop
ad15782fd32a970b6c0818b91f652197422a8c2a
[ "Apache-2.0" ]
null
null
null
modules/pyPCloud/uploadtransfer.py
licface-django/licshop
ad15782fd32a970b6c0818b91f652197422a8c2a
[ "Apache-2.0" ]
null
null
null
modules/pyPCloud/uploadtransfer.py
licface-django/licshop
ad15782fd32a970b6c0818b91f652197422a8c2a
[ "Apache-2.0" ]
null
null
null
from pcloud import pcloud import cmdw if __name__ == '__main__': p = uploadtransfer() sendermail = "todut001@gmail.com" receivermails = "cumulus13@gmail.com" print p.uploadtransfer(sendermail, receivermails)
32.130435
89
0.633288
from pcloud import pcloud import cmdw class uploadtransfer(pcloud): def __init__(self): pcloud.__init__(self) def uploadtransfer(self, sendermail, receivermails): url = self.MASTER_URL + "uploadtransfer" login = self.login() print "login =", login auth = login.g...
419
8
84
247f2dcac0e012880c1ffb6b26a97cb2a6cf9a59
3,350
py
Python
goal_env/mujoco/create_fetch_env.py
junsu-kim97/HIGL
fd8926f850552d032a6692747d1dd030ffc7ac84
[ "MIT" ]
7
2021-11-06T11:13:48.000Z
2022-03-30T23:59:01.000Z
goal_env/mujoco/create_fetch_env.py
junsu-kim97/HIGL
fd8926f850552d032a6692747d1dd030ffc7ac84
[ "MIT" ]
1
2021-11-04T13:15:23.000Z
2021-11-04T15:06:01.000Z
goal_env/mujoco/create_fetch_env.py
junsu-kim97/HIGL
fd8926f850552d032a6692747d1dd030ffc7ac84
[ "MIT" ]
2
2021-12-19T02:01:30.000Z
2022-01-13T04:08:11.000Z
from .reacher import Reacher3DEnv from .pusher import PusherEnv from collections import OrderedDict import gym import numpy as np from gym import Wrapper from gym.envs.registration import EnvSpec
32.211538
119
0.61194
from .reacher import Reacher3DEnv from .pusher import PusherEnv from collections import OrderedDict import gym import numpy as np from gym import Wrapper from gym.envs.registration import EnvSpec class GoalWrapper(Wrapper): def __init__(self, env, env_name, reward_shaping='dense', seed=0, subgoal_repr='subspace',...
3,021
6
126
256ce9809f0dc1a180e4dfcc3ec0d24529bfebfb
5,717
py
Python
sickbeard/sickbeard/ui.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/sickbeard/ui.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/sickbeard/ui.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of t...
31.585635
136
0.615882
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of t...
1,924
210
356
c7cde0f2da71d10b8d205343976ae4c679c36658
1,622
py
Python
coevolution_transformer/model/model.py
microsoft/Protein-Folding
f534b2dd1e3f192fbcdadf234f25828c7f458a58
[ "MIT" ]
1
2021-11-12T03:00:28.000Z
2021-11-12T03:00:28.000Z
coevolution_transformer/model/model.py
microsoft/Protein-Folding
f534b2dd1e3f192fbcdadf234f25828c7f458a58
[ "MIT" ]
1
2022-01-11T17:09:26.000Z
2022-01-11T17:09:26.000Z
coevolution_transformer/model/model.py
microsoft/Protein-Folding
f534b2dd1e3f192fbcdadf234f25828c7f458a58
[ "MIT" ]
2
2021-11-10T11:42:11.000Z
2021-12-09T05:37:09.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import math import torch from torch import nn import torch.nn.functional as F from tqdm import tqdm from .base_model import BaseModel from .msa_embeddings import MSAEmbeddings from .attention import ZBlock, YBlock, YAggregator, ZRefiner from .di...
31.803922
87
0.590629
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import math import torch from torch import nn import torch.nn.functional as F from tqdm import tqdm from .base_model import BaseModel from .msa_embeddings import MSAEmbeddings from .attention import ZBlock, YBlock, YAggregator, ZRefiner from .di...
1,181
2
76
1ca79f15b75eb499cd0192cc0e74117bac196a06
5,847
py
Python
sudoku-generator.py
shashankaryan/sudoku-generator
3d71c6f1e75bc924c41a5e1e8a15f03584267a02
[ "MIT" ]
null
null
null
sudoku-generator.py
shashankaryan/sudoku-generator
3d71c6f1e75bc924c41a5e1e8a15f03584267a02
[ "MIT" ]
null
null
null
sudoku-generator.py
shashankaryan/sudoku-generator
3d71c6f1e75bc924c41a5e1e8a15f03584267a02
[ "MIT" ]
null
null
null
import numpy as np import math import random import os import multiprocessing from colorama import init, Fore, Back, Style class SudokuGenerator(object) : """ Generate unique sudoku solutions everytime for n*n grids. """ def generate_grid(self): """ Generate a grid of n*n numbers. """ grid =...
34.597633
149
0.564905
import numpy as np import math import random import os import multiprocessing from colorama import init, Fore, Back, Style class SudokuGenerator(object) : """ Generate unique sudoku solutions everytime for n*n grids. """ def __init__(self, num): self.num = num def generate_grid(self): "...
281
477
77
85739c6eed3d615ac3ff97cee8ba163908663f98
954
py
Python
simpegAIP/SeogiUtils/Weights.py
sgkang/simpegAIP
78d24c9170a6a345e0896a932e80ef1a6959cf30
[ "MIT" ]
null
null
null
simpegAIP/SeogiUtils/Weights.py
sgkang/simpegAIP
78d24c9170a6a345e0896a932e80ef1a6959cf30
[ "MIT" ]
2
2016-02-04T21:55:03.000Z
2016-02-05T17:40:55.000Z
simpegAIP/SeogiUtils/Weights.py
sgkang/simpegAIP
78d24c9170a6a345e0896a932e80ef1a6959cf30
[ "MIT" ]
1
2022-01-11T08:22:10.000Z
2022-01-11T08:22:10.000Z
import Linarg import numpy as np from SimPEG import Utils
32.896552
108
0.660377
import Linarg import numpy as np from SimPEG import Utils def ComputeDepthWeight(mesh, active, alpha=1.5, topoflag=True, z0=0.): if topoflag ==True: temp = np.zeros(mesh.nC) temp[active] = 1 temp = temp.reshape((mesh.nCx*mesh.nCy, mesh.nCz), order = 'F') tempCCz = mesh.gridCC[:,2].reshape((mesh.nCx*mesh.nCy, ...
874
0
23
8a6e7b9e492b04a0f36ecd796105443fa94814fe
7,394
py
Python
database/scripts/populate.py
AlessandroZanatta/DatabaseProject
891143899c7f037213ba6142e16552efe92428a1
[ "MIT" ]
null
null
null
database/scripts/populate.py
AlessandroZanatta/DatabaseProject
891143899c7f037213ba6142e16552efe92428a1
[ "MIT" ]
null
null
null
database/scripts/populate.py
AlessandroZanatta/DatabaseProject
891143899c7f037213ba6142e16552efe92428a1
[ "MIT" ]
1
2021-04-15T12:48:39.000Z
2021-04-15T12:48:39.000Z
#!/usr/bin/env python # Imports import os import random from helpers import InsertQuery from faker import Faker # Quantity N_DRIVERS = 75 N_AUTOBUS = 100 N_CUSTOMERS = 7500 N_SUBSCRIPTIONS = 100000 N_RIDES = 450 * 365 N_LINES = 15 N_SERVED = 90 N_STOPS = 225 N_USED = 12000 # Fixed seed random.seed(0) Faker.seed(0) ...
31.598291
132
0.588044
#!/usr/bin/env python # Imports import os import random from helpers import InsertQuery from faker import Faker # Quantity N_DRIVERS = 75 N_AUTOBUS = 100 N_CUSTOMERS = 7500 N_SUBSCRIPTIONS = 100000 N_RIDES = 450 * 365 N_LINES = 15 N_SERVED = 90 N_STOPS = 225 N_USED = 12000 # Fixed seed random.seed(0) Faker.seed(0) ...
0
0
0
779aee3f017a5e8901efb71dce4157ad8a5ddb04
265
py
Python
server/identity/views/user_list.py
vernikov/distribution
a9a2175d56658e3acdb0d5ec8600508c8345c7ee
[ "MIT" ]
null
null
null
server/identity/views/user_list.py
vernikov/distribution
a9a2175d56658e3acdb0d5ec8600508c8345c7ee
[ "MIT" ]
null
null
null
server/identity/views/user_list.py
vernikov/distribution
a9a2175d56658e3acdb0d5ec8600508c8345c7ee
[ "MIT" ]
null
null
null
from flask import jsonify from identity import identity from identity.models.user import User @identity.route('/user')
20.384615
48
0.709434
from flask import jsonify from identity import identity from identity.models.user import User @identity.route('/user') def list(): # find all users users = User.query.all() users = [user.serialize() for user in users] return jsonify(users=users)
122
0
22
37f0e8ff632bd828cfa0d1e23f45a130d05855ad
8,959
py
Python
vendors/rez-2.23.1-py2.7/rez/tests/test_config.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
4
2019-01-11T03:41:28.000Z
2019-09-12T06:57:17.000Z
vendors/rez-2.23.1-py2.7/rez/tests/test_config.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
null
null
null
vendors/rez-2.23.1-py2.7/rez/tests/test_config.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
2
2019-01-10T05:00:18.000Z
2020-02-15T16:32:56.000Z
""" test configuration settings """ import rez.vendor.unittest2 as unittest from rez.tests.util import TestBase from rez.exceptions import ConfigurationError from rez.config import Config, get_module_root_config, _replace_config from rez.system import system from rez.utils.data_utils import RO_AttrDictWrapper from rez....
36.125
83
0.629758
""" test configuration settings """ import rez.vendor.unittest2 as unittest from rez.tests.util import TestBase from rez.exceptions import ConfigurationError from rez.config import Config, get_module_root_config, _replace_config from rez.system import system from rez.utils.data_utils import RO_AttrDictWrapper from rez....
1,634
6,174
23
6b8977af1d9c468c2526ada5b88b3152bc747801
6,997
py
Python
objec_detection/camera_yolo.py
DataCowboy30/MCSODS
4e32c4c6c8b4c9aa0d15ff8d3b47c758a737fec8
[ "MIT" ]
null
null
null
objec_detection/camera_yolo.py
DataCowboy30/MCSODS
4e32c4c6c8b4c9aa0d15ff8d3b47c758a737fec8
[ "MIT" ]
null
null
null
objec_detection/camera_yolo.py
DataCowboy30/MCSODS
4e32c4c6c8b4c9aa0d15ff8d3b47c758a737fec8
[ "MIT" ]
null
null
null
from __future__ import division, print_function, absolute_import import cv2 from base_camera import BaseCamera import warnings import numpy as np from PIL import Image from yolo import YOLO from deep_sort import preprocessing from deep_sort.detection import Detection from deep_sort.detection_yolo import Detection_YOL...
42.92638
148
0.542804
from __future__ import division, print_function, absolute_import import cv2 from base_camera import BaseCamera import warnings import numpy as np from PIL import Image from yolo import YOLO from deep_sort import preprocessing from deep_sort.detection import Detection from deep_sort.detection_yolo import Detection_YOL...
6,457
75
23
413f972cef4afb1666329938b3dcae0922197f0e
12,517
py
Python
LS_DS_Unit_4_Sprint_Challenge_4.py
Hira63S/DS-Unit-4-Sprint-3-Deep-Learning
b895448ac8600655a3136e1f0b23415ea57cef53
[ "MIT" ]
null
null
null
LS_DS_Unit_4_Sprint_Challenge_4.py
Hira63S/DS-Unit-4-Sprint-3-Deep-Learning
b895448ac8600655a3136e1f0b23415ea57cef53
[ "MIT" ]
null
null
null
LS_DS_Unit_4_Sprint_Challenge_4.py
Hira63S/DS-Unit-4-Sprint-3-Deep-Learning
b895448ac8600655a3136e1f0b23415ea57cef53
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # <img align="left" src="https://lever-client-logos.s3.amazonaws.com/864372b1-534c-480e-acd5-9711f850815c-1524247202159.png" width=200> # <br></br> # <br></br> # # # Major Neural Network Architectures Challenge # ## *Data Science Unit 4 Sprint 3 Challenge* # # In this sprint cha...
44.073944
890
0.729168
#!/usr/bin/env python # coding: utf-8 # <img align="left" src="https://lever-client-logos.s3.amazonaws.com/864372b1-534c-480e-acd5-9711f850815c-1524247202159.png" width=200> # <br></br> # <br></br> # # # Major Neural Network Architectures Challenge # ## *Data Science Unit 4 Sprint 3 Challenge* # # In this sprint cha...
435
0
46
7369c384a6e4df61deed4546cab09ec35a5f333a
2,534
py
Python
pre_request/filters/simple/length_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
86
2017-08-17T12:41:52.000Z
2022-02-24T12:17:47.000Z
pre_request/filters/simple/length_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
10
2020-03-30T03:24:46.000Z
2022-02-23T01:34:53.000Z
pre_request/filters/simple/length_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
7
2017-08-18T03:40:35.000Z
2020-05-19T04:09:10.000Z
# !/usr/local/python/bin/python # -*- coding: utf-8 -*- # (C) Wu Dong, 2019 # All rights reserved # @Author: 'Wu Dong <wudong@eastwu.cn>' # @Time: '2020-03-17 15:37' from pre_request.exception import ParamsValueError from pre_request.filters.base import BaseFilter class LengthFilter(BaseFilter): """ 判断字符串长度的过...
29.811765
113
0.593133
# !/usr/local/python/bin/python # -*- coding: utf-8 -*- # (C) Wu Dong, 2019 # All rights reserved # @Author: 'Wu Dong <wudong@eastwu.cn>' # @Time: '2020-03-17 15:37' from pre_request.exception import ParamsValueError from pre_request.filters.base import BaseFilter class LengthFilter(BaseFilter): """ 判断字符串长度的过...
901
0
27
f87c78efb09dea742c890a2d09b2dc5d3a389258
1,697
py
Python
pipeline/command.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
2
2017-10-26T19:40:51.000Z
2018-03-07T12:10:49.000Z
pipeline/command.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
null
null
null
pipeline/command.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """command.py: Interface to command line executables.""" from optparse import OptionParser import logging from os import path from subprocess import PIPE, Popen from time import time __author__ = "Rami Al-Rfou" __email__ = "rmyeid gmail" LOG_FORMAT = "%(asctime).19s %(l...
29.258621
80
0.688273
#!/usr/bin/env python # -*- coding: utf-8 -*- """command.py: Interface to command line executables.""" from optparse import OptionParser import logging from os import path from subprocess import PIPE, Popen from time import time __author__ = "Rami Al-Rfou" __email__ = "rmyeid gmail" LOG_FORMAT = "%(asctime).19s %(l...
587
91
46
f72bc2026dd2bf64e09da4b3d2a51aebf0adea83
5,122
py
Python
perfect_information_game/tablebases/symmetry_transform.py
amaarquadri/perfect-information-game
6755f9633935be762d039ece9c0b646c64de6ab8
[ "MIT" ]
null
null
null
perfect_information_game/tablebases/symmetry_transform.py
amaarquadri/perfect-information-game
6755f9633935be762d039ece9c0b646c64de6ab8
[ "MIT" ]
null
null
null
perfect_information_game/tablebases/symmetry_transform.py
amaarquadri/perfect-information-game
6755f9633935be762d039ece9c0b646c64de6ab8
[ "MIT" ]
null
null
null
import numpy as np from perfect_information_game.games import Chess from perfect_information_game.utils import iter_product from perfect_information_game.tablebases import get_verified_chess_subclass
40.650794
105
0.625927
import numpy as np from perfect_information_game.games import Chess from perfect_information_game.utils import iter_product from perfect_information_game.tablebases import get_verified_chess_subclass class SymmetryTransform: # noinspection PyChainedComparisons PAWNLESS_UNIQUE_SQUARE_INDICES = [(i, j) for i, j...
3,686
1,212
23
22bcd0b2aa51adeb622ef085f8af0e085dfaad78
10,535
py
Python
pymatgen/io/tests/test_pwscf.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
1
2022-01-16T20:32:39.000Z
2022-01-16T20:32:39.000Z
pymatgen/io/tests/test_pwscf.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
null
null
null
pymatgen/io/tests/test_pwscf.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
null
null
null
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest import numpy as np from pymatgen.io.pwscf import PWInput, PWInputError, PWOutput from pymatgen.util.testing import PymatgenTest from pymatgen.core import Lattice, Structure if __name__ == "__mai...
31.636637
109
0.576839
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest import numpy as np from pymatgen.io.pwscf import PWInput, PWInputError, PWOutput from pymatgen.util.testing import PymatgenTest from pymatgen.core import Lattice, Structure class PWInputTest(Pymat...
9,907
22
260
b0b7927485544fac4d1cc06eaf5222892dfcacfe
448
py
Python
contact/admin.py
lbacon17/lb-fitness
16f78841c834ca0e45317285b6c3b05ad97501f6
[ "W3C" ]
null
null
null
contact/admin.py
lbacon17/lb-fitness
16f78841c834ca0e45317285b6c3b05ad97501f6
[ "W3C" ]
null
null
null
contact/admin.py
lbacon17/lb-fitness
16f78841c834ca0e45317285b6c3b05ad97501f6
[ "W3C" ]
1
2021-03-31T10:55:51.000Z
2021-03-31T10:55:51.000Z
from django.contrib import admin from .models import Contact admin.site.register(Contact, ContactAdmin)
19.478261
50
0.627232
from django.contrib import admin from .models import Contact class ContactAdmin(admin.ModelAdmin): list_display = ( 'created_on', 'user', 'name', 'email_address', 'subject', 'message', ) ordering = ('created_on',) actions = ['mark_as_answered'] de...
64
255
23
72ca124132b6be919a6d2223e50dd2ffab100336
413
py
Python
ae_waiting_time/core/migrations/0003_auto_20190526_0208.py
howawong/ae-waiting-time-dashboard-api
91aab20eb3c014145f4e806bc23b45b20617d961
[ "MIT" ]
null
null
null
ae_waiting_time/core/migrations/0003_auto_20190526_0208.py
howawong/ae-waiting-time-dashboard-api
91aab20eb3c014145f4e806bc23b45b20617d961
[ "MIT" ]
2
2020-02-12T00:07:23.000Z
2020-06-05T20:32:17.000Z
ae_waiting_time/core/migrations/0003_auto_20190526_0208.py
howawong/ae-waiting-time-dashboard-api
91aab20eb3c014145f4e806bc23b45b20617d961
[ "MIT" ]
3
2019-05-11T18:27:33.000Z
2019-05-25T12:46:18.000Z
# Generated by Django 2.0 on 2019-05-26 02:08 from django.db import migrations, models
21.736842
71
0.619855
# Generated by Django 2.0 on 2019-05-26 02:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0002_auto_20190526_0201'), ] operations = [ migrations.AlterField( model_name='waitingtime', name='waiting_tim...
0
301
23
7e880353be808d6dfa88d857e9b38058e7707ec6
8,792
py
Python
pandapower/topology/graph_searches.py
lucassm/cigre-montecarlo
fd354b9c3ade460b46687ba312f51212dad17151
[ "MIT" ]
null
null
null
pandapower/topology/graph_searches.py
lucassm/cigre-montecarlo
fd354b9c3ade460b46687ba312f51212dad17151
[ "MIT" ]
null
null
null
pandapower/topology/graph_searches.py
lucassm/cigre-montecarlo
fd354b9c3ade460b46687ba312f51212dad17151
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2016 by University of Kassel and Fraunhofer Institute for Wind Energy and Energy # System Technology (IWES), Kassel. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. import networkx as nx import pan...
33.429658
101
0.540264
# -*- coding: utf-8 -*- # Copyright (c) 2016 by University of Kassel and Fraunhofer Institute for Wind Energy and Energy # System Technology (IWES), Kassel. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. import networkx as nx import pan...
1,683
0
54