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
dc1e0476c5beac9e82aabfed844b7b2a999505ad
517
py
Python
solutions/problem_296.py
ksvr444/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
1,921
2018-11-13T18:19:56.000Z
2021-11-15T14:25:41.000Z
solutions/problem_296.py
MohitIndian/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
2
2019-07-19T01:06:16.000Z
2019-08-01T22:21:36.000Z
solutions/problem_296.py
MohitIndian/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
1,066
2018-11-19T19:06:55.000Z
2021-11-13T12:33:56.000Z
# Tests assert get_hbal_tree([1, 2, 3, 4, 5]).val == 3 assert get_hbal_tree([1, 2, 3, 4, 5, 6]).val == 4
19.884615
65
0.547389
class Node: def __init__(self, val): self.val = val self.l = None self.r = None def __repr__(self): return "{}=[l={}, r={}]".format(self.val, self.l, self.r) def get_hbal_tree(arr): if not arr: return None mid = len(arr) // 2 node = Node(arr[mid]) node...
0
0
0
177
0
187
0
0
45
0ac73480e8d07e08229100ba7ed5f9640337209e
7,112
py
Python
unit-tests/py/rspy/acroname.py
rocket-kaya/librealsense
4663fe85b5177b5ac19834f115400fb1d5368e14
[ "Apache-2.0" ]
1
2021-07-03T14:08:08.000Z
2021-07-03T14:08:08.000Z
unit-tests/py/rspy/acroname.py
rocket-kaya/librealsense
4663fe85b5177b5ac19834f115400fb1d5368e14
[ "Apache-2.0" ]
null
null
null
unit-tests/py/rspy/acroname.py
rocket-kaya/librealsense
4663fe85b5177b5ac19834f115400fb1d5368e14
[ "Apache-2.0" ]
1
2021-05-13T06:08:38.000Z
2021-05-13T06:08:38.000Z
""" Brainstem Acroname Hub See documentation for brainstem here: https://acroname.com/reference/python/index.html """ from rspy import log if __name__ == '__main__': import sys, getopt try: opts,args = getopt.getopt( sys.argv[1:], '', longopts = [ 'help', 'recycle' ]) except getopt.G...
25.861818
97
0.574241
""" Brainstem Acroname Hub See documentation for brainstem here: https://acroname.com/reference/python/index.html """ from rspy import log if __name__ == '__main__': import os, sys, getopt def usage(): ourname = os.path.basename( sys.argv[0] ) print( 'Syntax: acroname [options]' ) pr...
0
0
0
148
0
810
0
4
141
1cd49d71d7f04efe21661c86bb6f7ce1ea285435
5,760
py
Python
users/migrations/0001_initial.py
maverick-labs-pune/wikirumours
51651aae651fd88468b54d08abb8ec28a93e65fa
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
maverick-labs-pune/wikirumours
51651aae651fd88468b54d08abb8ec28a93e65fa
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
maverick-labs-pune/wikirumours
51651aae651fd88468b54d08abb8ec28a93e65fa
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-09-03 13:33 import django.contrib.auth.models import django.contrib.auth.validators import django.db.models.deletion
68.571429
329
0.644271
# Generated by Django 3.1.4 on 2021-09-03 13:33 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import users.models class Migration(migrations.Migration): initial = True dependenci...
0
0
0
5,492
0
0
0
24
89
f3eee83f2c5e418089c32fe2fda8904e2e309510
135
py
Python
Task/admin.py
TarangRanpara/SummaryAnnotatorTool
b283c16135da331346490e65b0c2123fa852efb1
[ "MIT" ]
null
null
null
Task/admin.py
TarangRanpara/SummaryAnnotatorTool
b283c16135da331346490e65b0c2123fa852efb1
[ "MIT" ]
null
null
null
Task/admin.py
TarangRanpara/SummaryAnnotatorTool
b283c16135da331346490e65b0c2123fa852efb1
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import SummaryTask admin.site.register(SummaryTask) # Register your models here.
19.285714
33
0.777778
from django.contrib import admin from .models import SummaryTask admin.site.register(SummaryTask) # Register your models here.
0
0
0
0
0
0
0
0
0
57b7e4609bb1e6a78c10c02011813988274e496c
1,041
py
Python
code.py
cengiz1erg/code_repo
d3cfe41cf16799c1a9a708c5ea10f174a1b78ab8
[ "MIT" ]
null
null
null
code.py
cengiz1erg/code_repo
d3cfe41cf16799c1a9a708c5ea10f174a1b78ab8
[ "MIT" ]
null
null
null
code.py
cengiz1erg/code_repo
d3cfe41cf16799c1a9a708c5ea10f174a1b78ab8
[ "MIT" ]
1
2021-03-20T08:19:39.000Z
2021-03-20T08:19:39.000Z
import inspect def counter(fn): """Bu fonksiyon bir 'decorator' olup ka "inner" adnda bir 'closure' iletir. erdeki inner fonksiyonu, kullanlacak asl fonksiyonlar modifiye eder. Burada modifiye olay kullanlan fonksiyonun kanc defa arldn ekrana basma'dr. """ count = 0 # fonksiyon ayn ada sahip olsa ...
31.545455
130
0.710855
from functools import wraps import inspect def counter(fn): """Bu fonksiyon bir 'decorator' olup çıkışa "inner" adında bir 'closure' iletir. İçerdeki inner fonksiyonu, kullanılacak asıl fonksiyonları modifiye eder. Burada modifiye olayı kullanılan fonksiyonun kaçıncı defa çağırıldığını ekrana basma'dır. "...
110
353
0
0
0
0
0
6
95
5b97ec5f37d97f0d09f16ee7172a9a6ae8bf255b
9,691
py
Python
blimp_env/blimp_env/envs/common/utils.py
robot-perception-group/AutonomousBlimpDRL
a10a88b2e9c9f9a83435cff2e4bc7e16e83cfeee
[ "MIT" ]
8
2021-11-21T20:47:37.000Z
2022-03-15T09:50:06.000Z
blimp_env/blimp_env/envs/common/utils.py
robot-perception-group/AutonomousBlimpDRL
a10a88b2e9c9f9a83435cff2e4bc7e16e83cfeee
[ "MIT" ]
null
null
null
blimp_env/blimp_env/envs/common/utils.py
robot-perception-group/AutonomousBlimpDRL
a10a88b2e9c9f9a83435cff2e4bc7e16e83cfeee
[ "MIT" ]
null
null
null
""" env util """ from typing import Any, Callable, Dict, Optional, Sequence, Type, Union import gym from stable_baselines3.common.vec_env import DummyVecEnv, SubprocVecEnv, VecEnv def lmap(v, x, y) -> float: """Linear map of value v with range x to desired range y.""" return y[0] + (v - x[0]) * (y[1] - y[0])...
35.628676
99
0.62491
""" env util """ import errno import functools import os import signal from functools import wraps from types import LambdaType from typing import Any, Callable, Dict, Optional, Sequence, Type, Union import gym import numpy as np import rospy from stable_baselines3.common.monitor import Monitor from stable_baselines3....
0
664
0
18
0
2,767
0
-2
352
af12b4c34c08158b48c85d05db85fba487fe3749
1,692
py
Python
vega/datasets/transforms/SegMapTransform.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/datasets/transforms/SegMapTransform.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/datasets/transforms/SegMapTransform.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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/LICENS...
35.25
74
0.693853
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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/LICENS...
0
920
0
0
0
0
0
16
67
6906d3850d2ef7049675fa26153c5d70166dd827
1,521
py
Python
setup.py
ergo/webhelpers2_grid
6bae5c967279b620e1756e3ca50f3f2992ce5d71
[ "BSD-3-Clause" ]
2
2016-02-12T12:42:43.000Z
2016-02-12T13:03:01.000Z
setup.py
ergo/webhelpers2_grid
6bae5c967279b620e1756e3ca50f3f2992ce5d71
[ "BSD-3-Clause" ]
1
2015-06-25T21:41:18.000Z
2015-06-25T21:41:18.000Z
setup.py
ergo/webhelpers_grid2
6bae5c967279b620e1756e3ca50f3f2992ce5d71
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages from os import path from io import open here = path.abspath(path.dirname(__file__)) with open(path.join(here, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="webhelpers2_grid", version="0.9", description=""" HTML Grid renderer ...
32.361702
95
0.617357
from setuptools import setup, find_packages from os import path from io import open here = path.abspath(path.dirname(__file__)) with open(path.join(here, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="webhelpers2_grid", version="0.9", description=""" HTML Grid renderer ...
0
0
0
0
0
0
0
0
0
eb97183a84e53b75d60b4f7f92e3e16d87a48ece
2,892
py
Python
merge1/main_merge_1_.py
wangxinyufighting/hin2vec_pytorch
8c9a104e33a6c5b5f7c1077b0b81b94dfadeb3a8
[ "MIT" ]
null
null
null
merge1/main_merge_1_.py
wangxinyufighting/hin2vec_pytorch
8c9a104e33a6c5b5f7c1077b0b81b94dfadeb3a8
[ "MIT" ]
null
null
null
merge1/main_merge_1_.py
wangxinyufighting/hin2vec_pytorch
8c9a104e33a6c5b5f7c1077b0b81b94dfadeb3a8
[ "MIT" ]
null
null
null
import torch import pandas as pd import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from walker import load_a_HIN_from_pandas_neighbors, getNeighbors from merge1.model_merge_1 import NSTrainSet, HIN2vec, train # set method parameters window = 5 walk = 10 walk_length ...
30.765957
98
0.669087
import torch import pandas as pd import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from walker import load_a_HIN_from_pandas_neighbors, getNeighbors from merge1.model_merge_1 import NSTrainSet, HIN2vec, train # set method parameters window = 5 walk = 10 walk_length ...
36
0
0
0
0
0
0
0
0
67681d7ce2343bddab14d8549d6ae51fe69c0e0a
8,935
py
Python
bibliotik/models.py
MADindustries/WhatManager2
d000c53fd993cb526aee85ce2dbc957fa4070ab8
[ "MIT" ]
4
2015-08-26T05:13:58.000Z
2022-01-24T07:29:51.000Z
bibliotik/models.py
MADindustries/WhatManager2
d000c53fd993cb526aee85ce2dbc957fa4070ab8
[ "MIT" ]
21
2015-08-14T03:58:43.000Z
2019-11-14T18:25:37.000Z
bibliotik/models.py
MADindustries/WhatManager2
d000c53fd993cb526aee85ce2dbc957fa4070ab8
[ "MIT" ]
2
2015-10-28T09:02:16.000Z
2019-09-23T00:21:54.000Z
EBOOK_FORMATS = ['EPUB', 'PDF', 'MOBI', 'AZW3', 'DJVU', 'CBR', 'CHM', 'TXT'] LANGUAGES = ['English', 'Irish', 'German', 'French', 'Spanish', 'Italian', 'Latin', 'Japanese', 'Danish', 'Swedish', 'Norwegian', 'Dutch', 'Russian', 'Polish', 'Portuguese', 'Greek', 'Turkish', 'Hungarian', 'Korean'...
39.711111
99
0.602015
import re import time import os.path import bencode from django.db import models from django.utils import timezone from django.utils.functional import cached_property from pyquery.pyquery import PyQuery from bibliotik.settings import BIBLIOTIK_GET_TORRENT_URL from home.models import TransTorrentBase from what_transco...
0
837
0
6,618
0
635
0
116
359
e738b5ba657e0db2c94f68da020e5fa7387b4ea9
1,140
py
Python
src/script_refresh.py
bitwolaiye/alfred-script
42116c4df7cee162cffdd46077c163ff720986ab
[ "MIT" ]
null
null
null
src/script_refresh.py
bitwolaiye/alfred-script
42116c4df7cee162cffdd46077c163ff720986ab
[ "MIT" ]
null
null
null
src/script_refresh.py
bitwolaiye/alfred-script
42116c4df7cee162cffdd46077c163ff720986ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from workflow import Workflow __author__ = 'zhouqi' if __name__ == '__main__': wf = Workflow() wf.cache_data('scripts', get_all_scripts()) # wf.cache_data('brew_all_formulas', get_all_packages()) # wf.cache_data('brew_installed_formulas', get_installed_packages()) # wf.c...
31.666667
103
0.678947
# -*- coding: utf-8 -*- import subprocess from workflow import Workflow, PasswordNotFound __author__ = 'zhouqi' def get_all_scripts(): user, _ = subprocess.Popen(['whoami'], stdout=subprocess.PIPE).communicate() user = user.split('\n')[0] cmd, _ = subprocess.Popen(['ls', '/Users/%s/Scripts' % user], stdo...
0
0
0
0
0
657
0
14
114
d3f468d32da2c05f64bda4813075c052211b2001
15,183
py
Python
tests/test_octodns_provider_ovh.py
joejacobs/octodns
f065d435fa71df56327c8ea25aab146c8b00d32d
[ "MIT" ]
4
2019-02-13T09:36:50.000Z
2019-12-16T02:36:45.000Z
tests/test_octodns_provider_ovh.py
joejacobs/octodns
f065d435fa71df56327c8ea25aab146c8b00d32d
[ "MIT" ]
null
null
null
tests/test_octodns_provider_ovh.py
joejacobs/octodns
f065d435fa71df56327c8ea25aab146c8b00d32d
[ "MIT" ]
2
2018-08-16T23:48:35.000Z
2019-02-13T09:37:15.000Z
# # # from __future__ import absolute_import, division, print_function, \ unicode_literals
33.74
79
0.47619
# # # from __future__ import absolute_import, division, print_function, \ unicode_literals from unittest import TestCase from mock import patch, call from ovh import APIError, ResourceNotFoundError, InvalidCredential from octodns.provider.ovh import OvhProvider from octodns.record import Record from octodns.zon...
0
7,466
0
7,359
0
0
0
103
158
2e9651b9b19330d164d2794fb7a438c6d6b2941b
4,162
py
Python
depreciated/sequentialCapture.py
FlantasticDan/photoPi
96dde273097d55686ad5d0a6ed848614f9b32399
[ "MIT" ]
1
2019-02-08T22:29:12.000Z
2019-02-08T22:29:12.000Z
depreciated/sequentialCapture.py
FlantasticDan/photoPi
96dde273097d55686ad5d0a6ed848614f9b32399
[ "MIT" ]
8
2019-02-14T05:28:19.000Z
2019-04-04T01:32:26.000Z
depreciated/sequentialCapture.py
FlantasticDan/photoPi
96dde273097d55686ad5d0a6ed848614f9b32399
[ "MIT" ]
null
null
null
# capture a sequence of images with constant exposure # import necessary packages import os import datetime import time import picamera # calibrate camera camera = picamera.PiCamera() camera.resolution = (3280, 2464) camera.meter_mode = 'spot' camera.image_denoise = False # sets constant exposure for the camera base...
32.771654
81
0.676598
# capture a sequence of images with constant exposure # import necessary packages import os import datetime import time import picamera # calibrate camera camera = picamera.PiCamera() camera.resolution = (3280, 2464) camera.meter_mode = 'spot' camera.image_denoise = False # sets constant exposure for the camera base...
0
0
0
0
0
703
0
0
44
0241609c8baa971e6ab6639a285cafc3bfd752f1
593
py
Python
binary_search_tree/start.py
galkinaksenia/programming-2021-19fpl
968aceddd310f59d9ee43227f4282e680845a50e
[ "MIT" ]
null
null
null
binary_search_tree/start.py
galkinaksenia/programming-2021-19fpl
968aceddd310f59d9ee43227f4282e680845a50e
[ "MIT" ]
null
null
null
binary_search_tree/start.py
galkinaksenia/programming-2021-19fpl
968aceddd310f59d9ee43227f4282e680845a50e
[ "MIT" ]
null
null
null
""" Longest common subsequence implementation starter """ from binary_search_tree.binary_search_tree import BinarySearchTree, Node if __name__ == '__main__': tree = BinarySearchTree() nodes_to_add = [Node(8), Node(4), Node(2), Node(3), Node(10), Node(16), Node(13), Node(12),Node(11)] fo...
28.238095
75
0.659359
""" Longest common subsequence implementation starter """ from binary_search_tree.binary_search_tree import BinarySearchTree, Node if __name__ == '__main__': tree = BinarySearchTree() nodes_to_add = [Node(8), Node(4), Node(2), Node(3), Node(10), Node(16), Node(13), Node(12),Node(11)] fo...
0
0
0
0
0
0
0
0
0
5aabb23f9fdb767197a6c546f1145bac00b97f86
208
py
Python
scripts/fundamentals/scrp_hello_world.py
duttashi/learnpy
c08b76b173b06d66187e51a6939d55d5dd12cb5a
[ "MIT" ]
null
null
null
scripts/fundamentals/scrp_hello_world.py
duttashi/learnpy
c08b76b173b06d66187e51a6939d55d5dd12cb5a
[ "MIT" ]
77
2019-04-20T06:54:19.000Z
2022-01-16T08:15:20.000Z
scripts/fundamentals/scrp_hello_world.py
duttashi/learnpy
c08b76b173b06d66187e51a6939d55d5dd12cb5a
[ "MIT" ]
null
null
null
print("Hello world") import math print(math.sqrt(81)) # List example days_of_the_week = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"] for i in days_of_the_week: print(i)
26
92
0.697115
print("Hello world") import math print(math.sqrt(81)) # List example days_of_the_week = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"] for i in days_of_the_week: print(i)
0
0
0
0
0
0
0
0
0
a9760c991be324c6c119964c05c6c464ed07a417
4,451
py
Python
code/node_classification/gcn.py
HenryKenlay/graph_adversarial_attack
5282d1269aa637ecafb0af239c53fa8396e5ef66
[ "MIT" ]
119
2018-06-29T10:03:41.000Z
2022-03-16T05:20:46.000Z
code/node_classification/gcn.py
HenryKenlay/graph_adversarial_attack
5282d1269aa637ecafb0af239c53fa8396e5ef66
[ "MIT" ]
6
2018-07-24T11:46:01.000Z
2021-06-25T00:00:28.000Z
code/node_classification/gcn.py
HenryKenlay/graph_adversarial_attack
5282d1269aa637ecafb0af239c53fa8396e5ef66
[ "MIT" ]
35
2018-08-21T05:54:17.000Z
2022-01-28T13:02:06.000Z
from __future__ import print_function import os import sys import numpy as np import torch import random from torch.autograd import Variable import torch.nn as nn import torch.optim as optim import cPickle as cp import time sys.path.append('%s/../../pytorch_structure2vec/s2v_lib' % os.path.dirname(os.path.realpath(__...
38.704348
136
0.629746
from __future__ import print_function import os import sys import numpy as np import torch import networkx as nx import random from torch.autograd import Variable from torch.nn.parameter import Parameter import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from tqdm import tqdm import cPic...
0
0
0
0
977
0
0
76
133
b9a6478a76a128bb2c927ccf10576d938d719bc0
258
py
Python
django_chunk_upload/exceptions.py
GitRon/django-chunk-upload
6946d44f9019d7528df5bf2c125ff7fe9358dbfb
[ "MIT-0" ]
7
2019-06-21T18:40:42.000Z
2021-04-01T06:12:38.000Z
django_chunk_upload/exceptions.py
GitRon/django-chunk-upload
6946d44f9019d7528df5bf2c125ff7fe9358dbfb
[ "MIT-0" ]
5
2019-06-20T20:17:11.000Z
2019-07-18T06:32:38.000Z
django_chunk_upload/exceptions.py
GitRon/django-chunk-upload
6946d44f9019d7528df5bf2c125ff7fe9358dbfb
[ "MIT-0" ]
1
2019-06-21T14:12:55.000Z
2019-06-21T14:12:55.000Z
""" Exceptions raised by django-chunk-upload. """
18.428571
54
0.639535
""" Exceptions raised by django-chunk-upload. """ class ChunkUploadError(Exception): """ Exception raised if errors in the request/process. """ def __init__(self, status, **data): self.status_code = status self.data = data
0
0
0
184
0
0
0
0
23
e290056b5a8fa420ccf7d83f6f3c858225ddf0d4
13,808
py
Python
Django/mysite/static/utils/gtfs/GTFSgeneratorEurope.py
navijo/FlOYBD
beb4fb32598e955ce3b47ad647452c15a87cfae8
[ "MIT" ]
null
null
null
Django/mysite/static/utils/gtfs/GTFSgeneratorEurope.py
navijo/FlOYBD
beb4fb32598e955ce3b47ad647452c15a87cfae8
[ "MIT" ]
7
2020-03-24T15:55:32.000Z
2021-08-23T20:43:13.000Z
Django/mysite/static/utils/gtfs/GTFSgeneratorEurope.py
navijo/FlOYBD
beb4fb32598e955ce3b47ad647452c15a87cfae8
[ "MIT" ]
3
2017-07-26T11:46:05.000Z
2018-04-29T12:07:59.000Z
import transitfeed schedule = transitfeed.Schedule() schedule.AddAgency("Europe Agency", "http://iflyagency.com", "Europe/Madrid", "Europe_Agency") service_period = schedule.GetDefaultServicePeriod() service_period.SetStartDate("20070101") service_period.SetEndDate("20190101") service_period.SetWeekdayService(True) ...
60.828194
125
0.805185
import transitfeed schedule = transitfeed.Schedule() schedule.AddAgency("Europe Agency", "http://iflyagency.com", "Europe/Madrid", "Europe_Agency") service_period = schedule.GetDefaultServicePeriod() service_period.SetStartDate("20070101") service_period.SetEndDate("20190101") service_period.SetWeekdayService(True) ...
0
0
0
0
0
0
0
0
0
34120dc0b9a7ff3143a7092fc45aa33f8bace6da
3,122
py
Python
network/network_wiznet5k.py
sipeed/MaixPy_Scripts
4bcc8cd02d637d59016300e0ef3836f420692332
[ "MIT" ]
null
null
null
network/network_wiznet5k.py
sipeed/MaixPy_Scripts
4bcc8cd02d637d59016300e0ef3836f420692332
[ "MIT" ]
null
null
null
network/network_wiznet5k.py
sipeed/MaixPy_Scripts
4bcc8cd02d637d59016300e0ef3836f420692332
[ "MIT" ]
null
null
null
if __name__ == '__main__': import socket, time ################ config ################ local_ip = "192.168.0.117" local_netmask = "255.255.255.0" local_gateway = "255.255.255.0" local_dns_server = "8.8.8.8" server_ip = "192.168.0.141" server_port = 8000 addr = (server_ip, server_port) ##########...
28.907407
146
0.548687
import network class lan: nic = None def reset(spi1, cs, force=False, reply=5): if force == False and __class__.isconnected(): return True try: # create wiznet5k nic __class__.nic = network.WIZNET5K(spi=spi1, cs=cs) # time.sleep_ms(500) # wait at ready to connect except Exc...
0
0
0
580
0
629
0
2
143
8e3547f9f0281d03c16fa5cfb3acb40fbe5a0bb1
2,733
py
Python
examples/act_observe_vectorized.py
DLPerf/tensorforce
33a2d84fa850e8842dfe2cef3901de32cf7cd221
[ "Apache-2.0" ]
1,132
2019-01-03T14:41:04.000Z
2022-03-29T07:44:50.000Z
examples/act_observe_vectorized.py
DLPerf/tensorforce
33a2d84fa850e8842dfe2cef3901de32cf7cd221
[ "Apache-2.0" ]
353
2019-01-02T19:46:10.000Z
2022-03-30T10:38:45.000Z
examples/act_observe_vectorized.py
DLPerf/tensorforce
33a2d84fa850e8842dfe2cef3901de32cf7cd221
[ "Apache-2.0" ]
219
2019-01-03T16:55:39.000Z
2022-03-14T00:27:05.000Z
# Copyright 2020 Tensorforce Team. 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...
39.042857
94
0.656787
# Copyright 2020 Tensorforce Team. 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
1,942
0
21
46
244f052ff599b1347297339dfa7fc4dfeb6673d6
1,365
py
Python
xml_to_csv.py
chandyalex/RumexClassification
60436e76eb7c54c890ed113b02abef94c1c2aa9b
[ "MIT" ]
2
2021-03-05T13:56:37.000Z
2021-05-18T10:12:21.000Z
xml_to_csv.py
chandyalex/RumexClassification
60436e76eb7c54c890ed113b02abef94c1c2aa9b
[ "MIT" ]
null
null
null
xml_to_csv.py
chandyalex/RumexClassification
60436e76eb7c54c890ed113b02abef94c1c2aa9b
[ "MIT" ]
null
null
null
file_name='' new_name='' main()
32.5
91
0.539927
import os import glob import pandas as pd import xml.etree.ElementTree as ET file_name='' new_name='' def xml_to_csv(path): xml_list = [] for xml_file in glob.glob(path + '/*.xml'): tree = ET.parse(xml_file) file_name = xml_file.split('/')[5] new_name = file_name[:-4] ...
0
0
0
0
0
1,193
0
-11
142
1c65ee93ea4992ced77dcfc40f84d473af555284
2,730
py
Python
setup.py
chrissimpkins/status
4e76d751c537d42dd5603779cbe893551be2b89e
[ "MIT", "Unlicense" ]
2
2017-04-10T20:17:44.000Z
2021-07-19T19:07:34.000Z
setup.py
chrissimpkins/status
4e76d751c537d42dd5603779cbe893551be2b89e
[ "MIT", "Unlicense" ]
1
2021-07-19T19:09:30.000Z
2021-07-19T19:22:36.000Z
setup.py
chrissimpkins/status
4e76d751c537d42dd5603779cbe893551be2b89e
[ "MIT", "Unlicense" ]
4
2016-12-20T19:57:07.000Z
2019-02-16T08:08:15.000Z
#!/usr/bin/env python # encoding: utf-8 from setuptools import setup, find_packages setup( name='status', version=version_read(), description='HTTP status code reporting for GET and POST requests', long_description=(docs_read('README.rst')), url='https://github.com/chrissimpkins/status', lice...
36.891892
106
0.610989
#!/usr/bin/env python # encoding: utf-8 import os import re from setuptools import setup, find_packages def docs_read(fname): return open(os.path.join(os.path.dirname(__file__), 'docs', fname)).read() def version_read(): settings_file = open(os.path.join(os.path.dirname(__file__), 'lib', 'status', 'settings...
0
0
0
0
0
914
0
-24
91
5b3d6e12c009b47cc8e67d74d1a97c60ea53c7d4
5,639
py
Python
pybleau/app/tools/tests/test_filter_expression_manager.py
jonathanrocher/pybleau
fa6e7841a664268a4eef0ed6cc0ff7720e1113e1
[ "MIT" ]
4
2020-02-27T22:38:29.000Z
2021-05-03T05:32:11.000Z
pybleau/app/tools/tests/test_filter_expression_manager.py
jonathanrocher/pybleau
fa6e7841a664268a4eef0ed6cc0ff7720e1113e1
[ "MIT" ]
85
2020-02-04T21:57:14.000Z
2021-05-03T14:29:40.000Z
pybleau/app/tools/tests/test_filter_expression_manager.py
jonathanrocher/pybleau
fa6e7841a664268a4eef0ed6cc0ff7720e1113e1
[ "MIT" ]
1
2020-02-20T00:45:09.000Z
2020-02-20T00:45:09.000Z
import os try: except ImportError: pass if os.environ.get("ETS_TOOLKIT", "qt4") == "null": ui_available = False else: ui_available = True
40.862319
78
0.687179
from unittest import skipUnless, TestCase import os from app_common.apptools.testing_utils import temp_bringup_ui_for try: from pybleau.app.api import FilterExpression, FilterExpressionManager except ImportError: pass if os.environ.get("ETS_TOOLKIT", "qt4") == "null": ui_available = False else: ui_ava...
0
5,281
0
0
0
0
0
112
94
bf6d78059c7cbe6cb47f6206218a443f6f36f3f7
3,708
py
Python
OGR_drivers.py
MartinHvidberg/kmstrans_fra_SDFE_SEQ200131
3730f49f951ec8155ade6d00a0bdfe74a65936b7
[ "0BSD" ]
null
null
null
OGR_drivers.py
MartinHvidberg/kmstrans_fra_SDFE_SEQ200131
3730f49f951ec8155ade6d00a0bdfe74a65936b7
[ "0BSD" ]
null
null
null
OGR_drivers.py
MartinHvidberg/kmstrans_fra_SDFE_SEQ200131
3730f49f951ec8155ade6d00a0bdfe74a65936b7
[ "0BSD" ]
null
null
null
########### # Translations between more friendly describtions of OGR-drivers and short codes. # adresses: TRUI issue #2 https://bitbucket.org/KMS/trui/issue/2/ogr-driver-naming # more or less taken directly from http://www.gdal.org/ogr/ogr_formats.html # simlk, march 2013 ############## # FORMAT: Long name: (shor...
41.662921
83
0.461165
########### # Translations between more friendly describtions of OGR-drivers and short codes. # adresses: TRUI issue #2 https://bitbucket.org/KMS/trui/issue/2/ogr-driver-naming # more or less taken directly from http://www.gdal.org/ogr/ogr_formats.html # simlk, march 2013 ############## # FORMAT: Long name: (shor...
0
0
0
0
0
0
0
0
0
7859eee3c1cef310c3ac9398dfb511156c1b1643
969
py
Python
.old/experiments/map_in_map/map_in_map.py
HousedHorse/COMP4906
a2ca3990797342fbf3b51564bc6c0eea686e856f
[ "MIT" ]
2
2020-04-04T21:40:36.000Z
2020-05-18T20:45:16.000Z
.old/experiments/map_in_map/map_in_map.py
HousedHorse/COMP4906
a2ca3990797342fbf3b51564bc6c0eea686e856f
[ "MIT" ]
null
null
null
.old/experiments/map_in_map/map_in_map.py
HousedHorse/COMP4906
a2ca3990797342fbf3b51564bc6c0eea686e856f
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import ctypes as ct from bcc import BPF from bcc.table import BPF_MAP_TYPE_HASH_OF_MAPS from bcc.libbcc import lib lib.bpf_create_map_in_map.argtypes = [ct.c_int, ct.c_char_p, ct.c_int, ct.c_int, ct.c_int, ct.c_int] # pin the inner map setup = BPF(text=""" BPF_HASH(inner_map, u64, u64); """)...
24.225
100
0.686275
#! /usr/bin/env python3 import ctypes as ct import os from bcc import BPF from bcc.table import BPF_MAP_TYPE_HASH_OF_MAPS from bcc.libbcc import lib lib.bpf_create_map_in_map.argtypes = [ct.c_int, ct.c_char_p, ct.c_int, ct.c_int, ct.c_int, ct.c_int] # pin the inner map setup = BPF(text=""" BPF_HASH(inner_map, u64, ...
0
0
0
0
0
77
0
-12
45
8d436b9ecda07ef064167c71cc88f492bd13fc57
1,531
py
Python
supervised-learning/0.2 Regression.py
Cibah/machine-learning
c29e2c0347e744856d9bb3761275a99ab88c1a9c
[ "Apache-2.0" ]
null
null
null
supervised-learning/0.2 Regression.py
Cibah/machine-learning
c29e2c0347e744856d9bb3761275a99ab88c1a9c
[ "Apache-2.0" ]
null
null
null
supervised-learning/0.2 Regression.py
Cibah/machine-learning
c29e2c0347e744856d9bb3761275a99ab88c1a9c
[ "Apache-2.0" ]
1
2020-10-21T13:02:55.000Z
2020-10-21T13:02:55.000Z
# Python code to illustrate # regression using data set import matplotlib.pyplot as plt from sklearn import linear_model import pandas as pd # Load CSV and columns df = pd.read_csv("https://raw.githubusercontent.com/Cibah/machine-learning/supervised-learning/datasets/csv-files/Housing.csv") Y = df['price'] X = df['l...
23.19697
127
0.755062
# Python code to illustrate # regression using data set import matplotlib.pyplot as plt import numpy as np from sklearn import datasets, linear_model import pandas as pd # Load CSV and columns from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense df = pd.read_csv("https://raw.github...
0
0
0
0
0
0
0
52
66
33a9495b0f8554f06994f65a00d61e0684c904b6
41,573
py
Python
model.py
cmoimoro/gym-micropolis-ga
d105da7c624670083fc1d6e3acf265511d9e2df6
[ "MIT" ]
null
null
null
model.py
cmoimoro/gym-micropolis-ga
d105da7c624670083fc1d6e3acf265511d9e2df6
[ "MIT" ]
null
null
null
model.py
cmoimoro/gym-micropolis-ga
d105da7c624670083fc1d6e3acf265511d9e2df6
[ "MIT" ]
null
null
null
import torch.nn as nn # from coord_conv_pytorch.coord_conv import nn.Conv2d, nn.Conv2dTranspose #from nn.Conv2d_pytorch.nn.Conv2d import nn.Conv2d, nn.Conv2dTranspose
37.151921
133
0.539196
import torch import torch.nn as nn import torch.nn.functional as F from distributions import Categorical, Categorical2D from utils import init, init_normc_ import math import numpy as np from densenet_pytorch.densenet import DenseNet # from coord_conv_pytorch.coord_conv import nn.Conv2d, nn.Conv2dTranspose #from nn....
0
376
0
40,402
0
0
0
58
548
240e3862103c03553b6dd50484fa294b0935042d
4,341
py
Python
tests/parser/test_conditionals.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
null
null
null
tests/parser/test_conditionals.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
3
2022-02-23T08:12:52.000Z
2022-03-09T00:13:33.000Z
tests/parser/test_conditionals.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
null
null
null
from lispyc import nodes from lispyc.nodes import Branch, ComposedForm, Cond, Constant, Variable VALID_1_BRANCH_PROGRAMS = [ "($name$ $value$ ((x 7 y) (a b)) $default$)", "($name$ $value$ ((cond (a b) 1.7) ()) $default$)", ] VALID_PROGRAMS = [ "($name$ $value$ (a 7.9) (1 true) $default$)", "($name$ $...
33.137405
98
0.699148
import pytest from lispyc import nodes from lispyc.exceptions import SpecialFormSyntaxError from lispyc.nodes import Branch, ComposedForm, Cond, Constant, Program, Variable from lispyc.parser import parse from .data import FORM_PROGRAMS, FORMS VALID_1_BRANCH_PROGRAMS = [ "($name$ $value$ ((x 7 y) (a b)) $default...
0
2,985
0
0
0
148
0
59
342
1603b4f87acbb07abf4f8e278b513d88a46332c5
2,282
py
Python
products/recommendations.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
4
2021-11-25T15:45:31.000Z
2022-01-11T21:31:56.000Z
products/recommendations.py
KwabenaYeboah/kobbyshop
850a04b24fafa8aa538fdbf039a0e8fafc3ebfc2
[ "MIT" ]
1
2021-12-30T08:18:28.000Z
2021-12-30T08:18:28.000Z
products/recommendations.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
2
2021-12-26T05:11:00.000Z
2021-12-30T08:18:13.000Z
import redis from django.conf import settings # Connect to redis conn = redis.Redis(host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=settings.REDIS_DB)
43.056604
88
0.626643
import redis from django.conf import settings from .models import Product # Connect to redis conn = redis.Redis(host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=settings.REDIS_DB) class Recommend(object): def get_product_id(self, id): return f'product:{id...
0
0
0
2,033
0
0
0
6
45
57eb190b7cf16ff643c559e5d409d025bba28fa6
2,476
py
Python
Problem-1/huffman_encode.py
jewelben/IC-Project
1a46072fc95c8b183fcf700182bc40ce49a47984
[ "MIT" ]
null
null
null
Problem-1/huffman_encode.py
jewelben/IC-Project
1a46072fc95c8b183fcf700182bc40ce49a47984
[ "MIT" ]
null
null
null
Problem-1/huffman_encode.py
jewelben/IC-Project
1a46072fc95c8b183fcf700182bc40ce49a47984
[ "MIT" ]
null
null
null
# Defining a class called heapnode that has stores the symbol,frequency of the symbol, pointer to each of its children # and a flag variable called "bits" which denotes if its the left child or the right child # Function that creates our huffman tree by taking our priority queue as input and outputs the root node # ...
39.935484
121
0.71042
# Defining a class called heapnode that has stores the symbol,frequency of the symbol, pointer to each of its children # and a flag variable called "bits" which denotes if its the left child or the right child class heapnode: def __init__(self,frequency,symbols,left=None,right=None): self.frequency=frequen...
0
0
0
188
0
1,462
0
0
67
9f6a220bf0c38e129755dd430677c9b33d6bfd99
6,620
py
Python
test-runner/twin_tests.py
brycewang-microsoft/iot-sdks-e2e-fx
211c9c2615a82076bda02a27152d67366755edbf
[ "MIT" ]
12
2019-02-02T00:15:13.000Z
2022-02-08T18:20:08.000Z
test-runner/twin_tests.py
brycewang-microsoft/iot-sdks-e2e-fx
211c9c2615a82076bda02a27152d67366755edbf
[ "MIT" ]
36
2019-02-14T22:53:17.000Z
2022-03-22T22:41:38.000Z
test-runner/twin_tests.py
brycewang-microsoft/iot-sdks-e2e-fx
211c9c2615a82076bda02a27152d67366755edbf
[ "MIT" ]
12
2019-02-19T13:28:25.000Z
2022-02-08T18:20:55.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for # full license information. # Amount of time to wait after updating desired properties. wait_time_for_desired_property_updates = 5
37.828571
88
0.632175
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for # full license information. import pytest import asyncio import sample_content from horton_logging import logger # Amount of time to wait after updating desired properties. wait_time_for_desired_...
0
3,570
2,449
3
0
0
0
-3
342
e0ed4f61df2e7bb9be70823a0de5690fee1cb799
126
py
Python
1-python-basico (Logica de programacao)/aula09/aula9-1.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
1-python-basico (Logica de programacao)/aula09/aula9-1.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
1-python-basico (Logica de programacao)/aula09/aula9-1.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
""" Entrada de dados """ num_1 = int(input('Digite um nmero: ')) num_2 = int(input('Digite outro: ')) print(num_1 ** num_2)
15.75
40
0.634921
""" Entrada de dados """ num_1 = int(input('Digite um número: ')) num_2 = int(input('Digite outro: ')) print(num_1 ** num_2)
2
0
0
0
0
0
0
0
0
aa26e7d79caf83b820f899e8abd2e7e35fbe2e65
517
py
Python
app/core/migrations/0037_auto_20201205_1159.py
klmsathish/forecast_api
b0e0d343179bb17d3c3033a8bcb14d01460dd301
[ "MIT" ]
null
null
null
app/core/migrations/0037_auto_20201205_1159.py
klmsathish/forecast_api
b0e0d343179bb17d3c3033a8bcb14d01460dd301
[ "MIT" ]
null
null
null
app/core/migrations/0037_auto_20201205_1159.py
klmsathish/forecast_api
b0e0d343179bb17d3c3033a8bcb14d01460dd301
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-05 11:59
22.478261
81
0.574468
# Generated by Django 3.1.4 on 2020-12-05 11:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0036_auto_20201205_1107'), ] operations = [ migrations.RemoveField( model_name='post', name='postImage', ...
0
0
0
403
0
0
0
19
46
8474bff298e1dbfb96aedddd4e63139ea78dd383
3,797
py
Python
core/src/zeit/cms/content/field.py
louika/vivi
3cc213b873d527127aa6f0dd3c79a542299a8a0e
[ "BSD-3-Clause" ]
null
null
null
core/src/zeit/cms/content/field.py
louika/vivi
3cc213b873d527127aa6f0dd3c79a542299a8a0e
[ "BSD-3-Clause" ]
null
null
null
core/src/zeit/cms/content/field.py
louika/vivi
3cc213b873d527127aa6f0dd3c79a542299a8a0e
[ "BSD-3-Clause" ]
null
null
null
import lxml.etree import zope.interface import zope.location.location import zope.proxy import zope.schema import zope.schema.interfaces import zope.security._proxy import zope.security.checker import zope.security.proxy DEFAULT_MARKER = object() EMPTY = object() def apply_default_values(context, interface, ...
34.207207
78
0.626547
from zeit.cms.content.util import objectify_soup_fromstring import lxml.etree import lxml.objectify import zope.interface import zope.location.location import zope.proxy import zope.schema import zope.schema.interfaces import zope.security._proxy import zope.security.checker import zope.security.proxy DEFAULT_MARKER ...
0
1,823
0
147
0
264
0
38
159
1194872b89ec39720169cdc7ae314c434c6dee8d
386
py
Python
web_app/routes/home_routes.py
zack-murray/twitoff-14
bddb76164a2c85713a81ce8a7568c57c80ac462e
[ "MIT" ]
null
null
null
web_app/routes/home_routes.py
zack-murray/twitoff-14
bddb76164a2c85713a81ce8a7568c57c80ac462e
[ "MIT" ]
3
2021-06-08T21:42:49.000Z
2022-03-12T00:37:51.000Z
web_app/routes/home_routes.py
zack-murray/twitoff-14
bddb76164a2c85713a81ce8a7568c57c80ac462e
[ "MIT" ]
null
null
null
# web_app/routes/home_routes.py from flask import Blueprint home_routes = Blueprint("home_routes", __name__)
21.444444
51
0.673575
# web_app/routes/home_routes.py from flask import Blueprint, render_template home_routes = Blueprint("home_routes", __name__) @home_routes.route("/") def index(): return render_template("prediction_form.html") @home_routes.route("/hello") def hello(): x = 2 + 2 return f"Hello World! {x}" ...
0
180
0
0
0
0
0
17
74
5f5dbbaf17a77c90352d1048be40aee875b9c8e0
689
py
Python
migrations/versions/64169b01290d_.py
brayest/testcode
865d31ccfaf75946620c36955cc3dcb395515796
[ "Unlicense" ]
652
2021-01-24T10:32:08.000Z
2022-02-05T09:14:10.000Z
migrations/versions/64169b01290d_.py
starhappy/Dryvo
14c549a4f2265afd515bfd6f5f477a68187ea287
[ "Unlicense" ]
1
2021-01-27T05:09:14.000Z
2021-02-01T06:21:05.000Z
migrations/versions/64169b01290d_.py
starhappy/Dryvo
14c549a4f2265afd515bfd6f5f477a68187ea287
[ "Unlicense" ]
147
2021-01-25T10:57:22.000Z
2022-02-05T09:14:12.000Z
"""empty message Revision ID: 64169b01290d Revises: 53b58719e03b Create Date: 2019-04-17 17:29:09.098849 """ # revision identifiers, used by Alembic. revision = '64169b01290d' down_revision = '53b58719e03b' branch_labels = None depends_on = None
23.758621
106
0.702467
"""empty message Revision ID: 64169b01290d Revises: 53b58719e03b Create Date: 2019-04-17 17:29:09.098849 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '64169b01290d' down_revision = '53b58719e03b' branch_labels = None depends_on = None def upgrade(): # ...
0
0
0
0
0
344
0
3
90
116b5d321d614592ed605fa594277ec42e583750
149
py
Python
app/api/user.py
lhbyllcl2/Flask-API-Demo
cb5c43c668ad659ebb5333c54e704ae60aab7413
[ "MIT" ]
6
2019-02-01T01:48:38.000Z
2022-02-14T05:55:40.000Z
app/api/user.py
lhbyllcl2/Flask-API-Demo
cb5c43c668ad659ebb5333c54e704ae60aab7413
[ "MIT" ]
null
null
null
app/api/user.py
lhbyllcl2/Flask-API-Demo
cb5c43c668ad659ebb5333c54e704ae60aab7413
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from app.libs.redprint import Redprint api = Redprint('user')
14.9
38
0.630872
# -*- coding:utf-8 -*- from app.libs.redprint import Redprint api = Redprint('user') @api.route('/login', methods=['POST']) def login(): pass
0
39
0
0
0
0
0
0
23
801b2c945c2952179a85e5cdb96d81f0871180a4
3,941
py
Python
asap-tools/experiments/depricated/handler/tools.py
project-asap/Profiler
eaad7eafe3635a2d0881c13069a3ac632784fd3a
[ "Apache-2.0" ]
3
2017-04-18T17:09:29.000Z
2017-11-08T22:55:32.000Z
asap-tools/experiments/depricated/handler/tools.py
project-asap/Profiler
eaad7eafe3635a2d0881c13069a3ac632784fd3a
[ "Apache-2.0" ]
18
2016-11-07T10:44:58.000Z
2017-04-25T12:40:24.000Z
asap-tools/experiments/depricated/handler/tools.py
project-asap/Profiler
eaad7eafe3635a2d0881c13069a3ac632784fd3a
[ "Apache-2.0" ]
4
2015-12-09T09:09:59.000Z
2018-05-23T14:29:00.000Z
#!/usr/bin/env python __author__ = 'cmantas' import sqlite3 import matplotlib.pyplot as plt import matplotlib.pyplot as plt conn = sqlite3.connect('../results.db') c = conn.cursor() # print plt.style.available plt.style.use('fivethirtyeight')
28.15
136
0.618878
#!/usr/bin/env python __author__ = 'cmantas' import sqlite3 import matplotlib.pyplot as plt import argparse from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import matplotlib.pyplot as plt from matplotlib.pyplot import figure, show impor...
0
0
0
0
0
3,248
0
76
362
f1b244ad40d0c0a1ef12e9c980dc4e31facbe97e
1,827
py
Python
src/utils/check.py
RausellLab/tiresias
2acca303a0f6b4b1be784f597a59c1a883dbe43d
[ "Apache-2.0" ]
6
2019-07-03T16:11:15.000Z
2021-07-12T18:42:44.000Z
src/utils/check.py
RausellLab/tiresias
2acca303a0f6b4b1be784f597a59c1a883dbe43d
[ "Apache-2.0" ]
null
null
null
src/utils/check.py
RausellLab/tiresias
2acca303a0f6b4b1be784f597a59c1a883dbe43d
[ "Apache-2.0" ]
5
2019-10-16T09:40:58.000Z
2020-01-30T20:32:49.000Z
import torch def matrix_symmetry(matrix): """Checks the symmetry of the input matrix. Parameters ---------- matrix: torch.FloatTensor The matrix to check. """ if torch.eq(matrix, matrix.t()).all().item() == 0: raise ValueError("The input matrix is not symmetrical.") def pu_l...
28.107692
91
0.634921
import torch def matrix_symmetry(matrix): """Checks the symmetry of the input matrix. Parameters ---------- matrix: torch.FloatTensor The matrix to check. """ if torch.eq(matrix, matrix.t()).all().item() == 0: raise ValueError("The input matrix is not symmetrical.") def pu_l...
0
0
0
0
0
0
0
0
0
bca0866f8e9b1548570632f81a8cdbb6451d93f0
1,905
py
Python
lang/py/cookbook/v2/source/cb2_3_7_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_3_7_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_3_7_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
if __name__ == "__main__": tests = ( "January 3, 2003", # a string (5, "Oct", 55), # a tuple "Thursday, November 18", # longer string without year "7/24/04", # a string with slashes ...
51.486486
79
0.476115
import datetime import dateutil.parser def tryparse(date): # dateutil.parser needs a string argument: let's make one from our # `date' argument, according to a few reasonable conventions...: kwargs = {} # assume no named-args if isinstance(date, (tuple, list)): ...
0
0
0
0
0
997
0
-5
66
0ba34986f400c8428bc5bdcb04d17f35e6c7cc34
609
py
Python
src/figs/model_overview.py
nt409/HRHR
62ab397650f4e2a1b1d0e6ef289b4e73790c777e
[ "MIT" ]
null
null
null
src/figs/model_overview.py
nt409/HRHR
62ab397650f4e2a1b1d0e6ef289b4e73790c777e
[ "MIT" ]
null
null
null
src/figs/model_overview.py
nt409/HRHR
62ab397650f4e2a1b1d0e6ef289b4e73790c777e
[ "MIT" ]
null
null
null
from model.simulator import RunSingleTactic from model.config_classes import SingleConfig from plotting.paper_figs import CombinedModelPlot # config_sing = SingleConfig(10, 10**(-3), 10**(-6), 1, 1, 0.5, 0.5) config_sing = SingleConfig(10, None, None, 1, 1, 0.5, 0.5) config_sing.load_saved = False RR, RS, SR = (10**...
24.36
68
0.706076
from model.simulator import RunSingleTactic from model.config_classes import SingleConfig from plotting.paper_figs import CombinedModelPlot # config_sing = SingleConfig(10, 10**(-3), 10**(-6), 1, 1, 0.5, 0.5) config_sing = SingleConfig(10, None, None, 1, 1, 0.5, 0.5) config_sing.load_saved = False RR, RS, SR = (10**...
0
0
0
0
0
0
0
0
0
09a69c9f619fc5a2165d626313b1fe8775b396db
16,920
py
Python
Final.py
Christoph9402/CarND-Finding-Lane-Lines
445a3adec9a1ce1a5f2f9acf16b8a8193fa28608
[ "MIT" ]
null
null
null
Final.py
Christoph9402/CarND-Finding-Lane-Lines
445a3adec9a1ce1a5f2f9acf16b8a8193fa28608
[ "MIT" ]
null
null
null
Final.py
Christoph9402/CarND-Finding-Lane-Lines
445a3adec9a1ce1a5f2f9acf16b8a8193fa28608
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Self-Driving Car Engineer Nanodegree # # # ## Project: **Finding Lane Lines on the Road** # *** # In this project, you will use the tools you learned about in the lesson to identify lane lines on the road. You can develop your pipeline on a series of individual images, and...
39.53271
638
0.708511
#!/usr/bin/env python # coding: utf-8 # # Self-Driving Car Engineer Nanodegree # # # ## Project: **Finding Lane Lines on the Road** # *** # In this project, you will use the tools you learned about in the lesson to identify lane lines on the road. You can develop your pipeline on a series of individual images, and...
24
0
0
0
0
4,940
0
0
192
e61429f3eb5e06f27e74e8273539ffc8e6ed9efd
2,643
py
Python
lib/galaxy/datatypes/converters/interval_to_summary_tree_converter.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
2
2016-02-23T00:09:14.000Z
2019-02-11T07:48:44.000Z
lib/galaxy/datatypes/converters/interval_to_summary_tree_converter.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/datatypes/converters/interval_to_summary_tree_converter.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
6
2015-05-27T13:09:50.000Z
2019-02-11T07:48:46.000Z
#!/usr/bin/env python """ Convert from interval file to summary tree file. Default input file format is BED (0-based, half-open intervals). usage: %prog <options> in_file out_file -c, --chr-col: chromosome column, default=1 -s, --start-col: start column, default=2 -e, --end-col: end column, default=3 ...
41.296875
127
0.620885
#!/usr/bin/env python """ Convert from interval file to summary tree file. Default input file format is BED (0-based, half-open intervals). usage: %prog <options> in_file out_file -c, --chr-col: chromosome column, default=1 -s, --start-col: start column, default=2 -e, --end-col: end column, default=3 ...
0
0
0
0
0
1,841
0
71
134
ea46ffb932c6152df9bf41f79a755d889d0e00ea
3,511
py
Python
qualitube/videos.py
ericbrasiln/qualitube
6d2c947dbfb10ec83e315cacbc8c9893988b7ff4
[ "MIT" ]
1
2021-07-19T20:32:41.000Z
2021-07-19T20:32:41.000Z
qualitube/videos.py
ericbrasiln/qualitube
6d2c947dbfb10ec83e315cacbc8c9893988b7ff4
[ "MIT" ]
1
2021-08-24T00:11:47.000Z
2021-08-24T01:27:02.000Z
qualitube/videos.py
ericbrasiln/qualitube
6d2c947dbfb10ec83e315cacbc8c9893988b7ff4
[ "MIT" ]
2
2021-08-24T00:59:28.000Z
2021-08-24T19:49:15.000Z
from configparser import ConfigParser config = ConfigParser() config.read("config.ini") API_KEY = config['credentials']['api_key']
33.759615
108
0.569069
import requests import json import pandas as pd from configparser import ConfigParser from .log import logger from .exceptions import QualitubeException config = ConfigParser() config.read("config.ini") API_KEY = config['credentials']['api_key'] class Videos: """ Wrapper Class to the YouTube Data API v3's `...
0
0
0
3,239
0
0
0
5
133
eae195d4c87c26920f8f8042c6a089fbf18dc273
894
py
Python
drivers/oneoff_drivers/get_mass_upper_limit.py
lgbouma/timmy
5ff7c0df27e22dd9343933b26b05f7f0468c00d8
[ "MIT" ]
null
null
null
drivers/oneoff_drivers/get_mass_upper_limit.py
lgbouma/timmy
5ff7c0df27e22dd9343933b26b05f7f0468c00d8
[ "MIT" ]
null
null
null
drivers/oneoff_drivers/get_mass_upper_limit.py
lgbouma/timmy
5ff7c0df27e22dd9343933b26b05f7f0468c00d8
[ "MIT" ]
1
2020-07-29T17:01:27.000Z
2020-07-29T17:01:27.000Z
import os import pandas as pd, numpy as np from numpy import array as nparr from astropy import units as u from timmy.paths import RESULTSDIR datestr = '20200624' postpath = os.path.join(RESULTSDIR, 'radvel_fitting', f'{datestr}_simple_planet', 'TOI837_derived.csv.tar.b...
28.83871
61
0.670022
import os import pandas as pd, numpy as np from astrobase.lcmath import find_lc_timegroups from numpy import array as nparr from astropy import units as u from timmy.paths import DATADIR, RESULTSDIR datestr = '20200624' postpath = os.path.join(RESULTSDIR, 'radvel_fitting', f'{datestr}_simple_p...
0
0
0
0
0
0
0
35
22
5bd7b9bfa5c870629f1360316fe82967e7a01767
3,842
py
Python
translate.py
yuchenlin/ParaGEN
e6d7f3e934011f8e533ce3f0c27c2a04e199c409
[ "MIT" ]
12
2018-01-06T21:57:39.000Z
2020-06-14T18:44:21.000Z
translate.py
yuchenlin/ParaGEN
e6d7f3e934011f8e533ce3f0c27c2a04e199c409
[ "MIT" ]
null
null
null
translate.py
yuchenlin/ParaGEN
e6d7f3e934011f8e533ce3f0c27c2a04e199c409
[ "MIT" ]
4
2018-03-02T02:28:12.000Z
2020-10-25T04:56:48.000Z
#!/usr/bin/env python from __future__ import division, unicode_literals import argparse import onmt.io import onmt.translate import onmt import onmt.ModelConstructor import opts parser = argparse.ArgumentParser( description='translate.py', formatter_class=argparse.ArgumentDefaultsHelpFormatter) opts.add_md_h...
32.837607
74
0.579646
#!/usr/bin/env python from __future__ import division, unicode_literals import os import argparse import math import codecs import torch from itertools import count import onmt.io import onmt.translate import onmt import onmt.ModelConstructor import onmt.modules import opts parser = argparse.ArgumentParser( des...
0
0
0
0
0
3,284
0
-35
156
8a1951534189ffd3a9f4fda689cdf46041bd4730
4,132
py
Python
main1.py
aasworth/E06a-Bullets
13023aa422dd29aa0b84c6d8bdec02e69e6470a4
[ "MIT" ]
null
null
null
main1.py
aasworth/E06a-Bullets
13023aa422dd29aa0b84c6d8bdec02e69e6470a4
[ "MIT" ]
null
null
null
main1.py
aasworth/E06a-Bullets
13023aa422dd29aa0b84c6d8bdec02e69e6470a4
[ "MIT" ]
null
null
null
import sys, logging #check to make sure we are running the right version of Python version = (3,7) assert sys.version_info >= version, "This script requires at least Python {0}.{1}".format(version[0],version[1]) #turn on logging, in case we have to leave ourselves debugging messages logging.basicConfig(format='[%(fil...
29.726619
112
0.580348
import sys, logging, os, random, math, open_color, arcade #check to make sure we are running the right version of Python version = (3,7) assert sys.version_info >= version, "This script requires at least Python {0}.{1}".format(version[0],version[1]) #turn on logging, in case we have to leave ourselves debugging messa...
0
0
0
3,224
0
89
0
38
118
71fa5560074acadb566a8e75cbce5884d10139f9
4,373
py
Python
hyperlearn/big_data/randomized.py
danielhanchen/hiperlearn
7e2d7735bcb40854462decd5e5c8d70afd90aede
[ "BSD-3-Clause" ]
1,264
2018-08-28T03:29:22.000Z
2022-03-30T07:16:00.000Z
hyperlearn/big_data/randomized.py
danielhanchen/hiperlearn
7e2d7735bcb40854462decd5e5c8d70afd90aede
[ "BSD-3-Clause" ]
19
2018-08-28T16:32:23.000Z
2021-10-01T12:25:16.000Z
hyperlearn/big_data/randomized.py
danielhanchen/hiperlearn
7e2d7735bcb40854462decd5e5c8d70afd90aede
[ "BSD-3-Clause" ]
111
2018-08-29T13:28:54.000Z
2021-09-05T23:26:11.000Z
from ..linalg import lu, svd, qr, eig from numpy import sqrt from ..utils import _float, _svdCond from ..random import uniform # __all__ = ['randomizedSVD', 'randomizedEig'] def randomized_projection(X, k, solver = 'lu', max_iter = 4): """ [Edited 8/11/2018 Added QR Q_only parameter] Projects X onto some random ...
29.153333
93
0.694718
from ..linalg import lu, svd, qr, eig from numpy import random as _random, sqrt from numpy.linalg import norm from ..utils import _float, _svdCond, traceXTX, eig_flip, svd_flip from ..random import uniform # __all__ = ['randomizedSVD', 'randomizedEig'] def randomized_projection(X, k, solver = 'lu', max_iter = 4): ...
0
0
0
0
0
0
0
57
22
5b21b64ab646179afc1c061ed02b7cbc158b52d7
15,326
py
Python
scripts/old/principle_push2D.py
Emergent-Behaviors-in-Biology/immune-svm
4f541a989c403c72933609500758448297a9d113
[ "MIT" ]
null
null
null
scripts/old/principle_push2D.py
Emergent-Behaviors-in-Biology/immune-svm
4f541a989c403c72933609500758448297a9d113
[ "MIT" ]
null
null
null
scripts/old/principle_push2D.py
Emergent-Behaviors-in-Biology/immune-svm
4f541a989c403c72933609500758448297a9d113
[ "MIT" ]
null
null
null
#This code attempts to do a proof of principle calucation that our idea works in high dimensions #To gain some intition as to what is going on, we will do things in two dimensions first so that we can plot everything #Import standard python packages: import numpy as np import matplotlib.pyplot as plt #import ploting...
24.097484
169
0.598656
#This code attempts to do a proof of principle calucation that our idea works in high dimensions #To gain some intition as to what is going on, we will do things in two dimensions first so that we can plot everything #Import standard python packages: import numpy as np import matplotlib.pyplot as plt from scipy.integ...
0
0
0
0
0
0
0
13
22
8974557f45dbccb825cc687fa2e9e3d81010edaa
738
py
Python
pokeapi/api/models/pokemon.py
QU3B1M/Go-and-Python-MicroMonsters
82343456a619893fe395ba46e8dd06f1ad13b7be
[ "MIT" ]
null
null
null
pokeapi/api/models/pokemon.py
QU3B1M/Go-and-Python-MicroMonsters
82343456a619893fe395ba46e8dd06f1ad13b7be
[ "MIT" ]
null
null
null
pokeapi/api/models/pokemon.py
QU3B1M/Go-and-Python-MicroMonsters
82343456a619893fe395ba46e8dd06f1ad13b7be
[ "MIT" ]
null
null
null
from tortoise.contrib.pydantic import pydantic_model_creator from api.database.schemas import Pokemon # Base Pokemon Pydantic Model created from the Tortoise-ORM Model. PokemonBase = pydantic_model_creator(Pokemon, name="PokemonIn", exclude_readonly=True) # Outgoing Pokemon Pydantic Model created from the Tortoise-...
26.357143
86
0.768293
from typing import List from tortoise.contrib.pydantic import pydantic_model_creator from api.database.schemas import Pokemon # Base Pokemon Pydantic Model created from the Tortoise-ORM Model. PokemonBase = pydantic_model_creator(Pokemon, name="PokemonIn", exclude_readonly=True) # Outgoing Pokemon Pydantic Model cr...
0
0
0
274
0
0
0
2
68
235886944f694b1b406e0a3e21d24c0d5feae345
3,913
py
Python
assignment-2/802.11.py
chengluyu/SDU-Computer-Networks
643c78a7a062b59faef875cb2c9f33983c667faf
[ "MIT" ]
1
2017-04-10T08:01:15.000Z
2017-04-10T08:01:15.000Z
assignment-2/802.11.py
chengluyu/SDU-Computer-Networks
643c78a7a062b59faef875cb2c9f33983c667faf
[ "MIT" ]
null
null
null
assignment-2/802.11.py
chengluyu/SDU-Computer-Networks
643c78a7a062b59faef875cb2c9f33983c667faf
[ "MIT" ]
null
null
null
from Util import APlot from multiprocesser import Process if __name__ == '__main__': p = Process(8) fin = p.Exec(main, [0.01 * i + 0.3 for i in range(170)]) # print(fin) plt = APlot(fin) plt.show() # main(0.625)
31.556452
101
0.490672
from Util import Analyzer, Plot, APlot from QueueBase import Queue from multiprocesser import Process import random import numpy def main(slot=1.0, stc=1): LAMBDA = [15] * 5 MU = 100 TOTAL = 1e5 CHECK = 1e4 def l(x=None): count = sum([len(i) for i in QLlog]) if x.get('type') == 'b...
0
0
0
0
0
3,532
0
5
135
4e5252c4a03ec165c02e9d87a08bdbf700523df7
4,336
py
Python
news_search.py
sebseager/qiskit-fall-fest-2021
d3d0a7f0c4dd36c3ec6e598bcc31db1c0e1a217d
[ "Apache-2.0" ]
1
2021-11-19T02:44:27.000Z
2021-11-19T02:44:27.000Z
news_search.py
sebseager/qiskit-fall-fest-2021
d3d0a7f0c4dd36c3ec6e598bcc31db1c0e1a217d
[ "Apache-2.0" ]
null
null
null
news_search.py
sebseager/qiskit-fall-fest-2021
d3d0a7f0c4dd36c3ec6e598bcc31db1c0e1a217d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Seb Seager # 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, softw...
32.601504
84
0.655212
# Copyright 2021 Seb Seager # 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, softw...
3
737
0
0
0
2,602
0
19
291
2391dc5aa66ce8f5620c17514fefdb2169a31bec
222
py
Python
django_geosource/urls.py
Terralego/django-geosource
013afde33cfeb8a3f91b809a8f6df3ab3e4089bd
[ "MIT" ]
3
2019-08-08T15:19:19.000Z
2022-03-04T14:37:00.000Z
django_geosource/urls.py
Terralego/django-geosource
013afde33cfeb8a3f91b809a8f6df3ab3e4089bd
[ "MIT" ]
39
2019-05-22T12:03:06.000Z
2022-03-04T15:09:56.000Z
django_geosource/urls.py
Terralego/django-geosource
013afde33cfeb8a3f91b809a8f6df3ab3e4089bd
[ "MIT" ]
null
null
null
from rest_framework import routers from .views import SourceModelViewset app_name = "geosource" router = routers.SimpleRouter() router.register(r"", SourceModelViewset, basename="geosource") urlpatterns = router.urls
18.5
62
0.797297
from rest_framework import routers from .views import SourceModelViewset app_name = "geosource" router = routers.SimpleRouter() router.register(r"", SourceModelViewset, basename="geosource") urlpatterns = router.urls
0
0
0
0
0
0
0
0
0
20d94b4e9102b105d3a33c87f10bf393f2f898eb
2,928
py
Python
pyservices/store/clients/consumer.py
makkalot/eskit-example-microservice
5873ee27d1486ebb4617bf3026c2d983ff300a05
[ "BSD-2-Clause" ]
null
null
null
pyservices/store/clients/consumer.py
makkalot/eskit-example-microservice
5873ee27d1486ebb4617bf3026c2d983ff300a05
[ "BSD-2-Clause" ]
null
null
null
pyservices/store/clients/consumer.py
makkalot/eskit-example-microservice
5873ee27d1486ebb4617bf3026c2d983ff300a05
[ "BSD-2-Clause" ]
null
null
null
from typing import Callable import concurrent.futures as futures import pyservices.generated.eventstore.event_pb2 as esdata ConsumerCB = Callable[[esdata.AppLogEntry], None]
33.655172
114
0.650956
from typing import Callable import concurrent.futures as futures import enum import threading import pyservices.generated.eventstore.service_pb2 as es import pyservices.generated.eventstore.event_pb2 as esdata import pyservices.generated.eventstore.service_pb2_grpc as esgrpc import pyservices.generated.consumerstore.se...
0
0
0
2,395
0
0
0
155
200
42b8cf654a9b9d682a680f22593932962657a882
754
py
Python
sheet 4/Particle Mesh Force Law/pmesh.py
janosh/simulation-methods
70ed6350fee858b4e5a101b4547d8cc06bd38899
[ "MIT" ]
2
2021-04-06T08:04:12.000Z
2022-03-21T16:16:05.000Z
sheet 4/Particle Mesh Force Law/pmesh.py
janosh/simulation-methods
70ed6350fee858b4e5a101b4547d8cc06bd38899
[ "MIT" ]
null
null
null
sheet 4/Particle Mesh Force Law/pmesh.py
janosh/simulation-methods
70ed6350fee858b4e5a101b4547d8cc06bd38899
[ "MIT" ]
5
2019-06-26T06:07:38.000Z
2022-01-12T22:54:19.000Z
import matplotlib as mpl font = {'family' : 'serif', 'size' : 16} mpl.rc('font', **font) import numpy as np radii = np.fromfile('radii.dat', dtype=float, count=-1, sep='') forces = np.fromfile('forces.dat', dtype=float, count=-1, sep='') import matplotlib.pyplot as plt plt.figure() r = np.arange(min(radii)...
25.133333
67
0.644562
import matplotlib as mpl font = {'family' : 'serif', 'size' : 16} mpl.rc('font', **font) import numpy as np radii = np.fromfile('radii.dat', dtype=float, count=-1, sep='') forces = np.fromfile('forces.dat', dtype=float, count=-1, sep='') import matplotlib.pyplot as plt plt.figure() def f(r): return 2/r...
0
0
0
0
0
3
0
0
23
5dc713634f22b40c9f8fe0abd0a4e991fb8c3277
2,516
py
Python
code/analysis/Japanese/only_thesis/get_posterior_predictive_prob_of_symbol_in_word_for-Gelbart-2005.py
tkc-morita/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
4
2021-03-27T18:28:23.000Z
2022-01-10T23:32:29.000Z
code/analysis/Japanese/only_thesis/get_posterior_predictive_prob_of_symbol_in_word_for-Gelbart-2005.py
stannam/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
null
null
null
code/analysis/Japanese/only_thesis/get_posterior_predictive_prob_of_symbol_in_word_for-Gelbart-2005.py
stannam/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
1
2022-01-10T23:45:54.000Z
2022-01-10T23:45:54.000Z
# coding: utf-8 import pandas as pd import os, sys import posterior_predictive_inferences as ppi import encode_decode as edcode if __name__=='__main__': ngram_path = sys.argv[1] n = int(ngram_path.split('gram')[0][-1]) result_dir = os.path.split(ngram_path)[0] hdf5_path = os.path.join(result_dir, 'variational...
35.942857
146
0.753975
# coding: utf-8 import numpy as np import pandas as pd import scipy.misc as spm import os, sys import posterior_predictive_inferences as ppi import encode_decode as edcode def normalize_over_prefix(df, log_prob='log_prob_target'): for trial_name, sub_df in df.groupby('trial_name'): log_normalizer = spm.logsumexp...
0
0
0
0
0
327
0
0
68
2e9d41f71dbdfabb08e12c1cf94ec8dc26db616b
34
py
Python
tests/import/import3a.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
692
2016-12-19T23:25:35.000Z
2022-03-31T14:20:48.000Z
tests/import/import3a.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
509
2017-03-28T19:37:18.000Z
2022-03-31T20:31:43.000Z
tests/import/import3a.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
228
2016-12-19T05:03:30.000Z
2022-03-22T18:13:00.000Z
print(var)
11.333333
22
0.764706
from import1b import * print(var)
0
0
0
0
0
0
0
1
22
307735d0ffd35f1d33488d89c2e3b3806b778e0a
1,062
py
Python
inmuebles/urls.py
judhenaoma/c4-p27-g3
53feed982ef1954a0347e94487fec2f8cd20e971
[ "CC0-1.0" ]
null
null
null
inmuebles/urls.py
judhenaoma/c4-p27-g3
53feed982ef1954a0347e94487fec2f8cd20e971
[ "CC0-1.0" ]
null
null
null
inmuebles/urls.py
judhenaoma/c4-p27-g3
53feed982ef1954a0347e94487fec2f8cd20e971
[ "CC0-1.0" ]
null
null
null
from django.urls import path from .views.registroUserView import registroUserView from .views.detalleUserView import detalleUserView from .views.ListaInmueblesView import ListaInmueblesView from .views.CrearInmuebleView import CrearInmuebleView from .views.EliminarInmuebleView import EliminarInmuebleView from .views.Li...
39.333333
95
0.795669
from django.urls import path from .views.registroUserView import registroUserView from .views.detalleUserView import detalleUserView from .views.ListaInmueblesView import ListaInmueblesView from .views.CrearInmuebleView import CrearInmuebleView from .views.EliminarInmuebleView import EliminarInmuebleView from .views.Li...
0
0
0
0
0
0
0
0
0
6acf04db906df46b24aea07827b6ff2ccfc08868
6,086
py
Python
mozurestsdk/commerce/orders/attributedefinition/attribute.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
1
2021-03-22T12:38:42.000Z
2021-03-22T12:38:42.000Z
mozurestsdk/commerce/orders/attributedefinition/attribute.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
null
null
null
mozurestsdk/commerce/orders/attributedefinition/attribute.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
2
2015-09-30T19:49:00.000Z
2015-09-30T19:51:03.000Z
""" This code was generated by Codezu. Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. """
42.859155
395
0.731679
""" This code was generated by Codezu. Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. """ from mozurestsdk.mozuclient import default as default_client from mozurestsdk.mozuurl import MozuUrl; from mozurestsdk.urllocation import UrlLocation from mozure...
0
0
0
5,695
0
0
0
107
117
432c47d00efb11b0207ac4b4b615068235077cdb
404
py
Python
fsociety/information_gathering/cli.py
mihaid-b/fsociety
1852a00546757a9b288f5d487c4da97e6d69b3ff
[ "MIT" ]
null
null
null
fsociety/information_gathering/cli.py
mihaid-b/fsociety
1852a00546757a9b288f5d487c4da97e6d69b3ff
[ "MIT" ]
null
null
null
fsociety/information_gathering/cli.py
mihaid-b/fsociety
1852a00546757a9b288f5d487c4da97e6d69b3ff
[ "MIT" ]
null
null
null
# Core from .gitgraber import gitgraber from .hydrarecon import hydrarecon from .s3scanner import s3scanner from .sherlock import sherlock from .sqlmap import sqlmap from .striker import striker from .sublist3r import sublist3r __tools__ = [sqlmap, striker, sublist3r, sherlock, s3scanner, gitgraber, hydrarecon]
23.764706
84
0.80198
# Core from fsociety.core.menu import tools_cli from .gitgraber import gitgraber from .hydrarecon import hydrarecon from .s3scanner import s3scanner from .sherlock import sherlock from .sqlmap import sqlmap from .striker import striker from .sublist3r import sublist3r __tools__ = [sqlmap, striker, sublist3r, sherlock...
0
0
0
0
0
24
0
19
45
99037f163e47bcec7a5c770b2fc88090f79abaeb
15,424
py
Python
tensorflow/python/kernel_tests/logging_ops_test.py
fraudies/tensorflow
a42423e302b71893bbd24aa896869941013c07fb
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/logging_ops_test.py
fraudies/tensorflow
a42423e302b71893bbd24aa896869941013c07fb
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/logging_ops_test.py
fraudies/tensorflow
a42423e302b71893bbd24aa896869941013c07fb
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow 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 applica...
37.619512
80
0.649118
# Copyright 2015 The TensorFlow 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 applica...
0
10,373
0
3,378
0
0
0
291
445
35ba8ec9c40b993ed940b2ef8d6ce9e4e14764a3
2,513
py
Python
pyart/graph/tests/test_gridmapdisplay.py
kmuehlbauer/pyart
4accda3fc02490d135373ad5b054899c6781e762
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
pyart/graph/tests/test_gridmapdisplay.py
kmuehlbauer/pyart
4accda3fc02490d135373ad5b054899c6781e762
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
pyart/graph/tests/test_gridmapdisplay.py
kmuehlbauer/pyart
4accda3fc02490d135373ad5b054899c6781e762
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
""" Unit Tests for Py-ART's graph/gridmapdisplay.py module. """ # execute this script to create figure_gridmapdisplay_*.png files. # TODO use matplotlib's @image_comparison decorator to compare to file # in baseline_images directory. Current this test only determines if files can # be created, not that they are correc...
32.217949
78
0.735376
""" Unit Tests for Py-ART's graph/gridmapdisplay.py module. """ # execute this script to create figure_gridmapdisplay_*.png files. # TODO use matplotlib's @image_comparison decorator to compare to file # in baseline_images directory. Current this test only determines if files can # be created, not that they are correc...
0
1,769
0
0
0
0
0
41
158
e49137635e0b677d3411d4f5d40c243f0d0ff560
2,008
py
Python
01_Language/05_Python/tests/email_/test_smtp.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
3
2020-06-28T07:42:51.000Z
2021-01-15T10:32:11.000Z
01_Language/05_Python/tests/email_/test_smtp.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
9
2021-03-10T22:45:40.000Z
2022-02-27T06:53:20.000Z
01_Language/05_Python/tests/email_/test_smtp.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
1
2021-01-15T10:51:24.000Z
2021-01-15T10:51:24.000Z
# coding: utf-8 from email import encoders from email.header import Header from email.mime.base import MIMEBase from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart import smtplib # from_addr = input('From: ') from_addr = '176462329@qq.com' # password = input('Password: ') password =...
29.529412
77
0.653386
# coding: utf-8 from email import encoders from email.header import Header from email.mime.base import MIMEBase from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.utils import parseaddr, formataddr import smtplib def _format_addr(s): name, addr = parseaddr(s) retu...
306
0
0
0
0
91
0
24
45
38cac067f9cf4cba75a74649a2a8461fc9fb9958
9,689
py
Python
modoboa/admin/management/commands/subcommands/_mx.py
vietbm-hcm/modoboa
ceeec1bf0a63cf1b3ef7b4087c06e2a1eb35598d
[ "ISC" ]
null
null
null
modoboa/admin/management/commands/subcommands/_mx.py
vietbm-hcm/modoboa
ceeec1bf0a63cf1b3ef7b4087c06e2a1eb35598d
[ "ISC" ]
null
null
null
modoboa/admin/management/commands/subcommands/_mx.py
vietbm-hcm/modoboa
ceeec1bf0a63cf1b3ef7b4087c06e2a1eb35598d
[ "ISC" ]
null
null
null
"""Management command to check defined domains."""
36.562264
79
0.551966
"""Management command to check defined domains.""" from datetime import datetime from datetime import timedelta import ipaddress import dns.resolver import gevent from gevent import socket from django.conf import settings from django.core.management.base import BaseCommand from django.template.loader import render_...
0
606
0
8,434
0
0
0
217
380
0fd5d0acbb9602a1dfc99ee1f81e82d50a1c3f42
231
py
Python
django_productline/feature.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
5
2015-06-16T17:36:33.000Z
2017-10-17T19:22:59.000Z
django_productline/feature.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
8
2016-03-14T09:02:13.000Z
2017-11-16T16:00:31.000Z
django_productline/feature.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
17
2015-08-04T18:45:18.000Z
2017-11-16T14:52:46.000Z
from __future__ import unicode_literals def select(composer): """ binds the django_productline base feature """ # no introductions or refinements necessary - # django_productline acts as base feature pass
21
49
0.718615
from __future__ import unicode_literals def select(composer): """ binds the django_productline base feature """ # no introductions or refinements necessary - # django_productline acts as base feature pass
0
0
0
0
0
0
0
0
0
0edeb6c73ba3ced691a6e11c99b80309796c761e
3,264
py
Python
src/spaceone/statistics/service/history_service.py
whdalsrnt/statistics
7401ad6753e3b6ee3942b5036d1e5214d8930cb3
[ "Apache-2.0" ]
7
2020-06-04T23:01:03.000Z
2021-06-22T07:06:28.000Z
src/spaceone/statistics/service/history_service.py
jean1042/statistics
747a93b130e341a8863383a7740800285dd0b897
[ "Apache-2.0" ]
3
2020-08-20T01:49:08.000Z
2022-03-23T09:02:18.000Z
src/spaceone/statistics/service/history_service.py
jean1042/statistics
747a93b130e341a8863383a7740800285dd0b897
[ "Apache-2.0" ]
6
2020-06-10T02:00:24.000Z
2021-12-03T06:02:36.000Z
import logging _LOGGER = logging.getLogger(__name__)
31.384615
93
0.61152
import logging from spaceone.core.service import * from spaceone.statistics.error import * from spaceone.statistics.manager.resource_manager import ResourceManager from spaceone.statistics.manager.schedule_manager import ScheduleManager from spaceone.statistics.manager.history_manager import HistoryManager _LOGGER = ...
0
2,892
0
0
0
0
0
183
134
1220574045c6f2473c4d5b04889630819f67ad47
2,009
py
Python
observation/tests/obs_virtual/ObsVirtualUtilTest.py
CUrW-SL/cfcwm-cms
3888e724800395c478f1b63dab9f77d0afa3b2c4
[ "Apache-2.0" ]
null
null
null
observation/tests/obs_virtual/ObsVirtualUtilTest.py
CUrW-SL/cfcwm-cms
3888e724800395c478f1b63dab9f77d0afa3b2c4
[ "Apache-2.0" ]
null
null
null
observation/tests/obs_virtual/ObsVirtualUtilTest.py
CUrW-SL/cfcwm-cms
3888e724800395c478f1b63dab9f77d0afa3b2c4
[ "Apache-2.0" ]
null
null
null
import logging
30.439394
109
0.582877
import datetime import json import logging import logging.config import os import traceback from os.path import join as pjoin import unittest2 as unittest from observation.obs_virtual.ObsVirtualUtils import is_unique_points class ObsVirtualTest(unittest.TestCase): @classmethod def setUpClass(cls): t...
0
717
0
1,042
0
0
0
33
201
f4659a787887c8c90e6b4cb5687ed1e272cfd859
926
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/split-array-with-equal-sum.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/split-array-with-equal-sum.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/split-array-with-equal-sum.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n^2) # Space: O(n)
33.071429
110
0.516199
# Time: O(n^2) # Space: O(n) class Solution(object): def splitArray(self, nums): """ :type nums: List[int] :rtype: bool """ if len(nums) < 7: return False accumulated_sum = [0] * len(nums) accumulated_sum[0] = nums[0] for i in xrange(1, ...
0
0
0
872
0
0
0
0
23
269d077afeae122c4cd12e9bbb27e8ca41ceaaee
3,403
py
Python
Paper_13/Functions/Interactions_type.py
ADGiuliano/DevAndCompForRecSys2016
f8c4d5a1f184d5e773f841dce9f855ba0d792b65
[ "MIT" ]
null
null
null
Paper_13/Functions/Interactions_type.py
ADGiuliano/DevAndCompForRecSys2016
f8c4d5a1f184d5e773f841dce9f855ba0d792b65
[ "MIT" ]
null
null
null
Paper_13/Functions/Interactions_type.py
ADGiuliano/DevAndCompForRecSys2016
f8c4d5a1f184d5e773f841dce9f855ba0d792b65
[ "MIT" ]
null
null
null
""" @author: Andrea Domenico Giuliano @contact: andreadomenico.giuliano@studenti.unipd.it @organization: University of Padua """ #File contenente le funzioni riguardanti la creazione di una lista degli item utili per un determinato user # e per l'attribuizione degli score relaitivi alle tipologie di interaction...
37.395604
108
0.649721
""" @author: Andrea Domenico Giuliano @contact: andreadomenico.giuliano@studenti.unipd.it @organization: University of Padua """ import Time_Calcolation as t_c #File contenente le funzioni riguardanti la creazione di una lista degli item utili per un determinato user # e per l'attribuizione degli score relai...
0
0
0
0
0
2,773
0
9
299
d306dc3a9a56997d7aad880845dc4e1a3303af7f
362
py
Python
SQLite - Pratice/codemy/sqlite1.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
2
2020-11-27T13:21:05.000Z
2021-04-19T21:14:21.000Z
SQLite - Pratice/codemy/sqlite1.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
null
null
null
SQLite - Pratice/codemy/sqlite1.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
1
2021-06-27T20:31:42.000Z
2021-06-27T20:31:42.000Z
import sqlite3 # connect to database conn = sqlite3.connect('customer.db') # Create a cursor c = conn.cursor() c = conn.execute("""CREATE TABLE customers ( first TEXT, last TEXT, email text)""") print("Sucessfully Did what I had to!!") # Commit our command conn.commi...
16.454545
44
0.61326
import sqlite3 # connect to database conn = sqlite3.connect('customer.db') # Create a cursor c = conn.cursor() c = conn.execute("""CREATE TABLE customers ( first TEXT, last TEXT, email text)""") print("Sucessfully Did what I had to!!") # Commit our command conn.commi...
0
0
0
0
0
0
0
0
0
ba8368d930a3fd7ca4cced853944b735a45f9585
142
py
Python
donate/urls.py
yazdanv/backend
49da8d46e108bc2000fdabc1b991836f2cc50687
[ "MIT" ]
232
2021-05-05T06:29:32.000Z
2022-03-04T18:38:34.000Z
donate/urls.py
lmn3x/backend
5ef2dca266aaf6f2000e0765894045642e48ef98
[ "MIT" ]
30
2021-05-05T11:55:32.000Z
2021-11-10T15:15:06.000Z
donate/urls.py
lmn3x/backend
5ef2dca266aaf6f2000e0765894045642e48ef98
[ "MIT" ]
69
2021-05-05T07:12:18.000Z
2022-03-06T13:37:31.000Z
from django.urls import path from donate import views urlpatterns = [ # Donate path('donate/', views.DonateCreateView.as_view()), ]
15.777778
54
0.704225
from django.urls import path from donate import views urlpatterns = [ # Donate path('donate/', views.DonateCreateView.as_view()), ]
0
0
0
0
0
0
0
0
0
1152280365489a13126c29bd2747caf1ac246814
7,076
py
Python
youtube_search.py
hatahetahmad/youtube-search
cc48e526355ae8c550fd1e3c47f79f3121652c2c
[ "MIT" ]
null
null
null
youtube_search.py
hatahetahmad/youtube-search
cc48e526355ae8c550fd1e3c47f79f3121652c2c
[ "MIT" ]
null
null
null
youtube_search.py
hatahetahmad/youtube-search
cc48e526355ae8c550fd1e3c47f79f3121652c2c
[ "MIT" ]
null
null
null
import csv import os import json from googleapiclient.discovery import build # * IMPORTANT query = r'python tutorial' # read secret api key with open('./SECRETS.json', 'r') as f: secrets = json.load(f) api_token = secrets['api_token'] # Functions # creating data directory to save data if not os.path.exists('./...
36.102041
143
0.544799
import csv import os import json from googleapiclient.discovery import build # * IMPORTANT query = r'python tutorial' # read secret api key with open('./SECRETS.json', 'r') as f: secrets = json.load(f) api_token = secrets['api_token'] # Functions def save_response_to_JSON(file_name, response) -> None: with ...
0
0
0
0
0
141
0
0
22
913d538ba9c9761fcd50792df0ea09593659bcc0
6,078
py
Python
lbrynet/stream/assembler.py
TBitcoin/lbry
d931c765d22d6b034ef5754560f38e7d5f035461
[ "MIT" ]
null
null
null
lbrynet/stream/assembler.py
TBitcoin/lbry
d931c765d22d6b034ef5754560f38e7d5f035461
[ "MIT" ]
null
null
null
lbrynet/stream/assembler.py
TBitcoin/lbry
d931c765d22d6b034ef5754560f38e7d5f035461
[ "MIT" ]
null
null
null
import logging import typing if typing.TYPE_CHECKING: log = logging.getLogger(__name__)
46.396947
118
0.601185
import os import binascii import logging import typing import asyncio from lbrynet.blob import MAX_BLOB_SIZE from lbrynet.stream.descriptor import StreamDescriptor if typing.TYPE_CHECKING: from lbrynet.blob.blob_manager import BlobFileManager from lbrynet.blob.blob_info import BlobInfo from lbrynet.blob.blo...
0
0
4,556
739
0
332
0
101
257
60d31c9129b3bd68af775a31a7ef931f5627ec34
2,775
py
Python
sagemaker-pyspark-sdk/src/sagemaker_pyspark/NamePolicy.py
hyandell/sagemaker-spark
0149cf0f52562008a1a163e455207bb6d00d3e4a
[ "Apache-2.0" ]
null
null
null
sagemaker-pyspark-sdk/src/sagemaker_pyspark/NamePolicy.py
hyandell/sagemaker-spark
0149cf0f52562008a1a163e455207bb6d00d3e4a
[ "Apache-2.0" ]
null
null
null
sagemaker-pyspark-sdk/src/sagemaker_pyspark/NamePolicy.py
hyandell/sagemaker-spark
0149cf0f52562008a1a163e455207bb6d00d3e4a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accom...
31.896552
99
0.70991
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accom...
0
0
0
2,040
0
0
0
31
137
3a7493287160bb8c85ebf44fce40ad60fd7b3258
11,036
py
Python
src/hackrf/SDR_Testing/oldstuff/wifi_rx_rftap_nogrc.py
pieterbork/SUPERFREQ
c5aff0a28a299e1146612f60b02d8cefd5fe74a5
[ "MIT" ]
3
2018-09-14T15:13:33.000Z
2019-07-16T04:27:45.000Z
src/hackrf/SDR_Testing/oldstuff/wifi_rx_rftap_nogrc.py
pieterbork/SUPERFREQ
c5aff0a28a299e1146612f60b02d8cefd5fe74a5
[ "MIT" ]
null
null
null
src/hackrf/SDR_Testing/oldstuff/wifi_rx_rftap_nogrc.py
pieterbork/SUPERFREQ
c5aff0a28a299e1146612f60b02d8cefd5fe74a5
[ "MIT" ]
2
2018-01-22T03:11:51.000Z
2018-02-24T01:28:27.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: Wifi Rx Rftap # Generated: Sun Feb 18 16:11:24 2018 ################################################## if __name__ == '__main__': import ctypes import sys if sys.platform...
55.737374
1,066
0.640631
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: Wifi Rx Rftap # Generated: Sun Feb 18 16:11:24 2018 ################################################## if __name__ == '__main__': import ctypes import sys if sys.platform...
0
0
0
9,212
0
824
0
0
46
8ff130d76169acca0a10d774d6dfab41f7052929
2,739
py
Python
handling_conditions.py
mrabdsaif/DS-training
aa2b2cb6e25d5f00baafcd699fb6ed64817f4ac3
[ "MIT" ]
null
null
null
handling_conditions.py
mrabdsaif/DS-training
aa2b2cb6e25d5f00baafcd699fb6ed64817f4ac3
[ "MIT" ]
null
null
null
handling_conditions.py
mrabdsaif/DS-training
aa2b2cb6e25d5f00baafcd699fb6ed64817f4ac3
[ "MIT" ]
null
null
null
#price = float(input('Enter The Price: ')) # int() to convert the inputs into float so we can compare it with tax #if price >= 2.0: #tax = 0.07 #else: # tax = 0.00 #print(f'The Tax for this price is: ', {tax}, '\n \n') # note that the print statements without indentations so it will wait the if and else ...
33.402439
172
0.632713
#price = float(input('Enter The Price: ')) # int() to convert the inputs into float so we can compare it with tax #if price >= 2.0: #tax = 0.07 #else: # tax = 0.00 #print(f'The Tax for this price is: ', {tax}, '\n \n') # note that the print statements without indentations so it will wait the if and else ...
0
0
0
0
0
0
0
0
0
ad6b67f9b8c96cd19e386ce1dbb7c3472c252e56
4,536
py
Python
L1Trigger/L1TTwinMux/test/runUnpEmuTwinMux.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
L1Trigger/L1TTwinMux/test/runUnpEmuTwinMux.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
L1Trigger/L1TTwinMux/test/runUnpEmuTwinMux.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
##Unpackers and Emulator of BMTF-TwinMux import FWCore.ParameterSet.Config as cms process = cms.Process("TwinMuxRawToDigi") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 1000 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")...
34.625954
105
0.702822
##Unpackers and Emulator of BMTF-TwinMux import FWCore.ParameterSet.Config as cms process = cms.Process("TwinMuxRawToDigi") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 1000 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")...
0
0
0
0
0
0
0
0
0
a4c3a971f691351c9a26c77a1dcf3ec0c9a00baf
117
py
Python
librespot/player/metrics/PlaybackMetrics.py
JeffmeisterJ/librespot-python
0e0e1db65aa40262bd13479b97f81ae8c29ae049
[ "Apache-2.0" ]
1
2021-12-15T22:44:46.000Z
2021-12-15T22:44:46.000Z
librespot/player/metrics/PlaybackMetrics.py
JeffmeisterJ/librespot-python
0e0e1db65aa40262bd13479b97f81ae8c29ae049
[ "Apache-2.0" ]
12
2021-10-06T02:18:44.000Z
2022-02-07T02:16:47.000Z
librespot/player/metrics/PlaybackMetrics.py
JeffmeisterJ/librespot-python
0e0e1db65aa40262bd13479b97f81ae8c29ae049
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations
16.714286
41
0.811966
from __future__ import annotations import logging class PlaybackMetrics: _LOGGER = logging.getLogger(__name__)
0
0
0
43
0
0
0
-7
45
fe240726e14f38b5b773ea045f596f31dd8e5997
5,688
py
Python
pymilvus/orm/exceptions.py
sarvex/pymilvus
8cd5ef54eb8d3f1598d36288008b9dc5a6ae34e2
[ "Apache-2.0" ]
417
2019-06-21T02:25:25.000Z
2022-03-25T04:27:28.000Z
pymilvus/orm/exceptions.py
sarvex/pymilvus
8cd5ef54eb8d3f1598d36288008b9dc5a6ae34e2
[ "Apache-2.0" ]
681
2019-06-18T11:03:53.000Z
2022-03-31T14:29:17.000Z
pymilvus/orm/exceptions.py
sarvex/pymilvus
8cd5ef54eb8d3f1598d36288008b9dc5a6ae34e2
[ "Apache-2.0" ]
193
2019-06-14T07:46:55.000Z
2022-03-14T16:02:22.000Z
# Copyright (C) 2019-2021 Zilliz. 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 law or ag...
26.704225
115
0.728376
# Copyright (C) 2019-2021 Zilliz. 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 law or ag...
0
74
0
4,231
0
0
0
0
759
6f051b0083183e72dd5da9669ff28eca7917ae99
1,133
py
Python
hw/hw05/tests/q3d.py
surajrampure/data-94-sp21
074543103579c28d796c681f78f3c38449825328
[ "BSD-3-Clause" ]
1
2020-11-21T09:42:52.000Z
2020-11-21T09:42:52.000Z
hw/hw05/tests/q3d.py
surajrampure/data-94-sp21
074543103579c28d796c681f78f3c38449825328
[ "BSD-3-Clause" ]
null
null
null
hw/hw05/tests/q3d.py
surajrampure/data-94-sp21
074543103579c28d796c681f78f3c38449825328
[ "BSD-3-Clause" ]
null
null
null
test = { 'name': 'q3d', 'points': 2, 'suites': [ { 'cases': [ { 'code': ">>> np.all(sorted(top_5_acc) == sorted(np.array(['ROSELAND COLLEGIATE PREP', 'GRANGE SCHOOL THE', 'FELICITAS GONZALO MENDEZ HS', 'ALLIANCE M&E STERN " "MATH SCI SCH', 'SOUTH HIGH SCH...
66.647059
198
0.363636
test = { 'name': 'q3d', 'points': 2, 'suites': [ { 'cases': [ { 'code': ">>> np.all(sorted(top_5_acc) == sorted(np.array(['ROSELAND COLLEGIATE PREP', 'GRANGE SCHOOL THE', 'FELICITAS GONZALO MENDEZ HS', 'ALLIANCE M&E STERN " "MATH SCI SCH', 'SOUTH HIGH SCH...
0
0
0
0
0
0
0
0
0
6a83fc53020dbc31bd85e4245c624104b7ac7b86
3,695
py
Python
trdg/string_generator.py
Cospel/TextRecognitionDataGenerator
2339383f61a926945c06206ba5bb6358c0cb3568
[ "MIT" ]
null
null
null
trdg/string_generator.py
Cospel/TextRecognitionDataGenerator
2339383f61a926945c06206ba5bb6358c0cb3568
[ "MIT" ]
null
null
null
trdg/string_generator.py
Cospel/TextRecognitionDataGenerator
2339383f61a926945c06206ba5bb6358c0cb3568
[ "MIT" ]
null
null
null
import random as rnd import re import string import requests from bs4 import BeautifulSoup def create_strings_from_file(filename, count): """ Create all strings by reading lines in specified files """ strings = [] with open(filename, "r", encoding="utf8") as f: lines = [l[0:200] for ...
28.867188
96
0.573748
import random as rnd import re import string import requests from xeger import Xeger from bs4 import BeautifulSoup def create_strings_from_file(filename, count): """ Create all strings by reading lines in specified files """ strings = [] with open(filename, "r", encoding="utf8") as f: ...
0
0
0
0
0
267
0
2
46
c2aeb3c2bd829668c37fe6c5b010c0278128318d
15,659
py
Python
tridentstream/bases/metadata/mixins.py
tridentstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
6
2020-01-03T14:50:09.000Z
2021-09-13T01:44:31.000Z
tridentstream/bases/metadata/mixins.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
tridentstream/bases/metadata/mixins.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__)
37.283333
162
0.603678
import logging from collections import defaultdict from django.core.exceptions import FieldDoesNotExist from django.db.models import Count, Field, Q from unplugged import JSONAPIObject, command from .models import BaseMetadataResolutionLink, BaseUpdatable logger = logging.getLogger(__name__) class ListingItemRelin...
0
2,082
0
13,089
0
0
0
131
296
bdcd4e8075ba0b50ad9f12ad4c62ded2b2a73210
2,144
py
Python
model.py
HashemSami/image_classifier_aipnd
6c5e0a3ef5d4e8a0a4031fa149cd171975651cac
[ "MIT" ]
null
null
null
model.py
HashemSami/image_classifier_aipnd
6c5e0a3ef5d4e8a0a4031fa149cd171975651cac
[ "MIT" ]
null
null
null
model.py
HashemSami/image_classifier_aipnd
6c5e0a3ef5d4e8a0a4031fa149cd171975651cac
[ "MIT" ]
null
null
null
import torchvision.transforms as transforms import torchvision.models as models densenet121 = models.densenet121(pretrained=True) vgg16 = models.vgg16(pretrained=True) models = { "densenet": { "name": densenet121, "input": 1024 }, "vgg": { "name": vgg16, "input": 25088 ...
26.146341
81
0.591418
import torch from torch import nn from torch import optim from collections import OrderedDict from PIL import Image import torchvision.transforms as transforms import torchvision.models as models densenet121 = models.densenet121(pretrained=True) vgg16 = models.vgg16(pretrained=True) models = { "densenet": { ...
0
0
0
0
0
1,654
0
6
156
9d485ab355ff1ef0db848c1f2358528cbcb55e0f
1,936
py
Python
string_encode_decode.py
priyankparmar3/Python--Code
142fbaffa83ace38d28ba753b6f4dff9f92dc3a7
[ "MIT" ]
null
null
null
string_encode_decode.py
priyankparmar3/Python--Code
142fbaffa83ace38d28ba753b6f4dff9f92dc3a7
[ "MIT" ]
null
null
null
string_encode_decode.py
priyankparmar3/Python--Code
142fbaffa83ace38d28ba753b6f4dff9f92dc3a7
[ "MIT" ]
null
null
null
''' __author__ : Priyank Parmar __tested_on__ : 4th June, 2017 __description__ : To test different encoding and decoding methods ''' ## Taking the Input from user str = raw_input('Enter String :') print "==================================================" ## Encoded String print "Encoded Strings" # UTF-8 Encoding enco...
32.266667
104
0.673037
''' __author__ : Priyank Parmar __tested_on__ : 4th June, 2017 __description__ : To test different encoding and decoding methods ''' ## Taking the Input from user str = raw_input('Enter String :') print "==================================================" ## Encoded String print "Encoded Strings" # UTF-8 Encoding enco...
0
0
0
0
0
0
0
0
0
cf31d4fdf8e8b1bbb9dd1062afda7ee4a7b5b4cd
3,868
py
Python
pyswmm/lib/__init__.py
kmmacro/pyswmm
028fc9a2c731bed4129ee100e295900d989867fd
[ "BSD-2-Clause" ]
3
2018-03-08T23:21:42.000Z
2019-04-01T18:39:37.000Z
pyswmm/lib/__init__.py
kmmacro/pyswmm
028fc9a2c731bed4129ee100e295900d989867fd
[ "BSD-2-Clause" ]
null
null
null
pyswmm/lib/__init__.py
kmmacro/pyswmm
028fc9a2c731bed4129ee100e295900d989867fd
[ "BSD-2-Clause" ]
2
2020-03-12T17:07:56.000Z
2020-04-01T18:13:56.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2014 Bryant E. McDonnell # # Licensed under the terms of the BSD2 License # See LICENSE.txt for details # ----------------------------------------------------------------------------- """SWMM5 compile...
28.441176
79
0.533092
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2014 Bryant E. McDonnell # # Licensed under the terms of the BSD2 License # See LICENSE.txt for details # ----------------------------------------------------------------------------- """SWMM5 compile...
0
154
0
233
0
0
0
0
23
4b5039847ff57f6148ef092f859d68353b6e4bc7
1,434
py
Python
main_website/migrations/versions/7ef3c4f2ba0c_.py
realtimclemans/DataAboutDotMe
0b666689c972f1880d2ef3d0240102ab685585a7
[ "MIT" ]
null
null
null
main_website/migrations/versions/7ef3c4f2ba0c_.py
realtimclemans/DataAboutDotMe
0b666689c972f1880d2ef3d0240102ab685585a7
[ "MIT" ]
null
null
null
main_website/migrations/versions/7ef3c4f2ba0c_.py
realtimclemans/DataAboutDotMe
0b666689c972f1880d2ef3d0240102ab685585a7
[ "MIT" ]
null
null
null
"""empty message Revision ID: 7ef3c4f2ba0c Revises: Create Date: 2020-12-28 10:48:53.012083 """ # revision identifiers, used by Alembic. revision = '7ef3c4f2ba0c' down_revision = None branch_labels = None depends_on = None
33.348837
91
0.702929
"""empty message Revision ID: 7ef3c4f2ba0c Revises: Create Date: 2020-12-28 10:48:53.012083 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '7ef3c4f2ba0c' down_revision = None branch_labels = None depends_on = None d...
0
0
0
0
0
1,069
0
24
112
10cf75a7db71980ccaab10af140ba67986fef858
4,585
py
Python
main/ffmpeg/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
46
2021-06-10T02:27:32.000Z
2022-03-27T11:33:24.000Z
main/ffmpeg/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
58
2021-07-03T13:58:20.000Z
2022-03-13T16:45:35.000Z
main/ffmpeg/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
6
2021-07-04T10:46:40.000Z
2022-01-09T00:03:59.000Z
pkgname = "ffmpeg" pkgver = "4.4.1" pkgrel = 0 build_style = "configure" configure_args = [ "--prefix=/usr", "--enable-shared", "--enable-static", "--enable-gpl", "--enable-version3", "--enable-runtime-cpudetect", "--enable-lto", "--enable-openssl", "--enable-librtmp", "--enable-...
30.566667
76
0.596292
pkgname = "ffmpeg" pkgver = "4.4.1" pkgrel = 0 build_style = "configure" configure_args = [ "--prefix=/usr", "--enable-shared", "--enable-static", "--enable-gpl", "--enable-version3", "--enable-runtime-cpudetect", "--enable-lto", "--enable-openssl", "--enable-librtmp", "--enable-...
0
368
0
0
0
633
0
0
118
b0fd67321ba06086eac123cffefe4cfb6e25eba3
1,717
py
Python
the-eventbridge-etl/typescript/container/s3DataExtractionTask/main.py
mttfarmer/serverless
e7b28421708cd4643ce61d28940357c3664ed2a8
[ "MIT" ]
1,627
2020-01-12T10:35:06.000Z
2022-03-31T13:12:51.000Z
the-eventbridge-etl/typescript/container/s3DataExtractionTask/main.py
mttfarmer/serverless
e7b28421708cd4643ce61d28940357c3664ed2a8
[ "MIT" ]
58
2020-02-09T06:57:35.000Z
2022-02-26T23:25:10.000Z
the-eventbridge-etl/typescript/container/s3DataExtractionTask/main.py
mttfarmer/serverless
e7b28421708cd4643ce61d28940357c3664ed2a8
[ "MIT" ]
240
2020-01-19T09:09:44.000Z
2022-03-30T19:12:17.000Z
if __name__ == '__main__': main()
30.122807
102
0.559697
import boto3 import time import os import csv from datetime import datetime import json def main(): event_bridge = boto3.client('events') # https://stackoverflow.com/questions/4906977/how-to-access-environment-variable-values data_s3_bucket_name = os.environ.get('S3_BUCKET_NAME') data_s3_object_key =...
0
0
0
0
0
1,567
0
-44
155
316cb32636c7f5d4d7cb7999e43806c46063a905
1,215
py
Python
pyinstrument/util.py
DEKHTIARJonathan/pyinstrument
cc4f3f6fc1b493d7cd058ecf41ad012e0030a512
[ "BSD-3-Clause" ]
null
null
null
pyinstrument/util.py
DEKHTIARJonathan/pyinstrument
cc4f3f6fc1b493d7cd058ecf41ad012e0030a512
[ "BSD-3-Clause" ]
null
null
null
pyinstrument/util.py
DEKHTIARJonathan/pyinstrument
cc4f3f6fc1b493d7cd058ecf41ad012e0030a512
[ "BSD-3-Clause" ]
null
null
null
from pyinstrument.vendor.decorator import decorator def deprecated_option(option_name, message=''): ''' Marks an option as deprecated. ''' return decorator(caller)
31.153846
90
0.633745
import importlib, warnings from pyinstrument.vendor.decorator import decorator def object_with_import_path(import_path): if '.' not in import_path: raise ValueError("Can't import '%s', it is not a valid import path" % import_path) module_path, object_name = import_path.rsplit('.', 1) module = impo...
0
250
0
0
0
670
0
5
117
9439a1400ea3d720ed936e880d899ea559d9617b
804
py
Python
newApp/migrations/0002_personmodel.py
herokudev/Django-models
80a67311ed6702789396d77eecbbf582281266f1
[ "MIT" ]
null
null
null
newApp/migrations/0002_personmodel.py
herokudev/Django-models
80a67311ed6702789396d77eecbbf582281266f1
[ "MIT" ]
null
null
null
newApp/migrations/0002_personmodel.py
herokudev/Django-models
80a67311ed6702789396d77eecbbf582281266f1
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-22 17:05
32.16
116
0.557214
# Generated by Django 4.0.2 on 2022-02-22 17:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('newApp', '0001_initial'), ] operations = [ migrations.CreateModel( name='PersonModel', fields=[ ('id...
0
0
0
690
0
0
0
19
46
8e106bd84cda12c9b345aada8addbc62c6b8d35e
22,351
py
Python
upb_audio_tagging_2019/data.py
fgnt/upb_audio_tagging_2019
8c0640688403cef678be7ebe1a658dc3844ba95d
[ "MIT" ]
2
2019-10-25T20:37:32.000Z
2021-05-16T13:13:35.000Z
upb_audio_tagging_2019/data.py
fgnt/upb_audio_tagging_2019
8c0640688403cef678be7ebe1a658dc3844ba95d
[ "MIT" ]
null
null
null
upb_audio_tagging_2019/data.py
fgnt/upb_audio_tagging_2019
8c0640688403cef678be7ebe1a658dc3844ba95d
[ "MIT" ]
2
2019-09-18T09:05:07.000Z
2021-04-12T08:01:36.000Z
import json from pathlib import Path import numpy as np from tqdm import tqdm def split_dataset(dataset, fold, nfolfds=5, seed=0): """ Args: dataset: fold: nfolfds: seed: Returns: >>> split_dataset(np.array([1,2,3,4,5]), 0, nfolfds=2) [array([1, 3]), array([2, ...
34.019787
131
0.571786
import json import numbers from pathlib import Path import numpy as np import samplerate import soundfile from cached_property import cached_property from lazy_dataset import Dataset, FilterException from lazy_dataset.core import DynamicTimeSeriesBucket from scipy.interpolate import make_interp_spline from scipy.sign...
0
406
0
17,694
0
490
0
114
405
5066330648f21b72214a940161a3e1803e798d80
2,045
py
Python
tools/build_docs.py
rishiraj/decision-forests
c3977d9404ff7c8163f1201f2d142a4b44a2ad8e
[ "Apache-2.0" ]
1
2021-07-14T15:05:05.000Z
2021-07-14T15:05:05.000Z
tools/build_docs.py
machinelearning147/decision-forests
e2e2c3f8f1c270a23ac97a6833f84a28ec99c51e
[ "Apache-2.0" ]
null
null
null
tools/build_docs.py
machinelearning147/decision-forests
e2e2c3f8f1c270a23ac97a6833f84a28ec99c51e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
34.083333
79
0.729584
# Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
0
0
0
0
0
536
0
73
113
18282d350926bafe37d7608171ded402b2e6597e
1,348
py
Python
share/prun_jobs.py
micaelverissimo/kepler
5db55aa39d7e65f460f533dfd91ca6e5fdb3076a
[ "MIT" ]
1
2021-11-20T22:45:13.000Z
2021-11-20T22:45:13.000Z
share/prun_jobs.py
micaelverissimo/kepler
5db55aa39d7e65f460f533dfd91ca6e5fdb3076a
[ "MIT" ]
null
null
null
share/prun_jobs.py
micaelverissimo/kepler
5db55aa39d7e65f460f533dfd91ca6e5fdb3076a
[ "MIT" ]
2
2021-10-05T22:35:11.000Z
2021-11-20T22:45:18.000Z
#!/usr/bin/env python3 import argparse from Gaugi import Pool from Gaugi import Logger mainLogger = Logger.getModuleLogger("prun.job") parser = argparse.ArgumentParser(description = '', add_help = False) parser = argparse.ArgumentParser() parser.add_argument('-o','--outputFile', action='store', dest='outputFile...
28.083333
89
0.675816
#!/usr/bin/env python3 import argparse from Gaugi import Pool from Gaugi import Logger mainLogger = Logger.getModuleLogger("prun.job") parser = argparse.ArgumentParser(description = '', add_help = False) parser = argparse.ArgumentParser() parser.add_argument('-o','--outputFile', action='store', dest='outputFile...
0
0
0
0
0
66
0
3
23
b3fd09f9fb17248746d53dd5958a859085c4ce8e
1,727
py
Python
rapid7_insightvm_cloud/icon_rapid7_insightvm_cloud/actions/start_scan/schema.py
GreyNoise-Intelligence/insightconnect-plugins
2ba3121d42fd96e1267bb095bc76b962678c1f56
[ "MIT" ]
null
null
null
rapid7_insightvm_cloud/icon_rapid7_insightvm_cloud/actions/start_scan/schema.py
GreyNoise-Intelligence/insightconnect-plugins
2ba3121d42fd96e1267bb095bc76b962678c1f56
[ "MIT" ]
null
null
null
rapid7_insightvm_cloud/icon_rapid7_insightvm_cloud/actions/start_scan/schema.py
GreyNoise-Intelligence/insightconnect-plugins
2ba3121d42fd96e1267bb095bc76b962678c1f56
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT
19.404494
73
0.53619
# GENERATED BY KOMAND SDK - DO NOT EDIT import insightconnect_plugin_runtime import json class Component: DESCRIPTION = "Start an InsightVM scan of previously scanned devices" class Input: ASSET_IDS = "asset_ids" HOSTNAMES = "hostnames" IPS = "ips" NAME = "name" class Output: ID = "id"...
0
0
0
1,510
0
0
0
5
159
02819a0ba527b27cf75ea1d7e538e272055c1bcf
6,394
py
Python
geonode/geonode/proxy/tests.py
ttungbmt/BecaGIS_GeoPortal
6c05f9fc020ec4ccf600ba2503a06c2231443920
[ "MIT" ]
null
null
null
geonode/geonode/proxy/tests.py
ttungbmt/BecaGIS_GeoPortal
6c05f9fc020ec4ccf600ba2503a06c2231443920
[ "MIT" ]
null
null
null
geonode/geonode/proxy/tests.py
ttungbmt/BecaGIS_GeoPortal
6c05f9fc020ec4ccf600ba2503a06c2231443920
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ######################################################################### # # Copyright (C) 2016 OSGeo # # 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 3 ...
38.518072
106
0.66234
# -*- coding: utf-8 -*- ######################################################################### # # Copyright (C) 2016 OSGeo # # 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 3 ...
0
3,406
0
1,295
0
0
0
189
317
ff105396015d7a57d3f83412832488f0295cdca9
482
py
Python
lib/dnsServer/utils.py
bankonmecoin/nmcontrol
49a879b98bb2885e3ba7c9fdf6dfe7e122e0edad
[ "FTL" ]
161
2015-01-08T19:45:20.000Z
2022-01-15T18:25:21.000Z
lib/dnsServer/utils.py
bankonmecoin/nmcontrol
49a879b98bb2885e3ba7c9fdf6dfe7e122e0edad
[ "FTL" ]
77
2015-01-02T02:20:59.000Z
2020-05-25T08:33:56.000Z
lib/dnsServer/utils.py
namecoin/nmcontrol
49a879b98bb2885e3ba7c9fdf6dfe7e122e0edad
[ "FTL" ]
36
2015-02-26T01:51:53.000Z
2022-01-15T18:25:45.000Z
#This was not written by sonicrules1234, look in namecoindnsserver.py at the top for the actual author
20.083333
102
0.582988
#This was not written by sonicrules1234, look in namecoindnsserver.py at the top for the actual author import struct def label2str(label): s = struct.pack("!B", len(label)) s += label return s def labels2str(labels): s = '' for label in labels: s += label2str(label) s += struct.pack("!...
0
0
0
0
0
295
0
-8
91
efdb4a3ae8a8d4ff1cb0d994eada23af140462d4
434
py
Python
setup.py
SimonIT/pylrc
d9d2f8f7aa01891f2f37702b000f7c3f0a346876
[ "MIT" ]
22
2017-07-02T05:15:16.000Z
2021-10-20T03:05:18.000Z
setup.py
SimonIT/pylrc
d9d2f8f7aa01891f2f37702b000f7c3f0a346876
[ "MIT" ]
9
2017-11-14T04:06:19.000Z
2021-06-10T16:17:41.000Z
setup.py
SimonIT/pylrc
d9d2f8f7aa01891f2f37702b000f7c3f0a346876
[ "MIT" ]
12
2017-07-02T05:15:19.000Z
2021-05-31T18:27:56.000Z
from setuptools import setup setup( name='pylrc', packages=['pylrc'], version='0.1.0', description='A library for parsing .lrc files', long_description=open('README.rst').read(), author='doakey3, SimonIT', author_email='pylrc.dmodo@spamgourmet.com', url='https://github.com/doakey3/pylrc...
28.933333
89
0.677419
from setuptools import setup setup( name='pylrc', packages=['pylrc'], version='0.1.0', description='A library for parsing .lrc files', long_description=open('README.rst').read(), author='doakey3, SimonIT', author_email='pylrc.dmodo@spamgourmet.com', url='https://github.com/doakey3/pylrc...
0
0
0
0
0
0
0
0
0
754d2258cd8985ae42460292a352d2eed4a8bd8d
2,973
py
Python
modules_lib/bleextop/libraries/permissionbi.py
hephaestus9/Ironworks
37be48e37f63530dd7bf82618948ef82522699a0
[ "MIT" ]
1
2021-05-17T08:31:07.000Z
2021-05-17T08:31:07.000Z
modules_lib/bleextop/libraries/permissionbi.py
hephaestus9/Ironworks
37be48e37f63530dd7bf82618948ef82522699a0
[ "MIT" ]
null
null
null
modules_lib/bleextop/libraries/permissionbi.py
hephaestus9/Ironworks
37be48e37f63530dd7bf82618948ef82522699a0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
35.819277
98
0.578877
# -*- coding: utf-8 -*- from modules_lib.bleextop.models import roledao, permissiondao import datetime import re class PermissionBI: def __init__(self): self.permission = permissiondao.PermissionDAO() self.role = roledao.RoleDAO() def getAllPermissions(self): return self.permission.g...
0
0
0
2,836
0
0
0
23
89
082e0176c2c8151e1a97641a83bb9545de3cb17d
3,365
py
Python
rep0st/web/site.py
tomoshizuki/rep0st
567f625762d7581be434e46fae08515ee5a94ae3
[ "MIT" ]
37
2015-03-03T17:08:23.000Z
2021-09-21T13:21:08.000Z
rep0st/web/site.py
tomoshizuki/rep0st
567f625762d7581be434e46fae08515ee5a94ae3
[ "MIT" ]
37
2015-02-24T20:24:42.000Z
2021-08-01T16:42:02.000Z
rep0st/web/site.py
tomoshizuki/rep0st
567f625762d7581be434e46fae08515ee5a94ae3
[ "MIT" ]
28
2015-02-27T20:05:03.000Z
2021-07-31T12:54:54.000Z
import logging log = logging.getLogger(__name__)
30.87156
135
0.720059
import logging from typing import BinaryIO, Optional import requests from injector import Module, ProviderOf, inject, singleton from werkzeug import Request, Response from werkzeug.routing import Rule from rep0st.db.post import PostRepository, PostRepositoryModule from rep0st.framework.data.transaction import transac...
2
2,498
0
143
0
0
0
359
312
dfdbe41568d2a6d379681e6a7f37873634949a5b
1,967
py
Python
molecule/default/tests/test_default.py
aschult5/ansible-role-zen-node
d0c9dfe6821f2324a7ec7b1e0e4308082a3de19e
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
aschult5/ansible-role-zen-node
d0c9dfe6821f2324a7ec7b1e0e4308082a3de19e
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
aschult5/ansible-role-zen-node
d0c9dfe6821f2324a7ec7b1e0e4308082a3de19e
[ "MIT" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE'] ).get_hosts('all')
28.926471
79
0.688358
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE'] ).get_hosts('all') def test_host(host): docker_sock_default = '/var/run/docker.sock' docker_sock = os.environ['ZEND_DOCKER_HOST'].replace('unix://', '', 1...
0
0
0
0
0
1,696
0
0
92