hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
bf030604f760da2cd7ee5e8cceefb4446d8d3a92
693
py
Python
api/tests/e2e/utils/e2e_test_case.py
nicfix/monorepo-template
ec265d9e746b70e6a13a7a5e1e82f150b63a7ecf
[ "MIT" ]
7
2020-06-03T06:52:22.000Z
2021-12-27T07:02:45.000Z
api/tests/e2e/utils/e2e_test_case.py
nicfix/monorepo-template
ec265d9e746b70e6a13a7a5e1e82f150b63a7ecf
[ "MIT" ]
12
2020-05-23T18:36:41.000Z
2021-05-25T08:16:41.000Z
tests/e2e/utils/e2e_test_case.py
nicfix/py-ddd-microservice-boilerplate
1844a8fde57dc5bbaacf6a71163beb7226041a0c
[ "MIT" ]
1
2020-06-02T09:39:00.000Z
2020-06-02T09:39:00.000Z
from dependency_injector import providers from pet_store.services.unit_of_work import uow_provider from tests.e2e.utils.testing_infrastructure import (uow_factory) # Changing the UnitOfWorkFactory using the dependency_injector library uow_provider.override(providers.Callable(uow_factory))
23.896552
70
0.74026
from unittest import TestCase from dependency_injector import providers from pet_store.services.unit_of_work import uow_provider from tests.e2e.utils.testing_infrastructure import ( get_session, destroy_testing_db, create_testing_db, uow_factory, ) # Changing the UnitOfWorkFactory using the dependenc...
0
148
0
127
0
0
0
79
45
efd90dc2cb69538c265de9f7d2a3cf5cd79fd61c
1,569
py
Python
vocabulary/migrations/0001_initial.py
ondrejsika/vocabulary
9cba7c7ea7eb09b6345a60d0bb3865ed4114820d
[ "MIT" ]
1
2017-05-21T19:05:38.000Z
2017-05-21T19:05:38.000Z
vocabulary/migrations/0001_initial.py
ondrejsika/vocabulary
9cba7c7ea7eb09b6345a60d0bb3865ed4114820d
[ "MIT" ]
null
null
null
vocabulary/migrations/0001_initial.py
ondrejsika/vocabulary
9cba7c7ea7eb09b6345a60d0bb3865ed4114820d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals
36.488372
114
0.572976
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
0
0
0
1,406
0
0
0
30
68
64b800a103c3cfa4f8b8904d8181ada4a3429767
330
py
Python
others/sumitrust2019/sumitrust2019d.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
others/sumitrust2019/sumitrust2019d.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
others/sumitrust2019/sumitrust2019d.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
N = int(input()) S = input() result = 0 for i in range(10): a = S.find(str(i)) if a == -1: continue for j in range(10): b = S.find(str(j), a + 1) if b == -1: continue for k in range(10): if S.find(str(k), b + 1) != -1: result += 1 prin...
19.411765
43
0.421212
N = int(input()) S = input() result = 0 for i in range(10): a = S.find(str(i)) if a == -1: continue for j in range(10): b = S.find(str(j), a + 1) if b == -1: continue for k in range(10): if S.find(str(k), b + 1) != -1: result += 1 prin...
0
0
0
0
0
0
0
0
0
fe8802a1e9fab9fb443b1e0494a302abf9931fb9
157
py
Python
cookbook/ingredients/admin.py
ticotheps/graphene-django-sample
76b38ab76da30b0d01b5728c1dad02ccd18fc118
[ "MIT" ]
null
null
null
cookbook/ingredients/admin.py
ticotheps/graphene-django-sample
76b38ab76da30b0d01b5728c1dad02ccd18fc118
[ "MIT" ]
null
null
null
cookbook/ingredients/admin.py
ticotheps/graphene-django-sample
76b38ab76da30b0d01b5728c1dad02ccd18fc118
[ "MIT" ]
null
null
null
from django.contrib import admin from cookbook.ingredients.models import Category, Ingredient admin.site.register(Category) admin.site.register(Ingredient)
26.166667
60
0.847134
from django.contrib import admin from cookbook.ingredients.models import Category, Ingredient admin.site.register(Category) admin.site.register(Ingredient)
0
0
0
0
0
0
0
0
0
b6282547ecef1643ae05373bb1b34111c77bba99
914
py
Python
ALG 2/Class Codes/finite_automaton_matcher.py
VictorHSMoura/CC-UFMG
f66d5eda69d84645e06a52576f056a864a515114
[ "MIT" ]
null
null
null
ALG 2/Class Codes/finite_automaton_matcher.py
VictorHSMoura/CC-UFMG
f66d5eda69d84645e06a52576f056a864a515114
[ "MIT" ]
null
null
null
ALG 2/Class Codes/finite_automaton_matcher.py
VictorHSMoura/CC-UFMG
f66d5eda69d84645e06a52576f056a864a515114
[ "MIT" ]
null
null
null
if __name__ == "__main__": print('Insert your text:') text = input() print('Insert your pattern:') pattern = input() alphabet = ''.join(set(text)) transitions = compute_transition_function(pattern, alphabet) finite_automaton_matcher(text, transitions, len(pattern))
28.5625
65
0.571116
def finite_automaton_matcher(text, transitions, m): n = len(text) q = 0 for i in range(n): q = transitions[q][text[i]] if q == m: print("Pattern occurs with shift {}".format(i-m+1)) return def compute_transition_function(pattern, alphabet): m = len(pattern) t...
0
0
0
0
0
574
0
0
45
122821007d8395c857b8ab61426de79bb79cf68b
1,821
py
Python
Item29.py
aambrioso1/Effective_Python
fcd89c27473a871596e54ebe18e1f56318029037
[ "MIT" ]
null
null
null
Item29.py
aambrioso1/Effective_Python
fcd89c27473a871596e54ebe18e1f56318029037
[ "MIT" ]
null
null
null
Item29.py
aambrioso1/Effective_Python
fcd89c27473a871596e54ebe18e1f56318029037
[ "MIT" ]
null
null
null
""" Item 29: Avoid Repeated Work in Comprehensions by Using Assignment Expressions """ stock = { 'nails': 125, 'screws': 35, 'wingnuts': 8, 'washers': 24, } order = ['screws', 'wingnuts', 'clips'] result = {} for name in order: count = stock.get(name, 0) batches = get_batches(count, 8) if batches: result...
28.453125
93
0.707304
""" Item 29: Avoid Repeated Work in Comprehensions by Using Assignment Expressions """ stock = { 'nails': 125, 'screws': 35, 'wingnuts': 8, 'washers': 24, } order = ['screws', 'wingnuts', 'clips'] def get_batches(count, size): return count // size result = {} for name in order: count = stock.get(name, 0) ...
0
0
0
0
0
30
0
0
23
b901d0a772753fbf7966452976ed62a47fee4529
8,072
py
Python
gamestonk_terminal/cryptocurrency/defi/graph_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
gamestonk_terminal/cryptocurrency/defi/graph_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
gamestonk_terminal/cryptocurrency/defi/graph_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
"""The Graph model""" __docformat__ = "numpy" import logging logger = logging.getLogger(__name__) UNI_URL = "https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2" SWAPS_FILTERS = ["timestamp", "token0", "token1", "amountUSD"] POOLS_FILTERS = [ "volumeUSD", "token0.name", "token0.symbol", "toke...
24.609756
120
0.569871
"""The Graph model""" __docformat__ = "numpy" import datetime import logging import pandas as pd import requests from gamestonk_terminal.cryptocurrency.dataframe_helpers import ( very_long_number_formatter, ) from gamestonk_terminal.decorators import log_start_end logger = logging.getLogger(__name__) UNI_URL =...
0
7,006
0
0
0
0
0
98
251
9aec57a50395673008f4449e882ccb912fba1683
18,351
py
Python
djangoApp/urls.py
SatwikRudra/Caramelit_DJango
b564f285d2ae1e967f08a7aad24b04cb01e33fe4
[ "MIT" ]
1
2021-08-06T08:36:57.000Z
2021-08-06T08:36:57.000Z
djangoApp/urls.py
SatwikRudra/Caramelit_DJango
b564f285d2ae1e967f08a7aad24b04cb01e33fe4
[ "MIT" ]
6
2021-03-19T11:29:05.000Z
2022-02-10T12:09:43.000Z
djangoApp/urls.py
SatwikRudra/Caramelit_DJango
b564f285d2ae1e967f08a7aad24b04cb01e33fe4
[ "MIT" ]
2
2020-06-08T05:20:14.000Z
2020-07-11T12:13:12.000Z
"""djangoApp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
45.423267
132
0.633317
"""djangoApp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
0
0
0
0
0
0
0
0
0
126c95bfb24adaebdd8f7902cc34c97f13995544
130,491
py
Python
src/apimodules.py
Sammmasqw/Facepager
bc9f9bd0559d03440867d6a3fa7a14a77ceb8617
[ "Unlicense" ]
null
null
null
src/apimodules.py
Sammmasqw/Facepager
bc9f9bd0559d03440867d6a3fa7a14a77ceb8617
[ "Unlicense" ]
null
null
null
src/apimodules.py
Sammmasqw/Facepager
bc9f9bd0559d03440867d6a3fa7a14a77ceb8617
[ "Unlicense" ]
null
null
null
import urllib.parse import urllib.request import sys if sys.version_info.major < 3: from urllib import url2pathname else: try: except ImportError: credentials = {} # https://stackoverflow.com/questions/10123929/python-requests-fetch-a-file-from-a-local-url
39.832418
319
0.583067
import urllib.parse import urllib.request, urllib.error import secrets import hashlib, hmac, base64 from mimetypes import guess_all_extensions from datetime import datetime from copy import deepcopy import re import os, sys, time import io from collections import OrderedDict import threading from PySide2.QtWebEngineW...
0
21,314
0
107,733
0
0
0
311
859
b9ab38ebbe946539b5b6379a46e255799a61aa4a
1,919
py
Python
Python/tests/test_gridded_table_example.py
alwinw/Janus
d80ec94af69e17e41718b94eea91e5419e600da2
[ "MIT" ]
1
2022-03-19T08:39:20.000Z
2022-03-19T08:39:20.000Z
Python/tests/test_gridded_table_example.py
alwinw/Janus
d80ec94af69e17e41718b94eea91e5419e600da2
[ "MIT" ]
null
null
null
Python/tests/test_gridded_table_example.py
alwinw/Janus
d80ec94af69e17e41718b94eea91e5419e600da2
[ "MIT" ]
null
null
null
# # pyJanus (Python Bindings for Janus) # # Copyright (c) 2022 Alwin Wang # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to u...
39.163265
84
0.758729
# # pyJanus (Python Bindings for Janus) # # Copyright (c) 2022 Alwin Wang # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to u...
0
0
0
0
0
0
0
0
0
856f981248ced6e69ff68f50a70eecf4df5b39d8
419
py
Python
pth2wgt.py
kevincao91/Tools
545901c682c20cd06256156dadc75b8e4e7df88c
[ "MIT" ]
null
null
null
pth2wgt.py
kevincao91/Tools
545901c682c20cd06256156dadc75b8e4e7df88c
[ "MIT" ]
null
null
null
pth2wgt.py
kevincao91/Tools
545901c682c20cd06256156dadc75b8e4e7df88c
[ "MIT" ]
null
null
null
import torch pthPath='/DATACENTER4/hao.yang/project/Qin/model_mb/unload/0530/unload_0530.pth' wgtPath=pthPath pth=torch.load(pthPath) cutLayer='module.roi_heads.box.predictor' cutParas=['cls_score.weight','cls_score.bias','bbox_pred.weight','bbox_pred.bias',] for cutPara in cutParas: pth['model'].pop('{}.{}'...
38.090909
84
0.73747
import torch pthPath='/DATACENTER4/hao.yang/project/Qin/model_mb/unload/0530/unload_0530.pth' wgtPath=pthPath pth=torch.load(pthPath) cutLayer='module.roi_heads.box.predictor' cutParas=['cls_score.weight','cls_score.bias','bbox_pred.weight','bbox_pred.bias',] for cutPara in cutParas: pth['model'].pop('{}.{}'...
0
0
0
0
0
0
0
0
0
80dc6ac2b4ce70104071f50c7b93950dce98732d
16,713
py
Python
syft_proto/execution/v1/type_wrapper_pb2.py
vkkhare/syft-proto
513b4af50d7476bd5b1ff9dfb6da8528100f961d
[ "Apache-2.0" ]
1
2021-01-31T15:24:25.000Z
2021-01-31T15:24:25.000Z
syft_proto/execution/v1/type_wrapper_pb2.py
vkkhare/syft-proto
513b4af50d7476bd5b1ff9dfb6da8528100f961d
[ "Apache-2.0" ]
null
null
null
syft_proto/execution/v1/type_wrapper_pb2.py
vkkhare/syft-proto
513b4af50d7476bd5b1ff9dfb6da8528100f961d
[ "Apache-2.0" ]
1
2021-01-31T15:23:04.000Z
2021-01-31T15:23:04.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: syft_proto/execution/v1/type_wrapper.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import...
45.53951
1,508
0.79483
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: syft_proto/execution/v1/type_wrapper.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import...
0
0
0
0
0
0
0
0
0
add9ecc883dc6dcedad1a59f401c4aad5732c1f1
7,173
py
Python
src/others/utils.py
RowitZou/CG-nAR
8e2debeb3170045592b3b674ea6f9b56251e71f4
[ "MIT" ]
8
2021-09-28T09:52:58.000Z
2022-03-13T11:37:48.000Z
src/others/utils.py
RowitZou/CG-nAR
8e2debeb3170045592b3b674ea6f9b56251e71f4
[ "MIT" ]
3
2021-12-09T06:26:05.000Z
2022-03-29T09:49:32.000Z
src/others/utils.py
RowitZou/CG-nAR
8e2debeb3170045592b3b674ea6f9b56251e71f4
[ "MIT" ]
1
2022-01-29T08:51:03.000Z
2022-01-29T08:51:03.000Z
from collections import defaultdict # from others.perplexity import read_sentences_from_file, BigramLanguageModel # from others.perplexity import calculate_bigram_perplexity, calculate_unigram_perplexity REMAP = {"-lrb-": "(", "-rrb-": ")", "-lcb-": "{", "-rcb-": "}", "-lsb-": "[", "-rsb-": "]", "``": '"', "...
30.138655
138
0.53799
import re import numpy as np from nltk.translate.bleu_score import sentence_bleu from nltk.translate.bleu_score import SmoothingFunction from collections import defaultdict # from others.perplexity import read_sentences_from_file, BigramLanguageModel # from others.perplexity import calculate_bigram_perplexity, calcula...
78
0
0
0
0
3,828
0
49
272
2e9a20370f2bfc0c81c7930cd83c43d85f986804
2,216
py
Python
setup.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2016-09-16T11:17:43.000Z
2016-10-19T11:15:53.000Z
setup.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2018-06-29T10:53:50.000Z
2021-04-06T07:55:54.000Z
setup.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2016-10-13T15:12:50.000Z
2021-01-13T11:58:18.000Z
#!/usr/bin/env python import logging import sys import pyslet.info if sys.hexversion < 0x02060000: logging.error("pyslet requires Python Version 2.6 (or greater)") else: try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as f...
40.290909
78
0.470668
#!/usr/bin/env python import logging import sys import pyslet.info if sys.hexversion < 0x02060000: logging.error("pyslet requires Python Version 2.6 (or greater)") else: try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as f...
0
0
0
0
0
0
0
0
0
c1a7d2da6918f21498e28b8ed730a14a398623a3
9,617
py
Python
train.py
nunenuh/crnn.pytorch
b0f8bc7fc43622f7396fa0550fb2cc6e17849551
[ "MIT" ]
1
2020-09-30T04:37:39.000Z
2020-09-30T04:37:39.000Z
train.py
nunenuh/crnn.pytorch
b0f8bc7fc43622f7396fa0550fb2cc6e17849551
[ "MIT" ]
null
null
null
train.py
nunenuh/crnn.pytorch
b0f8bc7fc43622f7396fa0550fb2cc6e17849551
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.getcwd()) from pathlib import Path import torch import torch.nn as nn import torch.optim as optim import torch.backends.cudnn as cudnn import argparse import string from iqra.utils import AttnLabelConverter from iqra.data import loader from iqra.models import OCRNet from iq...
36.42803
108
0.635021
import os import sys sys.path.append(os.getcwd()) from pathlib import Path import numpy as np import random import torch import torch.nn as nn import torch.optim as optim import torch.backends.cudnn as cudnn import argparse import string from iqra.utils import AttnLabelConverter from iqra.data import loader from...
0
0
0
0
0
0
0
14
67
59211482a8968a1a6483ab9c77d69d6f6b1bbfcc
837
py
Python
container_with_most_water_11.py
danielsunzhongyuan/my_leetcode_in_python
34d34280170c991ea7a28d74a3f2338753844917
[ "Apache-2.0" ]
null
null
null
container_with_most_water_11.py
danielsunzhongyuan/my_leetcode_in_python
34d34280170c991ea7a28d74a3f2338753844917
[ "Apache-2.0" ]
null
null
null
container_with_most_water_11.py
danielsunzhongyuan/my_leetcode_in_python
34d34280170c991ea7a28d74a3f2338753844917
[ "Apache-2.0" ]
null
null
null
""" Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water. Note: You m...
31
110
0.53405
""" Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water. Note: You m...
0
0
0
441
0
0
0
0
23
b22e2722c3ebefb0377e63b24ef158fb4e5797c4
614
py
Python
frame/config.py
Liuyanglong/monitor-portal
ce020f636e6179b3eb685660bd7e505ed41f2f9b
[ "Apache-2.0" ]
null
null
null
frame/config.py
Liuyanglong/monitor-portal
ce020f636e6179b3eb685660bd7e505ed41f2f9b
[ "Apache-2.0" ]
null
null
null
frame/config.py
Liuyanglong/monitor-portal
ce020f636e6179b3eb685660bd7e505ed41f2f9b
[ "Apache-2.0" ]
1
2022-02-21T09:46:36.000Z
2022-02-21T09:46:36.000Z
# -*- coding:utf-8 -*- __author__ = 'Ulric Qin' # -- app config -- DEBUG = True # -- db config -- DB_HOST = "127.0.0.1" DB_PORT = 3306 DB_USER = "root" DB_PASS = "" DB_NAME = "falcon_portal" # -- cookie config -- SECRET_KEY = "4e.5tyg8-u9ioj" SESSION_COOKIE_NAME = "falcon-portal" PERMANENT_SESSION_LIFETIME = 3600 * ...
17.542857
43
0.638436
# -*- coding:utf-8 -*- __author__ = 'Ulric Qin' # -- app config -- DEBUG = True # -- db config -- DB_HOST = "127.0.0.1" DB_PORT = 3306 DB_USER = "root" DB_PASS = "" DB_NAME = "falcon_portal" # -- cookie config -- SECRET_KEY = "4e.5tyg8-u9ioj" SESSION_COOKIE_NAME = "falcon-portal" PERMANENT_SESSION_LIFETIME = 3600 * ...
0
0
0
0
0
0
0
11
26
fe6e5892d2f8f914c1eeea1bedd768ccb1bc9b31
2,670
py
Python
BiGI_src/model/GNN.py
caojiangxia/BiGI
ed54c20523a5b3f295b90a9c08f7c54e8258d04a
[ "MIT" ]
57
2020-10-19T08:54:57.000Z
2022-03-19T12:20:43.000Z
BiGI_src/model/GNN.py
caojiangxia/BiGI
ed54c20523a5b3f295b90a9c08f7c54e8258d04a
[ "MIT" ]
6
2020-12-01T02:31:56.000Z
2021-10-10T06:15:13.000Z
BiGI_src/model/GNN.py
caojiangxia/BiGI
ed54c20523a5b3f295b90a9c08f7c54e8258d04a
[ "MIT" ]
9
2021-05-15T03:29:31.000Z
2022-03-14T20:28:44.000Z
import torch.nn as nn
33.375
96
0.577903
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import math from model.GCN import GCN from torch.autograd import Variable class GNN(nn.Module): """ GNN Module layer """ def __init__(self, opt): super(GNN, self).__init__() self.opt=opt se...
0
0
0
2,465
0
0
0
6
178
ce2aa2a412175a8f2b35b33c8472cc8f76d4d745
1,633
py
Python
user_mgr/app/src/app_database.py
smallintro/python-microservices
4bb5041b4b3706861e147e74b2381c94b81e7c18
[ "Apache-2.0" ]
1
2020-09-26T17:52:16.000Z
2020-09-26T17:52:16.000Z
user_mgr/app/src/app_database.py
smallintro/python-microservices
4bb5041b4b3706861e147e74b2381c94b81e7c18
[ "Apache-2.0" ]
null
null
null
user_mgr/app/src/app_database.py
smallintro/python-microservices
4bb5041b4b3706861e147e74b2381c94b81e7c18
[ "Apache-2.0" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() global_db_obj = None db_connection = None db_session = None
25.515625
66
0.650949
from logzero import logger as log from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base from app_config import * Base = declarative_base() global_db_obj = None db_connection = None db_session = None class DBInit: def __init__(self)...
0
676
0
547
0
0
0
48
214
d6909a03297733bee07162a6058a8065a603fe53
20
py
Python
uwsgiconf/__init__.py
graceshaw/uwsgiconf
205289bb279dfbcc1d9bfd599dd8ca5d6c527077
[ "BSD-3-Clause" ]
null
null
null
uwsgiconf/__init__.py
graceshaw/uwsgiconf
205289bb279dfbcc1d9bfd599dd8ca5d6c527077
[ "BSD-3-Clause" ]
null
null
null
uwsgiconf/__init__.py
graceshaw/uwsgiconf
205289bb279dfbcc1d9bfd599dd8ca5d6c527077
[ "BSD-3-Clause" ]
null
null
null
VERSION = (0, 22, 0)
20
20
0.55
VERSION = (0, 22, 0)
0
0
0
0
0
0
0
0
0
a94a31acb8827d624e875ae00d46fccfd340f187
3,947
py
Python
mock_tes/ga4gh/tes/server.py
lvarin/mock-TES
099eaa2f268eff87714c653563c1b9039bb89e73
[ "Apache-2.0" ]
3
2019-07-01T10:13:28.000Z
2019-07-02T18:46:00.000Z
mock_tes/ga4gh/tes/server.py
lvarin/mock-TES
099eaa2f268eff87714c653563c1b9039bb89e73
[ "Apache-2.0" ]
10
2019-06-11T09:12:58.000Z
2019-10-02T10:07:08.000Z
mock_tes/ga4gh/tes/server.py
elixir-europe/mock-TES
3d3f19bba2958a6576faec076eda99bf372f0872
[ "Apache-2.0" ]
1
2021-12-28T10:28:06.000Z
2021-12-28T10:28:06.000Z
""" Controler for the GA4GH Task Execution Schema Server """ from random import randint from addict import Dict from werkzeug.exceptions import BadRequest def __get_task_info(resources, params): ''' Helper function to estimate task queueing time and costs and build the response object (tesTaskInfo...
25.301282
90
0.668609
""" Controler for the GA4GH Task Execution Schema Server """ import json import logging from random import randint from addict import Dict from connexion import request from flask import current_app from werkzeug.exceptions import BadRequest def GetTaskInfo(body): # noqa: E501 response = __get_task_info( ...
0
0
0
0
0
717
0
-1
249
9b532084f5dc44fd6c7158f9ca3dc782a45f7751
1,867
py
Python
idgo_store/views/__init__.py
neogeo-technologies/idgo-store
3dd0894fb40a777ad7ff2316b8aad20121300427
[ "Apache-2.0" ]
null
null
null
idgo_store/views/__init__.py
neogeo-technologies/idgo-store
3dd0894fb40a777ad7ff2316b8aad20121300427
[ "Apache-2.0" ]
null
null
null
idgo_store/views/__init__.py
neogeo-technologies/idgo-store
3dd0894fb40a777ad7ff2316b8aad20121300427
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2020 Neogeo-Technologies. # 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...
38.895833
75
0.825924
# Copyright (c) 2017-2020 Neogeo-Technologies. # 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...
0
0
0
0
0
0
0
0
0
718ccc6e3bf0aac3c1da33d7b8d31f17be071349
19,682
py
Python
renormalizer/mps/tda.py
shuaigroup/Renormalizer
963d52efdaa247320e781a96b64d41c9cadf6f0e
[ "Apache-2.0" ]
27
2019-09-02T08:35:01.000Z
2022-02-22T08:18:02.000Z
renormalizer/mps/tda.py
shuaigroup/Renormalizer
963d52efdaa247320e781a96b64d41c9cadf6f0e
[ "Apache-2.0" ]
54
2019-08-30T12:18:39.000Z
2022-03-20T13:23:07.000Z
renormalizer/mps/tda.py
shuaigroup/Renormalizer
963d52efdaa247320e781a96b64d41c9cadf6f0e
[ "Apache-2.0" ]
6
2019-09-10T03:25:28.000Z
2021-11-20T18:41:58.000Z
# -*- coding: utf-8 -*- import logging logger = logging.getLogger(__name__) def merge(mpsl, mpsr, idx): """ merge two mps (mpsl, mpsr) at dix idx belongs mpsr, the other attributes are the same aas mpsl """ mps = mpsl.copy() for imps in range(idx, mpsr.site_num): mps[imps] = m...
38.974257
104
0.510517
# -*- coding: utf-8 -*- from renormalizer.mps.matrix import tensordot, multi_tensor_contract, asnumpy, asxp from renormalizer.mps.backend import xp, USE_GPU from renormalizer.mps import Mps, Mpo, MpDm from renormalizer.mps.lib import Environ, compressed_sum from renormalizer.lib import davidson import numpy as np imp...
3
0
0
18,933
0
0
0
158
245
55e2f2b36ee424865d1d0e03abee14009119aab3
7,230
py
Python
personal_utilities/scipy_gmres.py
dbstein/personal_utilities
3a4c7d2416b13a87f88fc0e400b299d648e1e541
[ "Apache-2.0" ]
null
null
null
personal_utilities/scipy_gmres.py
dbstein/personal_utilities
3a4c7d2416b13a87f88fc0e400b299d648e1e541
[ "Apache-2.0" ]
null
null
null
personal_utilities/scipy_gmres.py
dbstein/personal_utilities
3a4c7d2416b13a87f88fc0e400b299d648e1e541
[ "Apache-2.0" ]
null
null
null
import scipy from functools import partial mydict = { } _type_conv = {'f':'s', 'd':'d', 'F':'c', 'D':'z'} w1 = scipy.__version__.split('.') scipy_version = int(w1[0]) + int(w1[1])/10.0 + int(w1[2])/100.0 def gmres(A, b, verbose=False, convergence='resid', **kwargs): """ Interface function to Scipy's GMRES to ...
32.421525
166
0.595159
from scipy.sparse.linalg.isolve.utils import make_system from scipy.sparse.linalg.isolve import _iterative from scipy._lib._util import _aligned_zeros import numpy as np import scipy from functools import partial class gmres_counter(object): def __init__(self, disp=True): self._disp = disp self.nit...
0
0
0
354
0
3,955
0
82
206
e5335e2d632b2654ecbc207b422609b5b6e2c9b0
10,851
py
Python
waveform-modeling/SCRIPTS/00_prepare_data.py
nii-yamagishilab/project-CURRENNT-scripts
3de6d32e5e556a71fac1b4010d00b7c000fa5912
[ "BSD-3-Clause" ]
65
2018-12-27T05:36:33.000Z
2021-11-08T12:10:14.000Z
waveform-modeling/SCRIPTS/00_prepare_data.py
nii-yamagishilab/project-CURRENNT-scripts
3de6d32e5e556a71fac1b4010d00b7c000fa5912
[ "BSD-3-Clause" ]
3
2019-12-30T23:11:52.000Z
2021-08-11T12:20:58.000Z
waveform-modeling/SCRIPTS/00_prepare_data.py
nii-yamagishilab/project-CURRENNT-scripts
3de6d32e5e556a71fac1b4010d00b7c000fa5912
[ "BSD-3-Clause" ]
17
2019-04-30T02:29:57.000Z
2020-12-06T12:32:05.000Z
#!/usr/bin/python ########################################################################### ## Scripts for NSF model ---------------------------------------------- # ## --------------------------------------------------------------------- # ## ...
49.547945
99
0.517095
#!/usr/bin/python ########################################################################### ## Scripts for NSF model ---------------------------------------------- # ## --------------------------------------------------------------------- # ## ...
0
0
0
0
0
586
0
-4
45
9ca049673038c0411ac0d6d79e0531a9d9794a86
961
py
Python
proofread.py
AmitJoki/SJournal
f491141cae9065f030c0ab6b3aebf483537bd2b1
[ "MIT" ]
null
null
null
proofread.py
AmitJoki/SJournal
f491141cae9065f030c0ab6b3aebf483537bd2b1
[ "MIT" ]
null
null
null
proofread.py
AmitJoki/SJournal
f491141cae9065f030c0ab6b3aebf483537bd2b1
[ "MIT" ]
null
null
null
import model WORDS = model.load_obj('data') ERRORS = model.load_obj('errors')
40.041667
112
0.562955
import model import corrections import codecs WORDS = model.load_obj('data') ERRORS = model.load_obj('errors') def proofread(fname): mispelt = [] with codecs.open(fname, "r",encoding='utf-8', errors='ignore') as f: for i, line in enumerate(f): text = line.rstrip() print(text) ...
0
0
0
0
0
828
0
-11
67
ab41ca6ea5fd4ccf94b1f046a03d5da5ff117058
440
py
Python
PyMOTW/source/configparser/configparser_write.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
PyMOTW/source/configparser/configparser_write.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2020-07-18T03:52:03.000Z
2020-07-18T04:18:01.000Z
PyMOTW/source/configparser/configparser_write.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
2
2021-03-06T04:28:32.000Z
2021-03-06T04:59:17.000Z
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2010 Doug Hellmann. All rights reserved. # """Default handling. """ #end_pymotw_header import configparser import sys parser = configparser.ConfigParser() parser.add_section('bug_tracker') parser.set('bug_tracker', 'url', 'http://localhost:8080/bugs') parse...
20.952381
62
0.734091
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2010 Doug Hellmann. All rights reserved. # """Default handling. """ #end_pymotw_header import configparser import sys parser = configparser.ConfigParser() parser.add_section('bug_tracker') parser.set('bug_tracker', 'url', 'http://localhost:8080/bugs') parse...
0
0
0
0
0
0
0
0
0
ac2fe911aab4dd34d89615fa18efe10b75ef172a
852
py
Python
maro/cli/grass/clean.py
yangboz/maro
0973783e55ca07bf8e177910c9d47854117a4ea8
[ "MIT" ]
598
2020-09-23T00:50:22.000Z
2022-03-31T08:12:54.000Z
maro/cli/grass/clean.py
gx9702/maro
38c796f0a7ed1e0f64c299d96c6e0df032401fa9
[ "MIT" ]
235
2020-09-22T10:20:48.000Z
2022-03-31T02:10:03.000Z
maro/cli/grass/clean.py
gx9702/maro
38c796f0a7ed1e0f64c299d96c6e0df032401fa9
[ "MIT" ]
116
2020-09-22T09:19:04.000Z
2022-02-12T05:04:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license.
35.5
92
0.782864
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from maro.cli.utils.details_validity_wrapper import check_details_validity from maro.cli.utils.operation_lock_wrapper import operation_lock @check_details_validity @operation_lock def clean(cluster_name: str, **kwargs): # Late import. ...
0
613
0
0
0
0
0
96
68
1be242941254028abd7e7e51d7dee3e1f9e11c18
3,284
py
Python
magjointlib/magnetic_collision.py
Devanthro/ball_in_socket_estimator
5793db2dfd22b693c082694c2130a16c92164d70
[ "BSD-3-Clause" ]
3
2018-10-22T03:29:13.000Z
2021-09-24T21:04:01.000Z
magjointlib/magnetic_collision.py
Devanthro/ball_in_socket_estimator
5793db2dfd22b693c082694c2130a16c92164d70
[ "BSD-3-Clause" ]
null
null
null
magjointlib/magnetic_collision.py
Devanthro/ball_in_socket_estimator
5793db2dfd22b693c082694c2130a16c92164d70
[ "BSD-3-Clause" ]
1
2021-09-08T10:13:50.000Z
2021-09-08T10:13:50.000Z
#!/usr/bin/python3 import magjoint import sys import numpy as np if len(sys.argv) < 2: print("\nUSAGE: ./magnetic_collision.py ball_joint_config visualize_only, e.g. \n python3 magnetic_collision.py two_magnets.yaml 1\n") sys.exit() balljoint_config = sys.argv[1] visualize_only = sys.argv[2]=='1' ball = magj...
33.171717
138
0.690317
#!/usr/bin/python3 import magjoint import sys import numpy as np if len(sys.argv) < 2: print("\nUSAGE: ./magnetic_collision.py ball_joint_config visualize_only, e.g. \n python3 magnetic_collision.py two_magnets.yaml 1\n") sys.exit() balljoint_config = sys.argv[1] visualize_only = sys.argv[2]=='1' ball = magj...
0
0
0
0
0
0
0
0
0
c0d3af5da0deab56e967e9893c505af2c3232bec
10,079
py
Python
final_submit_sourcecode/source_code/read_data_pd.py
weslai/stabilo_ubicamp2020
3caeca909836ad86430693322500f20b51745927
[ "MIT" ]
null
null
null
final_submit_sourcecode/source_code/read_data_pd.py
weslai/stabilo_ubicamp2020
3caeca909836ad86430693322500f20b51745927
[ "MIT" ]
null
null
null
final_submit_sourcecode/source_code/read_data_pd.py
weslai/stabilo_ubicamp2020
3caeca909836ad86430693322500f20b51745927
[ "MIT" ]
null
null
null
import sys from typing import List, Tuple import matplotlib.pyplot as plt import numpy as np from icecream import ic from pandas import DataFrame from stage_1.utils import as_windowed_np ic.includeContext = True max_raw_vals = {"Acc1": 32768, "Acc2": 8192, "Gyro": 32768, "Mag": 8192, "Force": 4096} max_sis = {"Acc...
35.364912
88
0.624367
import os import sys from typing import List, Tuple import matplotlib.pyplot as plt import numpy as np import pandas as pd from icecream import ic from pandas import DataFrame from stage_1.utils import as_windowed_np ic.includeContext = True max_raw_vals = {"Acc1": 32768, "Acc2": 8192, "Gyro": 32768, "Mag": 8192, ...
0
0
0
0
0
3,581
0
-14
251
8764863be221b217f2b424936e6da0773503525f
4,797
py
Python
hydra-configs-torch/tests/test_instantiate_losses.py
jieru-hu/hydra-torch
60d5e42367fae297441c06220bf2f23b23225124
[ "MIT" ]
149
2020-10-14T04:15:09.000Z
2022-03-31T13:10:47.000Z
hydra-configs-torch/tests/test_instantiate_losses.py
jieru-hu/hydra-torch
60d5e42367fae297441c06220bf2f23b23225124
[ "MIT" ]
57
2020-10-15T17:21:49.000Z
2022-02-25T18:25:18.000Z
hydra-configs-torch/tests/test_instantiate_losses.py
jieru-hu/hydra-torch
60d5e42367fae297441c06220bf2f23b23225124
[ "MIT" ]
15
2020-10-16T20:32:43.000Z
2022-02-16T06:41:35.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import torch.nn.modules.loss as loss
24.854922
81
0.424432
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import pytest from hydra.utils import get_class, instantiate from omegaconf import OmegaConf import torch.nn.modules.loss as loss from torch.tensor import Tensor from typing import Any @pytest.mark.parametrize( "modulepath, classname, cfg, p...
0
4,515
0
0
0
0
0
38
134
f6f3e53e87c01b1bb9d4bad72abd1b4ec98a33f6
333
py
Python
Gathered CTF writeups/ptr-yudai-writeups/2019/AeroCTF_2019/crypt_warmup/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/ptr-yudai-writeups/2019/AeroCTF_2019/crypt_warmup/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/ptr-yudai-writeups/2019/AeroCTF_2019/crypt_warmup/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
result = "" table = { 'kappa_pride': '2', 'pepe': '3', 'kappa': '0', 'look_at_this_dude': '4', 'trollface': '1' } with open("meme_or_not", "r") as f: for line in f: cs = line.split() char = '' for c in cs: char += table[c] result += chr(int(char, 5)) p...
19.588235
35
0.468468
result = "" table = { 'kappa_pride': '2', 'pepe': '3', 'kappa': '0', 'look_at_this_dude': '4', 'trollface': '1' } with open("meme_or_not", "r") as f: for line in f: cs = line.split() char = '' for c in cs: char += table[c] result += chr(int(char, 5)) p...
0
0
0
0
0
0
0
0
0
22893f1b4e057f2573115ebffdee7011699f5012
270
py
Python
tests/test_failed.py
efpato/allure-pytest-logger
0758d5a1438e1d05093ac3b9ef4573fb219ecbeb
[ "MIT" ]
null
null
null
tests/test_failed.py
efpato/allure-pytest-logger
0758d5a1438e1d05093ac3b9ef4573fb219ecbeb
[ "MIT" ]
null
null
null
tests/test_failed.py
efpato/allure-pytest-logger
0758d5a1438e1d05093ac3b9ef4573fb219ecbeb
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__)
13.5
36
0.618519
import logging import allure logger = logging.getLogger(__name__) def test1(): logger.debug("=== failed 1") with allure.step("Check"): assert False def test2(): logger.debug("=== failed 2") with allure.step("Check"): assert False
0
0
0
0
0
154
0
-8
69
e82cf22de9107b608786dc7a31d2eed13daeceb3
11,789
py
Python
diofant/tests/series/test_series.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
diofant/tests/series/test_series.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
diofant/tests/series/test_series.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
from diofant import (Function) f = Function('f') __all__ = ()
37.306962
1,252
0.456951
import pytest from diofant import (Derivative, E, Function, I, Integer, Integral, O, Rational, Subs, Symbol, cos, exp, log, oo, pi, sin, sqrt, symbols) from diofant.abc import h, x, y, z f = Function('f') __all__ = () def test_sin(): e1 = sin(x).series(x) assert ...
0
1,909
0
14
0
8,833
0
154
780
6844b070707e668ab36e2fec8dd74eb895d6c72c
2,438
py
Python
ranges.py
urbalazs/osm-gimmisn
68bd9077dd7e7c7e152c5a41679428b52c1c019c
[ "MIT" ]
null
null
null
ranges.py
urbalazs/osm-gimmisn
68bd9077dd7e7c7e152c5a41679428b52c1c019c
[ "MIT" ]
null
null
null
ranges.py
urbalazs/osm-gimmisn
68bd9077dd7e7c7e152c5a41679428b52c1c019c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2019 Miklos Vajna and contributors. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """The ranges module contains functionality related to the Ranges class.""" # vim:set shiftwidth=4 softtabstop=4 expandtab:
30.475
95
0.614028
#!/usr/bin/env python3 # # Copyright (c) 2019 Miklos Vajna and contributors. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """The ranges module contains functionality related to the Ranges class.""" from typing import List from typing import Optional from typing...
0
0
0
2,007
0
0
0
10
113
5ecf43eae3d95936ce8e4bbef7c7e13a18b6cda1
976
py
Python
training_data/gen_data_captcha.py
sampritipanda/audio_captcha_solver
880f7a9e42895ab24acff9ffb3a6ac3156f13929
[ "MIT" ]
5
2020-08-05T07:38:04.000Z
2021-01-20T11:15:34.000Z
training_data/gen_data_captcha.py
sampritipanda/audio_captcha_solver
880f7a9e42895ab24acff9ffb3a6ac3156f13929
[ "MIT" ]
null
null
null
training_data/gen_data_captcha.py
sampritipanda/audio_captcha_solver
880f7a9e42895ab24acff9ffb3a6ac3156f13929
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys if 'pypy' in sys.executable: sys.path.append("./captcha") from captcha.audio import AudioCaptcha else: CHARSET = "0123456789" if __name__ == "__main__": main()
25.025641
105
0.650615
#!/usr/bin/env python3 import os import sys if 'pypy' in sys.executable: sys.path.append("./captcha") from captcha.audio import AudioCaptcha else: from captcha.captcha.audio import AudioCaptcha import random import secrets CHARSET = "0123456789" def main(): if len(sys.argv) != 4: print("Usa...
0
0
0
0
0
652
0
-2
117
cdea2032bb3aea906c1b0a7550c66c3d38e7f6e5
718
py
Python
festa_major.py
ber2/pybcn-meetup-pbt
c71216a486ae25d6d584986786a9ef46332e65c8
[ "MIT" ]
1
2021-12-01T16:25:07.000Z
2021-12-01T16:25:07.000Z
festa_major.py
ber2/pybcn-meetup-pbt
c71216a486ae25d6d584986786a9ef46332e65c8
[ "MIT" ]
null
null
null
festa_major.py
ber2/pybcn-meetup-pbt
c71216a486ae25d6d584986786a9ef46332e65c8
[ "MIT" ]
null
null
null
import datetime as dt if __name__ == "__main__": today = dt.date.today() next_fm: dt.date = next_festa_major(today) print(f"Today is {today}. The next festa major will be on {next_fm}")
29.916667
73
0.71727
import datetime as dt def first_sunday_of_august(year: int) -> dt.date: weekday_of_august_first = dt.date(year, 8, 1).isocalendar()[2] missing_days = 7 - weekday_of_august_first return dt.date(year, 8, 1 + missing_days) def next_festa_major(date: dt.date) -> dt.date: this_years_festa_major = first_s...
0
0
0
0
0
470
0
0
46
24b0a44d03d67299ae713f322d196245bd07353c
2,465
py
Python
src/21_juego.py
ZeroGuess/Platzi-Curso-de-Python-2019
2e7c3914c4129e132df0b35f611ecc09fa013627
[ "BSD-3-Clause" ]
3
2021-05-29T23:30:31.000Z
2021-06-05T15:18:46.000Z
src/21_juego.py
ZeroGuess/Platzi-Curso-de-Python-2019
2e7c3914c4129e132df0b35f611ecc09fa013627
[ "BSD-3-Clause" ]
null
null
null
src/21_juego.py
ZeroGuess/Platzi-Curso-de-Python-2019
2e7c3914c4129e132df0b35f611ecc09fa013627
[ "BSD-3-Clause" ]
2
2021-06-04T20:23:05.000Z
2021-06-05T15:18:48.000Z
if __name__ == "__main__": main()
32.434211
87
0.573225
import random def main(): frase_juego = frases_para_jugar() print("LA FRASE CON LA QUE JUGAMOS ES:") frase_tapada = tapando_frase(frase_juego) print(frase_tapada) contador = 0 choose_char(frase_juego, frase_tapada, contador) def frases_para_jugar(): lista_frases = ["La vida ...
8
0
0
0
0
2,288
0
-8
125
583df426ddcd0b95bf71dcee28657ee5c0f2dd90
204,515
py
Python
cw/thread.py
ankkks/CardWirthPy-Lite
cfa9f4315b8adcf01a3ebb40237f2e8ee5f02f45
[ "bzip2-1.0.6" ]
null
null
null
cw/thread.py
ankkks/CardWirthPy-Lite
cfa9f4315b8adcf01a3ebb40237f2e8ee5f02f45
[ "bzip2-1.0.6" ]
null
null
null
cw/thread.py
ankkks/CardWirthPy-Lite
cfa9f4315b8adcf01a3ebb40237f2e8ee5f02f45
[ "bzip2-1.0.6" ]
1
2022-03-16T07:49:27.000Z
2022-03-16T07:49:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import threading # build_exe.py # cw.versioninfo try: import versioninfo except ImportError: versioninfo = None _mutex_postevent = threading.Lock() if __name__ == "__main__": main()
39.905366
171
0.503151
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import itertools import time import datetime import threading import traceback import shutil import re import math import wx import pygame from pygame.locals import MOUSEBUTTONDOWN, MOUSEBUTTONUP, KEYDOWN, KEYUP, USEREVENT import cw ...
23,946
212
0
195,623
0
0
0
-42
476
695a32582ebb26699119cfda92129938609558ac
35,701
py
Python
mindfirl/storage_model.py
pinformatics/mindfirl
8646ef2660ead5e44de5809ca7818738ab9c5ccc
[ "MIT" ]
null
null
null
mindfirl/storage_model.py
pinformatics/mindfirl
8646ef2660ead5e44de5809ca7818738ab9c5ccc
[ "MIT" ]
21
2018-03-25T17:25:31.000Z
2018-04-14T14:01:23.000Z
mindfirl/storage_model.py
pinformatics/mindfirl
8646ef2660ead5e44de5809ca7818738ab9c5ccc
[ "MIT" ]
2
2018-07-31T15:16:46.000Z
2019-01-29T22:31:05.000Z
import os import time import hashlib import config import math from get_pair_file_extra import generate_pair_file from get_pair_file_2_extra import generate_pair_file2 from blocking import generate_pair_by_blocking from collections import defaultdict def build_save_pairfile_3(pairfile_path, name_freq_file_path, inte...
32.813419
163
0.614044
import os import time import hashlib import config import math from get_pair_file_extra import generate_pair_file from get_pair_file_2_extra import generate_pair_file2 from blocking import generate_pair_by_blocking, update_result_to_intfile import blocking import numpy as np from collections import defaultdict class ...
0
0
0
2,050
0
13,037
0
17
987
00054381b18b264361e61975c52f2e70aa2ac62d
13,632
py
Python
vision_card_manager.py
andrewhayden/ffbe_forever_guild_bot
b292276227b1f0a8c6c4c73d31e97a1b5937b4f6
[ "Apache-2.0" ]
null
null
null
vision_card_manager.py
andrewhayden/ffbe_forever_guild_bot
b292276227b1f0a8c6c4c73d31e97a1b5937b4f6
[ "Apache-2.0" ]
null
null
null
vision_card_manager.py
andrewhayden/ffbe_forever_guild_bot
b292276227b1f0a8c6c4c73d31e97a1b5937b4f6
[ "Apache-2.0" ]
null
null
null
"""Manages a Vision Card spreadsheet."""
60.052863
151
0.696083
"""Manages a Vision Card spreadsheet.""" from wotv_bot_common import ExposableException from admin_utils import AdminUtils from worksheet_utils import WorksheetUtils from vision_card_common import VisionCard class VisionCardManager: """Manages a Vision Card spreadsheet.""" def __init__(self, ...
0
1,380
0
12,021
0
0
0
79
111
24ffc2adba2e037250583b9782fd3b810ea2abb2
1,147
py
Python
RPI_Telegram_Last/core/gpio.py
SaxAlien/crap-code
bff99bc4501d1c7bc8c169c1b66a2d6bd7ad3494
[ "Apache-2.0" ]
null
null
null
RPI_Telegram_Last/core/gpio.py
SaxAlien/crap-code
bff99bc4501d1c7bc8c169c1b66a2d6bd7ad3494
[ "Apache-2.0" ]
null
null
null
RPI_Telegram_Last/core/gpio.py
SaxAlien/crap-code
bff99bc4501d1c7bc8c169c1b66a2d6bd7ad3494
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ GPIO module Only for easily use and clean-code (and still looks crappy..) """ import helpers, time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) pc_pin = 4 relay_pin1 = 26 # monitor relay_pin2 = 19 # pc relay_pin3 = 13 # sound relay_pin4 ...
18.5
113
0.63993
#!/usr/bin/env python # -*- coding: utf-8 -*- """ GPIO module Only for easily use and clean-code (and still looks crappy..) """ import helpers, time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) pc_pin = 4 relay_pin1 = 26 # monitor relay_pin2 = 19 # pc relay_pin3 = 13 # sound relay_pin4 ...
0
0
0
0
0
518
0
0
161
edaeceb8040e035acad36d56ed3b3bbfac535d56
21,090
py
Python
apps/exercises/models.py
ospreyelm/HarmonyLab
0934c67ab93a7da21e45f7956cb1b32ed3c9f728
[ "BSD-3-Clause" ]
4
2018-02-09T01:18:46.000Z
2020-11-23T10:06:21.000Z
apps/exercises/models.py
ospreyelm/HarmonyLab
0934c67ab93a7da21e45f7956cb1b32ed3c9f728
[ "BSD-3-Clause" ]
8
2020-07-26T22:06:05.000Z
2021-08-19T04:17:18.000Z
apps/exercises/models.py
ospreyelm/HarmonyLab
0934c67ab93a7da21e45f7956cb1b32ed3c9f728
[ "BSD-3-Clause" ]
6
2018-02-09T19:11:15.000Z
2020-09-06T22:49:43.000Z
from django.contrib.auth import get_user_model User = get_user_model()
36.237113
116
0.609625
from collections import OrderedDict from datetime import timedelta from itertools import product from django.contrib.auth import get_user_model from django.contrib.postgres.fields import JSONField from django.core.exceptions import ValidationError from django.core.validators import RegexValidator from django.db import...
0
4,837
0
15,231
0
31
0
347
564
ca6008c2ce46162258c06a1b9c66e879e6dbbc17
592
py
Python
vasputil/tests/test_dos.py
kcantosh/vasputil
460c02407034d773e48de9318131dddca6ee36f6
[ "MIT" ]
1
2019-06-25T01:35:19.000Z
2019-06-25T01:35:19.000Z
vasputil/tests/test_dos.py
gougoudata/vasputil
7332212dfe9d6ac1964ee04fd53efc58bab41961
[ "MIT" ]
null
null
null
vasputil/tests/test_dos.py
gougoudata/vasputil
7332212dfe9d6ac1964ee04fd53efc58bab41961
[ "MIT" ]
1
2018-07-04T07:04:50.000Z
2018-07-04T07:04:50.000Z
# -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 # Copyright (c) 2008, 2010 Janne Blomqvist # This source code file is subject to the terms of the MIT (Expat) # License. See the file LICENSE for details. """This module contains unit tests for the vasputil.dos module.""" import unittest if __name__ == "__mai...
23.68
74
0.722973
# -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 # Copyright (c) 2008, 2010 Janne Blomqvist # This source code file is subject to the terms of the MIT (Expat) # License. See the file LICENSE for details. """This module contains unit tests for the vasputil.dos module.""" import unittest import vasputil.dos as d...
0
0
0
65
0
110
0
3
68
66f793fcec235d0174bca50a138fba403b11cd7a
5,613
py
Python
vcf_parser/genotype.py
moonso/vcf_parser
8e2b6724e31995e0d43af501f25974310c6b843b
[ "MIT" ]
42
2015-03-19T09:04:39.000Z
2022-02-02T10:38:25.000Z
vcf_parser/genotype.py
moonso/vcf_parser
8e2b6724e31995e0d43af501f25974310c6b843b
[ "MIT" ]
14
2015-02-06T08:35:05.000Z
2017-08-17T08:27:19.000Z
vcf_parser/genotype.py
moonso/vcf_parser
8e2b6724e31995e0d43af501f25974310c6b843b
[ "MIT" ]
12
2015-02-12T13:41:13.000Z
2021-11-09T17:23:46.000Z
#!/usr/bin/env python # encoding: utf-8 """ genotype.py This is a class with information about genotypecalls that follows the (GATK) .vcf standard. The indata, that is the genotype call, is allways on the form x/x, so they look like 0/0, 1/2, 1/1 and so on. The first sign inidcates what we find on the first allele, t...
33.213018
166
0.558525
#!/usr/bin/env python # encoding: utf-8 """ genotype.py This is a class with information about genotypecalls that follows the (GATK) .vcf standard. The indata, that is the genotype call, is allways on the form x/x, so they look like 0/0, 1/2, 1/1 and so on. The first sign inidcates what we find on the first allele, t...
2
0
0
4,076
0
0
0
-23
68
b1184504b4d86ee7a4417e5b5b1944eb257b3289
226
py
Python
MITx 6.00.1x Intro CS/printExample.py
LeafDragon/Pyhton-Practice
fec9f3da7a4e083bf186155f4ba54744aa27198c
[ "MIT" ]
null
null
null
MITx 6.00.1x Intro CS/printExample.py
LeafDragon/Pyhton-Practice
fec9f3da7a4e083bf186155f4ba54744aa27198c
[ "MIT" ]
null
null
null
MITx 6.00.1x Intro CS/printExample.py
LeafDragon/Pyhton-Practice
fec9f3da7a4e083bf186155f4ba54744aa27198c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 9 12:28:39 2018 @author: Frank Dip """ x = 1 print(x) x_str = str(x) print("My favorite number is", x, ".", "x=", x) print("My favorite number is " + x_str + ". x=" + x_str)
15.066667
56
0.561947
# -*- coding: utf-8 -*- """ Created on Fri Mar 9 12:28:39 2018 @author: Frank Dip """ x = 1 print(x) x_str = str(x) print("My favorite number is", x, ".", "x=", x) print("My favorite number is " + x_str + ". x=" + x_str)
0
0
0
0
0
0
0
0
0
3f845d51a4e31e020e835f2c0e01b0cb4c3b5b72
2,341
py
Python
tk_gui_tools/test/test_command.py
Walrick/gui_tool
47feddcc61e24e2fba2bff779e712c626dea5923
[ "MIT" ]
null
null
null
tk_gui_tools/test/test_command.py
Walrick/gui_tool
47feddcc61e24e2fba2bff779e712c626dea5923
[ "MIT" ]
null
null
null
tk_gui_tools/test/test_command.py
Walrick/gui_tool
47feddcc61e24e2fba2bff779e712c626dea5923
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf8 -*- import tk_gui_tools.template_manager as template_manager
32.513889
86
0.728321
#!/usr/bin/python3 # -*- coding: utf8 -*- import pytest import tkinter as tk import time import tk_gui_tools.template_manager as template_manager @pytest.fixture def param_tkinter(): # Init Tkinter time.sleep(0.05) root = tk.Tk() time.sleep(0.05) root.title("Python Project") root.geometry("1...
0
312
0
1,761
0
0
0
-19
182
5a308ac9f806ff47783b7ed1993e3c38c31646e6
2,581
bzl
Python
internal/js_binary/rule.bzl
bazel-diezel/javascript
2a5bc71fe864de2e1f3e7d3b2236d30a0e8f1abe
[ "MIT" ]
62
2018-08-02T08:04:58.000Z
2021-03-18T12:21:39.000Z
internal/js_binary/rule.bzl
bazel-diezel/javascript
2a5bc71fe864de2e1f3e7d3b2236d30a0e8f1abe
[ "MIT" ]
33
2018-07-05T06:37:18.000Z
2019-06-06T08:10:16.000Z
internal/js_binary/rule.bzl
zenclabs/bazel-node
2a5bc71fe864de2e1f3e7d3b2236d30a0e8f1abe
[ "MIT" ]
25
2018-08-22T21:30:50.000Z
2020-11-20T06:55:44.000Z
load("//internal/js_library:rule.bzl", "JsLibraryInfo") load("//internal/npm_packages:rule.bzl", "NpmPackagesInfo") js_binary = rule( attrs = { "lib": attr.label( providers = [JsLibraryInfo], mandatory = True, ), "entry": attr.string( mandatory = True, ...
33.519481
107
0.56296
load("//internal/js_library:rule.bzl", "JsLibraryInfo") load("//internal/npm_packages:rule.bzl", "NpmPackagesInfo") def _js_binary_impl(ctx): ctx.actions.run( inputs = [ ctx.file._js_binary_compile_script, ctx.attr._internal_packages[NpmPackagesInfo].installed_dir, ctx.a...
0
0
0
0
0
1,499
0
0
23
f934255815d39c447c2cec3275393af48f51e3fb
4,739
py
Python
World Finals/swordmaster.py
enigma-pattern/GoogleCodeJam-2018
4b4f6b5bda68eccd92f0b31cde693462aba1282f
[ "MIT" ]
42
2018-04-08T02:33:46.000Z
2021-05-29T10:19:33.000Z
World Finals/swordmaster.py
enigma-pattern/GoogleCodeJam-2018
4b4f6b5bda68eccd92f0b31cde693462aba1282f
[ "MIT" ]
1
2021-05-05T10:32:33.000Z
2021-05-05T12:05:53.000Z
World Finals/swordmaster.py
enigma-pattern/GoogleCodeJam-2018
4b4f6b5bda68eccd92f0b31cde693462aba1282f
[ "MIT" ]
16
2018-04-15T18:56:25.000Z
2021-07-22T22:38:03.000Z
# Copyright (c) 2019 kamyu. All rights reserved. # # Google Code Jam 2018 World Finals - Problem D. Swordmaster # https://codingcompetitions.withgoogle.com/codejam/round/0000000000007766/000000000004d961 # # Time: O(N * P) # Space: O(N * P) # # [Definition] # - D1: set(our attacks) > set(his defenses, set(our defense...
41.938053
114
0.598016
# Copyright (c) 2019 kamyu. All rights reserved. # # Google Code Jam 2018 World Finals - Problem D. Swordmaster # https://codingcompetitions.withgoogle.com/codejam/round/0000000000007766/000000000004d961 # # Time: O(N * P) # Space: O(N * P) # # [Definition] # - D1: set(our attacks) > set(his defenses, set(our defense...
0
0
0
0
0
3,587
0
0
91
bd87b415f21ef19e5c2168089111b80e2cf101f2
6,464
py
Python
train_hybridLoss.py
alireza-nasiri/SoundCLR
778a4c24b5f15f5ce563ebe71dd443d3e77eb4ef
[ "MIT" ]
7
2021-03-03T18:53:59.000Z
2022-03-03T03:15:36.000Z
train_hybridLoss.py
alireza-nasiri/SoundCLR
778a4c24b5f15f5ce563ebe71dd443d3e77eb4ef
[ "MIT" ]
3
2021-04-12T13:05:01.000Z
2021-06-22T02:23:03.000Z
train_hybridLoss.py
alireza-nasiri/SoundCLR
778a4c24b5f15f5ce563ebe71dd443d3e77eb4ef
[ "MIT" ]
4
2021-03-17T02:23:59.000Z
2021-11-23T14:08:27.000Z
import torch import torch.nn as nn import torchvision import os import datetime from models import model_classifier from models import model_projection from utils.utils import WarmUpExponentialLR import config from loss_fn import hybrid_loss if config.ESC_10: import dataset_ESC10 as dataset elif config.ESC_50: impo...
30.490566
198
0.660272
import torch import torch.nn as nn import torch.nn.functional as F import torchvision import numpy as np import os import shutil import datetime import sys from models import model_classifier from models import model_projection from utils.utils import EarlyStopping, WarmUpExponentialLR import config from loss_fn impor...
0
0
0
0
0
4,733
0
3
134
941fc8b3095c78ea1a6644325b7f84972c1f02a9
714
py
Python
1051.py
crewxart/coj-problems-python
f935f06184aff467ec236f54b3ece6bdb9293fa1
[ "Unlicense" ]
null
null
null
1051.py
crewxart/coj-problems-python
f935f06184aff467ec236f54b3ece6bdb9293fa1
[ "Unlicense" ]
2
2019-11-27T00:35:04.000Z
2019-11-27T00:41:55.000Z
1051.py
crewxart/coj-problems-python
f935f06184aff467ec236f54b3ece6bdb9293fa1
[ "Unlicense" ]
null
null
null
n=int(input()) loop=0 lista=["1",] append="1" while loop<n-1: #Crear lista con N elementos append=append+str(loop+2) #Concatenar digitos lista.append(append) #Agregar concatenacin a lista loop=loop+1 #Aumentar contador print(lista) s=len(lista) # Nmero de elementos en la lista i=0 #Contador para recorrer e...
23.8
64
0.707283
n=int(input()) loop=0 lista=["1",] append="1" while loop<n-1: #Crear lista con N elementos append=append+str(loop+2) #Concatenar digitos lista.append(append) #Agregar concatenación a lista loop=loop+1 #Aumentar contador print(lista) s=len(lista) # Número de elementos en la lista i=0 #Contador para recorrer...
4
0
0
0
0
0
0
0
0
6dfb597330701c22a3d1ebd9484f49f36e35a452
4,056
py
Python
hacku/contents/views/contents.py
aleducode/hacku_backend
d70f303dcbcb3fecf5d4a47f20e9985846fc766c
[ "MIT" ]
1
2021-09-15T19:22:18.000Z
2021-09-15T19:22:18.000Z
hacku/contents/views/contents.py
alejandroduquec/hacku_backend
d70f303dcbcb3fecf5d4a47f20e9985846fc766c
[ "MIT" ]
null
null
null
hacku/contents/views/contents.py
alejandroduquec/hacku_backend
d70f303dcbcb3fecf5d4a47f20e9985846fc766c
[ "MIT" ]
1
2021-09-15T19:24:34.000Z
2021-09-15T19:24:34.000Z
"""Content views.""" # Django from django.conf import settings from django.utils import timezone # Models # Utils import jwt from datetime import timedelta # Twilio account_sid = settings.TWILIO_ACCOUNT_SID auth_token = settings.TWILIO_AUTH_TOKEN def gen_verification_token(user): """Create JWT token that the u...
34.666667
85
0.657051
"""Content views.""" # Django from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import redirect from django.views.generic import DetailView, TemplateView from django.urls import reverse_lazy from django.conf import settings from django.utils import timezone from django.contrib.auth impor...
0
0
0
2,965
0
0
0
176
245
c689c509cabf62782e2108a06689827aa8c7324a
59
py
Python
day3-1.py
Par1Na/Twowaits
65678ba98e8a8787fd442d57609a330148805fec
[ "Unlicense" ]
2
2020-05-09T22:52:20.000Z
2020-05-18T17:23:01.000Z
day3-1.py
Par1Na/Twowaits
65678ba98e8a8787fd442d57609a330148805fec
[ "Unlicense" ]
null
null
null
day3-1.py
Par1Na/Twowaits
65678ba98e8a8787fd442d57609a330148805fec
[ "Unlicense" ]
null
null
null
# Twowaits Twowaits Problem a='Hello World' print(a[::-1])
11.8
16
0.694915
# Twowaits Twowaits Problem a='Hello World' print(a[::-1])
0
0
0
0
0
0
0
0
0
d5ee7b6f4cc982bd00af56b6d01ce7f73b5ee0a8
1,572
py
Python
poll_codes.py
uzairkhan57/Python_Challenge
f57edd9fd679930b80a13543cd27cde4f242dc40
[ "ADSL" ]
null
null
null
poll_codes.py
uzairkhan57/Python_Challenge
f57edd9fd679930b80a13543cd27cde4f242dc40
[ "ADSL" ]
null
null
null
poll_codes.py
uzairkhan57/Python_Challenge
f57edd9fd679930b80a13543cd27cde4f242dc40
[ "ADSL" ]
null
null
null
import os import csv #CSV Path csvpath = Pypollcsv = os.path.join('Resources','election_data.csv') # Open and read the CSV with open(csvpath, newline="") as csvfile: # header csvreader = csv.reader(csvfile, delimiter=",") csv_header = next(csvfile) #Declaring variables contestants = ...
22.782609
71
0.533715
import os import csv #CSV Path csvpath = Pypollcsv = os.path.join('Resources','election_data.csv') # Open and read the CSV with open(csvpath, newline="") as csvfile: # header csvreader = csv.reader(csvfile, delimiter=",") csv_header = next(csvfile) #Declaring variables contestants = ...
0
0
0
0
0
0
0
0
0
be5a34c6e7de43478329e09959de7dfaf4976525
4,152
py
Python
src/toil/test/src/importExportFileTest.py
YeoLab/toil
9837c396b946bc4a0cf97e7c2705e5892b88707b
[ "Apache-2.0" ]
null
null
null
src/toil/test/src/importExportFileTest.py
YeoLab/toil
9837c396b946bc4a0cf97e7c2705e5892b88707b
[ "Apache-2.0" ]
1
2017-07-31T23:47:25.000Z
2017-07-31T23:47:25.000Z
src/toil/test/src/importExportFileTest.py
lexentbio/toil
6ad3813af4450962d0899aa6c821189f86472ef9
[ "Apache-2.0" ]
1
2020-09-17T17:49:32.000Z
2020-09-17T17:49:32.000Z
# Copyright (C) 2015-2016 Regents of the University of California # # 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 app...
37.745455
86
0.628854
# Copyright (C) 2015-2016 Regents of the University of California # # 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 app...
0
0
0
3,264
0
0
0
31
202
b90bbfce1ad2cab9286a09f46208a09ba07a387c
56,491
bzl
Python
swift/internal/api.bzl
kastiglione/rules_swift
c8138ccf8cd798aefc9533840fcab72546e4c46c
[ "Apache-2.0" ]
1
2019-11-30T06:42:59.000Z
2019-11-30T06:42:59.000Z
swift/internal/api.bzl
kastiglione/rules_swift
c8138ccf8cd798aefc9533840fcab72546e4c46c
[ "Apache-2.0" ]
null
null
null
swift/internal/api.bzl
kastiglione/rules_swift
c8138ccf8cd798aefc9533840fcab72546e4c46c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
43.996106
100
0.691792
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
0
0
0
0
0
0
0
0
0
a6519fac9bf7a8d8e967f24425a323206b414947
1,767
py
Python
netra/face_service.py
paitoon/netra.ai-client
3f12d6c8658a788b6cc31a14ad04c1a033833e09
[ "MIT" ]
null
null
null
netra/face_service.py
paitoon/netra.ai-client
3f12d6c8658a788b6cc31a14ad04c1a033833e09
[ "MIT" ]
null
null
null
netra/face_service.py
paitoon/netra.ai-client
3f12d6c8658a788b6cc31a14ad04c1a033833e09
[ "MIT" ]
null
null
null
import logging log = logging.getLogger(__name__)
32.127273
104
0.609508
import logging from requests.exceptions import RequestException from .http_method import HttpMethod log = logging.getLogger(__name__) class FaceService: def __init__(self, netraClient): self.netraClient = netraClient self.rootUri = "face" def detect(self, imageFilePathName, threshold=0.0...
0
0
0
1,605
0
0
0
41
71
4bb9768da3d071d9ee7a74cb210832204096346f
3,718
py
Python
unit_test/tensors_unit_test.py
qzhao19/Lightweight-Deep-Learning-Framework
20f5636c9aaf4d3554aacffb4a36d55901fda731
[ "MIT" ]
2
2020-07-06T06:59:29.000Z
2020-07-08T11:17:19.000Z
unit_test/tensors_unit_test.py
zhaoqi19/Lightweight-Deep-Learning-Framework
20f5636c9aaf4d3554aacffb4a36d55901fda731
[ "MIT" ]
null
null
null
unit_test/tensors_unit_test.py
zhaoqi19/Lightweight-Deep-Learning-Framework
20f5636c9aaf4d3554aacffb4a36d55901fda731
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function if __name__ == '__main__': relu_test() sigmoid_test() transpose_test() concatenate_test() sum_test() reshape_test() max_test() po...
22.130952
117
0.571006
from __future__ import absolute_import from __future__ import division from __future__ import print_function from ..tensors import Tensor def add_test(): a = Tensor([1,2,3,4,5], auto_grad=True) b = Tensor([2,2,2,2,2], auto_grad=True) # c = Tensor([5,4,3,2,1], auto_grad=True) c = a + b print('Tenso...
0
0
0
0
0
2,949
0
7
322
76c2c089f65552e78aa826bfb9b10e8c8c2f79e2
6,860
py
Python
boussole/resolver.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
null
null
null
boussole/resolver.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
null
null
null
boussole/resolver.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Resolver ======== Resolver is in charge to resolve path in import rules. Resolving is done using given source directory and libraries directories paths. """
36.88172
78
0.594315
# -*- coding: utf-8 -*- """ Resolver ======== Resolver is in charge to resolve path in import rules. Resolving is done using given source directory and libraries directories paths. """ import os from six import string_types from boussole.exceptions import UnresolvablePath from boussole.exceptions import UnclearResol...
0
0
0
6,510
0
0
0
50
113
7ab735f74f6e8236b44b5d83119d5901ee13271e
4,213
py
Python
pycharmers/cli/book2img.py
iwasakishuto/Py-utils
5dc1e7d676811c2239e64f500b734bd508335256
[ "MIT" ]
2
2019-11-13T11:59:30.000Z
2019-11-17T15:44:09.000Z
pycharmers/cli/book2img.py
iwasakishuto/Py-utils
5dc1e7d676811c2239e64f500b734bd508335256
[ "MIT" ]
1
2020-09-12T18:00:30.000Z
2020-09-12T18:00:50.000Z
pycharmers/cli/book2img.py
iwasakishuto/Py-utils
5dc1e7d676811c2239e64f500b734bd508335256
[ "MIT" ]
1
2021-04-13T16:19:26.000Z
2021-04-13T16:19:26.000Z
# coding: utf-8 import os import sys import time import json import argparse import pyautogui as pygui from pathlib import Path from ._clipath import PYCHARMERS_CLI_BOOK2IMG_DIR from ..utils.generic_utils import now_str from ..utils.tkinter_utils import PortionSelector from ..utils.monitor_utils import ProgressMonitor...
35.70339
195
0.579634
# coding: utf-8 import os import sys import time import json import datetime import argparse import pyautogui as pygui from pathlib import Path from ._clipath import PYCHARMERS_CLI_BOOK2IMG_DIR from ..utils.generic_utils import now_str from ..utils.tkinter_utils import PortionSelector from ..utils.monitor_utils import...
0
0
0
746
0
0
0
-6
45
0fe88b6011d2e62f0f07743f5efab31550d0801a
8,955
py
Python
elk/get_all_name.py
Svolcano/python_exercise
a50e05891cc7f1fbb40ebcae324b09b6a14473d2
[ "MIT" ]
6
2015-07-09T08:47:08.000Z
2020-05-16T10:47:31.000Z
elk/get_all_name.py
Svolcano/python_exercise
a50e05891cc7f1fbb40ebcae324b09b6a14473d2
[ "MIT" ]
7
2019-03-27T04:13:12.000Z
2022-03-02T14:54:56.000Z
elk/get_all_name.py
Svolcano/python_exercise
a50e05891cc7f1fbb40ebcae324b09b6a14473d2
[ "MIT" ]
2
2019-06-21T06:46:28.000Z
2019-12-23T09:31:09.000Z
result_path = "/home/data/vvv/" if __name__ == '__main__': filter_dict = got_region() file_number = store_all_data(filter_dict)
27.724458
113
0.516806
from elasticsearch import Elasticsearch from elasticsearch import helpers import time import collections import multiprocessing import threading import subprocess import os import queue result_path = "/home/data/vvv/" def time_it(fun): def inner(*argv, **argc): st = time.time() ret = fun(*argv,...
147
6,849
0
0
295
1,085
0
-12
543
cf8f08ec0212bcc0ea7716890c76ec097d37d525
768
py
Python
thaitokenizer/tests/test_tokenizer.py
patorn/thaitokenizer
e36ed2c88734d02d83ced403611d5f7ba6be3ea7
[ "MIT" ]
1
2019-05-27T07:44:53.000Z
2019-05-27T07:44:53.000Z
thaitokenizer/tests/test_tokenizer.py
patorn/thaitokenizer
e36ed2c88734d02d83ced403611d5f7ba6be3ea7
[ "MIT" ]
null
null
null
thaitokenizer/tests/test_tokenizer.py
patorn/thaitokenizer
e36ed2c88734d02d83ced403611d5f7ba6be3ea7
[ "MIT" ]
1
2020-11-24T08:00:47.000Z
2020-11-24T08:00:47.000Z
from thaitokenizer.tokenizer import Tokenizer tokenizer = Tokenizer()
33.391304
102
0.658854
import pytest from thaitokenizer.tokenizer import Tokenizer tokenizer = Tokenizer() def test_tokenize(): assert tokenizer.tokenize("ประเทศไทยมีบริการเทเลเท็กซ์ kbank มานานเกินกว่า 4 ปีแล้วไ") == [ 'ประเทศไทย', 'มี', 'บริการ', 'เท', 'เล', 'เท็กซ์', ' ', 'kbank', ' ', 'มา', 'นาน', 'เกิน', '...
372
0
0
0
0
443
0
-8
137
e6902f5e9d251e206c0874d18377711fe072f7c4
1,215
py
Python
lambda/FunctionalIntentHandlers/Ships/ships.py
alshapton/Space-X-Info-Alexa
05d2f7a3c0bf6151c6c3ccab358eb432e47a93a6
[ "MIT" ]
null
null
null
lambda/FunctionalIntentHandlers/Ships/ships.py
alshapton/Space-X-Info-Alexa
05d2f7a3c0bf6151c6c3ccab358eb432e47a93a6
[ "MIT" ]
null
null
null
lambda/FunctionalIntentHandlers/Ships/ships.py
alshapton/Space-X-Info-Alexa
05d2f7a3c0bf6151c6c3ccab358eb432e47a93a6
[ "MIT" ]
null
null
null
"""Ships module This file is imported as a module and contains the following function: * ships - returns the requested information about the ships """ # based on a module originally coded for SpacePY-X import inflect from utilities import getJson def ships(timeOut=1,units="miles",task="distance"...
20.59322
78
0.577778
"""Ships module This file is imported as a module and contains the following function: * ships - returns the requested information about the ships """ # based on a module originally coded for SpacePY-X import json import requests import inflect from utilities import convert_date_to_speech, getJ...
0
0
0
0
0
0
0
8
48
de0d520f220526cdf0c8daf9ae7a976045765895
8,937
py
Python
src/main.py
ayuko/TheGBSpaceRace
ba25e02f439e21e755c990ef50b2ff5725791f39
[ "MIT" ]
null
null
null
src/main.py
ayuko/TheGBSpaceRace
ba25e02f439e21e755c990ef50b2ff5725791f39
[ "MIT" ]
null
null
null
src/main.py
ayuko/TheGBSpaceRace
ba25e02f439e21e755c990ef50b2ff5725791f39
[ "MIT" ]
null
null
null
# import logging import os import webapp2 import jinja2 template_dir = os.path.join(os.path.dirname(__file__), 'templates') jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader(template_dir), autoescape=True) # # DB MODELS # # # HANDLERS # ...
27.928125
86
0.570438
# import logging import os import json import time import webapp2 import jinja2 from utils import * from google.appengine.api import memcache from google.appengine.ext import db template_dir = os.path.join(os.path.dirname(__file__), 'templates') jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader(templat...
0
521
0
6,020
0
828
0
12
577
205c8586b429548e440ce43b695624ac07e8a9f4
4,509
py
Python
src/Python/GeometricObjects/GeometricObjectsDemo.py
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
81
2020-08-10T01:44:30.000Z
2022-03-23T06:46:36.000Z
src/Python/GeometricObjects/GeometricObjectsDemo.py
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
2
2020-09-12T17:33:52.000Z
2021-04-15T17:33:09.000Z
src/Python/GeometricObjects/GeometricObjectsDemo.py
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
27
2020-08-17T07:09:30.000Z
2022-02-15T03:44:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # noinspection PyUnresolvedReferences import vtkmodules.vtkInteractionStyle # noinspection PyUnresolvedReferences import vtkmodules.vtkRenderingFreeType # noinspection PyUnresolvedReferences if __name__ == '__main__': main()
34.419847
114
0.696385
#!/usr/bin/env python # -*- coding: utf-8 -*- # noinspection PyUnresolvedReferences import vtkmodules.vtkInteractionStyle # noinspection PyUnresolvedReferences import vtkmodules.vtkRenderingFreeType # noinspection PyUnresolvedReferences import vtkmodules.vtkRenderingOpenGL2 from vtkmodules.vtkCommonColor import vtkNam...
0
0
0
0
0
3,698
0
421
111
e918298f5c8d82912b22b03673c68ed1406e2e0a
3,337
py
Python
platform/hwconf_data/mgm22/modules/EUART0/EUART_model.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
null
null
null
platform/hwconf_data/mgm22/modules/EUART0/EUART_model.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
1
2020-08-25T02:36:22.000Z
2020-08-25T02:36:22.000Z
platform/hwconf_data/mgm22/modules/EUART0/EUART_model.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
1
2020-08-25T01:56:04.000Z
2020-08-25T01:56:04.000Z
from . import halconfig_types as types from . import halconfig_dependency as dep name = "EUART" description = "EUART" compatibility = dep.Dependency() # all peripheral = 'EUART' enable = { "define": "HAL_EUART_ENABLE", "description": "Enable EUART", } options = { "HAL_EUART_BAUD_RATE": { "type": "...
37.920455
220
0.59125
from . import halconfig_types as types from . import halconfig_dependency as dep name = "EUART" description = "EUART" compatibility = dep.Dependency() # all peripheral = 'EUART' enable = { "define": "HAL_EUART_ENABLE", "description": "Enable EUART", } options = { "HAL_EUART_BAUD_RATE": { "type": "...
0
0
0
0
0
0
0
0
0
9c67aed244062cb2b1fca5d24da36c1ce2ce0e2f
1,395
py
Python
msql.py
todatomohiro/python-beginner
ff0120e509ea0a06a7bc4c4e989b7365202814cf
[ "MIT" ]
1
2020-05-21T09:54:12.000Z
2020-05-21T09:54:12.000Z
msql.py
todatomohiro/python-beginner
ff0120e509ea0a06a7bc4c4e989b7365202814cf
[ "MIT" ]
null
null
null
msql.py
todatomohiro/python-beginner
ff0120e509ea0a06a7bc4c4e989b7365202814cf
[ "MIT" ]
1
2021-02-09T08:46:28.000Z
2021-02-09T08:46:28.000Z
""" PythonMySQL mysql-connector-python MySQL mode: none, create, insert, update, delete, select Blog URL : https://develop.blue/2020/03/python-use-mysql/ """ import mysql.connector mode = 'none' db_connect = mysql.connector.connect( host='172.0.0.1', port='3306', user='root', password='root', da...
23.644068
119
0.671685
""" 【Python】MySQLを使って情報を保管してみよう! サードパーティーのmysql-connector-pythonモジュールを利用して情報の読み書きをおこないます。 MySQLは別途インストールしてください。 モードを切り替えることで処理を変更できます。 mode: none, create, insert, update, delete, select Blog URL : https://develop.blue/2020/03/python-use-mysql/ """ import mysql.connector mode = 'none' db_connect = mysql.connector.con...
411
0
0
0
0
0
0
0
0
98f85165b656e8173a31a1e1de3e55a37f73bd5b
4,090
py
Python
python/tests/test_hash.py
trinsic-id/didcomm-extension-grpc
b7ccaa02e8a886da0333eaf432d16d7a2db1b65c
[ "Apache-2.0" ]
3
2020-11-16T20:16:27.000Z
2020-12-03T18:01:08.000Z
python/tests/test_hash.py
trinsic-id/didcomm-extension-grpc
b7ccaa02e8a886da0333eaf432d16d7a2db1b65c
[ "Apache-2.0" ]
4
2020-10-19T15:24:11.000Z
2020-12-16T21:35:02.000Z
python/tests/test_hash.py
trinsic-id/didcomm-extension-grpc
b7ccaa02e8a886da0333eaf432d16d7a2db1b65c
[ "Apache-2.0" ]
1
2020-12-02T23:01:34.000Z
2020-12-02T23:01:34.000Z
import unittest if __name__ == "__main__": unittest.main()
47.011494
283
0.75379
import base64 import unittest from trinsicokapi import hashing from trinsicokapi.proto.okapi.hashing.v1 import ( Blake3HashRequest, Blake3HashResponse, Blake3KeyedHashRequest, Blake3KeyedHashResponse, Blake3DeriveKeyRequest, Blake3DeriveKeyResponse, Sha256HashRequest, Sha256HashResponse...
0
0
0
3,493
0
176
0
241
113
7468fe75c28818bd5a97e30809627395634752f3
898
py
Python
tests/test_ir.py
gabrielalbino/Twine-Interpreter
37da1a67d6f616d943ad9607d3ebc0f0d9b39c2a
[ "MIT" ]
2
2022-03-04T18:27:27.000Z
2022-03-09T16:33:11.000Z
tests/test_ir.py
gabrielalbino/Twine-Interpreter
37da1a67d6f616d943ad9607d3ebc0f0d9b39c2a
[ "MIT" ]
null
null
null
tests/test_ir.py
gabrielalbino/Twine-Interpreter
37da1a67d6f616d943ad9607d3ebc0f0d9b39c2a
[ "MIT" ]
9
2021-10-29T23:31:22.000Z
2022-03-16T18:16:48.000Z
BLACKLIST = {"operators.twn"}
22.45
88
0.642539
from pathlib import Path from typing import NamedTuple from pprint import pprint class Declaration(NamedTuple): args: object returns: object body: object BLACKLIST = {"operators.twn"} def test_examples(ir, examples: Path): for path in examples.iterdir(): check_path(ir, path) def check_pa...
4
0
0
63
0
624
0
15
158
46254e3e5c2aaaf432b91ce2578e1bb602c44195
1,180
py
Python
services/web/project/client/form_request.py
mythre/flask-spark-docker
04ffaed6aeca4f27b83218cb019dbf3667f22a43
[ "MIT" ]
null
null
null
services/web/project/client/form_request.py
mythre/flask-spark-docker
04ffaed6aeca4f27b83218cb019dbf3667f22a43
[ "MIT" ]
null
null
null
services/web/project/client/form_request.py
mythre/flask-spark-docker
04ffaed6aeca4f27b83218cb019dbf3667f22a43
[ "MIT" ]
null
null
null
import requests import tabulate if __name__ == "__main__": headers = {} headers['Accept'] = 'application/json' params = {} base_url = 'http://localhost:5009/' print("Available functions: 1.getItemsbyColor 2.getBrandsCount 3.getRecentItems", "Enter the name of function: ") function = ...
31.052632
85
0.584746
import requests import tabulate if __name__ == "__main__": headers = {} headers['Accept'] = 'application/json' params = {} base_url = 'http://localhost:5009/' print("Available functions: 1.getItemsbyColor 2.getBrandsCount 3.getRecentItems", "Enter the name of function: ") function = ...
0
0
0
0
0
0
0
0
0
e19380fbed208ece671c9bb006ce7de8eb762652
2,429
py
Python
test.py
thanhhoangvan/AI_Cam
9a628d1b8f162d99045b013c8af69bb7a0fb6d56
[ "Apache-2.0" ]
1
2021-07-15T06:59:04.000Z
2021-07-15T06:59:04.000Z
test.py
thanhhoangvan/AI_Cam
9a628d1b8f162d99045b013c8af69bb7a0fb6d56
[ "Apache-2.0" ]
null
null
null
test.py
thanhhoangvan/AI_Cam
9a628d1b8f162d99045b013c8af69bb7a0fb6d56
[ "Apache-2.0" ]
null
null
null
XMAX = 1 XMIN = -1 YMAX = 1 YMIN = -1 if __name__ == '__main__': continuous_move()
28.576471
86
0.742692
from time import sleep from onvif import ONVIFCamera XMAX = 1 XMIN = -1 YMAX = 1 YMIN = -1 def perform_move(ptz, request, timeout): # Start continuous move ptz.ContinuousMove(request) # Wait a certain time sleep(timeout) request.PanTilt = 1 # Stop continuous move ptz.Stop(request)#{'ProfileToken': r...
0
0
0
0
0
2,142
0
9
190
427a9bce8ca484654952d48bd91cce53461870d7
3,272
py
Python
ProfessorFinder/content_crawler/PKU_crawler.py
hneghengaa/ProfessorFinder
45a244dc39212be206600c779c6bfc9904daa7ed
[ "MIT" ]
2
2021-07-19T13:44:02.000Z
2021-07-24T12:14:45.000Z
ProfessorFinder/content_crawler/PKU_crawler.py
hneghengaa/ProfessorFinder
45a244dc39212be206600c779c6bfc9904daa7ed
[ "MIT" ]
2
2021-07-19T13:58:02.000Z
2021-07-24T01:46:30.000Z
ProfessorFinder/content_crawler/PKU_crawler.py
hneghengaa/ProfessorFinder
45a244dc39212be206600c779c6bfc9904daa7ed
[ "MIT" ]
2
2021-07-19T13:43:42.000Z
2021-07-21T10:46:33.000Z
""" """ uncrawled = [''] if __name__ == '__main__': main()
42.493506
744
0.685819
""" 北大 """ import json import requests from ProfessorFinder.content_crawler.base_crawler import WebCrawler class PKUCrawler(WebCrawler): def __init__(self, url, name): super().__init__(url, name) def append_info(self, name, email, url): self.all_info.append(('北京大学', self.name, name, emai...
81
0
0
2,873
0
84
0
30
181
67996006b9d3ca7a7e05165ee6dbc7febd3b8c96
9,028
py
Python
rpmrepopromoter.py
leehuk/rpmrepopromoter
1e863251c8e7923c54a22fda40ddfac25ec83926
[ "BSD-2-Clause" ]
null
null
null
rpmrepopromoter.py
leehuk/rpmrepopromoter
1e863251c8e7923c54a22fda40ddfac25ec83926
[ "BSD-2-Clause" ]
null
null
null
rpmrepopromoter.py
leehuk/rpmrepopromoter
1e863251c8e7923c54a22fda40ddfac25ec83926
[ "BSD-2-Clause" ]
null
null
null
import os from flask import Flask from flask_sqlalchemy import SQLAlchemy from werkzeug.contrib.fixers import ProxyFix app = Flask(__name__) app.config.from_pyfile('config.cfg') if 'REVERSE_PROXY' in app.config and app.config['REVERSE_PROXY']: app.wsgi_app = ProxyFix(app.wsgi_app) if not 'USERNAME' in app.config or...
34.067925
172
0.735822
import json import os import subprocess from flask import Flask, request, session, g, redirect, url_for, render_template from flask_sqlalchemy import SQLAlchemy from werkzeug.contrib.fixers import ProxyFix app = Flask(__name__) app.config.from_pyfile('config.cfg') if 'REVERSE_PROXY' in app.config and app.config['REVE...
0
6,031
0
628
0
866
0
43
458
7f0366185514ef06e944a83104cf059aff0a8133
1,401
py
Python
setup.py
alexey-turapin/do-latency
a5725a3a59af52b7786ef258e0b466f58d8654f3
[ "MIT" ]
126
2016-02-22T14:11:08.000Z
2021-11-20T23:19:56.000Z
setup.py
alexey-turapin/do-latency
a5725a3a59af52b7786ef258e0b466f58d8654f3
[ "MIT" ]
7
2016-02-22T14:39:08.000Z
2018-04-23T20:25:14.000Z
setup.py
alexey-turapin/do-latency
a5725a3a59af52b7786ef258e0b466f58d8654f3
[ "MIT" ]
19
2016-02-22T17:47:03.000Z
2020-07-16T06:26:58.000Z
# -*- coding: utf-8 -*- from setuptools import setup import re version = re.search('^__version__\s*=\s*"(.*)"', open('do_latency/__init__.py').read(), re.M).group(1) with open('requirements.txt') as f: required = f.read().splitlines() setup( name='do-latency', version=version, au...
31.840909
100
0.630978
# -*- coding: utf-8 -*- from setuptools import setup import re import os import io def read(fname): return io.open(os.path.join(os.path.dirname(__file__), fname), encoding="UTF-8").read() version = re.search('^__version__\s*=\s*"(.*)"', open('do_latency/__init__.py').read(), re.M).group(1) w...
0
0
0
0
0
87
0
-24
67
46fb82b672722b404763c91132ff0ef5c80ec0d4
287
py
Python
setup.py
ashfall/eskbot
04ad707d698a6fce325e1d75177d52b115ec725f
[ "MIT" ]
null
null
null
setup.py
ashfall/eskbot
04ad707d698a6fce325e1d75177d52b115ec725f
[ "MIT" ]
null
null
null
setup.py
ashfall/eskbot
04ad707d698a6fce325e1d75177d52b115ec725f
[ "MIT" ]
1
2020-03-13T16:27:09.000Z
2020-03-13T16:27:09.000Z
#!/usr/bin/env python from __future__ import absolute_import, division, print_function import setuptools setuptools.setup( name="eskbot", version="0.0", description="eskbot", long_description="eskbot", install_requires=[ "aiml", "twisted", ] )
16.882353
64
0.655052
#!/usr/bin/env python from __future__ import absolute_import, division, print_function import setuptools setuptools.setup( name="eskbot", version="0.0", description="eskbot", long_description="eskbot", install_requires=[ "aiml", "twisted", ] )
0
0
0
0
0
0
0
0
0
8ccf23f0333fb97ebe25953869efd536c136e0f2
10,905
py
Python
SpykeTorch/functional.py
R1704/SpeechRecognitionSNN
4b788d1bd20d8ce201da6da8b200b3ca722c7efa
[ "MIT" ]
null
null
null
SpykeTorch/functional.py
R1704/SpeechRecognitionSNN
4b788d1bd20d8ce201da6da8b200b3ca722c7efa
[ "MIT" ]
5
2020-12-17T08:41:03.000Z
2021-01-29T15:31:44.000Z
SpykeTorch/functional.py
R1704/SpeechRecognitionSNN
4b788d1bd20d8ce201da6da8b200b3ca722c7efa
[ "MIT" ]
1
2020-11-16T10:59:50.000Z
2020-11-16T10:59:50.000Z
import torch import torch.nn as nn import torch.nn.functional as fn import numpy as np # padding # pad = (padLeft, padRight, padTop, padBottom) def pad(input, pad, value=0): r"""Applies 2D padding on the input tensor. Args: input (Tensor): The input tensor. pad (tuple): A tuple of 4 integers in the form of (pad...
39.654545
135
0.758459
import torch import torch.nn as nn import torch.nn.functional as fn import numpy as np from .utils import to_pair # padding # pad = (padLeft, padRight, padTop, padBottom) def pad(input, pad, value=0): r"""Applies 2D padding on the input tensor. Args: input (Tensor): The input tensor. pad (tuple): A tuple of 4 i...
0
0
0
0
0
0
0
5
22
64997d057bc194ef1f81ef89a27d8f49ba358d8e
243
py
Python
service/crawler_important_merchants.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
service/crawler_important_merchants.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
service/crawler_important_merchants.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
#!/usr/bin/env python # encoding: utf-8 if __name__ == "__main__": main()
24.3
65
0.670782
#!/usr/bin/env python # encoding: utf-8 from service.crawl_url_script import startService import sys def main(): if len(sys.argv) > 1: startService(sys.argv[1], None, 2, 'expired', None, 1000) if __name__ == "__main__": main()
0
0
0
0
0
82
0
17
66
c2baef385abd6bb054a7b5448232137074f0dd12
8,279
py
Python
extplugins/privateserver.py
Desi-Boyz/cod4x-server-B3-configs
03a323d7ea293efe1831ed315001391b9aaf532a
[ "MIT" ]
1
2017-07-17T22:21:10.000Z
2017-07-17T22:21:10.000Z
extplugins/privateserver.py
Desi-Boyz/cod4x-server-B3-configs
03a323d7ea293efe1831ed315001391b9aaf532a
[ "MIT" ]
null
null
null
extplugins/privateserver.py
Desi-Boyz/cod4x-server-B3-configs
03a323d7ea293efe1831ed315001391b9aaf532a
[ "MIT" ]
null
null
null
# # PrivateServer Plugin for BigBrotherBot(B3) (www.bigbrotherbot.net) # Copyright (C) 2010 Mark Weirath (xlr8or@xlr8or.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 o...
35.995652
105
0.57676
# # PrivateServer Plugin for BigBrotherBot(B3) (www.bigbrotherbot.net) # Copyright (C) 2010 Mark Weirath (xlr8or@xlr8or.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 o...
0
0
0
7,000
0
0
0
0
22
b63cabc74168908ba35e8afb4e145917a8dffe8f
4,278
py
Python
Part2-Modeling/1-Simple Linear Regression/multiple_linear_regression.py
Menosse/Data-Science
eb151d6d286b20feb0720758e573e0aca498755c
[ "MIT" ]
null
null
null
Part2-Modeling/1-Simple Linear Regression/multiple_linear_regression.py
Menosse/Data-Science
eb151d6d286b20feb0720758e573e0aca498755c
[ "MIT" ]
null
null
null
Part2-Modeling/1-Simple Linear Regression/multiple_linear_regression.py
Menosse/Data-Science
eb151d6d286b20feb0720758e573e0aca498755c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat May 23 12:51:49 2020 @author: Fernando """ import pandas as pd import matplotlib.pyplot as plt df = pd.read_csv('500_Person_Gender_Height_Weight_Index.csv') df.head() df.shape df.dtypes df.info() df.Gender.nunique() df.Gender.unique() plt.style.use('ggplot') # hist...
34.780488
126
0.699158
# -*- coding: utf-8 -*- """ Created on Sat May 23 12:51:49 2020 @author: Fernando """ import pandas as pd import matplotlib.pyplot as plt df = pd.read_csv('500_Person_Gender_Height_Weight_Index.csv') df.head() df.shape df.dtypes df.info() df.Gender.nunique() df.Gender.unique() plt.style.use('ggplot') # hist...
0
0
0
0
0
0
0
0
0
4f62a26965b96bf23439255de9ad00dcc397bd8e
974
py
Python
src/generate_erdos_renyi_graph.py
raphael-group/netmix
fef07f2c27c74d1bc933663cd49abce2af79ff05
[ "BSD-3-Clause" ]
10
2018-12-05T10:54:09.000Z
2021-12-08T21:53:23.000Z
src/generate_erdos_renyi_graph.py
matthewreyna/netmix
7d8e1f5f374a176764ee31e78ba5c9c598dd7cca
[ "BSD-3-Clause" ]
1
2020-01-21T05:56:03.000Z
2020-01-22T23:16:08.000Z
src/generate_erdos_renyi_graph.py
matthewreyna/netmix
7d8e1f5f374a176764ee31e78ba5c9c598dd7cca
[ "BSD-3-Clause" ]
2
2020-12-18T04:11:49.000Z
2021-10-06T13:13:02.000Z
#!/usr/bin/python # Load packages. import sys # Parse arguments. # Run script. if __name__=='__main__': run(get_parser().parse_args(sys.argv[1:]))
29.515152
76
0.688912
#!/usr/bin/python # Load packages. import networkx as nx, random import sys, argparse from common import save_edge_list # Parse arguments. def get_parser(): parser = argparse.ArgumentParser() parser.add_argument('-n', type=int, required=True) parser.add_argument('-p', type=float, required=True) parse...
0
0
0
0
0
700
0
30
89
ca800d93f72985ddf8431a53014f034bcfd32240
581
py
Python
setup.py
chunglabmit/mp_shared_memory
4430d78c315725298bcec1b562de9940c22f28d2
[ "MIT" ]
1
2021-10-18T04:51:05.000Z
2021-10-18T04:51:05.000Z
setup.py
chunglabmit/mp_shared_memory
4430d78c315725298bcec1b562de9940c22f28d2
[ "MIT" ]
null
null
null
setup.py
chunglabmit/mp_shared_memory
4430d78c315725298bcec1b562de9940c22f28d2
[ "MIT" ]
null
null
null
from setuptools import setup version="1.0.0" with open("README.md", "r") as fd: long_description = fd.read() setup( name="mp_shared_memory", version=version, description="Multiprocessing shared memory", long_description=long_description, author="Kwanghun Chung Lab", packages=["mp_shared_m...
24.208333
58
0.654045
from setuptools import setup version="1.0.0" with open("README.md", "r") as fd: long_description = fd.read() setup( name="mp_shared_memory", version=version, description="Multiprocessing shared memory", long_description=long_description, author="Kwanghun Chung Lab", packages=["mp_shared_m...
0
0
0
0
0
0
0
0
0
5e23ecab8db8ee531a9dd2caade06a127f62e76c
1,797
py
Python
multimedia/gui/maixui/shtxx.py
708yamaguchi/MaixPy_scripts
5f1774e739fb7eecab344d619c0cd63a71ff3d4f
[ "MIT" ]
485
2019-03-18T10:53:59.000Z
2022-03-27T09:02:08.000Z
multimedia/gui/maixui/shtxx.py
708yamaguchi/MaixPy_scripts
5f1774e739fb7eecab344d619c0cd63a71ff3d4f
[ "MIT" ]
110
2019-04-04T09:07:39.000Z
2022-03-03T08:08:19.000Z
multimedia/gui/maixui/shtxx.py
708yamaguchi/MaixPy_scripts
5f1774e739fb7eecab344d619c0cd63a71ff3d4f
[ "MIT" ]
379
2019-03-18T04:48:46.000Z
2022-03-30T00:29:29.000Z
import time from machine import I2C SHT3x_ADDR = 0x45 SHT31_ADDR = 0x44 if __name__ == "__main__": #sht3x = SHT3x(I2C(I2C.I2C0, freq=100*1000, scl=24, sda=25)) sht3x = SHT3x(I2C(I2C.I2C0, freq=100*1000, scl=24, sda=27)) #sht3x = SHT3x(I2C(I2C.I2C0, freq=100*1000, scl=23, sda=20)) #sht3x = SHT3x(I2C(...
32.672727
77
0.558709
import sys import time from machine import I2C SHT3x_ADDR = 0x45 SHT31_ADDR = 0x44 class SHT3x: def __init__(self, i2c, addr = SHT31_ADDR): self.i2c = i2c #addrs = self.i2c.scan() #print(addrs) #if SHT3x_ADDR not in addrs or SHT31_ADDR not in addrs: #raise Exception('...
0
0
0
1,253
0
0
0
-11
46
0dd8be18bb085b5865b6dfe820a704b2364925e9
32,632
py
Python
RTB_Polarimeter.py
kkummer/RixsToolBox
48e220035697c9a85eaa3fe79307593aa5558065
[ "MIT" ]
4
2020-06-06T10:37:22.000Z
2021-12-14T11:50:09.000Z
RTB_Polarimeter.py
kkummer/RixsToolBox
48e220035697c9a85eaa3fe79307593aa5558065
[ "MIT" ]
5
2019-04-27T16:06:23.000Z
2020-12-09T20:34:47.000Z
RTB_Polarimeter.py
kkummer/RixsToolBox
48e220035697c9a85eaa3fe79307593aa5558065
[ "MIT" ]
2
2016-11-07T19:26:25.000Z
2018-06-15T09:55:29.000Z
#!/usr/bin/env python #-*- coding: utf-8 -*- #/*########################################################################## # Copyright (C) 2016 K. Kummer, A. Tamborino, European Synchrotron Radiation # Facility # # This file is part of the ID32 RIXSToolBox developed at the ESRF by the ID32 # staff and the ESR...
43.860215
173
0.617094
#!/usr/bin/env python #-*- coding: utf-8 -*- #/*########################################################################## # Copyright (C) 2016 K. Kummer, A. Tamborino, European Synchrotron Radiation # Facility # # This file is part of the ID32 RIXSToolBox developed at the ESRF by the ID32 # staff and the ESR...
0
0
0
30,142
0
0
0
146
307
4c183a3f5ee2140e8e44d0ab6c5c9cbb72efc4e8
527
py
Python
CodeForces/easy problems/160_a_twins.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
CodeForces/easy problems/160_a_twins.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
CodeForces/easy problems/160_a_twins.py
dimitrov-dimitar/competitive-programming
f2b022377baf6d4beff213fc513907b774c12352
[ "MIT" ]
null
null
null
# https://codeforces.com/problemset/problem/160/A n = int(input()) coins_value = list(map(int, input().split())) coins_value = sorted(coins_value, reverse=True) sum_coins = sum(coins_value) number_coins = 0 break_var = True mine_coins = 0 while True: if n == 1: number_coins = 1 break if br...
19.518519
49
0.635674
# https://codeforces.com/problemset/problem/160/A n = int(input()) coins_value = list(map(int, input().split())) coins_value = sorted(coins_value, reverse=True) sum_coins = sum(coins_value) number_coins = 0 break_var = True mine_coins = 0 while True: if n == 1: number_coins = 1 break if br...
0
0
0
0
0
0
0
0
0
3bbf7d7a12ef85c462d7c12e361db9a035059946
10,459
py
Python
djangocms_newsletter/migrations/0004_auto__add_field_smtpserver_emails_remains__chg_field_attachment_file_a.py
nephila/djangocms-newsletter
5ebd8d3e1e2c85b2791d0261a954469f2548c840
[ "BSD-3-Clause" ]
null
null
null
djangocms_newsletter/migrations/0004_auto__add_field_smtpserver_emails_remains__chg_field_attachment_file_a.py
nephila/djangocms-newsletter
5ebd8d3e1e2c85b2791d0261a954469f2548c840
[ "BSD-3-Clause" ]
null
null
null
djangocms_newsletter/migrations/0004_auto__add_field_smtpserver_emails_remains__chg_field_attachment_file_a.py
nephila/djangocms-newsletter
5ebd8d3e1e2c85b2791d0261a954469f2548c840
[ "BSD-3-Clause" ]
2
2021-03-15T13:33:53.000Z
2021-05-18T20:34:47.000Z
# encoding: utf-8
76.343066
224
0.579214
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'SMTPServer.emails_remains' db.add_column('newsletter_smtpserver', 'emails_remains', self.g...
0
0
0
10,312
0
0
0
18
111
5cdbf8b9dccc531291f056890435f6f319fd10cb
339
py
Python
authentication/utils.py
foschieraanderson/central-de-erros
aff3f744f6e69ff26611fd25b6b3b438158468d3
[ "MIT" ]
null
null
null
authentication/utils.py
foschieraanderson/central-de-erros
aff3f744f6e69ff26611fd25b6b3b438158468d3
[ "MIT" ]
null
null
null
authentication/utils.py
foschieraanderson/central-de-erros
aff3f744f6e69ff26611fd25b6b3b438158468d3
[ "MIT" ]
null
null
null
from .serializers import UserSerializer def jwt_response_payload_handler(token, user=None, request=None): """ Sobrescrevendo a view padro de autenticao do JWT e adicionando dados do usurio na resposta """ return { 'token': token, 'user': UserSerializer(user, context={'request':reque...
30.818182
70
0.687316
from .serializers import UserSerializer def jwt_response_payload_handler(token, user=None, request=None): """ Sobrescrevendo a view padrão de autenticação do JWT e adicionando dados do usuário na resposta """ return { 'token': token, 'user': UserSerializer(user, context={'request':r...
8
0
0
0
0
0
0
0
0
73e844a37df7b48b9788e95771b481f173acb892
18,464
py
Python
models/train_configs_exps/exp_3_debiased/train_config.py
DeerKK/Deformable-Modeling
97b14be152e78f44dd6e783059bc5380a3a74a68
[ "MIT" ]
4
2020-11-16T16:06:08.000Z
2022-03-30T03:53:54.000Z
models/train_configs_exps/exp_3_debiased/train_config.py
DeerKK/Deformable-Modeling
97b14be152e78f44dd6e783059bc5380a3a74a68
[ "MIT" ]
null
null
null
models/train_configs_exps/exp_3_debiased/train_config.py
DeerKK/Deformable-Modeling
97b14be152e78f44dd6e783059bc5380a3a74a68
[ "MIT" ]
null
null
null
train_indexes=[[[74, 39, 40, 22, 16, 92, 68, 1, 85, 72], [43, 36, 93, 60, 65, 87, 73, 75, 45, 57], [27, 61, 46, 83, 88, 76, 37, 17, 78, 12], [41, 77, 10, 55, 42, 89, 6, 38, 35, 30], [20, 47, 21, 44, 24, 54, 14, 86, 81, 2], [90, 8, 0, 52, 25, 56, 62, 23, 64, 48], [4, 3, 29, 71, 28, 33, 19, 80, 58, 63], [91, 51, 18, 15, ...
1,846.4
7,042
0.468479
train_indexes=[[[74, 39, 40, 22, 16, 92, 68, 1, 85, 72], [43, 36, 93, 60, 65, 87, 73, 75, 45, 57], [27, 61, 46, 83, 88, 76, 37, 17, 78, 12], [41, 77, 10, 55, 42, 89, 6, 38, 35, 30], [20, 47, 21, 44, 24, 54, 14, 86, 81, 2], [90, 8, 0, 52, 25, 56, 62, 23, 64, 48], [4, 3, 29, 71, 28, 33, 19, 80, 58, 63], [91, 51, 18, 15, ...
0
0
0
0
0
0
0
0
0
07c337773deec5506c0f3d246a7b414d1f268c84
6,122
py
Python
gui/migrations/0001_initial.py
blakejakopovic/lndg
45506b55ed6c2f554ef3c13a6863e75ebb292f07
[ "MIT" ]
56
2021-09-11T14:56:33.000Z
2022-03-31T04:52:18.000Z
gui/migrations/0001_initial.py
SatoshiNakamotoBitcoin/lndg
41d3acb8e87c6f58420cc4fbef114bb802a7ad85
[ "MIT" ]
37
2021-09-23T18:28:36.000Z
2022-03-30T00:35:45.000Z
gui/migrations/0001_initial.py
SatoshiNakamotoBitcoin/lndg
41d3acb8e87c6f58420cc4fbef114bb802a7ad85
[ "MIT" ]
15
2021-09-30T23:48:03.000Z
2022-03-28T21:21:50.000Z
# Generated by Django 3.2.7 on 2021-09-21 16:40 import django.db.models.deletion
46.030075
117
0.53904
# Generated by Django 3.2.7 on 2021-09-21 16:40 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Channels'...
0
0
0
5,946
0
0
0
26
68
39c0d69b585ed1bc5e29eb04caf1c1b72463061a
537
py
Python
sciquence/sequences/conversion.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
8
2017-10-23T17:59:35.000Z
2021-05-10T03:01:30.000Z
sciquence/sequences/conversion.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2019-08-25T19:24:12.000Z
2019-09-05T12:16:10.000Z
sciquence/sequences/conversion.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2018-02-28T09:47:53.000Z
2019-08-25T19:24:16.000Z
# Krzysztof Joachimiak 2017 # sciquence: Time series & sequences in Python # # Sequence conversion # Author: Krzysztof Joachimiak # # License: MIT import numpy as np def to_idx(sl, as_array=False): ''' Convert slice object to list of indices Parameters ---------- sl: slice A slice objec...
17.322581
58
0.629423
# Krzysztof Joachimiak 2017 # sciquence: Time series & sequences in Python # # Sequence conversion # Author: Krzysztof Joachimiak # # License: MIT import numpy as np def to_idx(sl, as_array=False): ''' Convert slice object to list of indices Parameters ---------- sl: slice A slice objec...
0
0
0
0
0
0
0
0
0
87a15ec53987ec4fdd622c5b1ad445aa992aa5c3
778
py
Python
comparedata/admin.py
benedwards44/sfdatacompare
16f1a6546e26f5f10ec25003296bdf748b4d29fc
[ "Unlicense" ]
15
2015-10-28T18:47:52.000Z
2022-02-07T11:56:33.000Z
comparedata/admin.py
benedwards44/sfdatacompare
16f1a6546e26f5f10ec25003296bdf748b4d29fc
[ "Unlicense" ]
1
2017-03-18T05:12:05.000Z
2017-03-18T05:15:47.000Z
comparedata/admin.py
benedwards44/sfdatacompare
16f1a6546e26f5f10ec25003296bdf748b4d29fc
[ "Unlicense" ]
13
2016-04-24T15:36:42.000Z
2020-09-09T19:58:44.000Z
from django.contrib import admin from comparedata.models import Job admin.site.register(Job, JobAdmin)
26.827586
82
0.72365
from django.contrib import admin from comparedata.models import Job, Org, Object, ObjectField, UnmatchedRecord class OrgInline(admin.TabularInline): fields = ['org_number','org_name', 'username', 'access_token', 'status', 'error'] ordering = ['org_number',] model = Org extra = 0 class ObjectInline(admin.TabularIn...
0
0
0
538
0
0
0
43
92
82daff18f6896706443ae3196512dc214898672e
11,564
py
Python
ESP8266/algorithm.py
kz3ko/MAX30102-Pulse_oximetry
cc9d47e85a4755805fe51b780ba6591ff5f80ee8
[ "MIT" ]
null
null
null
ESP8266/algorithm.py
kz3ko/MAX30102-Pulse_oximetry
cc9d47e85a4755805fe51b780ba6591ff5f80ee8
[ "MIT" ]
null
null
null
ESP8266/algorithm.py
kz3ko/MAX30102-Pulse_oximetry
cc9d47e85a4755805fe51b780ba6591ff5f80ee8
[ "MIT" ]
null
null
null
# Indexes of specified samples types. IR = -1 RED = -2 IR_PREVIOUS = -3 RED_PREVIOUS = -4 TIME = -5 TIME_PREVIOUS = -6 # Previous sample of ir equals to ir-2, previous sample of red equals to red-2, and previous sample of time equals to # time-1.
47.588477
120
0.565375
import mathfunctions as math # Indexes of specified samples types. IR = -1 RED = -2 IR_PREVIOUS = -3 RED_PREVIOUS = -4 TIME = -5 TIME_PREVIOUS = -6 # Previous sample of ir equals to ir-2, previous sample of red equals to red-2, and previous sample of time equals to # time-1. class HrSpOalgorithm: def __init__(se...
0
347
0
10,917
0
0
0
7
45
d49798160ff832f38f0f2ba0e66e1fd6086858ce
10,570
py
Python
ironic_prometheus_exporter/parsers/ipmi.py
openstack/ironic-prometheus-exporter
81d1b280f3da8036056ffe80a8732e67c40e58a4
[ "Apache-2.0" ]
1
2019-08-30T10:53:08.000Z
2019-08-30T10:53:08.000Z
ironic_prometheus_exporter/parsers/ipmi.py
openstack/ironic-prometheus-exporter
81d1b280f3da8036056ffe80a8732e67c40e58a4
[ "Apache-2.0" ]
null
null
null
ironic_prometheus_exporter/parsers/ipmi.py
openstack/ironic-prometheus-exporter
81d1b280f3da8036056ffe80a8732e67c40e58a4
[ "Apache-2.0" ]
1
2019-12-13T12:33:40.000Z
2019-12-13T12:33:40.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
42.96748
79
0.570009
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
0
0
0
0
0
4,970
0
76
181
223fb1f5d957c3cb3ba6a58dc8d4e852afeff8b2
6,100
py
Python
luftdaten/__init__.py
lrubaszewski/python-luftdaten
69c29f4ee0ac6e8e8749eee44102d1b513cf5cd5
[ "MIT" ]
null
null
null
luftdaten/__init__.py
lrubaszewski/python-luftdaten
69c29f4ee0ac6e8e8749eee44102d1b513cf5cd5
[ "MIT" ]
null
null
null
luftdaten/__init__.py
lrubaszewski/python-luftdaten
69c29f4ee0ac6e8e8749eee44102d1b513cf5cd5
[ "MIT" ]
null
null
null
"""Wrapper to get the measurings from a Luftdaten station.""" import logging _LOGGER = logging.getLogger(__name__) _RESOURCE = 'https://api.luftdaten.info/v1' _PUSH_ENDPOINT = "http://api.luftdaten.info/v1/push-sensor-data/" SENSOR_SDS011 = 1 # value_types: P1 (PM10), P2 (PM2.5) SENSOR_BMP180 = 3 # value_typ...
35.057471
108
0.560656
"""Wrapper to get the measurings from a Luftdaten station.""" import asyncio import logging import aiohttp import async_timeout from . import exceptions _LOGGER = logging.getLogger(__name__) _RESOURCE = 'https://api.luftdaten.info/v1' _PUSH_ENDPOINT = "http://api.luftdaten.info/v1/push-sensor-data/" SENSOR_SDS011 ...
0
0
3,457
1,857
0
0
0
-12
136
fc245c9ccb3aa6b44699d3f837bef4e4d24c389f
43,882
py
Python
src/oci/devops/devops_client_composite_operations.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/devops/devops_client_composite_operations.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/devops/devops_client_composite_operations.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
51.504695
245
0.684495
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
0
0
0
43,431
0
0
0
12
96
e648d2fe5cf581ac0e7983616019c9504fb3e6c6
1,529
py
Python
program/lesson4/train_with_lr.py
BaiduOSS/dlpb
312bcc8411ddc2a025b9dcfc2e46c9496f224c91
[ "Apache-2.0" ]
null
null
null
program/lesson4/train_with_lr.py
BaiduOSS/dlpb
312bcc8411ddc2a025b9dcfc2e46c9496f224c91
[ "Apache-2.0" ]
null
null
null
program/lesson4/train_with_lr.py
BaiduOSS/dlpb
312bcc8411ddc2a025b9dcfc2e46c9496f224c91
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description : This is a demo of using logistic classification Authors : Jiahui Liu(2505774110@qq.com) Date : 2017-12-18 """ import matplotlib.pyplot as plt import numpy as np import sklearn import sklearn.datasets import sklearn.linear_model imp...
26.362069
90
0.644866
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description : This is a demo of using logistic classification Authors : Jiahui Liu(2505774110@qq.com) Date : 2017-12-18 """ import matplotlib.pyplot as plt import numpy as np import sklearn import sklearn.datasets import sklearn.linear_model imp...
12
0
0
0
0
0
0
0
0
0f83f4409408391c65cc930c72e8313c3ec0b02c
6,080
py
Python
AutomatedTesting/Gem/PythonTests/largeworlds/dyn_veg/test_DynamicSliceInstanceSpawner.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
1
2022-03-12T14:13:45.000Z
2022-03-12T14:13:45.000Z
AutomatedTesting/Gem/PythonTests/largeworlds/dyn_veg/test_DynamicSliceInstanceSpawner.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
3
2021-09-08T03:41:27.000Z
2022-03-12T01:01:29.000Z
AutomatedTesting/Gem/PythonTests/largeworlds/dyn_veg/test_DynamicSliceInstanceSpawner.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ import os import pytest import logging # Bail on the test if ly_test_tools doesn't exist. pytest.importorskip(...
43.120567
121
0.671546
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ import os import pytest import logging # Bail on the test if ly_test_tools doesn't exist. pytest.importorskip(...
0
5,339
0
0
0
0
0
78
67
0e1a85904cfca161ae05965c70d5f243bf9eebc0
1,504
py
Python
xldlib/xlpy/matched/names.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/xlpy/matched/names.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/xlpy/matched/names.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
''' XlPy/matched/names __________________ Sets the preferred name for the protein with the following precedence : User Defined > Gene Name > Mnemonic / UniProt ID :copyright: (c) 2015 The Regents of the University of California. :license: GNU GPL, see licenses/GNU GPLv3.txt for more de...
25.491525
73
0.683511
''' XlPy/matched/names __________________ Sets the preferred name for the protein with the following precedence : User Defined > Gene Name > Mnemonic / UniProt ID :copyright: (c) 2015 The Regents of the University of California. :license: GNU GPL, see licenses/GNU GPLv3.txt for more de...
0
648
0
0
0
53
0
35
135
4a1048a0aaf7dc7e8e4422085370e34328979564
2,506
py
Python
neuroConstruct/pythonScripts/RunTestsLEMS.py
OpenSourceBrain/L5bPyrCellHayEtAl2011
23d938d8c4ba1fb83cdd99810ac324ae4f58bd7c
[ "MIT" ]
4
2020-06-15T13:10:23.000Z
2022-02-17T18:20:05.000Z
neuroConstruct/pythonScripts/RunTestsLEMS.py
OpenSourceBrain/L5bPyrCellHayEtAl2011
23d938d8c4ba1fb83cdd99810ac324ae4f58bd7c
[ "MIT" ]
null
null
null
neuroConstruct/pythonScripts/RunTestsLEMS.py
OpenSourceBrain/L5bPyrCellHayEtAl2011
23d938d8c4ba1fb83cdd99810ac324ae4f58bd7c
[ "MIT" ]
1
2022-02-17T11:23:37.000Z
2022-02-17T11:23:37.000Z
# # # File to test current configuration of project # # Author: Padraig Gleeson # # This file has been developed as part of the neuroConstruct project # This work has been funded by the Wellcome Trust # # import sys import os try: from java.io import File except ImportError: print "No...
27.538462
97
0.557861
# # # File to test current configuration of project # # Author: Padraig Gleeson # # This file has been developed as part of the neuroConstruct project # This work has been funded by the Wellcome Trust # # import sys import os try: from java.io import File except ImportError: print "No...
0
0
0
0
0
1,263
0
0
25
12313b55d000f8b07b1c1999c2d551b23d388311
1,178
py
Python
apps/photostream/views.py
agimpel/agimpel.com
14b48b71fe0ff577534b6e493d955eb138da75fa
[ "MIT" ]
null
null
null
apps/photostream/views.py
agimpel/agimpel.com
14b48b71fe0ff577534b6e493d955eb138da75fa
[ "MIT" ]
12
2020-02-12T01:23:47.000Z
2021-12-24T10:36:59.000Z
apps/photostream/views.py
agimpel/agimpel.com
14b48b71fe0ff577534b6e493d955eb138da75fa
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger("agimpel.photostream.views")
31
92
0.686757
from django.http import HttpResponse from django.shortcuts import get_object_or_404 from django.views import generic from django.template import loader from django.urls import reverse import logging from apps.gallery.models import Image logger = logging.getLogger("agimpel.photostream.views") class IndexView(generic...
0
0
0
834
0
0
0
90
179
f222a6b4a37eb1816ac5c7c1249d531d7d28ee81
462
py
Python
nuqql_matrixd/main.py
hwipl/nuqql-matrixd
8120ec8bf5a3818726ad2b30f23f9f05fb37c9ec
[ "MIT" ]
null
null
null
nuqql_matrixd/main.py
hwipl/nuqql-matrixd
8120ec8bf5a3818726ad2b30f23f9f05fb37c9ec
[ "MIT" ]
null
null
null
nuqql_matrixd/main.py
hwipl/nuqql-matrixd
8120ec8bf5a3818726ad2b30f23f9f05fb37c9ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ matrixd main entry point """ import asyncio def main() -> None: """ Main entry point """ try: asyncio.run(_main()) except KeyboardInterrupt: return if __name__ == '__main__': main()
13.588235
57
0.614719
#!/usr/bin/env python3 """ matrixd main entry point """ import asyncio from nuqql_matrixd.server import BackendServer async def _main() -> None: """ Main function, initialize everything and start server """ server = BackendServer() await server.start() def main() -> None: """ Main en...
0
0
134
0
0
0
0
25
46