hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
2fbc9bbca722cf63185383229fc9699a6409f21e
2,565
py
Python
plotting/plotly.py
TPei/jawbone_visualizer
dadefbddb47450c3c43d474abaf9ae8d1317e03b
[ "MIT" ]
null
null
null
plotting/plotly.py
TPei/jawbone_visualizer
dadefbddb47450c3c43d474abaf9ae8d1317e03b
[ "MIT" ]
1
2015-05-11T07:21:21.000Z
2015-05-11T07:21:21.000Z
plotting/plotly.py
TPei/jawbone_visualizer
dadefbddb47450c3c43d474abaf9ae8d1317e03b
[ "MIT" ]
null
null
null
__author__ = 'TPei' from plotting.plotly.graph_objs import * from data.DataHandler import get_all_the_data """ Working with the plotly api to create more interactive diagrams """ if __name__ == '__main__': #sleep() coffee_vs_sleep()
24.198113
72
0.534113
2fbcd6e97434f0c483e0b9f7376b9e31fd73e295
569
py
Python
faddr/database.py
kido5217/faddr
116c789ac3985cc3f461203e249d8043dcb73428
[ "MIT" ]
1
2022-03-10T17:52:13.000Z
2022-03-10T17:52:13.000Z
faddr/database.py
kido5217/faddr
116c789ac3985cc3f461203e249d8043dcb73428
[ "MIT" ]
45
2021-08-08T15:23:42.000Z
2022-03-28T20:23:57.000Z
faddr/database.py
kido5217/faddr
116c789ac3985cc3f461203e249d8043dcb73428
[ "MIT" ]
1
2021-10-22T00:46:35.000Z
2021-10-22T00:46:35.000Z
from tinydb import TinyDB # TODO: redo this, maybe use SQL
28.45
74
0.643234
2fbd171f1eaf438bc81a6f1722cdfea67b114a0f
691
py
Python
passing/HelloWorld/test_hello.py
RubenRubens/cq-testing
558631a56b5751ef529f33d0aea4fe62ed8d5549
[ "WTFPL" ]
null
null
null
passing/HelloWorld/test_hello.py
RubenRubens/cq-testing
558631a56b5751ef529f33d0aea4fe62ed8d5549
[ "WTFPL" ]
null
null
null
passing/HelloWorld/test_hello.py
RubenRubens/cq-testing
558631a56b5751ef529f33d0aea4fe62ed8d5549
[ "WTFPL" ]
null
null
null
import unittest
28.791667
76
0.626628
2fbd42af72d663b2e85a1906a00c7fcaf0c287e8
2,014
py
Python
examples/cifar10.py
Fragile-azalea/homura
900d1d63affb9c8af3accd9b196b5276cb2e14b6
[ "Apache-2.0" ]
1
2020-06-30T01:55:41.000Z
2020-06-30T01:55:41.000Z
examples/cifar10.py
Fragile-azalea/homura
900d1d63affb9c8af3accd9b196b5276cb2e14b6
[ "Apache-2.0" ]
null
null
null
examples/cifar10.py
Fragile-azalea/homura
900d1d63affb9c8af3accd9b196b5276cb2e14b6
[ "Apache-2.0" ]
null
null
null
import hydra import torch import torch.nn.functional as F from homura import optim, lr_scheduler, callbacks, reporters, trainers from homura.vision.data import vision_loaders from homura.vision.models.classification import resnet20, wrn28_10 if __name__ == '__main__': main()
35.964286
101
0.61569
2fc09613b242d7e2c9c0beca77e4a8f3159ea82b
1,591
py
Python
payments/domain/tests/test_paypal_payment.py
anandrgit/snet-marketplace-service
22dd66e9e34a65580eaffa70928bbdb1f67061e8
[ "MIT" ]
null
null
null
payments/domain/tests/test_paypal_payment.py
anandrgit/snet-marketplace-service
22dd66e9e34a65580eaffa70928bbdb1f67061e8
[ "MIT" ]
null
null
null
payments/domain/tests/test_paypal_payment.py
anandrgit/snet-marketplace-service
22dd66e9e34a65580eaffa70928bbdb1f67061e8
[ "MIT" ]
null
null
null
import unittest from unittest.mock import patch, Mock from payments.domain.paypal_payment import PaypalPayment if __name__ == "__main__": TestPaypal()
41.868421
108
0.613451
2fc18eb9e174b4ec483d343f9eaf11394db8c812
1,234
py
Python
software-defined-networks/Topo2.py
hasithsen/CSNE
30d0386186a6684207bc5cf9f75b3b13f8a5bbc8
[ "MIT" ]
null
null
null
software-defined-networks/Topo2.py
hasithsen/CSNE
30d0386186a6684207bc5cf9f75b3b13f8a5bbc8
[ "MIT" ]
null
null
null
software-defined-networks/Topo2.py
hasithsen/CSNE
30d0386186a6684207bc5cf9f75b3b13f8a5bbc8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Create below topology in Mininet. [c1] /\ / \ / \ / \ [s1]--------[s2] /\ /\ [h1] [h2] [h3] [h4] [cX] - controller [sX] - switch [hX] - host """ from mininet.net import Mi...
19.903226
86
0.567261
2fc259b569e3c130b039ed738e6f79be4ca77223
6,768
py
Python
pymap/bytes/__init__.py
BoniLindsley/pymap
b3190d20799a6d342888e51bfc55cdfcbfe3ed26
[ "MIT" ]
null
null
null
pymap/bytes/__init__.py
BoniLindsley/pymap
b3190d20799a6d342888e51bfc55cdfcbfe3ed26
[ "MIT" ]
null
null
null
pymap/bytes/__init__.py
BoniLindsley/pymap
b3190d20799a6d342888e51bfc55cdfcbfe3ed26
[ "MIT" ]
null
null
null
"""Defines useful types and utilities for working with bytestrings.""" from __future__ import annotations import zlib from abc import abstractmethod, ABCMeta from collections.abc import Iterable, Sequence from io import BytesIO from itertools import chain from typing import cast, final, Any, Final, TypeVar, SupportsB...
25.73384
79
0.599143
2fc47242aa3943850747abcba7e7e472c1fce0f5
113
py
Python
_solutions/pandas/dataframe/pandas_df_sample_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/pandas/dataframe/pandas_df_sample_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/pandas/dataframe/pandas_df_sample_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
df = pd.read_csv(DATA) df = df.sample(frac=1.0) df.reset_index(drop=True, inplace=True) result = df.tail(n=10)
16.142857
39
0.699115
2fc4bf739d973fcce88100f4ac6687879d1a4115
466
py
Python
Informatik1/Midterms Prep/midterms hs19/to_binary.py
Queentaker/uzh
35cccaf910b95d15db21be80c8567eb427202591
[ "MIT" ]
8
2021-11-21T10:02:08.000Z
2022-03-15T21:02:02.000Z
Informatik1/Midterms Prep/midterms hs19/to_binary.py
Queentaker/uzh
35cccaf910b95d15db21be80c8567eb427202591
[ "MIT" ]
null
null
null
Informatik1/Midterms Prep/midterms hs19/to_binary.py
Queentaker/uzh
35cccaf910b95d15db21be80c8567eb427202591
[ "MIT" ]
3
2021-11-19T18:52:56.000Z
2022-02-27T15:45:59.000Z
if __name__ == '__main__': print(to_binary(35)) print("\n") print(bin(35))
23.3
45
0.512876
2fc5eb9ac5bb61a25a0a92e01993111c6aae7c68
967
py
Python
coursework1/task6/reducer.py
foundnet/UOE_EP_coursework1
25ab8ff2beaa4fbde5a0d4519abb84d8e43cf9d8
[ "Apache-2.0" ]
null
null
null
coursework1/task6/reducer.py
foundnet/UOE_EP_coursework1
25ab8ff2beaa4fbde5a0d4519abb84d8e43cf9d8
[ "Apache-2.0" ]
null
null
null
coursework1/task6/reducer.py
foundnet/UOE_EP_coursework1
25ab8ff2beaa4fbde5a0d4519abb84d8e43cf9d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys import math prev_key = "" hresult = 0.0 totalcnt = 0 cntlist = [] for line in sys.stdin: key,info = line.strip().split("\t",1) if key != prev_key: if prev_key != "": hresult = 0.0 cntlist = strinfo.split(",") cntlist = map(int,cntlist) ...
25.447368
64
0.511892
2fc7dff3416e231ccfed10d4c3e8b24fde9aebea
200
py
Python
opmd_viewer/__init__.py
soerenjalas/openPMD-viewer
1754ade96040920016a79ecc5b7b40597a5a6bf5
[ "BSD-3-Clause-LBNL" ]
null
null
null
opmd_viewer/__init__.py
soerenjalas/openPMD-viewer
1754ade96040920016a79ecc5b7b40597a5a6bf5
[ "BSD-3-Clause-LBNL" ]
1
2016-01-04T18:09:31.000Z
2016-01-04T18:09:31.000Z
opmd_viewer/__init__.py
soerenjalas/openPMD-viewer
1754ade96040920016a79ecc5b7b40597a5a6bf5
[ "BSD-3-Clause-LBNL" ]
null
null
null
# Make the OpenPMDTimeSeries object accessible from outside the package from .openpmd_timeseries import OpenPMDTimeSeries, FieldMetaInformation __all__ = ['OpenPMDTimeSeries', 'FieldMetaInformation']
50
71
0.85
2fc81c5c29c2d5dd633814fb31be3a026447928b
1,032
py
Python
utilities/send_custom_mail.py
stefanos90/Utilities
e28c2bcb7ee4480b589d5ca3be64c14cc2a4a8e9
[ "MIT" ]
3
2019-06-05T04:36:03.000Z
2020-10-30T00:16:16.000Z
utilities/send_custom_mail.py
stefanos90/Utilities
e28c2bcb7ee4480b589d5ca3be64c14cc2a4a8e9
[ "MIT" ]
null
null
null
utilities/send_custom_mail.py
stefanos90/Utilities
e28c2bcb7ee4480b589d5ca3be64c14cc2a4a8e9
[ "MIT" ]
null
null
null
# In order to use this function you have to create a Django project from django.conf import settings from django.template import Context from django.template.loader import render_to_string, get_template from django.core.mail import EmailMultiAlternatives
34.4
68
0.73062
2fc89444d96a05f12276b73f9c9d8e359e37e447
2,405
py
Python
farmrisk_needs.py
chum8/farmrisk.v2
29d5314db9809bdfb8a12dcdd7d3940fbbe50c6b
[ "MIT" ]
null
null
null
farmrisk_needs.py
chum8/farmrisk.v2
29d5314db9809bdfb8a12dcdd7d3940fbbe50c6b
[ "MIT" ]
null
null
null
farmrisk_needs.py
chum8/farmrisk.v2
29d5314db9809bdfb8a12dcdd7d3940fbbe50c6b
[ "MIT" ]
null
null
null
# this class exists to extract data from a csv file # and return it formatted for persistence into a MySql database # import needed libraries import csv from farmrisk_lib import * # define Product class
47.156863
288
0.495634
2fc8e9cafddd4c2893cba84f77225d601ce8cb1e
3,734
py
Python
torchrl/agents/ddpg_agent.py
srikarym/torchrl
fee98e78ac1657a2c9a4063dd8d63ba207a121e2
[ "Apache-2.0" ]
3
2019-02-27T19:00:32.000Z
2020-07-19T03:18:28.000Z
torchrl/agents/ddpg_agent.py
srikarym/torchrl
fee98e78ac1657a2c9a4063dd8d63ba207a121e2
[ "Apache-2.0" ]
null
null
null
torchrl/agents/ddpg_agent.py
srikarym/torchrl
fee98e78ac1657a2c9a4063dd8d63ba207a121e2
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy import numpy as np import torch.nn.functional as F from torch import nn from torch.optim import Adam from .base_agent import BaseAgent from ..policies import OUNoise from ..models import DDPGActorNet, DDPGCriticNet def polyak_average_(source, target, tau=1e-3): """ In-place Polyak Avera...
30.357724
134
0.670327
2fc9fb68210db21c95b92026433909a2cce6b7a9
934
py
Python
model.py
Pontohi/GoIndex
6727da99960c540512496e5647665535317b6a83
[ "MIT" ]
null
null
null
model.py
Pontohi/GoIndex
6727da99960c540512496e5647665535317b6a83
[ "MIT" ]
null
null
null
model.py
Pontohi/GoIndex
6727da99960c540512496e5647665535317b6a83
[ "MIT" ]
null
null
null
#A template for when we actually build the model. import numpy as np from sklearn.model_selection import train_test_split from tensorflow.keras.layers import Dense, LSTM, Dropout from tensorflow.keras import Sequential categories = [] #List out category string names here reproducibility = 7 #Constant seed for reproduci...
40.608696
75
0.768737
2fca64024836c385ff3a0a64305e1d0f1eaa2ba8
6,539
py
Python
tf_coder/value_search/search_space_from_weight.py
hstrohm/PyTorch-Coder-cheat
de201c28849549c53010603a0c87482973729cfd
[ "Apache-2.0" ]
245
2020-08-24T22:50:18.000Z
2022-03-17T18:25:39.000Z
tf_coder/value_search/search_space_from_weight.py
hstrohm/PyTorch-Coder
2159a5561d8b71d5539e299cf0c4b77eb305df8a
[ "Apache-2.0" ]
4
2020-09-09T09:41:05.000Z
2021-12-23T02:55:33.000Z
tf_coder/value_search/search_space_from_weight.py
hstrohm/PyTorch-Coder
2159a5561d8b71d5539e299cf0c4b77eb305df8a
[ "Apache-2.0" ]
31
2020-08-26T20:53:36.000Z
2022-01-24T22:04:42.000Z
# Copyright 2021 The TF-Coder 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 law or agreed to in...
38.922619
89
0.694296
2fcb561133a4b45129e3d2727e197182d5c62b3e
227
py
Python
train.py
tamasandacian/twitter-sentiment-analysis
154083feae49d4ff159aee6cfae0df6807a662b3
[ "MIT" ]
1
2019-08-08T05:08:42.000Z
2019-08-08T05:08:42.000Z
train.py
tamasandacian/twitter-sentiment-analysis
154083feae49d4ff159aee6cfae0df6807a662b3
[ "MIT" ]
null
null
null
train.py
tamasandacian/twitter-sentiment-analysis
154083feae49d4ff159aee6cfae0df6807a662b3
[ "MIT" ]
null
null
null
# Create FastText model using from raw train data import fastText TRAIN_FILE = './datasets/raw_data/tweets.train' su_model = fastText.train_supervised(input=TRAIN_FILE, wordNgrams=3) su_model.save_model('model_sentiment.bin')
32.428571
68
0.814978
2fcc935d3a1ea6c475bcf83feda813ece95347aa
3,794
py
Python
test.py
Carmen0645/stylegan-jt
846e54d1befd6446ee23621aa25e8b0f09deb106
[ "MIT" ]
1
2022-01-19T12:26:04.000Z
2022-01-19T12:26:04.000Z
test.py
Carmen0645/stylegan-jt
846e54d1befd6446ee23621aa25e8b0f09deb106
[ "MIT" ]
null
null
null
test.py
Carmen0645/stylegan-jt
846e54d1befd6446ee23621aa25e8b0f09deb106
[ "MIT" ]
null
null
null
import numpy as np import math import jittor as jt from model.model import StyledGenerator jt.flags.use_cuda = True import argparse import pathlib import os if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--ckpt', default='./checkpoints/symbol_80w_ckpt/800000.model',typ...
30.111111
119
0.603321
2fcd9f0a4668f30c4930f01c38dd7a96779a0ba3
195
py
Python
snippets/urls.py
rudra012/django_rest
bbfc0535cefcf20d1b788aab0336c090d58c506d
[ "MIT" ]
null
null
null
snippets/urls.py
rudra012/django_rest
bbfc0535cefcf20d1b788aab0336c090d58c506d
[ "MIT" ]
null
null
null
snippets/urls.py
rudra012/django_rest
bbfc0535cefcf20d1b788aab0336c090d58c506d
[ "MIT" ]
null
null
null
from django.conf.urls import url from api.snippets import snippets_api urlpatterns = [ url(r'^$', snippets_api.snippet_list), url(r'^(?P<pk>[0-9]+)/$', snippets_api.snippet_detail), ]
19.5
59
0.687179
2fcf3382e080f3b77010b56e004724a5a0e7a4f8
1,806
py
Python
models/peak.py
anva-kn/ramanflow
0a8852a0a8d57d97e5ccd011bc6bc8659ecd666c
[ "MIT" ]
null
null
null
models/peak.py
anva-kn/ramanflow
0a8852a0a8d57d97e5ccd011bc6bc8659ecd666c
[ "MIT" ]
1
2021-12-05T06:40:27.000Z
2021-12-07T07:18:18.000Z
models/peak.py
anva-kn/ramanflow
0a8852a0a8d57d97e5ccd011bc6bc8659ecd666c
[ "MIT" ]
null
null
null
import numpy as np from dataclasses import dataclass, field from spectrum_component import SpectrumComponent from scipy.optimize import minimize from typing import List, Optional
30.1
114
0.611849
2fcfdfc34dd0b46d25701e6315fbd7285e1e2ee4
555
py
Python
backend/media/migrations/0010_auto_20210613_0444.py
LakesideMiners/rt911
ce2eb82efa6eedbaabf16f567b3db1d8fb808809
[ "Unlicense" ]
8
2020-07-25T04:54:44.000Z
2022-01-31T16:08:53.000Z
backend/media/migrations/0010_auto_20210613_0444.py
LakesideMiners/rt911
ce2eb82efa6eedbaabf16f567b3db1d8fb808809
[ "Unlicense" ]
18
2020-07-20T00:53:19.000Z
2022-03-03T21:48:17.000Z
backend/media/migrations/0010_auto_20210613_0444.py
LakesideMiners/rt911
ce2eb82efa6eedbaabf16f567b3db1d8fb808809
[ "Unlicense" ]
2
2021-10-29T23:19:02.000Z
2021-11-06T06:44:54.000Z
# Generated by Django 3.1.12 on 2021-06-13 04:44 from django.db import migrations, models
24.130435
108
0.592793
2fd104b4ffadfde3fd53dbf7ef3b1e8c8f59cfc2
547
py
Python
aioinflux/compat.py
slazarov/aioinflux
ba3fa980e528f4edad6e31544942b55fe2a9d23e
[ "MIT" ]
null
null
null
aioinflux/compat.py
slazarov/aioinflux
ba3fa980e528f4edad6e31544942b55fe2a9d23e
[ "MIT" ]
null
null
null
aioinflux/compat.py
slazarov/aioinflux
ba3fa980e528f4edad6e31544942b55fe2a9d23e
[ "MIT" ]
null
null
null
import warnings no_pandas_warning = "Pandas/Numpy is not available. Support for 'dataframe' mode is disabled." no_redis_warning = "Redis dependencies not available. Support for caching is disabled." try: import pandas as pd import numpy as np except ModuleNotFoundError: pd = None np = None warning...
24.863636
94
0.723949
2fd243b0141adccef1b512ff16e5f007093b92d7
1,691
py
Python
station/controller/handlers/read_letters_handler.py
GLO3013-E4/COViRondelle2021
f8d23903d0a906e93a7698a555d90ebecdf83969
[ "MIT" ]
null
null
null
station/controller/handlers/read_letters_handler.py
GLO3013-E4/COViRondelle2021
f8d23903d0a906e93a7698a555d90ebecdf83969
[ "MIT" ]
null
null
null
station/controller/handlers/read_letters_handler.py
GLO3013-E4/COViRondelle2021
f8d23903d0a906e93a7698a555d90ebecdf83969
[ "MIT" ]
null
null
null
import json import rospy from std_msgs.msg import String from handlers.handler import Handler from mapping.command_panel import CommandPanel from mapping.resistance import Resistance
34.510204
105
0.702543
2fd2bfab59ea98625232ec8c5527f3a9ee521861
28
py
Python
python/testData/editing/enterAfterColonOfCaseClauseWithoutBody.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/editing/enterAfterColonOfCaseClauseWithoutBody.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/editing/enterAfterColonOfCaseClauseWithoutBody.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
match x: case 42:<caret>
14
19
0.607143
2fd2f559dbfd281655f2be8fc7d8f814570f9fcc
76
py
Python
Fundamentos/variables.py
ijchavez/python
bccd94a9bee90125e2be27b0355bdaedb0ae9d19
[ "Unlicense" ]
null
null
null
Fundamentos/variables.py
ijchavez/python
bccd94a9bee90125e2be27b0355bdaedb0ae9d19
[ "Unlicense" ]
null
null
null
Fundamentos/variables.py
ijchavez/python
bccd94a9bee90125e2be27b0355bdaedb0ae9d19
[ "Unlicense" ]
null
null
null
x = 5 y = 3 z = x + y print(x) print(y) print(x + y) print(z) w = z print(w)
8.444444
12
0.526316
2fd317fc787755e3ef71bee2cc7d489378eb6f71
4,047
py
Python
gisimulation/interferometer/gratings.py
mariabuechner/gi_simulation
5dafd4652836a3867fff219ab6b247310e9a501f
[ "MIT" ]
null
null
null
gisimulation/interferometer/gratings.py
mariabuechner/gi_simulation
5dafd4652836a3867fff219ab6b247310e9a501f
[ "MIT" ]
16
2017-10-18T14:51:45.000Z
2018-03-13T10:14:19.000Z
gisimulation/interferometer/gratings.py
mariabuechner/gisimulation
5dafd4652836a3867fff219ab6b247310e9a501f
[ "MIT" ]
null
null
null
""" @author: buechner_m <maria.buechner@gmail.com> """ import sys sys.path.append('..') # To allow importing from neighbouring folder import simulation.materials as materials import logging logger = logging.getLogger(__name__)
32.376
79
0.531999
2fd399ef21d1427fd4d75eb210dc4fb1e1e0b5ec
152
py
Python
Exercicios/Todos/ex049.py
Edson921/exerciciosResolvidos
72a3089f4848650c62ac0dd876abf5695a64525a
[ "MIT" ]
null
null
null
Exercicios/Todos/ex049.py
Edson921/exerciciosResolvidos
72a3089f4848650c62ac0dd876abf5695a64525a
[ "MIT" ]
null
null
null
Exercicios/Todos/ex049.py
Edson921/exerciciosResolvidos
72a3089f4848650c62ac0dd876abf5695a64525a
[ "MIT" ]
null
null
null
#Calculadora de tabuada n = int(input('Deseja ver tabuada de que numero?')) for c in range(1, 13): print('{} X {:2}= {} '. format(n, c, n * c))
30.4
51
0.572368
2fd4591d238347442d7ceffec0998337ad85bf70
362
py
Python
rede/eevc/models/RegistroTotalizadorMatriz.py
marcioinfo/edi_reader
9d19cb3fa462c4eb91a0a2f983e12e3de1b596eb
[ "MIT" ]
null
null
null
rede/eevc/models/RegistroTotalizadorMatriz.py
marcioinfo/edi_reader
9d19cb3fa462c4eb91a0a2f983e12e3de1b596eb
[ "MIT" ]
null
null
null
rede/eevc/models/RegistroTotalizadorMatriz.py
marcioinfo/edi_reader
9d19cb3fa462c4eb91a0a2f983e12e3de1b596eb
[ "MIT" ]
null
null
null
COLUMNS = [ 'tipo_registro', 'nro_pv_matriz', 'vl_total_bruto', 'qtde_cvnsu', 'vl_total_rejeitado', 'vl_total_rotativo', 'vl_total_parcelado_sem_juros', 'vl_total_parcelado_iata', 'vl_total_dolar', 'vl_total_desconto', 'vl_total_liquido', 'vl_total_gorjeta', 'vl_total...
22.625
35
0.676796
2fd57a70c9f8b7c42925422d2f16850567876bbd
5,607
py
Python
openslides_backend/action/action_handler.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
openslides_backend/action/action_handler.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
openslides_backend/action/action_handler.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
from copy import deepcopy from typing import Dict, Iterable, List, Optional, Tuple, Union import fastjsonschema from ..shared.exceptions import ActionException, DatastoreException, EventStoreException from ..shared.handlers.base_handler import BaseHandler from ..shared.interfaces.write_request_element import WriteReq...
37.38
88
0.608525
2fd57e4ea7c49631ccd30b28d1e5572f8c08ea1c
537
py
Python
2020/examples-in-class-2020-10-22/list_vs_dictionary1.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
1
2021-02-04T16:59:11.000Z
2021-02-04T16:59:11.000Z
2020/examples-in-class-2020-10-22/list_vs_dictionary1.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
null
null
null
2020/examples-in-class-2020-10-22/list_vs_dictionary1.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
1
2019-10-30T14:37:48.000Z
2019-10-30T14:37:48.000Z
# Ask user to enter their country name. # print out their phone code. l_country_phone_code = ["China","86","Germany","49","Turkey","90"] print(country_name_to_phone_code_list("Turkey")) print(country_name_to_phone_code_list("Germany")) print(country_name_to_phone_code_list("China"))
26.85
66
0.795158
2fd65f43e5f02b710a34a13d8f580c8410046d5d
5,173
py
Python
defects_dlmbl/disc_loss.py
bbarad/defects_DLMBL
66afe939bf90996738cc6bbd323024591bec0cdc
[ "MIT" ]
null
null
null
defects_dlmbl/disc_loss.py
bbarad/defects_DLMBL
66afe939bf90996738cc6bbd323024591bec0cdc
[ "MIT" ]
null
null
null
defects_dlmbl/disc_loss.py
bbarad/defects_DLMBL
66afe939bf90996738cc6bbd323024591bec0cdc
[ "MIT" ]
null
null
null
import torch from torch import nn import torch.nn.functional as F
47.027273
134
0.628842
2fd8b1114b40364b1013c8b3a880cb6bb7d459b7
2,670
py
Python
tests/test_cache.py
cdusold/DriveLink
b48ff68f7913e33fc17a07e91ad185b1222fdeb8
[ "MIT" ]
null
null
null
tests/test_cache.py
cdusold/DriveLink
b48ff68f7913e33fc17a07e91ad185b1222fdeb8
[ "MIT" ]
7
2017-09-05T01:07:48.000Z
2020-10-12T16:40:12.000Z
tests/test_cache.py
cdusold/DriveLink
b48ff68f7913e33fc17a07e91ad185b1222fdeb8
[ "MIT" ]
null
null
null
import unittest as ut from tests._utils._timer import Timer from drivelink import cached #from Process import freeze_support if __name__ == '__main__': freeze_support() ut.main()
34.230769
111
0.579026
2fd9550a294f6b02e8dabd77fe3e2f1337833926
1,813
py
Python
openstates/openstates-master/openstates/ca/actions.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/ca/actions.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/ca/actions.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
from billy.scrape.actions import Rule, BaseCategorizer # These are regex patterns that map to action categories. _categorizer_rules = ( Rule((r'\(Ayes (?P<yes_votes>\d+)\.\s+Noes\s+' r'(?P<no_votes>\d+)\.( Page \S+\.)?\)')), Rule(r'^Introduced', 'bill:introduced'), Rule(r'(?i)Referred to (?P<...
35.54902
74
0.630998
2fda6bc66c1b95398d9470c936e328c867ca38b6
1,241
py
Python
tests/unit_tests/test_managers/test_resource.py
radical-project/radical.dreamer
74bb2a9a705fc90b0dc773963f2bfd48af6e1b84
[ "MIT" ]
4
2021-04-30T04:25:12.000Z
2021-12-16T19:53:37.000Z
tests/unit_tests/test_managers/test_resource.py
radical-project/radical.dreamer
74bb2a9a705fc90b0dc773963f2bfd48af6e1b84
[ "MIT" ]
1
2021-04-20T22:08:24.000Z
2021-04-20T22:08:24.000Z
tests/unit_tests/test_managers/test_resource.py
radical-project/radical.dreamer
74bb2a9a705fc90b0dc773963f2bfd48af6e1b84
[ "MIT" ]
1
2021-01-10T20:09:19.000Z
2021-01-10T20:09:19.000Z
# pylint: disable=unused-argument __copyright__ = 'Copyright 2021, The RADICAL-Cybertools Team' __license__ = 'MIT' import pika.exceptions from radical.dreamer.configs import cfg_default from radical.dreamer.managers import ResourceManager from radical.dreamer.managers.ext import Schedule from radical.dreamer.unit...
32.657895
80
0.710717
2fdb8c001da8514aa3f21ad18a492ee9f190de86
5,199
py
Python
aniconforanilist.py
EnArvy/anicon
28ecfbe7b42a4c78a575b92a20554a72ef7904de
[ "MIT" ]
5
2021-03-23T18:21:29.000Z
2021-06-21T22:30:31.000Z
aniconforanilist.py
EnArvy/anicon
28ecfbe7b42a4c78a575b92a20554a72ef7904de
[ "MIT" ]
null
null
null
aniconforanilist.py
EnArvy/anicon
28ecfbe7b42a4c78a575b92a20554a72ef7904de
[ "MIT" ]
2
2021-03-22T12:53:45.000Z
2021-03-22T21:38:04.000Z
from warnings import filterwarnings from PIL import Image, ImageOps import requests from requests import get import re import os import json print('''Run this in your anime folder For help and info, check out https://github.com/EnArvy/anicon ''') filterwarnings("ignore") folderlist = next(os.walk('.')...
34.892617
151
0.543758
2fdc9a6bca1bf7a1a5438725748d103fc7be8779
4,300
py
Python
C_util/functions.py
catnlp/MultiNER
76da417ea2ef0a0fd3f1f1f912009d159ad8652a
[ "MIT" ]
null
null
null
C_util/functions.py
catnlp/MultiNER
76da417ea2ef0a0fd3f1f1f912009d159ad8652a
[ "MIT" ]
null
null
null
C_util/functions.py
catnlp/MultiNER
76da417ea2ef0a0fd3f1f1f912009d159ad8652a
[ "MIT" ]
null
null
null
# encoding:utf-8 ''' @Author: catnlp @Email: wk_nlp@163.com @Time: 2018/5/2 21:04 ''' import numpy as np
34.95935
103
0.55186
2fdcb0a723367a5527e63bd7e6909f29ebc28c3f
38,912
py
Python
ziggurat_foundations/tests/test_permissions.py
ergo/ziggurat_foundations
613adf1b6022e9b5401ef7de9f5a066c88cfb6e8
[ "BSD-3-Clause" ]
59
2015-02-18T10:58:57.000Z
2021-06-15T19:52:29.000Z
ziggurat_foundations/tests/test_permissions.py
ergo/ziggurat_foundations
613adf1b6022e9b5401ef7de9f5a066c88cfb6e8
[ "BSD-3-Clause" ]
50
2015-02-18T10:12:17.000Z
2021-09-09T20:13:17.000Z
ziggurat_foundations/tests/test_permissions.py
ergo/ziggurat_foundations
613adf1b6022e9b5401ef7de9f5a066c88cfb6e8
[ "BSD-3-Clause" ]
24
2015-02-18T10:29:47.000Z
2020-03-28T20:28:56.000Z
# -*- coding: utf-8 -*- from __future__ import with_statement, unicode_literals import pytest from ziggurat_foundations.models.services.group_permission import GroupPermissionService from ziggurat_foundations.models.services.group_resource_permission import ( GroupResourcePermissionService, ) from ziggurat_founda...
37.34357
88
0.612022
2fddc51ceee9b1fd3f73ffe1e2e6a10a1fa87650
2,333
py
Python
waveshare_eink/server/start.py
dhvie/waveshare-eink
f826c2b46318bdefb3893dd62f522c317898ae32
[ "MIT" ]
null
null
null
waveshare_eink/server/start.py
dhvie/waveshare-eink
f826c2b46318bdefb3893dd62f522c317898ae32
[ "MIT" ]
null
null
null
waveshare_eink/server/start.py
dhvie/waveshare-eink
f826c2b46318bdefb3893dd62f522c317898ae32
[ "MIT" ]
null
null
null
from flask import Flask from flask import render_template import datetime as dt import json import jinja2 as j2 import requests import argparse import os import feedparser from pathlib import Path args = { 'own': os.environ['OWN_API'], 'lon': os.environ['LON'], 'lat': os.environ['LAT'] } app = Flask("ws-e...
26.511364
130
0.635662
2fe058dd084d71d3320c034887d2a6bdbc3b3c7b
322
py
Python
basic_ml/notebooks/numpy/performance_test.py
jmetzz/ml-laboratory
26b1e87bd0d80efa4f15280f7f32ad46d59efc1f
[ "MIT" ]
1
2021-09-10T16:55:35.000Z
2021-09-10T16:55:35.000Z
basic_ml/notebooks/numpy/performance_test.py
jmetzz/ml-laboratory
26b1e87bd0d80efa4f15280f7f32ad46d59efc1f
[ "MIT" ]
14
2022-03-12T01:06:08.000Z
2022-03-30T14:30:22.000Z
basic_ml/notebooks/numpy/performance_test.py
jmetzz/ml-laboratory
26b1e87bd0d80efa4f15280f7f32ad46d59efc1f
[ "MIT" ]
null
null
null
import numpy as np # Create an array with 10^7 elements arr = np.arange(1e7) # Converting ndarray to list larr = arr.tolist() # Using IPython's magic # timeit command timeit arr * 1.1 # timeit list_times(larr, 1.1) # box(x, y){line=snake}
15.333333
42
0.692547
2fe0955e36b279f30967dd3090b31e43c2bf286b
7,582
py
Python
tests/file_formats/variables/egf_vars.py
HFM3/strix
94bbc568f614bbb0f525d8ce17de4c64ef3b46d2
[ "MIT" ]
null
null
null
tests/file_formats/variables/egf_vars.py
HFM3/strix
94bbc568f614bbb0f525d8ce17de4c64ef3b46d2
[ "MIT" ]
null
null
null
tests/file_formats/variables/egf_vars.py
HFM3/strix
94bbc568f614bbb0f525d8ce17de4c64ef3b46d2
[ "MIT" ]
null
null
null
""" EGF string variables for testing. """ # POINT valid_pt = """PT Park Name, City, Pond, Fountain Post office Square, Boston, FALSE, TRUE 42.356243, -71.055631, 2.0 Boston Common, Boston, TRUE, TRUE 42.355465, -71.066412, 10.0 """ invalid_pt_geom = """PTs Park Name, City, Pond, Fountain Post office S...
17.67366
75
0.680427
2fe1655ebd31d04947a0a2208508011d402682bf
204
py
Python
app/__init__.py
jesiqueira/work
4baf5277af4ca0537fca9ba8eeec45d4281ef76d
[ "MIT" ]
null
null
null
app/__init__.py
jesiqueira/work
4baf5277af4ca0537fca9ba8eeec45d4281ef76d
[ "MIT" ]
null
null
null
app/__init__.py
jesiqueira/work
4baf5277af4ca0537fca9ba8eeec45d4281ef76d
[ "MIT" ]
null
null
null
from flask import Flask
15.692308
47
0.70098
2fe1e63f271fbc465668c88a0d44f3a5739d9e29
10,050
py
Python
risk_register/rules.py
justin441/risk_management
2f5f0f62aae34998db7cf4155297ce4f6a8d774e
[ "MIT" ]
null
null
null
risk_register/rules.py
justin441/risk_management
2f5f0f62aae34998db7cf4155297ce4f6a8d774e
[ "MIT" ]
null
null
null
risk_register/rules.py
justin441/risk_management
2f5f0f62aae34998db7cf4155297ce4f6a8d774e
[ "MIT" ]
null
null
null
import rules # ------------predicates------------ # Processus # Activits # Risques des activits # Risques des processus # Estimations # Contrles # Risques # Identification Risques # ------------rules------------ # Risques rules.add_rule('change_risque', is_risk_creator) # Identification ...
40.361446
119
0.816816
2fe2c1e144f5662d680175f25d92e5d935c15f8b
1,546
py
Python
tests/integration/test_ims.py
acidjunk/python-zeep
05fe1903d14de4d079113915a6b654200677eb88
[ "MIT" ]
null
null
null
tests/integration/test_ims.py
acidjunk/python-zeep
05fe1903d14de4d079113915a6b654200677eb88
[ "MIT" ]
null
null
null
tests/integration/test_ims.py
acidjunk/python-zeep
05fe1903d14de4d079113915a6b654200677eb88
[ "MIT" ]
null
null
null
import os import uuid import requests_mock import zeep
30.92
87
0.576973
2fe2e978cb293b53e1d50c670400eb304e6da2dc
982
py
Python
EMPIRIC_POSTPROCESS/SPalignResults/run_pdb.py
yvehchan/TIM_EMPIRIC
273091a4a257ed51dfd529709138396a18fa49ac
[ "MIT" ]
null
null
null
EMPIRIC_POSTPROCESS/SPalignResults/run_pdb.py
yvehchan/TIM_EMPIRIC
273091a4a257ed51dfd529709138396a18fa49ac
[ "MIT" ]
null
null
null
EMPIRIC_POSTPROCESS/SPalignResults/run_pdb.py
yvehchan/TIM_EMPIRIC
273091a4a257ed51dfd529709138396a18fa49ac
[ "MIT" ]
null
null
null
import subprocess as sub import sys # tm_pdb = ('Tm',"pdb1i4n_A.ent") # tt_pdb = ('Tt',"pdb1vc4_A.ent") # ss_pdb = ('Ss',"pdb2c3z_A.ent") if sys.argv[1] == 'Tm': template_name, current_template = 'Tm',"pdb1i4n_A.ent" elif sys.argv[1] == 'Tt': template_name, current_template = 'Tt',"pdb1vc4_A.ent" elif sys.a...
29.757576
104
0.638493
2fe31a354876b84e075d42b8513e52335b95d67e
407
py
Python
search/migrations/0006_auto_20180516_0457.py
kimyou7/ParkGoGreen
a0b21210823d711af56d76226919950aa01a2b92
[ "MIT" ]
null
null
null
search/migrations/0006_auto_20180516_0457.py
kimyou7/ParkGoGreen
a0b21210823d711af56d76226919950aa01a2b92
[ "MIT" ]
null
null
null
search/migrations/0006_auto_20180516_0457.py
kimyou7/ParkGoGreen
a0b21210823d711af56d76226919950aa01a2b92
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-05-16 11:57 from django.db import migrations, models
21.421053
72
0.604423
2fe5fa8c0f690ef86c1d2f99a56c03f36914d199
338
py
Python
tests/conftest.py
davidkyburz/gtfs-lite
cc3a5df7a9e582264130771a688b12eb2ea0c08c
[ "MIT" ]
4
2020-06-03T14:44:27.000Z
2022-03-24T01:11:04.000Z
tests/conftest.py
davidkyburz/gtfs-lite
cc3a5df7a9e582264130771a688b12eb2ea0c08c
[ "MIT" ]
3
2020-06-18T15:48:35.000Z
2021-03-31T14:45:13.000Z
tests/conftest.py
davidkyburz/gtfs-lite
cc3a5df7a9e582264130771a688b12eb2ea0c08c
[ "MIT" ]
2
2021-03-13T00:15:21.000Z
2021-04-13T21:38:23.000Z
from datetime import date, time import pytest
18.777778
39
0.695266
2fe6856451079b7092c8013f6dea797816021d81
263
py
Python
dotplug/__init__.py
arubertoson/dotplug
c95e06add33864a43e4934e1c5e54f90eb5e262d
[ "MIT" ]
null
null
null
dotplug/__init__.py
arubertoson/dotplug
c95e06add33864a43e4934e1c5e54f90eb5e262d
[ "MIT" ]
1
2018-07-24T07:47:08.000Z
2018-07-24T07:47:08.000Z
dotplug/__init__.py
arubertoson/dotplug
c95e06add33864a43e4934e1c5e54f90eb5e262d
[ "MIT" ]
null
null
null
""" Entry Point """ import asyncio from dotplug.main import main from dotplug.console import ncurses
14.611111
59
0.676806
2fe822a53dc8ca2f474f7ee2540a5f1ad8fb13ec
1,903
py
Python
signalr_async/core/messages.py
sam-mosleh/signalr-async
40bf79d5482051f76522987cb348e7632bcc0c07
[ "MIT" ]
4
2021-01-20T18:11:52.000Z
2022-01-12T16:24:39.000Z
signalr_async/core/messages.py
sam-mosleh/signalr-async
40bf79d5482051f76522987cb348e7632bcc0c07
[ "MIT" ]
2
2021-10-15T15:21:44.000Z
2021-12-08T22:26:39.000Z
signalr_async/core/messages.py
sam-mosleh/signalr-async
40bf79d5482051f76522987cb348e7632bcc0c07
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from enum import IntEnum from typing import Any, Dict, List, Optional, Union HubMessage = Union[ InvocationMessage, StreamItemMessage, CompletionMessage, StreamInvocationMessage, CancelInvocationMessage, PingMessage, CloseMessage, ]
22.388235
56
0.7299
2fea604bea2a0fd4db7527c2e44b6035cbadde44
1,613
py
Python
setuper web app/handlers/admin/adminhandler.py
dragondjf/CloudSetuper
31aefe629f7f2d59d287981eda3e4e618ace9e9f
[ "MIT" ]
22
2015-01-08T12:54:20.000Z
2021-05-16T04:15:45.000Z
setuper web app/handlers/admin/adminhandler.py
dragondjf/CloudSetuper
31aefe629f7f2d59d287981eda3e4e618ace9e9f
[ "MIT" ]
null
null
null
setuper web app/handlers/admin/adminhandler.py
dragondjf/CloudSetuper
31aefe629f7f2d59d287981eda3e4e618ace9e9f
[ "MIT" ]
11
2015-01-25T01:26:45.000Z
2021-08-18T01:40:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from tornado.web import authenticated, removeslash from handlers.basehandlers import BaseHandler adminusers = [ { 'username': 'admin', 'password': 'admin' } ]
24.439394
90
0.520769
2fece6a8f98a445b6d9a8e7fac1daf4aac526e8f
3,792
py
Python
testbyxcj/datasender.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
testbyxcj/datasender.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
testbyxcj/datasender.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
1
2021-05-08T02:23:00.000Z
2021-05-08T02:23:00.000Z
#coding:utf-8 from mininet.net import Mininet from mininet.topo import LinearTopo from mininet.cli import CLI # from eventlet import greenthread import argparse import threading import re from time import sleep import logging logger = logging.getLogger(__name__) logger.setLevel(level = logging.INFO) handler = loggin...
33.857143
124
0.563819
2fedeac01f028413cd75d7f9ca26c2452c3cbbfd
7,678
py
Python
pullcord-export.py
tsudoko/pullcord-export
6c6b296cb3437dbbf9896573ecb3f7d00e33b411
[ "Unlicense" ]
null
null
null
pullcord-export.py
tsudoko/pullcord-export
6c6b296cb3437dbbf9896573ecb3f7d00e33b411
[ "Unlicense" ]
null
null
null
pullcord-export.py
tsudoko/pullcord-export
6c6b296cb3437dbbf9896573ecb3f7d00e33b411
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import collections import datetime import glob import html import re import sys # this is a mess right now, feel free to make it less bad if you feel like it try: # python 3.7+ datetime.datetime.fromisoformat except AttributeError: # not fully correct, but good enough for this use case adjt...
29.644788
136
0.617479
2fee36e9dc29dc70fa3759df2bfd752c12817031
9,432
py
Python
sem/gui/misc.py
YoannDupont/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
22
2016-11-13T21:08:58.000Z
2021-04-26T07:04:54.000Z
sem/gui/misc.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
15
2016-11-15T10:21:07.000Z
2021-11-08T10:08:05.000Z
sem/gui/misc.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
8
2016-11-15T10:21:41.000Z
2022-03-04T21:28:05.000Z
""" file: misc.py author: Yoann Dupont MIT License Copyright (c) 2018 Yoann Dupont Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
38.655738
148
0.593723
2feed576dc500b8d42c7907dda91a0c63a0e4230
4,573
py
Python
character-identifier/embedding_loader.py
vtt-project/vtt-char-identify
8d991bc5b3bec1415cea2e5ea4dcc37b6c6b36b1
[ "Apache-2.0" ]
12
2018-05-20T22:01:05.000Z
2020-05-08T06:38:38.000Z
character-identifier/embedding_loader.py
vtt-project/vtt-char-identify
8d991bc5b3bec1415cea2e5ea4dcc37b6c6b36b1
[ "Apache-2.0" ]
null
null
null
character-identifier/embedding_loader.py
vtt-project/vtt-char-identify
8d991bc5b3bec1415cea2e5ea4dcc37b6c6b36b1
[ "Apache-2.0" ]
5
2018-11-18T21:16:27.000Z
2021-09-23T13:46:52.000Z
import os import sys import numpy as np import gensim from gensim.models import word2vec import data_utils from config_utils import data_paths DECREASE_FACTOR=1e-4 # TODO @Future: there should be a smarter way def filter_embeddings(word_vectors, vocabulary_idx_to_word, normalise_word=False, rnd_init=False...
44.833333
145
0.730374
2ff0c47570b54645f3e78c495d57b04e387a120a
1,980
py
Python
goNord.py
MiraculousMoon/ImageGoNord-pip
bc4dd4ee72e0aa569112877e081cb397b2637300
[ "MIT" ]
null
null
null
goNord.py
MiraculousMoon/ImageGoNord-pip
bc4dd4ee72e0aa569112877e081cb397b2637300
[ "MIT" ]
null
null
null
goNord.py
MiraculousMoon/ImageGoNord-pip
bc4dd4ee72e0aa569112877e081cb397b2637300
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from ImageGoNord import NordPaletteFile, GoNord import sys, os if __name__ == "__main__": main()
35.357143
78
0.60303
2ff3d7677d6e99fe3507a5c337bd079019cdb6be
3,091
py
Python
graphic_convergence_topology.py
win7/parallel_social_spider_optimization
9dbad144e4242fef2ff6aacc8e72376e14b03a61
[ "MIT" ]
1
2020-10-02T15:49:18.000Z
2020-10-02T15:49:18.000Z
graphic_convergence_topology.py
win7/parallel_social_spider_optimization
9dbad144e4242fef2ff6aacc8e72376e14b03a61
[ "MIT" ]
null
null
null
graphic_convergence_topology.py
win7/parallel_social_spider_optimization
9dbad144e4242fef2ff6aacc8e72376e14b03a61
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ============================================================================ Authors: Edwin Alvarez-Mamani and Jose Luis Soncco-Alvarez* *Department of Informatics Universidad Nacional de San Antonio Abad del Cusco (UNSAAC) - Per ==========================================================...
30.60396
107
0.590747
2ff404338aa621080a3a500a159897b5f6c9013e
5,821
py
Python
TestInterfaceResiduePrediction.py
sebastiandaberdaku/AntibodyInterfacePrediction
4d31f57f7cdac1fe68cfb4f3448f6e3129ae2838
[ "BSD-3-Clause" ]
10
2017-10-11T16:05:35.000Z
2021-10-01T14:43:10.000Z
TestInterfaceResiduePrediction.py
sebastiandaberdaku/AntibodyInterfacePrediction
4d31f57f7cdac1fe68cfb4f3448f6e3129ae2838
[ "BSD-3-Clause" ]
null
null
null
TestInterfaceResiduePrediction.py
sebastiandaberdaku/AntibodyInterfacePrediction
4d31f57f7cdac1fe68cfb4f3448f6e3129ae2838
[ "BSD-3-Clause" ]
2
2018-09-13T17:04:13.000Z
2019-01-22T08:55:22.000Z
# This script runs the IF algorithm for outlier detection to remove false positive patches and maps the predicted LSPs on the underlying residues. # The results are compared to other predictor software packages. # Please remember to set the path variable to the current location of the test set. import numpy as np from...
47.325203
202
0.662429
2ff6da846eaf58d5ba7cf9c6f7b0be471d5b5563
9,139
py
Python
solrcl/document.py
zaccheob/solrcl
de731c0e1f12361770121e6f2aad7e41c7a40f68
[ "MIT" ]
null
null
null
solrcl/document.py
zaccheob/solrcl
de731c0e1f12361770121e6f2aad7e41c7a40f68
[ "MIT" ]
null
null
null
solrcl/document.py
zaccheob/solrcl
de731c0e1f12361770121e6f2aad7e41c7a40f68
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- import warnings import xml.etree.cElementTree as ET import re import logging logger = logging.getLogger("solrcl") logger.setLevel(logging.DEBUG) import exceptions
40.083333
291
0.589561
2ff8bf398acab99da30d643bdc618ebcc561b20a
14,054
py
Python
testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_CheckTelemetryMarkerCHUTIL_2_Logging.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2021 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
51.291971
221
0.674897
2ffb1e0056539f8edf4a7ae850e5442548db09df
1,833
py
Python
fern/models.py
edilio/dental
3fa6b453939c7536883d1036fd414b3fae8977d7
[ "MIT" ]
1
2016-03-14T18:56:06.000Z
2016-03-14T18:56:06.000Z
fern/models.py
edilio/dental
3fa6b453939c7536883d1036fd414b3fae8977d7
[ "MIT" ]
null
null
null
fern/models.py
edilio/dental
3fa6b453939c7536883d1036fd414b3fae8977d7
[ "MIT" ]
null
null
null
import datetime from django.db import models from django.utils import timezone GENDER_CHOICES = ( ('F', 'Female'), ('M', 'Male'), ) TREATMENT_OPTIONS = ( (0, 'Implants'), (1, 'Crowns'), (2, 'Laser'), (3, 'Surgery from July-2015') )
26.185714
90
0.642662
2ffba1d7176d2ef136ac49f09e73731254afa317
1,900
py
Python
plot-salience-parsing-results.py
zetnim/saliency-semantic-parsing-reid
5ae58c5beca260d1bc1ff3e6222e08c99dd93bfe
[ "MIT" ]
12
2019-08-27T08:58:46.000Z
2021-08-05T12:44:48.000Z
plot-salience-parsing-results.py
zetnim/saliency-semantic-parsing-reid
5ae58c5beca260d1bc1ff3e6222e08c99dd93bfe
[ "MIT" ]
3
2019-11-13T00:52:08.000Z
2020-07-18T05:05:54.000Z
plot-salience-parsing-results.py
zetnim/saliency-semantic-parsing-reid
5ae58c5beca260d1bc1ff3e6222e08c99dd93bfe
[ "MIT" ]
8
2019-08-27T08:58:49.000Z
2022-02-14T14:42:20.000Z
import os.path as osp import os import pylab as plt import gc import argparse from utils import read_image parser = argparse.ArgumentParser(description='Plot rank-5 results of S-ReID, SP-ReID and SSP-ReID') parser.add_argument('-d', '--dataset', type=str, default='market1501') # Architecture parser.add_argument('-a...
32.758621
101
0.694737
2ffe9071010ecb101be8a813c44cbb919e9b3376
267
py
Python
quoters/check_connection.py
suman-kr/random-quotes
5d3241dc9647a7b16a93dece12e9f214072e64c3
[ "MIT" ]
22
2020-01-24T08:59:18.000Z
2022-02-09T02:35:20.000Z
quoters/check_connection.py
suman-kr/random-quotes
5d3241dc9647a7b16a93dece12e9f214072e64c3
[ "MIT" ]
9
2021-04-07T00:57:09.000Z
2022-03-31T10:18:06.000Z
quoters/check_connection.py
suman-kr/random-quotes
5d3241dc9647a7b16a93dece12e9f214072e64c3
[ "MIT" ]
1
2021-06-06T19:00:55.000Z
2021-06-06T19:00:55.000Z
import socket from quoters.constants import CONN_URL
20.538462
60
0.632959
2fff77d99a6ba3eacfb663befedf8f439580d40e
7,917
py
Python
tests.py
mkolar/maya-capture
01ef86333694cd528293c855ac39c18e84bbffcf
[ "MIT" ]
118
2016-02-28T18:20:09.000Z
2022-03-05T03:28:44.000Z
tests.py
mkolar/maya-capture
01ef86333694cd528293c855ac39c18e84bbffcf
[ "MIT" ]
46
2016-02-26T22:00:41.000Z
2018-11-19T12:56:43.000Z
tests.py
mkolar/maya-capture
01ef86333694cd528293c855ac39c18e84bbffcf
[ "MIT" ]
32
2016-02-26T21:59:20.000Z
2021-08-09T07:33:37.000Z
"""Tests for capture. Within Maya, setup a scene of moderate range (e.g. 10 frames) and run the following. Example: >>> nose.run(argv=[sys.argv[0], "tests", "-v"]) """ import capture from maya import cmds def test_capture(): """Plain capture works""" capture.capture() def test_camera_options(): ...
31.416667
81
0.611848
2fff8b0aec7151100a55548ed8c95e2c72aeeace
3,400
py
Python
examples/ubqc/client.py
cgmcintyr/SimulaQron
d80f0e43f2d993dfde5f8bfc253ca4987c19a12f
[ "BSD-3-Clause" ]
null
null
null
examples/ubqc/client.py
cgmcintyr/SimulaQron
d80f0e43f2d993dfde5f8bfc253ca4987c19a12f
[ "BSD-3-Clause" ]
6
2018-10-18T09:06:23.000Z
2018-10-24T16:08:20.000Z
examples/ubqc/client.py
cgmcintyr/SimulaQron
d80f0e43f2d993dfde5f8bfc253ca4987c19a12f
[ "BSD-3-Clause" ]
5
2018-10-13T12:11:29.000Z
2020-01-24T23:05:12.000Z
import random import struct import sys import time from pathlib import Path import numpy as np from SimulaQron.general.hostConfig import * from SimulaQron.cqc.backend.cqcHeader import * from SimulaQron.cqc.pythonLib.cqc import * from flow import circuit_file_to_flow, count_qubits_in_sequence from angle import measure...
32.075472
88
0.649118
2ffffeae1ee94afdecc472f7586e718b4d8018e7
4,733
py
Python
save_combine.py
firebrettbrown/bbgm
31d41cef2175be452793866e1119150518936120
[ "MIT" ]
11
2019-06-25T17:20:48.000Z
2020-07-04T03:09:17.000Z
save_combine.py
firebrettbrown/bbgm
31d41cef2175be452793866e1119150518936120
[ "MIT" ]
null
null
null
save_combine.py
firebrettbrown/bbgm
31d41cef2175be452793866e1119150518936120
[ "MIT" ]
10
2019-06-28T06:26:28.000Z
2022-01-17T18:12:36.000Z
import argparse import os import sys import shutil import subprocess import re from bs4 import BeautifulSoup import pandas as pd import numpy as np import pickle from selenium import webdriver tables = {} parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('-...
41.156522
175
0.539193
64014d8fee54d1b69d480a688afff4e7b8216ffa
958
py
Python
osgar/test_node.py
m3d/osgar_archive_2020
556b534e59f8aa9b6c8055e2785c8ae75a1a0a0e
[ "MIT" ]
12
2017-02-16T10:22:59.000Z
2022-03-20T05:48:06.000Z
osgar/test_node.py
m3d/osgar_archive_2020
556b534e59f8aa9b6c8055e2785c8ae75a1a0a0e
[ "MIT" ]
618
2016-08-30T04:46:12.000Z
2022-03-25T16:03:10.000Z
osgar/test_node.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
11
2016-08-27T20:02:55.000Z
2022-03-07T08:53:53.000Z
import unittest from unittest.mock import MagicMock from datetime import timedelta from osgar.bus import Bus from osgar.node import Node # vim: expandtab sw=4 ts=4
27.371429
68
0.626305
6402443744b3bd54e4d4bbd65fa2dea681ba9bdd
12,025
py
Python
Programacao I/main.py
HiggsWRX/uevora
7d7b3c082631628ffe4d0ecce707b532f3f7afe8
[ "MIT" ]
1
2017-05-08T13:48:49.000Z
2017-05-08T13:48:49.000Z
Programacao I/main.py
HiggsWRX/uevora
7d7b3c082631628ffe4d0ecce707b532f3f7afe8
[ "MIT" ]
null
null
null
Programacao I/main.py
HiggsWRX/uevora
7d7b3c082631628ffe4d0ecce707b532f3f7afe8
[ "MIT" ]
2
2018-05-07T10:51:34.000Z
2019-07-14T21:21:06.000Z
'''Disciplina: Programao I Trabalho prtico ano lectivo 2013/2014 Realizado por Hiago Oliveira (29248) e Rui Oliveira (31511) ''' # solve(b, p, l) # The solve function has all the necessary arguments to start solving the # puzzle, it will first create a pool of all possible paths from point to point # then finding the ...
32.325269
79
0.538462
640327734c43cd0a30210d3a9d569373531e582d
7,824
py
Python
backend/src/services/post_translation/post_translation.py
didi/MeetDot
a57009d30c1347a9b85950c2e02b77685ce63952
[ "Apache-2.0" ]
6
2021-09-23T14:53:58.000Z
2022-02-18T10:14:17.000Z
backend/src/services/post_translation/post_translation.py
didi/MeetDot
a57009d30c1347a9b85950c2e02b77685ce63952
[ "Apache-2.0" ]
null
null
null
backend/src/services/post_translation/post_translation.py
didi/MeetDot
a57009d30c1347a9b85950c2e02b77685ce63952
[ "Apache-2.0" ]
1
2021-09-24T02:48:50.000Z
2021-09-24T02:48:50.000Z
""" The main responsibilites of PostTranslation class are: 1) initialize given strategy 2) take API request 3) remove profanity 4) return translation text after these processes Post-translation API input: { "session_id": unique session ID, "strategies": list of strategies want to be applied (e.g. ["translate-...
37.257143
98
0.624361
64045b106becea133b4f1a358490427556743f7a
427
py
Python
src/3-2-7.py
Nikxxx007/sturyPython
09fbcb3e77425a810deea93e06e14134dc154f23
[ "MIT" ]
null
null
null
src/3-2-7.py
Nikxxx007/sturyPython
09fbcb3e77425a810deea93e06e14134dc154f23
[ "MIT" ]
null
null
null
src/3-2-7.py
Nikxxx007/sturyPython
09fbcb3e77425a810deea93e06e14134dc154f23
[ "MIT" ]
null
null
null
from math import * if __name__ == '__main__': main()
18.565217
82
0.487119
64052ebf346968245c36b8f3711569edc3bcb093
454
py
Python
navigationCommand.py
islam-shamiul/Selenium_python
ee4cea5e58ab9afa88b3ba3e70aef52ec4808d4a
[ "MIT" ]
null
null
null
navigationCommand.py
islam-shamiul/Selenium_python
ee4cea5e58ab9afa88b3ba3e70aef52ec4808d4a
[ "MIT" ]
null
null
null
navigationCommand.py
islam-shamiul/Selenium_python
ee4cea5e58ab9afa88b3ba3e70aef52ec4808d4a
[ "MIT" ]
1
2020-07-21T08:43:25.000Z
2020-07-21T08:43:25.000Z
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time driver = webdriver.Chrome(executable_path="E:/SQA/chromedriver_win32/chromedriver.exe") driver.get("http://newtours.demoaut.com/") time.sleep(5) print(driver.title) driver.get("https://www.google.com/") time.sleep(5) print(dr...
15.133333
87
0.762115
64053180a94832d8869b58084f1530b41aef4032
14,379
py
Python
modules/coins/network.py
blakebjorn/tuxpay
9bcbb309d6d41add9a2224f69efa7d525d829c95
[ "MIT" ]
null
null
null
modules/coins/network.py
blakebjorn/tuxpay
9bcbb309d6d41add9a2224f69efa7d525d829c95
[ "MIT" ]
null
null
null
modules/coins/network.py
blakebjorn/tuxpay
9bcbb309d6d41add9a2224f69efa7d525d829c95
[ "MIT" ]
null
null
null
import asyncio import datetime import json import warnings from pathlib import Path from typing import Tuple, Optional, TYPE_CHECKING import aiorpcx from modules import config from modules.electrum_mods.functions import BIP32Node, pubkey_to_address, address_to_script, \ script_to_scripthash, constants from module...
41.921283
118
0.583073
64060e07a2b23b4ba1835382c050f6f85a690bf8
3,834
py
Python
tests/acquisition/covidcast/test_direction_updater.py
sgsmob/delphi-epidata
801f2729ea80b42891aa282c858c489a47049082
[ "MIT" ]
null
null
null
tests/acquisition/covidcast/test_direction_updater.py
sgsmob/delphi-epidata
801f2729ea80b42891aa282c858c489a47049082
[ "MIT" ]
null
null
null
tests/acquisition/covidcast/test_direction_updater.py
sgsmob/delphi-epidata
801f2729ea80b42891aa282c858c489a47049082
[ "MIT" ]
null
null
null
"""Unit tests for direction_updater.py.""" # standard library import argparse import unittest from unittest.mock import MagicMock # py3tester coverage target __test_target__ = 'delphi.epidata.acquisition.covidcast.direction_updater'
32.769231
87
0.708659
6407f13b7469cb39d99bb96b0754b0f7bf912032
1,388
py
Python
main.py
stspbu/repository-downloader
345da223377ca55f0acae93ea689cc6bb044a721
[ "WTFPL" ]
3
2021-07-01T12:00:41.000Z
2021-10-06T21:05:59.000Z
main.py
stspbu/repository-downloader
345da223377ca55f0acae93ea689cc6bb044a721
[ "WTFPL" ]
null
null
null
main.py
stspbu/repository-downloader
345da223377ca55f0acae93ea689cc6bb044a721
[ "WTFPL" ]
null
null
null
import requests import os import logging import subprocess import re import settings _GITHUB_BASE_URL = 'https://api.github.com' _REPO_DIR = settings.get('repo_dir', os.getcwd()) _REPO_CNT = settings.get('repo_count', 10) _QUERY_STRING = settings.get('repo_query_string') _TOKEN = settings.get('github_token', require...
25.236364
89
0.598703
6408b07c5f3fe2b043a2035f0c421921305e61ad
7,074
py
Python
p2p_python/tool/share.py
yoosofan/p2p-python
f8822d5c9765007e2785a4b357e33a40e382a704
[ "MIT" ]
null
null
null
p2p_python/tool/share.py
yoosofan/p2p-python
f8822d5c9765007e2785a4b357e33a40e382a704
[ "MIT" ]
null
null
null
p2p_python/tool/share.py
yoosofan/p2p-python
f8822d5c9765007e2785a4b357e33a40e382a704
[ "MIT" ]
null
null
null
#!/user/env python3 # -*- coding: utf-8 -*- import threading import time import os.path from hashlib import sha256 import bjson import logging import random from binascii import hexlify from ..config import C, V, PeerToPeerError from ..client import FileReceiveError, ClientCmd from .utils import AESCipher
36.65285
102
0.523325
6408dbf78d13c9dddae31edaaf6d36de53538562
5,455
py
Python
sbinn/sbinn_tf.py
lu-group/sbinn
46a9d27d4bbc0a24fb4599364c4e91d7346c6060
[ "Apache-2.0" ]
5
2022-02-09T21:30:40.000Z
2022-03-04T19:40:57.000Z
sbinn/sbinn_tf.py
lu-group/sbinn
46a9d27d4bbc0a24fb4599364c4e91d7346c6060
[ "Apache-2.0" ]
5
2022-02-09T23:10:37.000Z
2022-03-24T18:27:59.000Z
sbinn/sbinn_tf.py
lu-group/sbinn
46a9d27d4bbc0a24fb4599364c4e91d7346c6060
[ "Apache-2.0" ]
1
2022-03-05T15:37:50.000Z
2022-03-05T15:37:50.000Z
import numpy as np import deepxde as dde from deepxde.backend import tf import variable_to_parameter_transform gluc_data = np.hsplit(np.loadtxt("glucose.dat"), [1]) meal_data = np.hsplit(np.loadtxt("meal.dat"), [4]) t = gluc_data[0] y = gluc_data[1] meal_t = meal_data[0] meal_q = meal_data[1] sbinn(...
29.327957
88
0.498808
640924f10b1d56697c6fdd50eb6f54c032ea499e
308
py
Python
services/web/server/src/simcore_service_webserver/session.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
services/web/server/src/simcore_service_webserver/session.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
services/web/server/src/simcore_service_webserver/session.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
""" Session submodule """ from aiohttp import web from servicelib.session import get_session from servicelib.session import setup_session as do_setup_session # alias setup_session = setup __all__ = ( "setup_session", "get_session", )
14.666667
64
0.746753
640a9d4160e1e902532bad6cb3c3e5185242dc67
11,852
py
Python
photometa/forms.py
Flantropy/photometalizer
3ccfba4a8783f310a33d28c614252cb07bc48536
[ "MIT" ]
null
null
null
photometa/forms.py
Flantropy/photometalizer
3ccfba4a8783f310a33d28c614252cb07bc48536
[ "MIT" ]
null
null
null
photometa/forms.py
Flantropy/photometalizer
3ccfba4a8783f310a33d28c614252cb07bc48536
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from django.core.validators import FileExtensionValidator from django.core.files.uploadedfile import InMemoryUploadedFile from django.forms import Form, ModelForm, FileInput from django.forms.fields import * from captcha.fields import CaptchaField from .models import ...
54.118721
85
0.724435
640b6609dd9c643f41eebce25853582c03e0723c
3,045
py
Python
setup.py
liu-bin-fluid/PySPOD
55e0d6cde555c7d2c26c30ff8b4bb1aea76755ea
[ "MIT" ]
null
null
null
setup.py
liu-bin-fluid/PySPOD
55e0d6cde555c7d2c26c30ff8b4bb1aea76755ea
[ "MIT" ]
null
null
null
setup.py
liu-bin-fluid/PySPOD
55e0d6cde555c7d2c26c30ff8b4bb1aea76755ea
[ "MIT" ]
null
null
null
import os import sys import pyspod import shutil from setuptools import setup from setuptools import Command # GLOBAL VARIABLES NAME = pyspod.__name__ URL = pyspod.__url__ AUTHOR = pyspod.__author__ EMAIL = pyspod.__email__ VERSION = pyspod.__version__ KEYWORDS='spectral-proper-orthogonal-decomposition spod' REQUIRED ...
24.756098
85
0.708374
640e131501405e2d30ba4b73bddb7bcc5ccbd2f8
5,250
py
Python
scripts/make_s2and_mini_dataset.py
atypon/S2AND
d1af114edf5941d0ec00f56b11508582e1091913
[ "Apache-2.0" ]
39
2021-03-09T23:07:43.000Z
2022-03-24T17:32:54.000Z
scripts/make_s2and_mini_dataset.py
atypon/S2AND
d1af114edf5941d0ec00f56b11508582e1091913
[ "Apache-2.0" ]
10
2021-03-16T19:19:50.000Z
2022-03-01T22:16:46.000Z
scripts/make_s2and_mini_dataset.py
atypon/S2AND
d1af114edf5941d0ec00f56b11508582e1091913
[ "Apache-2.0" ]
11
2021-04-02T11:38:43.000Z
2022-03-28T02:58:18.000Z
import os import json import pickle import collections import numpy as np from s2and.consts import CONFIG DATA_DIR = CONFIG["main_data_dir"] OUTPUT_DIR = os.path.join(DATA_DIR, "s2and_mini") if not os.path.exists(OUTPUT_DIR): os.mkdir(OUTPUT_DIR) # excluding MEDLINE because it has no clusters DATASETS = [ "a...
38.321168
106
0.620762
640f471758ef4a58c7063f5ee390d52e3bdd5c27
1,101
py
Python
adminmgr/media/code/python/red3/R1.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
9
2019-11-08T02:05:27.000Z
2021-12-13T12:06:35.000Z
adminmgr/media/code/python/red3/R1.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
6
2019-11-27T03:23:16.000Z
2021-06-10T19:15:13.000Z
adminmgr/media/code/python/red2/R1.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
4
2019-11-26T17:04:27.000Z
2021-12-13T11:57:03.000Z
#!/usr/bin/python3 """reducer.py""" from operator import itemgetter import sys answer_dict={} current_batsman = None current_count = 0 current_out=0 word = None max_wicket=0 # input comes from STDIN for line in sys.stdin: line = line.strip() batsman,wtype,count = line.split('\t') try: count = int(count) except V...
28.230769
81
0.712988
640fe8452f7911154b7522bc1236edb9adb20fe6
1,973
py
Python
20160821_wavetable_chorus/code/runscripts/run_sawtooth.py
weegreenblobbie/sd_audio_hackers
25a9cfa5049d5a1155c80fb1242c061c096a0d14
[ "MIT" ]
1
2016-07-10T22:37:22.000Z
2016-07-10T22:37:22.000Z
20160821_wavetable_chorus/code/runscripts/run_sawtooth.py
weegreenblobbie/sd_audio_hackers
25a9cfa5049d5a1155c80fb1242c061c096a0d14
[ "MIT" ]
null
null
null
20160821_wavetable_chorus/code/runscripts/run_sawtooth.py
weegreenblobbie/sd_audio_hackers
25a9cfa5049d5a1155c80fb1242c061c096a0d14
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from sdaudio.callables import Circular from sdaudio.callables import Constant from sdaudio import draw from sdaudio import wavio from sdaudio.wt_oscillators import Choruses if __name__ == "__main__": main()
20.132653
78
0.540294
641072198fc4166738877f258f40200bcaf10935
539
py
Python
geotrek/outdoor/migrations/0026_auto_20210915_1346.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
50
2016-10-19T23:01:21.000Z
2022-03-28T08:28:34.000Z
geotrek/outdoor/migrations/0026_auto_20210915_1346.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
1,422
2016-10-27T10:39:40.000Z
2022-03-31T13:37:10.000Z
geotrek/outdoor/migrations/0026_auto_20210915_1346.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
46
2016-10-27T10:59:10.000Z
2022-03-22T15:55:56.000Z
# Generated by Django 3.1.13 on 2021-09-15 13:46 from django.db import migrations, models
23.434783
96
0.588126
6410afce20729bdd144bd450343a4fe9f0265fcf
17,977
py
Python
run.py
nicholasfalconi/Restaurant-modeling-project
1a54a0aa79d8e783b369960b5f8bb12aa1f07528
[ "MIT" ]
null
null
null
run.py
nicholasfalconi/Restaurant-modeling-project
1a54a0aa79d8e783b369960b5f8bb12aa1f07528
[ "MIT" ]
null
null
null
run.py
nicholasfalconi/Restaurant-modeling-project
1a54a0aa79d8e783b369960b5f8bb12aa1f07528
[ "MIT" ]
1
2022-01-27T00:03:27.000Z
2022-01-27T00:03:27.000Z
""" Nicholas Falconi Lizzy Klosa Kaitlyn hung Alex baldassare CISC 204 Modelling project Wed december 9th 2020 Professor Muise """ #Import from nnf import Var from nnf import Or import nnf from lib204 import Encoding from csvReader import readCSV ''' Customer class Used to create a class containing the various rest...
35.180039
151
0.637036
6413123da59d354e8ffb8662aa1808d1cf028e0c
1,521
py
Python
tdd/app/t_stock_backtest.py
yt7589/aqp
c9c1c79facdea7ace73e2421e8a5868d87fb58dd
[ "Apache-2.0" ]
null
null
null
tdd/app/t_stock_backtest.py
yt7589/aqp
c9c1c79facdea7ace73e2421e8a5868d87fb58dd
[ "Apache-2.0" ]
null
null
null
tdd/app/t_stock_backtest.py
yt7589/aqp
c9c1c79facdea7ace73e2421e8a5868d87fb58dd
[ "Apache-2.0" ]
null
null
null
import unittest from app.stock_backtest import StockBacktest
33.8
99
0.584484
64134484d7315ddaea25899ef8706ea900d1a58c
3,080
py
Python
lib/sii_connector_auth.py
SunPaz/sii-dte-py
9b9cdc55edc20d50eaef777560cde763bcf979f3
[ "MIT" ]
null
null
null
lib/sii_connector_auth.py
SunPaz/sii-dte-py
9b9cdc55edc20d50eaef777560cde763bcf979f3
[ "MIT" ]
null
null
null
lib/sii_connector_auth.py
SunPaz/sii-dte-py
9b9cdc55edc20d50eaef777560cde763bcf979f3
[ "MIT" ]
1
2020-10-04T00:37:48.000Z
2020-10-04T00:37:48.000Z
from lib.sii_connector_base import SiiConnectorBase from lxml.etree import tostring import logging from requests import Session from zeep import Client,Transport from lib.zeep.sii_plugin import SiiPlugin from zeep.exceptions import SignatureVerificationFailed import re
33.11828
151
0.697727
641430445926479d1d6d4a9324027293c6645f00
15,363
py
Python
src/psd_tools/decoder/image_resources.py
jacenfox/psd-tools2
4dff53316a18a96b331832c5fcdb48a15ab26b02
[ "MIT" ]
2
2019-05-15T12:43:23.000Z
2020-06-09T15:12:52.000Z
src/psd_tools/decoder/image_resources.py
jacenfox/psd-tools2
4dff53316a18a96b331832c5fcdb48a15ab26b02
[ "MIT" ]
null
null
null
src/psd_tools/decoder/image_resources.py
jacenfox/psd-tools2
4dff53316a18a96b331832c5fcdb48a15ab26b02
[ "MIT" ]
1
2019-03-14T02:24:50.000Z
2019-03-14T02:24:50.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals, division import io import warnings from collections import namedtuple from psd_tools.utils import (read_pascal_string, unpack, read_fmt, read_unicode_string, be_array_from_bytes, d...
34.446188
79
0.705136
6415bbfefc664e5c565d40bc9a3fb40822f86293
7,415
py
Python
Full_Version.py
Hermosa-Ren/Histogram_of_Oriented_Gradients
7f50bcf130af3568d4bf3fe00ff09e123da48094
[ "MIT" ]
null
null
null
Full_Version.py
Hermosa-Ren/Histogram_of_Oriented_Gradients
7f50bcf130af3568d4bf3fe00ff09e123da48094
[ "MIT" ]
null
null
null
Full_Version.py
Hermosa-Ren/Histogram_of_Oriented_Gradients
7f50bcf130af3568d4bf3fe00ff09e123da48094
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np import matplotlib.pyplot as plt # #Image_Pretreatment #Histogram_of_Oriented_Gradients if __name__ == '__main__': #input_image_path = (r'\.png') this_file_path = os.getcwd() # #input_image_path = (r'{}\running_man_1.png'.format(this_fil...
35.649038
156
0.589076
6416796cf00258667b65d09bd35e52a24ddcd9ba
145
py
Python
CodeForces/Bit++.py
PratikGarai/Coding-Challenges
af5f4458505b26538ec2d7dc0ca09aa236b2d01c
[ "MIT" ]
null
null
null
CodeForces/Bit++.py
PratikGarai/Coding-Challenges
af5f4458505b26538ec2d7dc0ca09aa236b2d01c
[ "MIT" ]
2
2020-10-01T16:13:37.000Z
2020-10-30T19:12:38.000Z
CodeForces/Bit++.py
PratikGarai/Coding-Challenges
af5f4458505b26538ec2d7dc0ca09aa236b2d01c
[ "MIT" ]
6
2020-10-03T09:04:26.000Z
2022-01-09T11:57:40.000Z
n = int(input()) x = 0 for i in range(n): l = set([j for j in input()]) if "+" in l: x += 1 else : x -= 1 print(x)
12.083333
33
0.4
641735c3bfcea0e37882390480bc0b8efbfeee60
259
py
Python
boj/dynamic/boj_2193.py
ruslanlvivsky/python-algorithm
2b49bed33cd0e95b8a1e758008191f4392b3f667
[ "MIT" ]
3
2021-07-18T14:40:24.000Z
2021-08-14T18:08:13.000Z
boj/dynamic/boj_2193.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
boj/dynamic/boj_2193.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
import sys n = int(sys.stdin.readline().strip()) dp = [[0, 0] for _ in range(n + 1)] dp[1][1] = 1 for i in range(2, n + 1): dp[i][0] = dp[i - 1][0] + dp[i - 1][1] dp[i][1] = dp[i - 1][0] result = dp[n][0] + dp[n][1] sys.stdout.write(str(result))
17.266667
42
0.501931
64199ae9b43b9d4ae5575ea15f308f73ddc6c547
889
py
Python
geotrek/feedback/urls.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
geotrek/feedback/urls.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
geotrek/feedback/urls.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
from django.conf import settings from django.urls import path, register_converter from mapentity.registry import registry from rest_framework.routers import DefaultRouter from geotrek.common.urls import LangConverter from geotrek.feedback import models as feedback_models from .views import CategoryList, FeedbackOptio...
38.652174
102
0.80315
6419d40c21a4416e16add327518a46322b7368d5
2,527
py
Python
tests/unit/utils/test_views.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
tests/unit/utils/test_views.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
tests/unit/utils/test_views.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import MagicMock, patch from openslides.utils import views
31.197531
97
0.638306
641a520c95abe7f876833f68a738f9b1945352a3
1,619
py
Python
librair/parsers.py
herreio/librair
100bf2f07e9088e68d3a8609ac786a9455c57f1f
[ "MIT" ]
1
2020-02-09T13:31:51.000Z
2020-02-09T13:31:51.000Z
librair/parsers.py
herreio/librair
100bf2f07e9088e68d3a8609ac786a9455c57f1f
[ "MIT" ]
1
2022-02-02T13:54:15.000Z
2022-02-02T13:54:15.000Z
librair/parsers.py
herreio/librair
100bf2f07e9088e68d3a8609ac786a9455c57f1f
[ "MIT" ]
1
2020-02-09T13:39:30.000Z
2020-02-09T13:39:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from .schemas import plain from .protocols import http
27.440678
77
0.493515
641b7e277781a28e894e621e77d9ddecff88e651
700
py
Python
flask_wdb.py
techniq/flask-wdb
5f71aa21b21d4101f3aac197941269e763e2593a
[ "BSD-3-Clause" ]
7
2015-11-05T18:29:15.000Z
2019-06-03T16:00:47.000Z
flask_wdb.py
techniq/flask-wdb
5f71aa21b21d4101f3aac197941269e763e2593a
[ "BSD-3-Clause" ]
2
2015-09-04T03:24:14.000Z
2021-01-31T10:10:49.000Z
flask_wdb.py
techniq/flask-wdb
5f71aa21b21d4101f3aac197941269e763e2593a
[ "BSD-3-Clause" ]
1
2018-03-12T09:09:31.000Z
2018-03-12T09:09:31.000Z
from flask import Flask from wdb.ext import WdbMiddleware
26.923077
77
0.611429
641d0a7429ff342f65694bfa35215c3f1a6b06a3
16,130
py
Python
uib_experiments/experiment/experiment.py
miquelmn/uib_experiments
d9cdb72758f7c3862dcb32374d06cce05938f692
[ "MIT" ]
null
null
null
uib_experiments/experiment/experiment.py
miquelmn/uib_experiments
d9cdb72758f7c3862dcb32374d06cce05938f692
[ "MIT" ]
null
null
null
uib_experiments/experiment/experiment.py
miquelmn/uib_experiments
d9cdb72758f7c3862dcb32374d06cce05938f692
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Experiment module. This module contains a set of function and classes to handles experiments. The aim of these methods is to be able to save results easily with an standard format. Written by: Miquel Mir Nicolau """ from typing import Union, Tuple, List import os import glob import pickle ...
28.548673
99
0.588593
641d5ed927aa7dc57c1e388779384eb82bc87778
507
py
Python
Leetcode/0498. Diagonal Traverse.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
1
2021-07-15T18:40:26.000Z
2021-07-15T18:40:26.000Z
Leetcode/0498. Diagonal Traverse.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
null
null
null
Leetcode/0498. Diagonal Traverse.py
luckyrabbit85/Python
ed134fd70b4a7b84b183b87b85ad5190f54c9526
[ "MIT" ]
null
null
null
import collections
29.823529
70
0.524655
641df5fb5db24eb21cd2895f9c79ad3ad2b58d9b
321
py
Python
src/mars_profiling/__init__.py
wjsi/mars-profiling
1accb00c90da67b46ad98ea1592fecc524625454
[ "MIT" ]
1
2021-01-21T09:11:58.000Z
2021-01-21T09:11:58.000Z
src/mars_profiling/__init__.py
wjsi/mars-profiling
1accb00c90da67b46ad98ea1592fecc524625454
[ "MIT" ]
null
null
null
src/mars_profiling/__init__.py
wjsi/mars-profiling
1accb00c90da67b46ad98ea1592fecc524625454
[ "MIT" ]
1
2020-12-30T08:32:29.000Z
2020-12-30T08:32:29.000Z
"""Main module of pandas-profiling. .. include:: ../../README.md """ from mars_profiling.config import Config, config from mars_profiling.controller import pandas_decorator from mars_profiling.profile_report import ProfileReport from mars_profiling.version import __version__ clear_config = ProfileReport.clear_config...
26.75
55
0.82243
641dfd3f82c50b129dcf2d935fc5c8f6104d2c1a
161
py
Python
revscoring/revscoring/languages/features/dictionary/tests/test_util.py
yafeunteun/wikipedia-spam-classifier
fca782b39b287fbc0b2dd54f8e2bf33c6d3bc519
[ "MIT" ]
2
2016-10-26T18:58:53.000Z
2017-06-22T20:11:20.000Z
revscoring/revscoring/languages/features/dictionary/tests/test_util.py
yafeunteun/wikipedia-spam-classifier
fca782b39b287fbc0b2dd54f8e2bf33c6d3bc519
[ "MIT" ]
null
null
null
revscoring/revscoring/languages/features/dictionary/tests/test_util.py
yafeunteun/wikipedia-spam-classifier
fca782b39b287fbc0b2dd54f8e2bf33c6d3bc519
[ "MIT" ]
null
null
null
from nose.tools import eq_ from ..util import utf16_cleanup
17.888889
47
0.677019
641e664d10bd57eb59a8d00d6a45b411c67df279
128
py
Python
whereToGo/src/sensors/_conf_sensors.py
k323r/whereToGo
5ec94a49e818c6a2acfb08c66755100c26c42f22
[ "MIT" ]
null
null
null
whereToGo/src/sensors/_conf_sensors.py
k323r/whereToGo
5ec94a49e818c6a2acfb08c66755100c26c42f22
[ "MIT" ]
null
null
null
whereToGo/src/sensors/_conf_sensors.py
k323r/whereToGo
5ec94a49e818c6a2acfb08c66755100c26c42f22
[ "MIT" ]
null
null
null
import os.path ROOT = os.path.dirname( os.path.dirname( os.path.dirname( os.path.abspath(__file__) )))
16
37
0.59375
641e70a5914ffc3dba0ea328a0529e8b586a37b9
2,533
py
Python
tools/fileinfo/features/eziriz-packer-detection/test.py
stepanek-m/retdec-regression-tests
12b834b14ede2826fec451368fa8192ab00ddadf
[ "MIT" ]
null
null
null
tools/fileinfo/features/eziriz-packer-detection/test.py
stepanek-m/retdec-regression-tests
12b834b14ede2826fec451368fa8192ab00ddadf
[ "MIT" ]
null
null
null
tools/fileinfo/features/eziriz-packer-detection/test.py
stepanek-m/retdec-regression-tests
12b834b14ede2826fec451368fa8192ab00ddadf
[ "MIT" ]
null
null
null
from regression_tests import *
57.568182
123
0.69167
641e9e0dce5e1416f0e6f8b2e384e21e197b3478
160
py
Python
Codigo_EngDados/exe03.py
SouzaMarcel0/Exercicios_Python
d0c75292b7c725faeaf49db161b7d1a0f71a9418
[ "MIT" ]
null
null
null
Codigo_EngDados/exe03.py
SouzaMarcel0/Exercicios_Python
d0c75292b7c725faeaf49db161b7d1a0f71a9418
[ "MIT" ]
null
null
null
Codigo_EngDados/exe03.py
SouzaMarcel0/Exercicios_Python
d0c75292b7c725faeaf49db161b7d1a0f71a9418
[ "MIT" ]
null
null
null
client = pymongo.MongoClient("mongodb+srv://usermgs:udUnpg6aJnCp9d2W@cluster0.2ivys.mongodb.net/baseteste?retryWrites=true&w=majority") db = client.test
16
135
0.78125
641ed17899fa236582e1997b155d0d90fa4f025d
1,340
py
Python
clean_crime_file.py
sachinmyneni/fundata
20d8cd26f08803627debfd81077d34850ff42ab9
[ "MIT" ]
null
null
null
clean_crime_file.py
sachinmyneni/fundata
20d8cd26f08803627debfd81077d34850ff42ab9
[ "MIT" ]
null
null
null
clean_crime_file.py
sachinmyneni/fundata
20d8cd26f08803627debfd81077d34850ff42ab9
[ "MIT" ]
null
null
null
import pandas as pd import re import logging # logging.basicConfig(filename="spotcrime_scrape.log", level=logging.DEBUG, # filemode='a', format='%(asctime)s %(message)s') # define a Handler which writes INFO messages or higher to the sys.stderr console = logging.StreamHandler() console.setLevel(lo...
34.358974
117
0.727612