hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
d4757491efa8084b4371b0d6817de101e0f8d8a2
304
py
Python
PicoCTF 2018/Reversing/be-quick-or-be-dead/solve.py
p-g-krish/CTF-Writeups
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
[ "MIT" ]
51
2018-06-26T09:49:42.000Z
2019-09-14T00:06:35.000Z
PicoCTF 2018/Reversing/be-quick-or-be-dead/solve.py
p-g-krish/CTF-Writeups
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
[ "MIT" ]
1
2018-06-29T18:40:59.000Z
2018-07-09T20:29:41.000Z
PicoCTF 2018/Reversing/be-quick-or-be-dead/solve.py
p-g-krish/CTF-Writeups
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
[ "MIT" ]
22
2019-10-03T14:52:43.000Z
2022-01-17T08:55:10.000Z
#!/usr/bin/env python3 def calc(x): if x in results: return results[x] results[x] = (calc(x-1) - calc(x-2) + calc(x-3) - calc(x-4) + calc(x-5)*4660)%2**32 return results[x] results = {} for i in range(5): results[i] = i**2+9029 for i in range(5,100022): results[i] = calc(i) print(results[100021])
25.333333
84
0.628289
0
0
0
0
0
0
0
0
22
0.072368
d47d005c02515ac759e7040407be536af13a0a86
1,392
py
Python
full-problems/topKNumbers.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
full-problems/topKNumbers.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
full-problems/topKNumbers.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # https://practice.geeksforgeeks.org/problems/top-k-numbers/0 def sol(arr, n, k): f = {0:0} rl = [0]*(k+1) # Lets initialise a list of k+1 elements # We have taken one extra element here so as we dont overwrite an existing # result or subresult for x in arr: f[x...
33.95122
78
0.514368
0
0
0
0
0
0
0
0
685
0.492098
d47da1a3567c0646e5b6d191bc5adb903cf32946
2,125
py
Python
pymeta.py
ustayready/python-pentesting
9a2e22eebbd7b7869bef43ae5dddd45a20558095
[ "MIT" ]
135
2020-02-28T23:22:00.000Z
2022-03-29T03:48:31.000Z
pymeta.py
treebuilder/python-pentesting
9a2e22eebbd7b7869bef43ae5dddd45a20558095
[ "MIT" ]
null
null
null
pymeta.py
treebuilder/python-pentesting
9a2e22eebbd7b7869bef43ae5dddd45a20558095
[ "MIT" ]
45
2020-03-01T04:12:08.000Z
2022-02-02T22:43:15.000Z
import os import re import argparse import zipfile import PyPDF2 from lxml import etree as ET class PyMetaExtractor(): ext = ['docx', 'xlsx', 'pptx', 'pdf'] rexp = re.compile(r'.+\.({})$'.format('|'.join(ext))) def __init__(self, directory): self.directory = os.path.abspath(directory...
32.19697
74
0.499765
1,598
0.752
0
0
0
0
0
0
394
0.185412
d47e5ca5e4f767ca565d98ee56a805dbf8e7ac10
782
py
Python
test/test_wf.py
mmadsen/pytransmission
053bbd8888b229feccc784d6322f9db2cdfeabcc
[ "Apache-2.0" ]
null
null
null
test/test_wf.py
mmadsen/pytransmission
053bbd8888b229feccc784d6322f9db2cdfeabcc
[ "Apache-2.0" ]
null
null
null
test/test_wf.py
mmadsen/pytransmission
053bbd8888b229feccc784d6322f9db2cdfeabcc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015. Mark E. Madsen <mark@madsenlab.org> # # This work is licensed under the terms of the Apache Software License, Version 2.0. See the file LICENSE for details. """ Description here """ import logging as log import unittest import pytransmission.popgen.wright_fisher as wf im...
23.69697
119
0.690537
305
0.390026
0
0
0
0
0
0
306
0.391304
d4807c0cc580796693f45cc16ddbeae3f20b875e
490
py
Python
T2API/migrations/0002_auto_20180217_0548.py
hackhb18-T2/api
c42be466492d07d6451ff3145985cd8cc0927257
[ "Apache-2.0" ]
null
null
null
T2API/migrations/0002_auto_20180217_0548.py
hackhb18-T2/api
c42be466492d07d6451ff3145985cd8cc0927257
[ "Apache-2.0" ]
null
null
null
T2API/migrations/0002_auto_20180217_0548.py
hackhb18-T2/api
c42be466492d07d6451ff3145985cd8cc0927257
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.2 on 2018-02-17 05:48 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('T2API', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='device', options={'ordering': ('mac',), 'permi...
27.222222
201
0.616327
405
0.826531
0
0
0
0
0
0
227
0.463265
d482268b3a67acf7c98e550f439531564a00f5c4
6,497
py
Python
tests/test_operation_filter.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
tests/test_operation_filter.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
tests/test_operation_filter.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
import pytest import sqlalchemy as sa from sqlalchemy.dialects import postgresql as pg from jessiql import QueryObjectDict from jessiql.sainfo.version import SA_14 from jessiql.testing.insert import insert from jessiql.testing.recreate_tables import created_tables from jessiql.util import sacompat from .util.models i...
44.197279
151
0.579806
603
0.092812
0
0
6,005
0.924273
0
0
2,489
0.3831
d484862ba3e2f33977b9dfb27a2a6296e1c0eb7b
1,051
py
Python
setup.py
dykesk/gaussian-wake
d06509af9740a25e9e5be459fdc3a3644fdf609d
[ "Apache-2.0" ]
3
2017-10-21T15:32:17.000Z
2021-11-23T04:44:11.000Z
setup.py
dykesk/gaussian-wake
d06509af9740a25e9e5be459fdc3a3644fdf609d
[ "Apache-2.0" ]
3
2017-08-01T20:04:06.000Z
2019-06-24T18:21:38.000Z
setup.py
dykesk/gaussian-wake
d06509af9740a25e9e5be459fdc3a3644fdf609d
[ "Apache-2.0" ]
3
2019-07-01T19:03:06.000Z
2020-02-23T10:40:17.000Z
#!/usr/bin/env python # encoding: utf-8 from numpy.distutils.core import setup, Extension module1 = Extension('_porteagel_fortran', sources=['src/gaussianwake/gaussianwake.f90', 'src/gaussianwake/gaussianwake_bv.f90', ...
43.791667
90
0.531874
0
0
0
0
0
0
0
0
472
0.449096
d48923ca32ecdfba04756e192b86f66124d82a4a
1,473
py
Python
src/datalaunch_server/backend/run.py
mfaafm/datalaunch-server
0518b786378e8a2bc8808adbd91ae41f3f72d70d
[ "MIT" ]
null
null
null
src/datalaunch_server/backend/run.py
mfaafm/datalaunch-server
0518b786378e8a2bc8808adbd91ae41f3f72d70d
[ "MIT" ]
null
null
null
src/datalaunch_server/backend/run.py
mfaafm/datalaunch-server
0518b786378e8a2bc8808adbd91ae41f3f72d70d
[ "MIT" ]
null
null
null
import uuid import threading from datetime import datetime from .execution import RunExecution class RunBackend(object): def __init__(self, workspace): self.workspace = workspace self.db = workspace.db self.storage = workspace.storage def create_run(self, specification): run_i...
25.842105
76
0.614392
1,375
0.933469
0
0
0
0
0
0
147
0.099796
d4894d2d31e55928fd3d6801e91886e716272b3e
122
py
Python
chapter6.py
aa88bb/Introduction-to-programming-using-python
13d6b897117df3bbe7ee4b22177154874052442f
[ "MIT" ]
null
null
null
chapter6.py
aa88bb/Introduction-to-programming-using-python
13d6b897117df3bbe7ee4b22177154874052442f
[ "MIT" ]
null
null
null
chapter6.py
aa88bb/Introduction-to-programming-using-python
13d6b897117df3bbe7ee4b22177154874052442f
[ "MIT" ]
null
null
null
def addAll(n1,n2): result = 0 for i in range(n1,n2+1): result += i return result print(addAll(1,10))
15.25
28
0.565574
0
0
0
0
0
0
0
0
0
0
00f66e72c3e4bcc933d8c4833a291f52c75faf20
440
py
Python
mindhome_alpha/erpnext/www/lms/index.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/www/lms/index.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/www/lms/index.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import erpnext.education.utils as utils import frappe no_cache = 1 def get_context(context): context.education_settings = frappe.get_single("Education Settings") if not context.education_settings.enable_lms: frappe.local.flags.redirect_location = '/' raise frappe.Redirect...
27.5
69
0.820455
0
0
0
0
0
0
0
0
23
0.052273
00f6d7849b57443a7fcfc0dd2b15cbcd9d92e769
1,748
py
Python
src/800_predict_with_lightgbm.py
j20232/kaggle_earthquake
47fac5f2e8d2ad4fab82426a0b6af18b71e4b57b
[ "MIT" ]
null
null
null
src/800_predict_with_lightgbm.py
j20232/kaggle_earthquake
47fac5f2e8d2ad4fab82426a0b6af18b71e4b57b
[ "MIT" ]
null
null
null
src/800_predict_with_lightgbm.py
j20232/kaggle_earthquake
47fac5f2e8d2ad4fab82426a0b6af18b71e4b57b
[ "MIT" ]
null
null
null
"""Predict labels with lightgbm models""" import os import sys import json import pandas as pd import lightgbm as lgb from pathlib import Path import competition as cc from common import stop_watch, predict_chunk # For osx os.environ['KMP_DUPLICATE_LIB_OK'] = "True" @stop_watch def predict_with_lightgbm(): model...
34.27451
81
0.680206
0
0
0
0
1,420
0.812357
0
0
230
0.131579
00f78d4d60c5538982c1b4175030188fc17d14a3
4,218
py
Python
tests/core_plugins/tasks/test_checksum.py
modora/catstuff
7a4ea67e26774e42e90d0c71a4b2c299fe506d73
[ "MIT" ]
null
null
null
tests/core_plugins/tasks/test_checksum.py
modora/catstuff
7a4ea67e26774e42e90d0c71a4b2c299fe506d73
[ "MIT" ]
7
2017-12-16T06:16:56.000Z
2017-12-26T06:21:18.000Z
tests/core_plugins/tasks/test_checksum.py
modora/catstuff
7a4ea67e26774e42e90d0c71a4b2c299fe506d73
[ "MIT" ]
null
null
null
from nose.tools import * import tests from tests import files from catstuff.core_plugins.tasks.checksum.main import * @raises(NotImplementedError) def test_unknown_method_123(): checksum(files.empty_file, method=123) @raises(NotImplementedError) def test_unknown_method_None(): checksum(files.empty_file, m...
31.014706
152
0.710526
3,500
0.829777
0
0
542
0.128497
0
0
1,614
0.382646
00f7909565a967fdf18011834d450c60108175a8
1,782
py
Python
archive/urls.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
null
null
null
archive/urls.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
5
2020-06-09T09:28:07.000Z
2020-06-12T13:36:52.000Z
archive/urls.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distr...
34.941176
86
0.714366
0
0
0
0
0
0
0
0
1,003
0.562851
00f9ebf2f0b587c3e9e4c70a58e0e5c0b2107dc9
2,528
py
Python
scripts.python3/recover_howde_tree.py
rsharris/HowDeSBT-multi_make_bf
4f45e27a9b70a8c470f80ede086c58c2683774f9
[ "MIT" ]
null
null
null
scripts.python3/recover_howde_tree.py
rsharris/HowDeSBT-multi_make_bf
4f45e27a9b70a8c470f80ede086c58c2683774f9
[ "MIT" ]
null
null
null
scripts.python3/recover_howde_tree.py
rsharris/HowDeSBT-multi_make_bf
4f45e27a9b70a8c470f80ede086c58c2683774f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Recover the tree relationship from a howde tree hierarchy file. """ from sys import argv,stdin,stdout,stderr,exit from howde_tree_parse import read_howde_tree_file def usage(s=None): message = """ usage: cat howde_tree_file | recover_howde_tree [options] --show=preorder ...
29.395349
81
0.627373
0
0
0
0
0
0
0
0
1,224
0.484177
00fdc14d8d6651a586f8e493f4b200f6fad1f8e4
2,641
py
Python
feed.py
UphillD/Twitter-Feed
9d48534f70a7522c0e06c2e0c51dd3b476eacbed
[ "MIT" ]
null
null
null
feed.py
UphillD/Twitter-Feed
9d48534f70a7522c0e06c2e0c51dd3b476eacbed
[ "MIT" ]
null
null
null
feed.py
UphillD/Twitter-Feed
9d48534f70a7522c0e06c2e0c51dd3b476eacbed
[ "MIT" ]
null
null
null
import json import sys import tkinter from config import * from imagefy import * from twitter import * # Get old rules old_rules = get_rules() print('Old rules received.') # Delete old rules delete_response = delete_rules(old_rules) print('Old rules deleted.') # Generate new rules query_rules = generate_rules() p...
29.674157
117
0.706929
0
0
0
0
0
0
0
0
879
0.332828
00ff0ed92617aeee4a59104327ee5016ba50a470
3,632
py
Python
tests/call_error_test.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
1,526
2017-09-15T18:49:40.000Z
2021-01-17T16:04:12.000Z
tests/call_error_test.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
682
2017-09-11T17:43:12.000Z
2021-01-17T05:26:26.000Z
tests/call_error_test.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
111
2017-09-15T23:21:37.000Z
2021-01-01T14:45:35.000Z
import pickle import sys import unittest2 import mitogen.core import testlib import plain_old_module class ConstructorTest(testlib.TestCase): klass = mitogen.core.CallError def test_string_noargs(self): e = self.klass('%s%s') self.assertEquals(e.args[0], '%s%s') self.assertTrue(isi...
31.582609
79
0.632434
3,469
0.955121
0
0
0
0
0
0
325
0.089482
2e076b3f8694910f0ea4b0f6d1af437799ab9b18
288
py
Python
mpsp_main.py
GeoCIA/MPSP
2ccc8b82d619d52e7248e06999cfd95368608788
[ "Apache-2.0" ]
null
null
null
mpsp_main.py
GeoCIA/MPSP
2ccc8b82d619d52e7248e06999cfd95368608788
[ "Apache-2.0" ]
null
null
null
mpsp_main.py
GeoCIA/MPSP
2ccc8b82d619d52e7248e06999cfd95368608788
[ "Apache-2.0" ]
null
null
null
from mpsp import FLIGHT, GROUNDTEST from mpsp.mpsp import MPSP import pyb switch = pyb.Switch() pyb.LED(3).on() pyb.LED(1).on() pyb.delay(4000) pyb.LED(3).off() pyb.LED(1).off() if switch(): mode = FLIGHT else: mode = GROUNDTEST pyb.delay(1000) m = MPSP(mode) m.init() m.run()
13.714286
35
0.666667
0
0
0
0
0
0
0
0
0
0
2e096b561d4731bab44bbf1d9a49e8a4523798e5
3,027
py
Python
tests/policies/discrete_random/test_discrete_random_policy.py
AGI-Labs/continual_rl
bcf17d879e8a983340be233ff8f740c424d0f303
[ "MIT" ]
19
2021-07-27T05:20:09.000Z
2022-02-27T07:12:05.000Z
tests/policies/discrete_random/test_discrete_random_policy.py
AGI-Labs/continual_rl
bcf17d879e8a983340be233ff8f740c424d0f303
[ "MIT" ]
2
2021-11-05T07:36:50.000Z
2022-03-11T00:21:50.000Z
tests/policies/discrete_random/test_discrete_random_policy.py
AGI-Labs/continual_rl
bcf17d879e8a983340be233ff8f740c424d0f303
[ "MIT" ]
3
2021-10-20T06:04:35.000Z
2022-03-06T22:59:36.000Z
import os from pathlib import Path from continual_rl.experiments.experiment import Experiment from continual_rl.experiments.tasks.image_task import ImageTask from continual_rl.policies.discrete_random.discrete_random_policy_config import DiscreteRandomPolicyConfig from continual_rl.policies.discrete_random.discrete_ran...
44.514706
108
0.693426
2,665
0.88041
0
0
0
0
0
0
838
0.276842
2e09d3f8406803736c7eea8ba0649dc30e4e8c24
47,697
py
Python
app/dnt_ui.py
fatihy101/detect-and-track
d0a20a1e282749f144af8421ea58315cdd5aaddf
[ "MIT" ]
null
null
null
app/dnt_ui.py
fatihy101/detect-and-track
d0a20a1e282749f144af8421ea58315cdd5aaddf
[ "MIT" ]
null
null
null
app/dnt_ui.py
fatihy101/detect-and-track
d0a20a1e282749f144af8421ea58315cdd5aaddf
[ "MIT" ]
1
2021-09-14T15:04:34.000Z
2021-09-14T15:04:34.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '../GUI Files/ui_main.ui' # # Created by: PyQt5 UI code generator 5.15.1 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import...
60.915709
120
0.565948
47,353
0.992351
0
0
0
0
0
0
7,072
0.148204
2e0a3372e676a2f27affab3a884dcb6430bd09b2
8,600
py
Python
autograd_fin.py
newcodevelop/DL-Adventures
76d4fcaf7c7b53cb1a2241a03d6d32bcd4406e92
[ "MIT" ]
null
null
null
autograd_fin.py
newcodevelop/DL-Adventures
76d4fcaf7c7b53cb1a2241a03d6d32bcd4406e92
[ "MIT" ]
null
null
null
autograd_fin.py
newcodevelop/DL-Adventures
76d4fcaf7c7b53cb1a2241a03d6d32bcd4406e92
[ "MIT" ]
1
2020-08-04T15:22:37.000Z
2020-08-04T15:22:37.000Z
# -*- coding: utf-8 -*- """autograd_fin.ipynb Automatically generated by Colaboratory. """ class Value: """ stores a value and its gradient """ def __init__(self, data, _children=(), _op=''): self.data = data self.grad = 0 # internal variables used for autograd graph construction ...
28.85906
182
0.581279
6,665
0.775
0
0
0
0
0
0
1,493
0.173605
2e0a911d4697c155124ce5d20e061cde131c6b5a
392
py
Python
tests/test_aws_lambda.py
vyahello/pep8-checker
fe5d0746201d3a26ec2ae0c9c4a70203700af1f0
[ "MIT" ]
3
2020-08-09T15:17:44.000Z
2022-03-19T22:16:25.000Z
tests/test_aws_lambda.py
vyahello/pep8-checker
fe5d0746201d3a26ec2ae0c9c4a70203700af1f0
[ "MIT" ]
4
2020-08-12T21:25:16.000Z
2021-04-17T10:57:57.000Z
tests/test_aws_lambda.py
vyahello/pep8-checker
fe5d0746201d3a26ec2ae0c9c4a70203700af1f0
[ "MIT" ]
1
2020-12-17T10:06:37.000Z
2020-12-17T10:06:37.000Z
from checker.remote import call_bad_event, call_good_event, lambda_handler from tests.markers import unit pytestmark = unit def test_lambda_handler() -> None: assert not lambda_handler(event={'code': 'print("hello world")'})['body'] def test_call_bad_event() -> None: assert call_bad_event()['body'] def t...
23.058824
77
0.734694
0
0
0
0
0
0
0
0
46
0.117347
2e0b3ccedd271154d067c56ea6b56d4912fc2b1a
331
py
Python
hsf_website_helpers/util/repo.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
hsf_website_helpers/util/repo.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
hsf_website_helpers/util/repo.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
from pathlib import Path def is_website_folder(path: Path): """Checks if path likely points at the hsf.github.io repository""" existing_subfolders = [".git", "_profiles", "_data"] for es in existing_subfolders: if not (path / es).is_dir(): print(path, es) return False r...
27.583333
70
0.634441
0
0
0
0
0
0
0
0
90
0.271903
2e0d985294a67db17081fc1ea702be81b2ba4375
355
py
Python
poo/class/myclass.py
alfmorais/design-patterns-python
0bf12bd762a310d705a11979e4d025754e388c0c
[ "MIT" ]
null
null
null
poo/class/myclass.py
alfmorais/design-patterns-python
0bf12bd762a310d705a11979e4d025754e388c0c
[ "MIT" ]
null
null
null
poo/class/myclass.py
alfmorais/design-patterns-python
0bf12bd762a310d705a11979e4d025754e388c0c
[ "MIT" ]
null
null
null
class MyClass: static = "Alfredo" def __init__(self, state) -> None: self.state = state def print_static(self): print(self.static) @classmethod def change_static(cls): MyClass.static = "Programador" obj1 = MyClass(True) obj2 = MyClass(False) obj1.change_static() obj1....
15.434783
38
0.650704
246
0.692958
0
0
79
0.222535
0
0
22
0.061972
2e0eab8007a7e1a283630c4834f656d34752ec84
2,809
py
Python
hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/services.py
qiangzai00001/hio-prj
060ff97fe21093b1369db78109d5b730b2b181c8
[ "MIT" ]
null
null
null
hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/services.py
qiangzai00001/hio-prj
060ff97fe21093b1369db78109d5b730b2b181c8
[ "MIT" ]
null
null
null
hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/services.py
qiangzai00001/hio-prj
060ff97fe21093b1369db78109d5b730b2b181c8
[ "MIT" ]
null
null
null
# # Chris Lumens <clumens@redhat.com> # # Copyright 2007 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. This program is distributed in the hope that it # will be usef...
39.013889
125
0.664649
1,692
0.60235
0
0
0
0
0
0
1,177
0.41901
2e0f191ffd0baa303d922ca0110a4a273412b1e0
65
py
Python
gen/tests/__init__.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
2,577
2016-04-19T09:57:39.000Z
2022-03-17T10:34:25.000Z
gen/tests/__init__.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
7,410
2016-04-19T21:19:31.000Z
2022-01-21T20:14:21.000Z
gen/tests/__init__.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
625
2016-04-19T10:09:35.000Z
2022-03-16T10:53:45.000Z
import pytest pytest.register_assert_rewrite('gen.tests.utils')
16.25
49
0.830769
0
0
0
0
0
0
0
0
17
0.261538
2e0f83a5679b19aa17f9519619b150c41b6a8ad9
8,529
py
Python
ml-service/ml-model-dynamic-hosting/main.py
mathieu/decisions-on-ml
b0283851ae0db538c1f424bcba8bcd15d4a603da
[ "Apache-2.0" ]
null
null
null
ml-service/ml-model-dynamic-hosting/main.py
mathieu/decisions-on-ml
b0283851ae0db538c1f424bcba8bcd15d4a603da
[ "Apache-2.0" ]
1
2020-06-04T15:59:04.000Z
2020-06-04T15:59:04.000Z
ml-service/ml-model-dynamic-hosting/main.py
mathieu/decisions-on-ml
b0283851ae0db538c1f424bcba8bcd15d4a603da
[ "Apache-2.0" ]
3
2020-06-04T16:28:31.000Z
2021-11-05T17:11:55.000Z
#!flask/bin/python import os import uuid from flask import Flask, jsonify from flask import request, jsonify from flask_restplus import Api, Resource, fields from flask_restplus import reqparse import pandas as pd import numpy as np from joblib import load import pickle import json import requests # # Model register...
35.390041
178
0.637941
4,304
0.504631
0
0
4,429
0.519287
0
0
2,846
0.333685
2e14507604ab4d37b2d654a12f456017f680cf04
12,466
py
Python
src/train_val.py
pzzhang/sasa
e663d7666e85de8e5a7a664a6b37d988008ab007
[ "MIT" ]
1
2020-01-28T15:22:16.000Z
2020-01-28T15:22:16.000Z
src/train_val.py
pzzhang/sasa
e663d7666e85de8e5a7a664a6b37d988008ab007
[ "MIT" ]
null
null
null
src/train_val.py
pzzhang/sasa
e663d7666e85de8e5a7a664a6b37d988008ab007
[ "MIT" ]
1
2021-06-10T05:04:24.000Z
2021-06-10T05:04:24.000Z
# Copyright (c) Microsoft. All rights reserved. import time import logging import torch from rnndata import repackage_hidden, clone_hidden, get_batch from utils import get_lr_mom, AverageMeter def compute_accuracy(output, target, topk=(1,)): """Computes the precision@k for the specified values of k""" with t...
40.872131
106
0.572437
0
0
0
0
0
0
0
0
2,374
0.190438
2e15b17caf196545a558db1448e485770a951b9c
10,449
py
Python
venv/Lib/site-packages/PySide2/examples/xmlpatterns/schema/schema_rc.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PySide2/examples/xmlpatterns/schema/schema_rc.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PySide2/examples/xmlpatterns/schema/schema_rc.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created: Thu Sep 5 07:07:53 2019 # by: The Resource Compiler for PySide2 (Qt v5.13.1) # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore qt_resource_data = b"\ \x00\x00\x015\ <\ contact>\x0d\x0a <g\ ivenName>John</g\ ivenName...
22.137712
96
0.616136
0
0
0
0
0
0
0
0
10,089
0.965547
2e19bc4ef8e76688f627aac760712755f2851717
114
py
Python
fcd_torch/__init__.py
hadim/fcd-torch
71fe153c16ece9b010efd52ed5490973a3b36d9e
[ "MIT" ]
30
2019-02-07T17:41:10.000Z
2022-03-30T08:14:24.000Z
fcd_torch/__init__.py
AIDrug/fcd_torch
a5a966897b89831c596f326df0ba3e151c4cc434
[ "MIT" ]
null
null
null
fcd_torch/__init__.py
AIDrug/fcd_torch
a5a966897b89831c596f326df0ba3e151c4cc434
[ "MIT" ]
8
2019-04-08T21:40:27.000Z
2022-02-20T07:58:05.000Z
from .fcd import FCD from .fcd import calculate_frechet_distance __all__ = ['FCD', 'calculate_frechet_distance']
22.8
47
0.798246
0
0
0
0
0
0
0
0
33
0.289474
2e1a6d385104b92cdf4c3b65e8d847fac4046e9c
2,441
py
Python
play.py
apgeorg/rl-cartpole-balancer
673c934326c90982460eb63543333334af1390a9
[ "MIT" ]
1
2018-12-24T13:49:32.000Z
2018-12-24T13:49:32.000Z
play.py
apgeorg/rl-cartpole-balancer
673c934326c90982460eb63543333334af1390a9
[ "MIT" ]
null
null
null
play.py
apgeorg/rl-cartpole-balancer
673c934326c90982460eb63543333334af1390a9
[ "MIT" ]
null
null
null
import gym import numpy as np from keras.models import Sequential from keras.layers import Dense from keras.optimizers import Adam from agents.dqn import DQN def create_model(states, actions): model = Sequential() model.add(Dense(24, input_dim=states, activation='relu')) model.add(Dense(24, activation='rel...
39.370968
119
0.606719
0
0
0
0
0
0
0
0
281
0.115117
2e1ba8922cf58bb90287d078e5a54ad5ae1af3bf
46,505
py
Python
Database/DataBaseGenerator.py
matteoNunz/ImmunoPoli
4a6688cc70715feefd9ed71e13aafa90b45a9a62
[ "MIT" ]
null
null
null
Database/DataBaseGenerator.py
matteoNunz/ImmunoPoli
4a6688cc70715feefd9ed71e13aafa90b45a9a62
[ "MIT" ]
null
null
null
Database/DataBaseGenerator.py
matteoNunz/ImmunoPoli
4a6688cc70715feefd9ed71e13aafa90b45a9a62
[ "MIT" ]
2
2021-12-22T09:07:09.000Z
2021-12-24T19:27:26.000Z
""" Date: 28/10/2021 Neo4J generator for ImmunoPoli project """ import neo4j as nj import App.PlotDBStructure as ps from random import randint, random from enum import IntEnum import datetime MAX_CIVIC_NUMBER = 100 PHONE_NUMBER_LENGTH = 10 MAX_NUMBER_OF_FAMILY_MEMBER = 5 NUMBER_OF_FAMILY = 150 MAX_NUMBER_OF_CONTAC...
32.227997
130
0.606666
1,385
0.029782
0
0
646
0.013891
0
0
19,698
0.423567
2e1c8db5594b84531a71f4ac6141cb6cebad50e7
1,073
py
Python
code/DNN/MiniFramework/HyperParameters_4_1.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
3
2021-05-25T10:18:23.000Z
2022-02-09T08:55:14.000Z
code/DNN/MiniFramework/HyperParameters_4_1.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
null
null
null
code/DNN/MiniFramework/HyperParameters_4_1.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-# ''' # Name: HyperParameters_4_0 # Description: # Author: super # Date: 2020/6/2 ''' from MiniFramework.EnumDef_4_0 import * # this class is for two-layer NN only class HyperParameters_4_1(object): def __init__(self, eta=0.1, max_epoch=10000, batch_size=5, ...
32.515152
136
0.59739
860
0.801491
0
0
0
0
0
0
246
0.229264
2e1ccd54ccad1613ed746053417cd748b2d33875
192
py
Python
rvpvp/isa/rvv/vmv_x_s.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
5
2021-05-10T09:57:00.000Z
2021-10-05T14:39:20.000Z
rvpvp/isa/rvv/vmv_x_s.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
null
null
null
rvpvp/isa/rvv/vmv_x_s.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
1
2021-05-14T20:24:11.000Z
2021-05-14T20:24:11.000Z
from ...isa.inst import * import numpy as np class Vmv_x_s(Inst): name = 'vmv.x.s' # vmv.x.s rd, vs2 # x[rd] = vs2[0] (vs1=0) def golden(self): return self['vs2'][0]
19.2
29
0.546875
145
0.755208
0
0
0
0
0
0
56
0.291667
2e1d901364494765f2ea9f357679476f51d416cd
584
py
Python
recurce_13/i_conference_lovers_v2.py
master-cim/algorithm
a57f473ceb32b96240989e31ac33154e55c00724
[ "MIT" ]
1
2022-03-31T07:30:53.000Z
2022-03-31T07:30:53.000Z
recurce_13/i_conference_lovers_v2.py
master-cim/algorithm
a57f473ceb32b96240989e31ac33154e55c00724
[ "MIT" ]
null
null
null
recurce_13/i_conference_lovers_v2.py
master-cim/algorithm
a57f473ceb32b96240989e31ac33154e55c00724
[ "MIT" ]
2
2022-03-04T09:42:03.000Z
2022-03-30T14:51:32.000Z
# I. Любители конференций # ID успешной посылки 66248195 from collections import Counter def conference_lovers(id_university, k): number_participant = Counter(id_university) k_max = number_participant.most_common()[0:k:] result = [univer[0] for univer in k_max] print(' '.join(map(str, result))) def ...
25.391304
73
0.693493
0
0
0
0
0
0
0
0
102
0.165049
2e1feda997e60649764860b6a4e1f4de31bd698d
2,327
py
Python
app/routes/user.py
Axtell-io/Axtell
2f660450ca2eb70cc0520ad970c9aabdc65a3bb7
[ "MIT" ]
15
2018-04-20T14:56:59.000Z
2021-03-31T20:16:29.000Z
app/routes/user.py
Axtell/Axtell
2f660450ca2eb70cc0520ad970c9aabdc65a3bb7
[ "MIT" ]
148
2018-04-17T01:47:44.000Z
2020-05-14T13:24:03.000Z
app/routes/user.py
Axtell-io/Axtell
2f660450ca2eb70cc0520ad970c9aabdc65a3bb7
[ "MIT" ]
7
2018-06-01T11:15:18.000Z
2020-08-14T04:24:50.000Z
from app.helpers.render import render_template, render_error from app.controllers import user from app.models.User import User, UserAuthToken from app.server import server from flask import g, request, redirect, url_for, abort from app.session.csrf import csrf_protected # noinspection PyUnusedLocal @server.route("/...
33.242857
127
0.728406
0
0
0
0
2,004
0.861195
0
0
528
0.226902
2e20d0f7055a8efeb21c1bd0269a9e0a1afa7cf4
8,616
py
Python
captioning/utils/rewards.py
YapingZ/News-image-caption
fcccf51bbe5607adbf71c1da8ecdc6693555993f
[ "Apache-2.0" ]
null
null
null
captioning/utils/rewards.py
YapingZ/News-image-caption
fcccf51bbe5607adbf71c1da8ecdc6693555993f
[ "Apache-2.0" ]
null
null
null
captioning/utils/rewards.py
YapingZ/News-image-caption
fcccf51bbe5607adbf71c1da8ecdc6693555993f
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import time from collections import OrderedDict import torch import sys try: sys.path.append("cider") from pyciderevalcap.ciderD.ciderD import CiderD from pyciderevalcap.cider.ci...
37.298701
173
0.67572
0
0
0
0
0
0
0
0
983
0.11409
2e2279b1f99ff28aa158f6954e55b80b12e12f93
1,984
py
Python
util/gps_handler/gps_fence_handler.py
linusluotsinen/RPiAntiTheft
d76782b5064f7e540a4013fbf0e0ea26d989e2ce
[ "MIT" ]
null
null
null
util/gps_handler/gps_fence_handler.py
linusluotsinen/RPiAntiTheft
d76782b5064f7e540a4013fbf0e0ea26d989e2ce
[ "MIT" ]
null
null
null
util/gps_handler/gps_fence_handler.py
linusluotsinen/RPiAntiTheft
d76782b5064f7e540a4013fbf0e0ea26d989e2ce
[ "MIT" ]
null
null
null
#from gps_handler import GpsHandler import math class GpsFenceHandler: def __init__(self, settings): self.settings = settings self.settings.load() if self.settings.get_data() is None: #gpsh = GpsHandler() #gps_data = gpsh.get_gps_data() default_settings =...
31.492063
113
0.5625
1,917
0.96623
0
0
0
0
0
0
430
0.216734
2e23486d7d857a99db4d71fd355e0cdfb7001603
219
py
Python
TeensyFirmware/flash.py
microsoft/ada
4bb55acd6e34c45989ad69c1009b0fd571d10640
[ "MIT" ]
1
2022-02-18T01:10:51.000Z
2022-02-18T01:10:51.000Z
TeensyFirmware/flash.py
microsoft/ada
4bb55acd6e34c45989ad69c1009b0fd571d10640
[ "MIT" ]
null
null
null
TeensyFirmware/flash.py
microsoft/ada
4bb55acd6e34c45989ad69c1009b0fd571d10640
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO # to use Raspberry Pi board pin numbers GPIO.setmode(GPIO.BOARD) # set up the GPIO channels - one input and one output GPIO.setup(7, GPIO.OUT) GPIO.output(7, GPIO.LOW) GPIO.setup(7, GPIO.IN)
21.9
53
0.73516
0
0
0
0
0
0
0
0
92
0.420091
2e2601a57578f079de2951387b1289c07c01b38b
10,894
py
Python
build/lib.linux-x86_64-2.7/ryu/tests/unit/packet/test_packet.py
sharat910/my-ryu
d2994571e3e5fad58433044a3ca8a5b40a413c87
[ "Apache-2.0" ]
2
2019-05-06T01:11:37.000Z
2020-10-09T08:24:15.000Z
ryu/tests/unit/packet/test_packet.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
null
null
null
ryu/tests/unit/packet/test_packet.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
1
2018-07-12T20:08:53.000Z
2018-07-12T20:08:53.000Z
# Copyright (C) 2012 Nippon Telegraph and Telephone Corporation. # # 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 appli...
29.284946
73
0.523224
9,960
0.914265
0
0
0
0
0
0
1,882
0.172756
2e266d63f6512f29cea6db3e7a1e786d0b045c0b
8,739
py
Python
models/torch_conv_train.py
Devjiu/Quntization
60853485525a5382cde7824b0b09e55e2e264e2f
[ "MIT" ]
null
null
null
models/torch_conv_train.py
Devjiu/Quntization
60853485525a5382cde7824b0b09e55e2e264e2f
[ "MIT" ]
null
null
null
models/torch_conv_train.py
Devjiu/Quntization
60853485525a5382cde7824b0b09e55e2e264e2f
[ "MIT" ]
null
null
null
import itertools import torch import torchvision import torchvision.transforms as transforms import matplotlib.pyplot as plt device = torch.device("cpu") transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]) trainset = torchvision.datasets.CIFAR10(root='./dat...
35.962963
115
0.620323
1,972
0.225655
0
0
955
0.10928
0
0
3,868
0.442614
2e2680be29a37e0471952ff1c48d95daa56f74a6
4,738
py
Python
src/dispatch/job/views.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
11
2021-05-04T03:15:20.000Z
2022-02-16T07:44:16.000Z
src/dispatch/job/views.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
4
2021-06-21T11:12:37.000Z
2021-06-29T11:54:18.000Z
src/dispatch/job/views.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
2
2021-05-05T00:42:44.000Z
2021-05-10T12:51:58.000Z
from typing import List from fastapi import APIRouter, BackgroundTasks, Depends, HTTPException, Query from sqlalchemy.orm import Session from dispatch.enums import Visibility from dispatch.auth.models import DispatchUser from dispatch.auth.service import get_current_user from dispatch.database import get_db, search_f...
30.567742
93
0.691009
0
0
0
0
4,181
0.88244
0
0
1,116
0.235542
2e286f4bba6bc269eb129fff803ce6e3c742ed75
11,451
py
Python
dashboard/dashboard.py
leap-solutions-asia/auto-scaling
be6a3e743be5ee57d5c6a5a35578a44f07751fe5
[ "MIT" ]
null
null
null
dashboard/dashboard.py
leap-solutions-asia/auto-scaling
be6a3e743be5ee57d5c6a5a35578a44f07751fe5
[ "MIT" ]
23
2019-03-07T08:05:36.000Z
2019-10-11T10:37:35.000Z
dashboard/dashboard.py
leap-solutions-asia/auto-scaling
be6a3e743be5ee57d5c6a5a35578a44f07751fe5
[ "MIT" ]
3
2019-08-09T05:46:35.000Z
2020-01-23T10:12:29.000Z
import os import re import pickle from flask import Flask, render_template, url_for, flash, redirect, session from forms import SettingsForm, CredentialForm, EditCredentialForm, EditSettingsForm from CloudStackApiClient import CloudStackApiClient from CloudStackConfig import CloudStackConfig, cloudstack_file from tim...
37.917219
120
0.656537
0
0
0
0
10,791
0.942363
0
0
2,029
0.17719
2e2918459530001385052c20f48317cb1c6bed76
6,679
py
Python
modules/gitbox/files/asfgit/hooks/ghactions.py
isabella232/infrastructure-puppet
5fcb3429d47688b605c6b9f33e453c639af0d20c
[ "Apache-2.0" ]
121
2015-01-23T20:42:14.000Z
2022-02-28T23:36:46.000Z
modules/gitbox/files/asfgit/hooks/ghactions.py
isabella232/infrastructure-puppet
5fcb3429d47688b605c6b9f33e453c639af0d20c
[ "Apache-2.0" ]
206
2015-01-01T00:34:12.000Z
2022-01-20T20:15:59.000Z
modules/gitbox/files/asfgit/hooks/ghactions.py
isabella232/infrastructure-puppet
5fcb3429d47688b605c6b9f33e453c639af0d20c
[ "Apache-2.0" ]
167
2015-04-15T21:13:19.000Z
2021-11-07T21:16:59.000Z
#!/usr/local/bin/python import fnmatch import io import os import re import subprocess import sys import asfpy.messaging import yaml import yaml.constructor # LDAP to CNAME mappings for some projects WSMAP = { "whimsy": "whimsical", "empire": "empire-db", "webservices": "ws", "infrastructure": "infra...
36.697802
121
0.590957
0
0
525
0.078605
0
0
0
0
2,508
0.375505
2e2aacef2305795c5f2c9a5115b0656d332fd57e
453
py
Python
authentications/migrations/0011_auto_20210216_0547.py
chapimenge3/CSEC-Website
ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05
[ "Apache-2.0" ]
null
null
null
authentications/migrations/0011_auto_20210216_0547.py
chapimenge3/CSEC-Website
ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05
[ "Apache-2.0" ]
null
null
null
authentications/migrations/0011_auto_20210216_0547.py
chapimenge3/CSEC-Website
ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-16 05:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('authentications', '0010_user_phone'), ] operations = [ migrations.AlterField( model_name='user', name='phone', ...
23.842105
120
0.620309
360
0.794702
0
0
0
0
0
0
116
0.256071
2e2bfa67b2ab4ebf4f85d7108805fb44872b7c41
502
py
Python
backend/calorie_find/calories/serializers.py
banjocat/calorie-find
9b0314e3c3a5b4b4b4607ec61728e14988c8fd05
[ "BSD-2-Clause" ]
2
2016-08-10T19:54:02.000Z
2016-10-20T00:22:19.000Z
backend/calorie_find/calories/serializers.py
banjocat/calorie-find
9b0314e3c3a5b4b4b4607ec61728e14988c8fd05
[ "BSD-2-Clause" ]
9
2016-07-10T15:07:27.000Z
2017-01-17T03:39:41.000Z
backend/calorie_find/calories/serializers.py
banjocat/calorie-find
9b0314e3c3a5b4b4b4607ec61728e14988c8fd05
[ "BSD-2-Clause" ]
null
null
null
from rest_framework import serializers from calories.models import Food class FoodSerializer(serializers.ModelSerializer): class Meta: fields = ('pk', 'name', 'calories') model = Food class FoodListSerializer(serializers.Serializer): foods = serializers.ListField(child=FoodSerializer(many=Tr...
21.826087
66
0.701195
421
0.838645
0
0
0
0
0
0
64
0.12749
2e2f92d8667d4eff648ffa790d95599d6434e9f2
1,606
py
Python
user_auth/views.py
miswo/tweet-only-client
649c0c621e84f726fc8c1fc51725c74b6f7dc8ad
[ "MIT" ]
null
null
null
user_auth/views.py
miswo/tweet-only-client
649c0c621e84f726fc8c1fc51725c74b6f7dc8ad
[ "MIT" ]
3
2020-02-11T23:17:55.000Z
2021-06-10T20:54:07.000Z
user_auth/views.py
miswo/tweet-only-client
649c0c621e84f726fc8c1fc51725c74b6f7dc8ad
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from social_django.models import UserSocialAuth import tweepy, os ''' from djangoworks.settings import isDebug if isDebug() == True: try: from djangoworks.configs import twitter SOCIAL_AUTH_TWITT...
29.740741
98
0.651308
0
0
0
0
999
0.622042
0
0
508
0.316314
2e2fae2968970fcc70433023daf34a9d9e155d6c
74
py
Python
lintuasema-backend/application/db.py
luomus/lintuasemasovellus
966546795f5e6f0efd5b5d03c08577c788dba241
[ "MIT" ]
null
null
null
lintuasema-backend/application/db.py
luomus/lintuasemasovellus
966546795f5e6f0efd5b5d03c08577c788dba241
[ "MIT" ]
32
2021-02-03T12:17:33.000Z
2021-05-02T16:38:13.000Z
lintuasema-backend/application/db.py
luomus/lintuasemasovellus
966546795f5e6f0efd5b5d03c08577c788dba241
[ "MIT" ]
1
2021-04-18T17:26:03.000Z
2021-04-18T17:26:03.000Z
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() prefix = 'v2_'
14.8
39
0.77027
0
0
0
0
0
0
0
0
5
0.067568
2e307b91132870572d536e2f42552febf7371a45
646
py
Python
configs/hyperparameters.py
hyungkwonko/PTI
5c804a9fc75028cede80b187c0def28521f2a331
[ "MIT" ]
2
2021-08-01T08:05:15.000Z
2021-08-01T08:11:07.000Z
configs/hyperparameters.py
hyungkwonko/PTI
5c804a9fc75028cede80b187c0def28521f2a331
[ "MIT" ]
null
null
null
configs/hyperparameters.py
hyungkwonko/PTI
5c804a9fc75028cede80b187c0def28521f2a331
[ "MIT" ]
1
2021-08-19T10:42:56.000Z
2021-08-19T10:42:56.000Z
## Architechture lpips_type = 'vgg' first_inv_type = 'w' optim_type = 'adam' ## Locality regularization latent_ball_num_of_samples = 1 locality_regularization_interval = 1 use_locality_regularization = False regulizer_l2_lambda = 0.1 regulizer_lpips_lambda = 0.1 regulizer_alpha = 30 ## Loss pt_l1_lambda = 1 pt_l2_lam...
19.575758
36
0.78483
0
0
0
0
0
0
0
0
86
0.133127
2e312f7a9a86214613e667e937b3317c7a3d0227
19,323
py
Python
setup-es/sample_data.py
swarmee/api-firewall-4-es
5830bb13c0eee1bc4d08700415e221020374699b
[ "MIT" ]
null
null
null
setup-es/sample_data.py
swarmee/api-firewall-4-es
5830bb13c0eee1bc4d08700415e221020374699b
[ "MIT" ]
null
null
null
setup-es/sample_data.py
swarmee/api-firewall-4-es
5830bb13c0eee1bc4d08700415e221020374699b
[ "MIT" ]
null
null
null
sample_data = { "role": [{ "roleType": "beneficiaryCustomer", "party": [{ "partyType": "individual", "account": [{ "network": "swift", "institutionName": "Westpac Banking Corporation", "institutionCode": "WBC...
42.375
87
0.205817
0
0
0
0
0
0
0
0
4,851
0.251048
2e346baa1e8905675293c0be9900be1c2daedaec
458
py
Python
codigo_Arduino/DesdeConsola.py
Mik3Mon/AnalisisAlgoritmos
95b739b22ab2fa240df0373ef89423286399a65e
[ "MIT" ]
null
null
null
codigo_Arduino/DesdeConsola.py
Mik3Mon/AnalisisAlgoritmos
95b739b22ab2fa240df0373ef89423286399a65e
[ "MIT" ]
null
null
null
codigo_Arduino/DesdeConsola.py
Mik3Mon/AnalisisAlgoritmos
95b739b22ab2fa240df0373ef89423286399a65e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Dec 9 22:11:56 2021 @author: Mike """ import serial import time arduino = serial.Serial("COM2", 9600) time.sleep(2) print("Presione 1 para mandar y 2 para apagar: ") while 1: datousuario = input() if datousuario == "1": arduino.write(b'34.23;34.23;45.22')...
18.32
49
0.561135
0
0
0
0
0
0
0
0
171
0.373362
2e34be18feae223399713fa8f385c93dcf5e3598
1,240
py
Python
python_MA1/day_12.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_MA1/day_12.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_MA1/day_12.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Jun 1 09:15:37 2019 @author: athreya """ #1 def tax(bill): """Adds 8% tax to a restaurant bill.""" bill *= 1.08 print ("With tax: %f" % bill) return bill #2 def tip(bill): """Adds 15% tip to a restaurant bill.""" bill *= 1.15 print ("Wi...
17.464789
67
0.619355
0
0
0
0
0
0
0
0
438
0.353226
2e3632925dd735d69a88299995bdc48bd8030b27
50,571
py
Python
apps/establishment_system/views.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
4
2015-01-29T17:17:26.000Z
2021-03-03T08:17:03.000Z
apps/establishment_system/views.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
null
null
null
apps/establishment_system/views.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
1
2015-09-22T08:35:26.000Z
2015-09-22T08:35:26.000Z
# -*- encoding: utf-8 -*- """ Views: Encontramos todas las vistas del sistema de establecimientos. @author Camilo Ramírez @contact camilolinchis@gmail.com camilortte@hotmail.com @camilortte on Twitter @copyright Copyright 2014-2015, RecomendadorUD @lic...
38.109269
142
0.582112
45,015
0.889695
0
0
2,877
0.056862
0
0
17,347
0.342853
2e365b42aa11cbe15a9c00e9f63e614ec75483ec
11,547
py
Python
src/simulations/tests/simulator_test.py
PrivacyAmp/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
20
2020-03-30T22:39:32.000Z
2022-03-09T06:32:14.000Z
src/simulations/tests/simulator_test.py
OpenMeasurement/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
41
2020-05-01T01:09:38.000Z
2021-10-15T17:53:31.000Z
src/simulations/tests/simulator_test.py
OpenMeasurement/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
8
2020-06-18T22:33:14.000Z
2021-05-03T13:39:12.000Z
# Copyright 2020 The Private Cardinality Estimation Framework Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
38.49
104
0.71603
9,177
0.794752
77
0.006668
247
0.021391
0
0
1,182
0.102364
2e37053311db32a5646a09d99f05bb77ba1c6b68
326
py
Python
e3.py
astaffes/lab8
224538d81bb408cd809e09c236a0d044cdbb20a3
[ "MIT" ]
null
null
null
e3.py
astaffes/lab8
224538d81bb408cd809e09c236a0d044cdbb20a3
[ "MIT" ]
null
null
null
e3.py
astaffes/lab8
224538d81bb408cd809e09c236a0d044cdbb20a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == '__main__': a = () print(type(a)) b = tuple() print(type(b)) a = (1, 2, 3, 4, 5) print(type(a)) print(a) a = tuple([1, 2, 3, 4]) print(a) not_a_tuple = (42) tpl = (42,) print(type(not_a_tuple)) print(type(...
18.111111
28
0.48773
0
0
0
0
0
0
0
0
55
0.168712
2e3ad4d7cf10b8564049ab45fe9d5fd486d4fd14
150
py
Python
my_utils/send_mail.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
null
null
null
my_utils/send_mail.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
12
2020-02-12T01:14:42.000Z
2022-03-11T23:54:43.000Z
my_utils/send_mail.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # @Time : 2019/7/30 9:00 PM # @Author : __wutonghe__ from django.core.mail import send_mail def send_email(): pass
13.636364
38
0.626667
0
0
0
0
0
0
0
0
77
0.513333
2e3dd25cc4a3b17159c12055b5e0a8180fcfc16f
158
py
Python
j4j_spawner/file_loads.py
FZJ-JSC/jupyter-jsc-jupyterhub-collection
3fbb83da6e356df57bbdd24269157944f7fcd2a5
[ "BSD-3-Clause" ]
null
null
null
j4j_spawner/file_loads.py
FZJ-JSC/jupyter-jsc-jupyterhub-collection
3fbb83da6e356df57bbdd24269157944f7fcd2a5
[ "BSD-3-Clause" ]
null
null
null
j4j_spawner/file_loads.py
FZJ-JSC/jupyter-jsc-jupyterhub-collection
3fbb83da6e356df57bbdd24269157944f7fcd2a5
[ "BSD-3-Clause" ]
null
null
null
''' Created on May 17, 2019 @author: Tim Kreuzer ''' def get_token(path): with open(path, 'r') as f: token = f.read().rstrip() return token
14.363636
33
0.588608
0
0
0
0
0
0
0
0
56
0.35443
2e3dddefc0fc41021833c4964e4d102684d48114
616
py
Python
utils/bufsize.py
devmil/pty
d8365a8ca021e8da1611512662cee94cc41688a6
[ "MIT" ]
22
2020-08-04T13:52:16.000Z
2022-03-16T09:48:26.000Z
utils/bufsize.py
devmil/pty
d8365a8ca021e8da1611512662cee94cc41688a6
[ "MIT" ]
5
2020-10-16T12:24:06.000Z
2021-07-21T02:19:34.000Z
utils/bufsize.py
devmil/pty
d8365a8ca021e8da1611512662cee94cc41688a6
[ "MIT" ]
6
2020-10-03T03:00:47.000Z
2021-12-30T10:33:51.000Z
#!/usr/bin/env python3 # Pty buffer size detect script # From: https://superuser.com/a/1452858 # Results: # MacOS 11.2.3: pts write blocked after 1023 bytes (0 KiB) import os from pty import openpty from fcntl import fcntl, F_GETFL, F_SETFL from itertools import count def set_nonblock(fd): flags = fcntl(fd, F_G...
20.533333
69
0.670455
0
0
0
0
0
0
0
0
207
0.336039
2e3e30e6d461cf540ccc3d9c703aff36b0ce282e
83
py
Python
shivyc/__init__.py
TBladen/ShivyC
9d0c3955f9edb76b45b05ab7b0013cc7b6559753
[ "MIT" ]
1
2021-01-06T21:26:24.000Z
2021-01-06T21:26:24.000Z
shivyc/__init__.py
TBladen/ShivyC
9d0c3955f9edb76b45b05ab7b0013cc7b6559753
[ "MIT" ]
null
null
null
shivyc/__init__.py
TBladen/ShivyC
9d0c3955f9edb76b45b05ab7b0013cc7b6559753
[ "MIT" ]
null
null
null
"""This module implements the core ShivyC functionality.""" __version__ = "0.3.2"
20.75
59
0.722892
0
0
0
0
0
0
0
0
66
0.795181
2e3e3b3fae1036254ee5111170ecba4e576feca4
2,815
py
Python
djavError/migrations/0001_initial.py
dasmith2/djavError
6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd
[ "MIT" ]
null
null
null
djavError/migrations/0001_initial.py
dasmith2/djavError
6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd
[ "MIT" ]
null
null
null
djavError/migrations/0001_initial.py
dasmith2/djavError
6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-28 19:10 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Error', fields=[ ('id', models.AutoField(au...
43.984375
246
0.550266
2,722
0.966963
0
0
0
0
0
0
584
0.20746
2e3f9e5cf08830d85f22ac94a405bd4dc059c2da
1,007
py
Python
LTC1380.py
karu2003/Bandpass_tester
645fc2478ece07ba4303079da020a4f15f946897
[ "MIT" ]
null
null
null
LTC1380.py
karu2003/Bandpass_tester
645fc2478ece07ba4303079da020a4f15f946897
[ "MIT" ]
null
null
null
LTC1380.py
karu2003/Bandpass_tester
645fc2478ece07ba4303079da020a4f15f946897
[ "MIT" ]
null
null
null
#!/usr/bin/env python """python module for the LTC1380 created 17, 06, 2021 last modified 17, 06, 2021 Copyright 2021 Andrew Buckin """ import smbus import time Enable = 8 class LTC1380: def __init__(self, i2cAddress=0x48): self.i2cAddress = i2cAddress self.bus = smbus.SMBus(1) try: ...
20.14
64
0.600794
602
0.597815
0
0
0
0
0
0
189
0.187686
2e4208a8268b19b399b2070f7d1c7a5961191bd6
395
py
Python
project euler/q35.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
project euler/q35.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
project euler/q35.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
def isprime(x): for y in range (2,x/2+1): if x%y==0: return False return True def iscircular(z): s=str(z) for i in range(len(s)): a=s[1:]+s[0] if not isprime(int(a)): return False s=str(a) return True v=0 for x in range(2,100...
19.75
32
0.458228
0
0
0
0
0
0
0
0
0
0
2e43b13aff85b6f549a34372cb839f1045f1224d
9,618
py
Python
common/model.py
abhay97ps/visual-control-ppo-procgen
765fe1ddb289d384abddc4df8eb865379c8da76a
[ "MIT" ]
null
null
null
common/model.py
abhay97ps/visual-control-ppo-procgen
765fe1ddb289d384abddc4df8eb865379c8da76a
[ "MIT" ]
null
null
null
common/model.py
abhay97ps/visual-control-ppo-procgen
765fe1ddb289d384abddc4df8eb865379c8da76a
[ "MIT" ]
null
null
null
from .misc_util import orthogonal_init, xavier_uniform_init import torch.nn as nn import torch import torch.nn.functional as F class Flatten(nn.Module): def forward(self, x): return x.reshape(x.size(0), -1) class MlpModel(nn.Module): def __init__(self, input_dims=4, ...
36.850575
126
0.563215
9,463
0.983884
0
0
0
0
0
0
1,461
0.151903
2e44aa4ea82d11042fce4becc4abc41c58a84079
1,350
py
Python
src/sample_api.py
evanmahony/kaggleTemplate
19a44e4511ca137382a810d3e230a13ee7413959
[ "MIT" ]
null
null
null
src/sample_api.py
evanmahony/kaggleTemplate
19a44e4511ca137382a810d3e230a13ee7413959
[ "MIT" ]
null
null
null
src/sample_api.py
evanmahony/kaggleTemplate
19a44e4511ca137382a810d3e230a13ee7413959
[ "MIT" ]
null
null
null
import logging import os from flask import Flask, request import pandas as pd import torch from torch_template import Model PATH = "/home/jovyan" LOAD_PATH = os.path.join(PATH, "runs/03-56 17_02_22/model.pth") OUTPUT_PATH = os.path.join(PATH, "runs/api") # Configuring logging logging.basicConfig( filename=os.pa...
24.107143
63
0.660741
0
0
0
0
504
0.373333
0
0
383
0.283704
2e46f63258059c8f4e70f3a51307f604048da8b0
4,768
py
Python
script/fsrcnn/train.py
victorelcaminas/SuperResolutionKit
aef8a9a8a36f8833244e8c6907616b1a6aee962b
[ "MIT" ]
86
2018-08-31T08:43:42.000Z
2022-02-07T12:39:41.000Z
script/fsrcnn/train.py
victorelcaminas/SuperResolutionKit
aef8a9a8a36f8833244e8c6907616b1a6aee962b
[ "MIT" ]
3
2018-09-05T12:52:49.000Z
2020-02-28T12:11:36.000Z
script/fsrcnn/train.py
victorelcaminas/SuperResolutionKit
aef8a9a8a36f8833244e8c6907616b1a6aee962b
[ "MIT" ]
5
2018-09-11T23:06:28.000Z
2022-01-23T19:50:14.000Z
from keras.models import Sequential from keras.layers import Conv2D, Conv2DTranspose, Input, BatchNormalization, PReLU from keras.callbacks import ModelCheckpoint, Callback, TensorBoard from keras.optimizers import SGD, Adam import numpy as np import math import os import random from os import listdir, makedirs from os...
38.144
162
0.648909
1,392
0.291946
605
0.126888
0
0
0
0
485
0.10172
2e46fbeaf8ee970ea30ad406caaf1c983e261497
5,023
py
Python
module/error.py
Saroniii/yonosumi_official_bot
ef09ff8e9c089c0df8d191fe5db665f0f7322fd3
[ "MIT" ]
5
2020-09-23T01:06:00.000Z
2020-11-24T04:39:58.000Z
module/error.py
Saroniii/yonosumi_official_bot
ef09ff8e9c089c0df8d191fe5db665f0f7322fd3
[ "MIT" ]
13
2020-10-10T16:00:16.000Z
2020-11-26T02:02:57.000Z
module/error.py
YonosumiProject/yonosumi_official_bot
f8e3d2c0f7c0320cdb9247917d6d21f208ec7a77
[ "MIT" ]
2
2021-04-19T21:46:00.000Z
2021-08-16T07:23:11.000Z
import re import traceback import discord from discord.ext import commands class ErrorHandler(commands.Cog): def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_command_error(self, ctx, error): if isinstance(error, (commands.CommandNotFound, commands.CommandOnCo...
41.858333
212
0.505873
5,855
0.977952
0
0
5,764
0.962753
5,735
0.957909
2,269
0.378988
2e475fe77b8d59f438381a1b9f65606ccdf0eeb0
10,481
py
Python
rabbitpy/channel0.py
AndTornes/rabbitpy
0b805f308c868ae69825cb6366e2b0a1e74c1f2b
[ "BSD-3-Clause" ]
149
2015-01-08T21:55:20.000Z
2022-02-28T10:43:53.000Z
rabbitpy/channel0.py
AndTornes/rabbitpy
0b805f308c868ae69825cb6366e2b0a1e74c1f2b
[ "BSD-3-Clause" ]
71
2015-01-04T22:28:56.000Z
2022-02-06T09:23:30.000Z
rabbitpy/channel0.py
AndTornes/rabbitpy
0b805f308c868ae69825cb6366e2b0a1e74c1f2b
[ "BSD-3-Clause" ]
56
2015-01-07T11:06:05.000Z
2022-03-18T08:45:40.000Z
""" Channel0 is used for connection level communication between RabbitMQ and the client on channel 0. """ import locale import logging import sys from pamqp import header from pamqp import heartbeat from pamqp import specification from rabbitpy import __version__ from rabbitpy import base from rabbitpy import events...
36.141379
78
0.626085
10,000
0.954107
0
0
1,812
0.172884
0
0
3,705
0.353497
2e4773ee4daaadfedc508c278457290fb9e78e54
1,617
py
Python
format.py
saultyevil/PyPython
109f650505388ecf0611c6e2661d1365bca4cd70
[ "MIT" ]
null
null
null
format.py
saultyevil/PyPython
109f650505388ecf0611c6e2661d1365bca4cd70
[ "MIT" ]
null
null
null
format.py
saultyevil/PyPython
109f650505388ecf0611c6e2661d1365bca4cd70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from sys import argv from subprocess import run from pathlib import Path def format_source(fp): """Run isort and then yapf to format the python files contained in fp. Sends the output to /dev/null. Parameters ---------- fp: str The file path to search recursively fo...
27.40678
116
0.634508
0
0
0
0
0
0
0
0
1,008
0.623377
2e47d4e19559b640b7393534b7b6cf07e2a119e3
1,091
py
Python
utils.py
Mahoo12138/auto-submit-dlu
a955afba7f453c03d0bccb8ae02258ff43ef6663
[ "Apache-2.0" ]
5
2021-09-07T02:47:33.000Z
2021-12-05T13:22:00.000Z
utils.py
Mahoo12138/auto-submit-dlu
a955afba7f453c03d0bccb8ae02258ff43ef6663
[ "Apache-2.0" ]
null
null
null
utils.py
Mahoo12138/auto-submit-dlu
a955afba7f453c03d0bccb8ae02258ff43ef6663
[ "Apache-2.0" ]
1
2021-09-09T08:39:51.000Z
2021-09-09T08:39:51.000Z
import json from base64 import b64encode from Crypto.Cipher import AES, DES from Crypto.Util.Padding import pad from Crypto.Hash import MD5 from urllib.parse import quote ### 用于加密生成 Cpdaily-Extension,传入表单以及个人配置数据 def extensionEncrypt(data): key = b"b3L26XNL" iv = bytes([1, 2, 3, 4, 5, 6, 7, 8]) data = byt...
29.486486
70
0.672777
0
0
0
0
0
0
0
0
164
0.145261
2e48c7fdd82f103792c63baa829d0d629b6b36dd
85,623
py
Python
RVS/X86.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
2
2017-11-23T01:07:37.000Z
2021-06-25T05:03:49.000Z
RVS/X86.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
null
null
null
RVS/X86.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
1
2018-05-22T02:28:43.000Z
2018-05-22T02:28:43.000Z
# X86 disassembler for Python # Copyright (c) 2011-2012 Rusty Wagner # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, ...
41.604956
195
0.652687
853
0.009962
0
0
0
0
0
0
25,772
0.300994
2e4a2b8165110efd65634c3ee06cbc5d7fe752ab
590
py
Python
sentences/sentence14.py
kelltrill/scifibot
e9dfc55b63a6ff40e9fa268f620ff811c88862a3
[ "MIT" ]
5
2020-03-17T17:04:53.000Z
2020-03-27T12:10:44.000Z
sentences/sentence14.py
kelltrill/scifibot
e9dfc55b63a6ff40e9fa268f620ff811c88862a3
[ "MIT" ]
null
null
null
sentences/sentence14.py
kelltrill/scifibot
e9dfc55b63a6ff40e9fa268f620ff811c88862a3
[ "MIT" ]
null
null
null
from sentences.base_sentence import base_sentence class sentence14(base_sentence): def get_sentence(self, components): sentence = 'You are the Captain of ' + components['transport_article_on_desc'] sentence += ' ' + components['transport_desc'] sentence += ' ' + components['tra...
39.333333
87
0.620339
535
0.90678
0
0
0
0
0
0
181
0.30678
2e4ad7b8a3f3e91673d5ed7d5c90599979a86c21
35,847
py
Python
camper/db/barcamp.py
mrtopf/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
13
2016-03-13T02:33:39.000Z
2021-04-01T13:09:12.000Z
camper/db/barcamp.py
comlounge/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
122
2016-03-10T09:28:09.000Z
2021-09-07T23:49:05.000Z
camper/db/barcamp.py
mrtopf/camper
7016539f92202bbea608c6d53ce19097d4ad931d
[ "MIT" ]
5
2017-01-11T22:00:57.000Z
2020-04-26T14:03:32.000Z
#encoding=utf8 import datetime from camper.exceptions import * import isodate import pycountry from slugify import UniqueSlugify import embeddify import re from sfext.babe...
38.09458
2,009
0.565961
32,985
0.919904
0
0
6,004
0.167443
0
0
13,509
0.376747
2e4be7a86b7c2c6de6676d47c165fb2dc92bdf33
9,123
py
Python
train.py
LeiShenVictoria/Static-Dynamic-Attention-CNNRNN
e2823717d22c9e543428d471ff19113bbb59ebfe
[ "MIT" ]
null
null
null
train.py
LeiShenVictoria/Static-Dynamic-Attention-CNNRNN
e2823717d22c9e543428d471ff19113bbb59ebfe
[ "MIT" ]
null
null
null
train.py
LeiShenVictoria/Static-Dynamic-Attention-CNNRNN
e2823717d22c9e543428d471ff19113bbb59ebfe
[ "MIT" ]
null
null
null
import sys import os import random import re import time import torch from torch.autograd import Variable from torch import optim import torch.nn as nn #from static_model import StaticModel from CNNencoder import StaticModel #from dyna_model import DynamicModel from dynaMerge import DynamicModel from data_utils import...
44.720588
195
0.676532
0
0
0
0
0
0
0
0
2,508
0.27491
2e4c314862be76fd6a5e4ccb10c67ae77671cff4
1,770
py
Python
evaluation/experiment/sentence_classification/training.py
UKPLab/arxiv2018-xling-sentence-embeddings
95305c1a3d6d3e8c5f5365db463ba11cc9bd33b1
[ "Apache-2.0" ]
196
2018-02-21T09:26:49.000Z
2021-10-05T12:20:11.000Z
evaluation/experiment/sentence_classification/training.py
UKPLab/arxiv2018-xling-sentence-embeddings
95305c1a3d6d3e8c5f5365db463ba11cc9bd33b1
[ "Apache-2.0" ]
3
2018-06-28T15:17:31.000Z
2019-07-22T17:09:45.000Z
evaluation/experiment/sentence_classification/training.py
UKPLab/arxiv2018-xling-sentence-embeddings
95305c1a3d6d3e8c5f5365db463ba11cc9bd33b1
[ "Apache-2.0" ]
24
2018-03-05T19:01:32.000Z
2022-02-25T03:01:51.000Z
import math import numpy as np from experiment.utils.training import BatchedTraining class SentenceClassificationBatchedTraining(BatchedTraining): def __init__(self, config, config_global, logger): super(SentenceClassificationBatchedTraining, self).__init__(config, config_global, logger) self.n_...
32.777778
112
0.672316
1,628
0.919774
0
0
0
0
0
0
176
0.099435
2e4c5aa2e4e0404fffa88a1c14672d6de337f9d8
5,096
py
Python
spec/explainers/random_attention.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
2
2020-11-26T07:46:48.000Z
2021-07-28T08:06:58.000Z
spec/explainers/random_attention.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
null
null
null
spec/explainers/random_attention.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
null
null
null
import torch from spec import constants from spec.explainers.explainer import Explainer from spec.explainers.utils import filter_word_ids_with_non_zero_probability class RandomAttentionExplainer(Explainer): def __init__(self, fields_tuples, options): super().__init__(fields_tuples) self.words_vo...
43.186441
80
0.61617
4,928
0.967033
0
0
0
0
0
0
606
0.118917
2e4ce02ba83abe7b1d661489dcf0a33228a2cf30
8,373
py
Python
game_jam/Source/main.py
AustinLittle2020/CS-Hangout-Game_Jam
44216ad0166023e1b45b4b00c83098fce1cb8264
[ "MIT" ]
null
null
null
game_jam/Source/main.py
AustinLittle2020/CS-Hangout-Game_Jam
44216ad0166023e1b45b4b00c83098fce1cb8264
[ "MIT" ]
1
2021-12-20T07:19:45.000Z
2021-12-20T07:19:45.000Z
game_jam/Source/main.py
AustinLittle2020/CS-Hangout-Game_Jam
44216ad0166023e1b45b4b00c83098fce1cb8264
[ "MIT" ]
1
2021-12-20T07:15:15.000Z
2021-12-20T07:15:15.000Z
import pygame import os import time from spaceship import * from pygame.locals import * # constants WIDTH, HEIGHT = 700, 800 WINDOW = pygame.display.set_mode((WIDTH, HEIGHT)) pygame.display.set_caption("Failure is Inevitable") BLACK = (0, 0, 0) FPS = 60 VEL = 4 p_x = 330 p_y = 650 width = 50 height = 50 movement = Fa...
30.227437
105
0.54413
5,034
0.601218
0
0
0
0
0
0
1,744
0.208289
2e4e5a5c9c0e1e8ff2e56cee306ac39096e94fd8
6,529
py
Python
shotmanager/vectorPathHandler.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
68
2019-09-23T03:27:05.000Z
2022-03-12T03:00:41.000Z
shotmanager/vectorPathHandler.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
22
2019-10-26T20:15:56.000Z
2022-02-12T05:41:56.000Z
shotmanager/vectorPathHandler.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
33
2019-09-29T19:52:19.000Z
2022-03-12T03:00:43.000Z
# # Code common across shots to handle movement on paths # from pymavlink import mavutil import location_helpers import shotLogger from pathHandler import PathHandler from shotManagerConstants import * import math from vector3 import Vector3 logger = shotLogger.logger #Path accel/decel constants WPNAV_ACCEL = 200 WP...
35.483696
137
0.627202
5,985
0.916679
0
0
0
0
0
0
1,835
0.281054
2e4e6cf733e54eca65a602d7e3bfa467d83a46b3
98
py
Python
transfer_app/apps.py
qbrc-cnap/cnap
624683e91a64c3b4934b578c59db850242d2f94c
[ "MIT" ]
1
2021-07-08T14:06:04.000Z
2021-07-08T14:06:04.000Z
transfer_app/apps.py
qbrc-cnap/cnap
624683e91a64c3b4934b578c59db850242d2f94c
[ "MIT" ]
12
2020-02-12T00:10:53.000Z
2021-06-10T21:24:45.000Z
transfer_app/apps.py
qbrc-cnap/cnap
624683e91a64c3b4934b578c59db850242d2f94c
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TransferAppConfig(AppConfig): name = 'transfer_app'
16.333333
35
0.77551
61
0.622449
0
0
0
0
0
0
14
0.142857
2e4f90dd590f96bab2de9aa670fa47169809eee6
375
py
Python
python/imjoy_rpc/__main__.py
thewtex/imjoy-rpc
cc62c3881051b2fd9257b15cf460bc6f23f29208
[ "MIT" ]
null
null
null
python/imjoy_rpc/__main__.py
thewtex/imjoy-rpc
cc62c3881051b2fd9257b15cf460bc6f23f29208
[ "MIT" ]
null
null
null
python/imjoy_rpc/__main__.py
thewtex/imjoy-rpc
cc62c3881051b2fd9257b15cf460bc6f23f29208
[ "MIT" ]
null
null
null
import asyncio from imjoy_rpc import api class ImJoyPlugin: async def setup(self): await api.log("plugin initialized") async def run(self, ctx): await api.alert("hello") await api.showDialog(type="external", src="https://imjoy.io") if __name__ == "__main__": api.export(ImJoyPlug...
23.4375
78
0.650667
223
0.594667
0
0
0
0
194
0.517333
100
0.266667
2e50d32fa06f70e5e135d222e062d8b6f5dbc18d
1,877
py
Python
more_or_less/more_plugin.py
jeroen-dhollander/python-paginator
8c60ae6dd64a7440feda4561440117d9bebc3ae7
[ "CC0-1.0" ]
3
2018-09-26T20:07:51.000Z
2021-07-10T11:59:44.000Z
more_or_less/more_plugin.py
jeroen-dhollander/python-paginator
8c60ae6dd64a7440feda4561440117d9bebc3ae7
[ "CC0-1.0" ]
1
2020-02-19T10:15:38.000Z
2020-03-14T21:48:55.000Z
more_or_less/more_plugin.py
jeroen-dhollander/python-more-or-less
8c60ae6dd64a7440feda4561440117d9bebc3ae7
[ "CC0-1.0" ]
null
null
null
from abc import ABC, abstractmethod class MorePlugin(ABC): ''' A plugin that represents an extra action the user can take on the 'more' prompt. ''' @abstractmethod def get_keys(self): ''' Returns a list of the keys the user has to enter to trigger this action. ''' pass @...
31.813559
93
0.574853
1,838
0.979222
0
0
1,257
0.669686
0
0
1,509
0.803942
2e51536d35690c069b3289446524366923e72f15
8,183
py
Python
IntensivregisterUpdate.py
fe-lix-werner/covid19de_monitor
3867676756a36f06c10b348e53afba125d244525
[ "MIT" ]
2
2021-05-06T21:00:09.000Z
2021-06-26T11:51:19.000Z
IntensivregisterUpdate.py
fe-lix-werner/covid19de_monitor
3867676756a36f06c10b348e53afba125d244525
[ "MIT" ]
3
2020-10-29T06:20:06.000Z
2021-01-16T16:17:08.000Z
IntensivregisterUpdate.py
fe-lix-werner/covid19de_monitor
3867676756a36f06c10b348e53afba125d244525
[ "MIT" ]
3
2020-10-28T16:45:23.000Z
2020-12-09T13:35:09.000Z
#!/usr/bin/env python3 import requests import json import argparse import datetime import io import threading BL_API = 'https://www.intensivregister.de/api/public/reporting/laendertabelle' LK_API = 'https://diviexchange.blob.core.windows.net/%24web/DIVI_Intensivregister_Auszug_pro_Landkreis.csv' BL_DICT = {'BW': 'BAD...
39.723301
342
0.630331
4,621
0.564569
0
0
0
0
0
0
2,127
0.259866
2e526a16cee44513824483cfa4aeb95d48a88e2e
4,316
py
Python
pyhanko/pdf_utils/crypt/filter_mixins.py
MatthiasValvekens/pdf-stamp
08fc0fc8cd5f82845e72a1c0efde1a12d64970ce
[ "MIT" ]
5
2020-08-06T15:25:21.000Z
2020-11-28T04:40:02.000Z
pyhanko/pdf_utils/crypt/filter_mixins.py
MatthiasValvekens/pdf-stamp
08fc0fc8cd5f82845e72a1c0efde1a12d64970ce
[ "MIT" ]
1
2020-11-11T10:46:08.000Z
2020-11-11T10:46:08.000Z
pyhanko/pdf_utils/crypt/filter_mixins.py
MatthiasValvekens/pdf-stamp
08fc0fc8cd5f82845e72a1c0efde1a12d64970ce
[ "MIT" ]
3
2020-10-15T20:48:40.000Z
2020-11-21T13:28:18.000Z
import abc import secrets from pyhanko.pdf_utils import generic from pyhanko.pdf_utils.crypt._util import ( aes_cbc_decrypt, aes_cbc_encrypt, rc4_encrypt, ) from pyhanko.pdf_utils.crypt.api import CryptFilter, SecurityHandlerVersion from ._legacy import legacy_derive_object_key class RC4CryptFilterMixin...
29.162162
79
0.589435
4,018
0.930955
0
0
0
0
0
0
2,322
0.537998
2e527faed8095c3ea58150eacca0a778dfb4545f
2,693
py
Python
pyscrubber.py
sanketsaurav/nlm-scrubber-docker
dbd2529b8b2e453f0800e1b2a4126df026e45190
[ "MIT" ]
8
2019-04-11T17:37:38.000Z
2021-07-26T17:03:30.000Z
pyscrubber.py
sanketsaurav/nlm-scrubber-docker
dbd2529b8b2e453f0800e1b2a4126df026e45190
[ "MIT" ]
null
null
null
pyscrubber.py
sanketsaurav/nlm-scrubber-docker
dbd2529b8b2e453f0800e1b2a4126df026e45190
[ "MIT" ]
2
2020-01-29T00:37:25.000Z
2020-09-26T06:27:04.000Z
#!/usr/bin/env python import uuid import os import subprocess import shutil DOC_DELIMITER = '\n##### DOCUMENT #############################################################' class Scrubber(): '''This class is a wrapper around the `nlm_scrubber` library.''' def __init__(self, working_directory='/tmp/nlm_scrub...
33.246914
167
0.57928
2,305
0.855923
0
0
0
0
0
0
742
0.275529
2e528039973bc6fa5f650d3dd268fb60bdd771de
2,569
py
Python
src/galaxy_crawler/models/helper.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
2
2019-12-24T10:45:37.000Z
2022-03-04T00:47:14.000Z
src/galaxy_crawler/models/helper.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
2
2019-10-31T17:42:36.000Z
2020-03-24T18:20:41.000Z
src/galaxy_crawler/models/helper.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING import pandas as pd from galaxy_crawler.models import utils from galaxy_crawler.models import v1 as models if TYPE_CHECKING: from datetime import datetime from typing import List, Optional from sqlalchemy.engine import Engine def get_roles_df(engine: 'Engine', except_ro...
40.777778
116
0.679253
0
0
0
0
0
0
0
0
1,127
0.438692
2e52978a04dbb6b314c47e801d5498f9f38d6a4e
2,065
py
Python
frameworks/tc_scikit/features/dependency_distribution_spacy.py
Asteur/textclassification
80222e99e1a195031cf8e98bc294a09e498c29a3
[ "MIT" ]
5
2018-08-12T19:30:30.000Z
2022-03-04T15:27:31.000Z
frameworks/tc_scikit/features/dependency_distribution_spacy.py
Asteur/textclassification
80222e99e1a195031cf8e98bc294a09e498c29a3
[ "MIT" ]
null
null
null
frameworks/tc_scikit/features/dependency_distribution_spacy.py
Asteur/textclassification
80222e99e1a195031cf8e98bc294a09e498c29a3
[ "MIT" ]
2
2018-07-13T02:06:48.000Z
2020-12-10T13:35:17.000Z
import logging from collections import OrderedDict import numpy as np from sklearn.base import BaseEstimator from sklearn.feature_selection import SelectKBest, chi2 from sklearn.pipeline import Pipeline from sklearn.preprocessing import Normalizer from frameworks.tc_scikit.models.tiger import TIGER_TAGSET_SPACY def...
32.777778
88
0.659564
642
0.310896
0
0
0
0
0
0
150
0.072639
2e52f62008c27b479273629366f87f8875845031
4,728
py
Python
structsolve/arc_length_riks.py
saullocastro/structsolve
3c325068ca13e8632f506fb18c2ea5de495c581e
[ "BSD-2-Clause" ]
1
2022-03-24T16:15:04.000Z
2022-03-24T16:15:04.000Z
structsolve/arc_length_riks.py
saullocastro/structsolve
3c325068ca13e8632f506fb18c2ea5de495c581e
[ "BSD-2-Clause" ]
null
null
null
structsolve/arc_length_riks.py
saullocastro/structsolve
3c325068ca13e8632f506fb18c2ea5de495c581e
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from numpy import dot from scipy.sparse import csr_matrix, vstack as spvstack, hstack as sphstack from .static import solve from .logger import msg, warn def _solver_arc_length_riks(an, silent=False): r"""Arc-Length solver using the Riks method """ msg('_______________________________...
34.014388
116
0.544628
0
0
0
0
0
0
0
0
727
0.153765
2e53c5028305c2f695ef7f89ee5abdf87898de3d
173
py
Python
torchsynth/__init__.py
Doddox-UV/torchsynth
574bdd5988d7802a42d9e9ec70dc515605c6aded
[ "Apache-2.0" ]
184
2021-04-11T19:56:25.000Z
2022-03-31T15:30:44.000Z
torchsynth/__init__.py
Doddox-UV/torchsynth
574bdd5988d7802a42d9e9ec70dc515605c6aded
[ "Apache-2.0" ]
207
2021-03-04T02:58:43.000Z
2021-04-10T20:20:54.000Z
torchsynth/__init__.py
Doddox-UV/torchsynth
574bdd5988d7802a42d9e9ec70dc515605c6aded
[ "Apache-2.0" ]
5
2021-04-25T00:38:06.000Z
2021-10-01T11:08:13.000Z
from torchsynth.__info__ import ( # noqa: F401 __author__, __author_email__, __copyright__, __docs__, __homepage__, __license__, __version__, )
17.3
47
0.676301
0
0
0
0
0
0
0
0
12
0.069364
2e53c6858211b2819fa897c860639a3bd48a5cee
3,245
py
Python
interactive_map_tester/interactive_map_tester/visualizeInteractiveMap.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-06-27T02:01:22.000Z
2021-06-27T02:01:22.000Z
interactive_map_tester/interactive_map_tester/visualizeInteractiveMap.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-09-30T01:56:04.000Z
2021-09-30T10:26:13.000Z
interactive_map_tester/interactive_map_tester/visualizeInteractiveMap.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-09-30T01:52:28.000Z
2021-09-30T01:52:28.000Z
# Import ROS2 libraries import rclpy from rclpy.node import Node from cv_bridge import CvBridge, CvBridgeError from rclpy.qos import QoSProfile from rclpy.callback_groups import ReentrantCallbackGroup from rclpy.executors import MultiThreadedExecutor # Import message files from sensor_msgs.msg import Image from autono...
32.45
105
0.646533
2,204
0.679199
0
0
0
0
0
0
1,008
0.310632
2e53f2b6759936a175fbb3e4afe7b5be958c9128
79
py
Python
rest_framework_captcha/__init__.py
leonardoarroyo/restframework-catpcha
c1acf5904ba8c48bb58e104195380b0bbce1ed8e
[ "MIT" ]
null
null
null
rest_framework_captcha/__init__.py
leonardoarroyo/restframework-catpcha
c1acf5904ba8c48bb58e104195380b0bbce1ed8e
[ "MIT" ]
null
null
null
rest_framework_captcha/__init__.py
leonardoarroyo/restframework-catpcha
c1acf5904ba8c48bb58e104195380b0bbce1ed8e
[ "MIT" ]
1
2020-12-11T21:38:09.000Z
2020-12-11T21:38:09.000Z
default_app_config = 'rest_framework_captcha.apps.RestFrameworkCaptchaConfig'
26.333333
77
0.886076
0
0
0
0
0
0
0
0
56
0.708861
2e5512d26ff378d4e8524182eb1fa3deb226d67e
1,027
py
Python
b64.py
Orphan-Crippler/b64
a93ab8bc96ae0b443911cb28a57ec94f4eab29bb
[ "BSD-3-Clause" ]
null
null
null
b64.py
Orphan-Crippler/b64
a93ab8bc96ae0b443911cb28a57ec94f4eab29bb
[ "BSD-3-Clause" ]
null
null
null
b64.py
Orphan-Crippler/b64
a93ab8bc96ae0b443911cb28a57ec94f4eab29bb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Libraries from base64 import b64encode, b64decode # Messages warn = '!!!!!!!!!!!!!!!!!!!!!!!! WARNING: ' valid = '\nPlease Enter a Valid Entry!\n' # Menu/Encode/Decode Logic def app(st): if st == '1': code = input('Enter Stuff to Encode: ').encode() print('...
23.883721
78
0.487829
0
0
0
0
0
0
0
0
312
0.303797
2e55f7470f71ff63d2fb4072b25056d9e57a9772
491
py
Python
scripts/preprocessing/popoolationTE_ref_fasta.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
62
2015-01-18T15:30:48.000Z
2022-03-06T08:23:40.000Z
scripts/preprocessing/popoolationTE_ref_fasta.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
49
2015-01-20T12:57:45.000Z
2022-03-22T15:05:46.000Z
scripts/preprocessing/popoolationTE_ref_fasta.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
28
2015-01-21T21:14:46.000Z
2022-02-20T21:43:31.000Z
import os import sys import subprocess sys.path.append(snakemake.config['args']['mcc_path']) import scripts.mccutils as mccutils def main(): mccutils.log("processing","making PopoolationTE reference fasta") command = ["cat", snakemake.input[0], snakemake.input[1], snakemake.input[2]] mccutils.run_command_...
30.6875
81
0.704684
0
0
0
0
0
0
0
0
132
0.268839
2e56257d1dcde4b6d5d35bb6f662c1c19842ef6e
325
py
Python
code/examples/04-adc/adc_pot_servo.py
yuanyanhui/intro-upy-esp32
5f066ca8b1804dc6032e8f0a5957acd6e36baffb
[ "MIT" ]
null
null
null
code/examples/04-adc/adc_pot_servo.py
yuanyanhui/intro-upy-esp32
5f066ca8b1804dc6032e8f0a5957acd6e36baffb
[ "MIT" ]
null
null
null
code/examples/04-adc/adc_pot_servo.py
yuanyanhui/intro-upy-esp32
5f066ca8b1804dc6032e8f0a5957acd6e36baffb
[ "MIT" ]
1
2022-03-09T08:40:41.000Z
2022-03-09T08:40:41.000Z
""" Control servo using potentiometer """ from machine import Pin, ADC, PWM pot = ADC(Pin(32), atten = ADC.ATTN_11DB) # 电位器 - ADC servo = PWM(Pin(33), freq = 50) # 舵机 while True: adc_value = pot.read() pulse_width_value = (125 - 25)/4095 * adc_value + 25 servo.duty(int(pulse_width_value))...
23.214286
56
0.621538
0
0
0
0
0
0
0
0
66
0.197015
2e56e1fd3a0ac1e94ebfe17d566b249e1081cc8e
3,720
py
Python
project7/project7-lp-single.py
karulont/combopt
98ad05f574d1ce355fc653df60bedde8a3bb838b
[ "MIT" ]
1
2016-12-23T08:38:57.000Z
2016-12-23T08:38:57.000Z
project7/project7-lp-single.py
karulont/combopt
98ad05f574d1ce355fc653df60bedde8a3bb838b
[ "MIT" ]
null
null
null
project7/project7-lp-single.py
karulont/combopt
98ad05f574d1ce355fc653df60bedde8a3bb838b
[ "MIT" ]
null
null
null
from gurobipy import * from sys import argv import json import math import drawful def read_lst(fn): with open(fn, 'r') as f: (n, tp) = json.load(f) return (n, tp) def write_lst(fn, lst): with open(fn, 'w') as f: json.dump(lst, f) def distance(v1, v2): return mat...
27.555556
89
0.508065
0
0
0
0
0
0
0
0
779
0.209409
2e5744a9bed19f5bada449acfd9d1b91549e0594
601
py
Python
exam_001/q004_verb_post.py
a1852rw/system_propraming
795ce06e9c1b48552577de472194646bab240541
[ "MIT" ]
2
2018-07-02T09:48:28.000Z
2018-07-04T10:17:40.000Z
exam_001/q004_verb_post.py
a1852rw/aiit_system_programing
795ce06e9c1b48552577de472194646bab240541
[ "MIT" ]
null
null
null
exam_001/q004_verb_post.py
a1852rw/aiit_system_programing
795ce06e9c1b48552577de472194646bab240541
[ "MIT" ]
null
null
null
def verb_post(s): irregular = { "go": "went", "put": "put", "write": "wrote", "find": "found", "read": "read", } if s in irregular: return irregular[s] if s[-1] == "c": return s + "ked" if s[-1] == "e": return s + "d" if s[-...
22.259259
63
0.47421
0
0
0
0
0
0
0
0
142
0.236273
2e59427f48e64e36035d7a96d2e7bfa4cb4b20f1
4,515
py
Python
src/main.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
src/main.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
src/main.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
import select import socket import struct import traceback import logging import time import numpy as np import queue import random,threading,time from translate import pose_predict import csv import time def health_check(s): readable,writeable,err = select.select([s],[s],[s],0) if len(readable)<1 or len(write...
31.137931
95
0.534219
866
0.191805
0
0
0
0
0
0
361
0.079956
2e600fb2c6c670b82e80a94ddaed1f08bcc6b44f
2,049
py
Python
plot_breakdown.py
akashlevy/ENGR241-Q1
e8bf8aa1cac0671ec32d95d729568087d0cb2b5f
[ "MIT" ]
null
null
null
plot_breakdown.py
akashlevy/ENGR241-Q1
e8bf8aa1cac0671ec32d95d729568087d0cb2b5f
[ "MIT" ]
null
null
null
plot_breakdown.py
akashlevy/ENGR241-Q1
e8bf8aa1cac0671ec32d95d729568087d0cb2b5f
[ "MIT" ]
null
null
null
import csv, glob, re import matplotlib.pyplot as plt import numpy as np from intersection import intersection devre = re.compile(r'\[(.*)\(') # Read in data devices = ["Al_%.1f_%d" % (t1, t2) for t1 in np.arange(0.5, 2.5, 0.5) for t2 in np.arange(5, 15, 5)] devices += ["Al2O3_%.1f_%d" % (t1, t2) for t1 in np.arange(0...
44.543478
131
0.490483
0
0
0
0
0
0
0
0
447
0.218155
2e61401fb8829929663164716c5983c2dde332cf
2,421
py
Python
lib/models/model_factory.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
21
2020-01-22T05:18:52.000Z
2021-09-28T15:55:10.000Z
lib/models/model_factory.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
null
null
null
lib/models/model_factory.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
10
2020-01-30T14:25:50.000Z
2020-08-25T02:03:50.000Z
import torch.nn as nn import torch.nn.functional as F from torchvision import models import pretrainedmodels from . import resnet_fpn from . import dla def get_model(name, heads, head_conv=128, num_filters=[256, 256, 256], dcn=False, gn=False, ws=False, freeze_bn=False, **kwargs): if 'res' in name ...
37.246154
80
0.576208
0
0
0
0
0
0
0
0
70
0.028914
2e6176c680d77466ad6487a42cee8d747475bd69
5,564
py
Python
unpackai/interp/latent.py
vtecftwy/unpackai
5c6ff1ff141b15430ccf02cab34e9690ec168fda
[ "MIT" ]
18
2021-08-30T00:15:06.000Z
2022-01-28T01:41:16.000Z
unpackai/interp/latent.py
vtecftwy/unpackai
5c6ff1ff141b15430ccf02cab34e9690ec168fda
[ "MIT" ]
75
2021-09-01T08:13:25.000Z
2022-02-07T13:18:55.000Z
unpackai/interp/latent.py
vtecftwy/unpackai
5c6ff1ff141b15430ccf02cab34e9690ec168fda
[ "MIT" ]
4
2021-08-30T03:22:28.000Z
2021-11-13T12:48:06.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/15_interp_latent.ipynb (unless otherwise specified). __all__ = ['CosineSearch', 'InterpEmbeddings'] # Cell import numpy as np import pandas as pd from typing import Dict, List, Any from forgebox.html import DOM # Cell class CosineSearch: """ Build a index searc...
33.926829
100
0.592739
5,286
0.950036
0
0
118
0.021208
0
0
1,890
0.339684
2e6262da82cf152dfcab69d6e93ee5086457a9ff
153
py
Python
bin/trigs/tritrigs-triangle-4.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/trigs/tritrigs-triangle-4.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/trigs/tritrigs-triangle-4.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """ 1 solution. """ import puzzler from puzzler.puzzles.tritrigs import TritrigsTriangle4 puzzler.run(TritrigsTriangle4)
12.75
54
0.751634
0
0
0
0
0
0
0
0
46
0.300654
2e63134eca33ec86bdf84b7c00c96006e7888c50
16,775
py
Python
src/moderations/slack.py
definitelysecure/shipwrecked
3b79c6df63ed3c271ccb1b8a21081c76bcd9f08a
[ "MIT" ]
null
null
null
src/moderations/slack.py
definitelysecure/shipwrecked
3b79c6df63ed3c271ccb1b8a21081c76bcd9f08a
[ "MIT" ]
null
null
null
src/moderations/slack.py
definitelysecure/shipwrecked
3b79c6df63ed3c271ccb1b8a21081c76bcd9f08a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime import json import re import requests from django.http import HttpResponse from accounts.models import AuthToken from moderations.models import Moderation, ModerationAction from moderations.utils import timedelta_to_str class SlackSdk(object): @staticmethod ...
33.086785
102
0.497466
7,508
0.446825
0
0
7,449
0.443314
0
0
4,298
0.255788
2e64787156e8693fdf0a33b208148208557d314e
1,790
py
Python
flags/ctf/views.py
fredericoricco-debug/groupproject
bf22303cff7a2a4bc097f568f0df0b5d72000c3b
[ "MIT" ]
null
null
null
flags/ctf/views.py
fredericoricco-debug/groupproject
bf22303cff7a2a4bc097f568f0df0b5d72000c3b
[ "MIT" ]
null
null
null
flags/ctf/views.py
fredericoricco-debug/groupproject
bf22303cff7a2a4bc097f568f0df0b5d72000c3b
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect from django.template import loader from django.http import HttpResponse from django.contrib import messages from django.contrib.auth.models import User ...
27.121212
74
0.681006
0
0
0
0
296
0.165363
0
0
294
0.164246