hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
395356aa8466e0891ace69c5be1b3f0fde3e4501 | 1,077 | py | Python | test/perf/perf.py | wkearn/Kalman.jl | a080e4e18b2f27af60fa3142be843d09541cbf7d | [
"MIT"
] | 44 | 2015-02-11T14:27:24.000Z | 2021-07-30T20:51:38.000Z | test/perf/perf.py | wkearn/Kalman.jl | a080e4e18b2f27af60fa3142be843d09541cbf7d | [
"MIT"
] | 2 | 2015-10-02T11:47:41.000Z | 2018-02-02T09:45:46.000Z | test/perf/perf.py | wkearn/Kalman.jl | a080e4e18b2f27af60fa3142be843d09541cbf7d | [
"MIT"
] | 21 | 2015-03-18T21:46:30.000Z | 2021-07-30T20:51:42.000Z | import numpy as np
import sys
import timeit
from pykalman import KalmanFilter
N = int(sys.argv[1])
random_state = np.random.RandomState(0)
transition_matrix = [[1, 0.01], [-0.01, 1]]
transition_offset = [0.0,0.0]
observation_matrix = [1.0,0]
observation_offset = [0.0]
transition_covariance = 1e-10*np.eye(2)
observatio... | 35.9 | 128 | 0.785515 |
1a2f0cb42c5e281612c2dd86f9dc9461dd6f0c31 | 46 | py | Python | galaxy/__init__.py | jmchilton/lwr | cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b | [
"Apache-2.0"
] | 1 | 2016-08-17T06:36:03.000Z | 2016-08-17T06:36:03.000Z | galaxy/__init__.py | jmchilton/lwr | cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b | [
"Apache-2.0"
] | null | null | null | galaxy/__init__.py | jmchilton/lwr | cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b | [
"Apache-2.0"
] | null | null | null | """
Compat. layer between LWR and Galaxy.
"""
| 11.5 | 37 | 0.652174 |
1a31cbe01406213bfcaaf90c2882397642fc68d4 | 3,419 | py | Python | test/test_system.py | Enteee/pdml2flow | 2e5da6f03bc799f0e8ef77dd987031b969d4a5df | [
"Apache-2.0"
] | 12 | 2016-04-01T10:59:14.000Z | 2022-01-27T04:05:43.000Z | test/test_system.py | Enteee/pdml2flow | 2e5da6f03bc799f0e8ef77dd987031b969d4a5df | [
"Apache-2.0"
] | 16 | 2016-03-18T10:44:00.000Z | 2019-08-12T05:52:24.000Z | test/test_system.py | Enteee/pdml2flow | 2e5da6f03bc799f0e8ef77dd987031b969d4a5df | [
"Apache-2.0"
] | 2 | 2016-09-08T11:49:39.000Z | 2020-09-09T04:39:15.000Z | # vim: set fenc=utf8 ts=4 sw=4 et :
import os
import io
import json
import unittest
from shlex import split
from .testcase import TestCase
from pdml2flow.conf import Conf
import pdml2flow
TEST_DIR_PDML2FLOW="test/pdml2flow_tests/"
TEST_DIR_PDML2FRAME="test/pdml2frame_tests/"
# Add tests
add_tests(pdml2flow.pdml2flo... | 28.491667 | 71 | 0.488154 |
1a32119c70c0d1383a924bfd29be201dc7093bcb | 3,258 | py | Python | subprojects/sno-snapshot/src/common.py | azh412/ci-artifacts | cd8d39f6fcc8f12d76afe1bbe242d59857e2b1a0 | [
"Apache-2.0"
] | null | null | null | subprojects/sno-snapshot/src/common.py | azh412/ci-artifacts | cd8d39f6fcc8f12d76afe1bbe242d59857e2b1a0 | [
"Apache-2.0"
] | null | null | null | subprojects/sno-snapshot/src/common.py | azh412/ci-artifacts | cd8d39f6fcc8f12d76afe1bbe242d59857e2b1a0 | [
"Apache-2.0"
] | null | null | null | import time, datetime
print("Importing OpenShift/Kubernetes packages ...")
import kubernetes
import ocp_resources
import openshift
from ocp_resources.node import Node
from ocp_resources.machine import Machine
from ocp_resources.node import Node
from openshift.dynamic import DynamicClient
try:
client_k8s = Dynam... | 28.330435 | 89 | 0.664825 |
1a3258cf7badd255a9307d5f3956237fbeb82bff | 446 | py | Python | artists/urls.py | flannerykj/urbanapplause | c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5 | [
"MIT"
] | null | null | null | artists/urls.py | flannerykj/urbanapplause | c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5 | [
"MIT"
] | null | null | null | artists/urls.py | flannerykj/urbanapplause | c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
app_name = 'artists'
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='detail'),
url(r'^edit/(?P<pk>\d+)/$', views.UpdateArtist.as_view(), name='edit'),
url(r'^create/$',... | 37.166667 | 77 | 0.625561 |
1a32a66412ac752dfef1346767dada6ace8dbe66 | 280 | py | Python | tests/send_update.py | ZenLighting/ZenLightSimulator | 974e2806106e534aede35b5a9efd8667c55a6a25 | [
"MIT"
] | null | null | null | tests/send_update.py | ZenLighting/ZenLightSimulator | 974e2806106e534aede35b5a9efd8667c55a6a25 | [
"MIT"
] | null | null | null | tests/send_update.py | ZenLighting/ZenLightSimulator | 974e2806106e534aede35b5a9efd8667c55a6a25 | [
"MIT"
] | null | null | null | import socket
import struct
send_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
data_bytes = struct.pack("!BBBB", 0, 0, 255, 255)
header = struct.pack("!BIIH", 0, 0, 0, len(data_bytes))
message = header + data_bytes
send_sock.sendto(message, ("localhost", 42000)) | 23.333333 | 63 | 0.721429 |
1a33590146501a5c20b0ff147ebe8e77a6b706a7 | 26,634 | py | Python | editor/widgets/toolbox_EPICS.py | despiegk/remi | cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4 | [
"Apache-2.0"
] | null | null | null | editor/widgets/toolbox_EPICS.py | despiegk/remi | cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4 | [
"Apache-2.0"
] | 6 | 2020-04-05T04:58:15.000Z | 2020-04-05T05:39:37.000Z | editor/widgets/toolbox_EPICS.py | despiegk/remi | cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import remi
import remi.gui as gui
from remi.gui import *
from threading import Timer
import traceback
import time
import math
import epics
#from epics import caget, caput, cainfo
style_inheritance_dict = {'opacity':'inherit', 'overflow':'inherit', 'background-color':'inherit', 'background-ima... | 69.722513 | 3,039 | 0.756176 |
1a3459ee78d5b57a83665367b43a2ebae445c84e | 3,001 | py | Python | app/mover.py | uk-gov-mirror/ONSdigital.blaise-nisra-case-mover | 6bc3af5eec43ee543bcfed428779ca57f903007f | [
"MIT"
] | null | null | null | app/mover.py | uk-gov-mirror/ONSdigital.blaise-nisra-case-mover | 6bc3af5eec43ee543bcfed428779ca57f903007f | [
"MIT"
] | null | null | null | app/mover.py | uk-gov-mirror/ONSdigital.blaise-nisra-case-mover | 6bc3af5eec43ee543bcfed428779ca57f903007f | [
"MIT"
] | null | null | null | from typing import Dict
import pysftp
from flask import Blueprint, current_app
from paramiko import SSHException
from models import Instrument
from pkg.case_mover import CaseMover
from pkg.google_storage import GoogleStorage
from pkg.sftp import SFTP
from util.service_logging import log
mover = Blueprint("batch", __... | 31.925532 | 83 | 0.71876 |
1a35308e3e1033d1025ac934d26add8ef584b069 | 3,156 | py | Python | pytjson/_tjson/datatype.py | anupsv/tjson | 672dcb6a5161260620df880f2828ae3c445fc6b8 | [
"MIT"
] | null | null | null | pytjson/_tjson/datatype.py | anupsv/tjson | 672dcb6a5161260620df880f2828ae3c445fc6b8 | [
"MIT"
] | 3 | 2017-11-17T12:38:57.000Z | 2021-11-15T17:46:44.000Z | pytjson/_tjson/datatype.py | anupsv/pytjson | 672dcb6a5161260620df880f2828ae3c445fc6b8 | [
"MIT"
] | 1 | 2016-11-15T08:19:17.000Z | 2016-11-15T08:19:17.000Z | import re, datetime
from Helpers.freezable_list import FrozenDict
from pytjson.Exceptions import ParseError
class Scalar(Datatype):
from datatypes.string import String
from datatypes.timestamp import Timestamp
from datatypes.float import Float
from datatypes.integer import SignedInt, UnsignedInt
from datatypes.... | 26.745763 | 88 | 0.596641 |
1a3613dff1cdfc6a420222a030f7083c34976694 | 864 | py | Python | Code Challenges/python/checkPalindrome_codesignal.py | lineality/Coding-Challenges-Study-Practice | 76d868b11b42b3bd3634f9a62abecb2e1eaac76d | [
"MIT"
] | null | null | null | Code Challenges/python/checkPalindrome_codesignal.py | lineality/Coding-Challenges-Study-Practice | 76d868b11b42b3bd3634f9a62abecb2e1eaac76d | [
"MIT"
] | 1 | 2021-06-24T17:39:48.000Z | 2021-06-24T17:39:48.000Z | Code Challenges/python/checkPalindrome_codesignal.py | lineality/Coding-Study | 76d868b11b42b3bd3634f9a62abecb2e1eaac76d | [
"MIT"
] | null | null | null | # not working, not sure why (as parts work separately
# outside of function)
# (User's) Problem
# We have:
# a string
# We need:
# is that string a paindrome? yes/no
# We must:
# boolean output
# name of function is
# checkPalindrome
# Solution (Product)
# Strategy 1:
# turn string into a list... | 24 | 66 | 0.664352 |
1a37bfae9bd13611e15a98b21e3b6c87ccdce595 | 13,296 | py | Python | airflow/dags/sentinel1/S1_GRD_1SDV.py | geosolutions-it/evo-odas | 983912614317c28ba88fe078f5069266dd8469bb | [
"MIT"
] | 29 | 2018-01-03T18:41:03.000Z | 2022-02-03T01:15:46.000Z | airflow/dags/sentinel1/S1_GRD_1SDV.py | geosolutions-it/evo-odas | 983912614317c28ba88fe078f5069266dd8469bb | [
"MIT"
] | 226 | 2016-10-05T10:01:12.000Z | 2021-07-20T18:47:59.000Z | airflow/dags/sentinel1/S1_GRD_1SDV.py | geosolutions-it/evo-odas | 983912614317c28ba88fe078f5069266dd8469bb | [
"MIT"
] | 13 | 2016-10-13T14:55:33.000Z | 2022-02-03T01:15:33.000Z | """
/*********************************************************************************/
* The MIT License (MIT) *
* *
* Copyright (c) 2014 EOX IT Services GmbH ... | 47.655914 | 273 | 0.571224 |
1a37c7ba2d228caef670de2aefc502f114329be0 | 579 | py | Python | cfn_model/model/EC2NetworkInterface.py | jaymecd/cloudformation-validator | 4f6951a002f338010b63fa3fbd23ddd8022558fa | [
"MIT"
] | 6 | 2018-08-07T01:58:16.000Z | 2020-09-10T14:40:35.000Z | cfn_model/model/EC2NetworkInterface.py | jaymecd/cloudformation-validator | 4f6951a002f338010b63fa3fbd23ddd8022558fa | [
"MIT"
] | 1 | 2018-10-16T20:40:27.000Z | 2018-10-17T02:18:05.000Z | cfn_model/model/EC2NetworkInterface.py | jaymecd/cloudformation-validator | 4f6951a002f338010b63fa3fbd23ddd8022558fa | [
"MIT"
] | 1 | 2019-01-17T21:35:47.000Z | 2019-01-17T21:35:47.000Z | from __future__ import absolute_import, division, print_function
from cfn_model.model.ModelElement import ModelElement
| 23.16 | 64 | 0.637306 |
1a37f2bd5fe18531b4032a37a702ab6810656fed | 1,125 | py | Python | tests/mock.py | kklein/icontract | 718ef1733cc2cce6d3c8f59a5a37de96f8be6664 | [
"MIT"
] | 244 | 2018-08-15T22:58:58.000Z | 2022-03-12T16:10:39.000Z | tests/mock.py | kklein/icontract | 718ef1733cc2cce6d3c8f59a5a37de96f8be6664 | [
"MIT"
] | 157 | 2018-08-29T21:36:47.000Z | 2022-02-14T19:30:24.000Z | tests/mock.py | kklein/icontract | 718ef1733cc2cce6d3c8f59a5a37de96f8be6664 | [
"MIT"
] | 23 | 2019-04-24T11:09:10.000Z | 2022-02-14T15:56:26.000Z | """Provide mock structures used accross the tests."""
from typing import List, Union
| 36.290323 | 96 | 0.634667 |
1a39f0ac1b52e80601d37b28ec8d2bbc57258c03 | 24,381 | py | Python | gff_to_gbk.py | ArnaudBelcour/gbk_from_gff | addf14c55cc5845c68a985c3d9b613bf3153071c | [
"MIT"
] | 3 | 2019-06-08T11:48:11.000Z | 2021-11-29T19:58:48.000Z | gff_to_gbk.py | ArnaudBelcour/gbk_from_gff | addf14c55cc5845c68a985c3d9b613bf3153071c | [
"MIT"
] | null | null | null | gff_to_gbk.py | ArnaudBelcour/gbk_from_gff | addf14c55cc5845c68a985c3d9b613bf3153071c | [
"MIT"
] | 2 | 2020-05-15T12:58:17.000Z | 2020-08-05T06:13:23.000Z | #!/usr/bin/env python3
# coding: utf8
"""
Description:
Using fasta files (scaffold/chromosme/contig file, protein file), gff file, annotation tsv file and the species name
this script writes a genbank file.
The annotation tsv file contains association between gene and annotation (EC number, GO term, Interpro)
to add ... | 46.617591 | 162 | 0.632132 |
1a3e9d713d8d312ad682cee9b4c6fc31735f9eac | 14,362 | py | Python | Anchors/AdjustAnchors.py | davelab6/fontlab-scripts-1 | 2e59280a2af5dfe708e9ad112b7286f7bf92eb48 | [
"MIT"
] | 33 | 2015-02-25T11:40:08.000Z | 2021-11-12T05:41:09.000Z | Anchors/AdjustAnchors.py | davelab6/fontlab-scripts-1 | 2e59280a2af5dfe708e9ad112b7286f7bf92eb48 | [
"MIT"
] | 1 | 2015-03-07T09:10:20.000Z | 2015-03-08T08:32:57.000Z | Anchors/AdjustAnchors.py | davelab6/fontlab-scripts-1 | 2e59280a2af5dfe708e9ad112b7286f7bf92eb48 | [
"MIT"
] | 15 | 2015-04-03T03:48:36.000Z | 2021-08-30T08:18:26.000Z | #FLM: Adjust Anchors
__copyright__ = __license__ = """
Copyright (c) 2010-2012 Adobe Systems Incorporated. All rights reserved.
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 restrictio... | 34.033175 | 125 | 0.694402 |
1a40884f8e3655b3dfc6d99906ed6b026d45047f | 661 | py | Python | Objects/Repeater.py | Camaendir/JB-LED | c6dba7264af3f6f9bc3b312d8afa24e2edebec5b | [
"MIT"
] | 3 | 2020-07-29T10:40:02.000Z | 2021-01-02T15:18:00.000Z | Objects/Repeater.py | Camaendir/JB-LED | c6dba7264af3f6f9bc3b312d8afa24e2edebec5b | [
"MIT"
] | 5 | 2020-10-01T18:28:39.000Z | 2020-10-08T19:17:44.000Z | Objects/Repeater.py | Camaendir/JB-LED | c6dba7264af3f6f9bc3b312d8afa24e2edebec5b | [
"MIT"
] | null | null | null | import copy
from math import floor
from Objects.Object import Object
| 31.47619 | 92 | 0.67171 |
1a41f91574cc97294c624d878bae98006410b2d3 | 627 | py | Python | web/django/bookLib/bookLib/forms.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | web/django/bookLib/bookLib/forms.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | web/django/bookLib/bookLib/forms.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | from django import forms
| 24.115385 | 49 | 0.432217 |
1a424da371a77f49cafcf1b25908551d82fcf1e6 | 7,173 | py | Python | simpleview_pytorch/resnet.py | isaaccorley/simpleview-pytorch | 84a3e493905491feaed849a8bd5ddd240b2d04f2 | [
"MIT"
] | 9 | 2021-04-27T01:15:13.000Z | 2022-02-01T11:22:35.000Z | simpleview_pytorch/resnet.py | IsaacCorley/simpleview-pytorch | 84a3e493905491feaed849a8bd5ddd240b2d04f2 | [
"MIT"
] | 1 | 2021-05-18T12:24:04.000Z | 2021-06-12T05:09:27.000Z | simpleview_pytorch/resnet.py | IsaacCorley/simpleview-pytorch | 84a3e493905491feaed849a8bd5ddd240b2d04f2 | [
"MIT"
] | 1 | 2022-02-01T11:22:36.000Z | 2022-02-01T11:22:36.000Z | """
Modified from https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py
Edits:
ResNet:
- Changed input layer from 3 channel -> 1 channel (depth images)
- Divided inplanes, planes, and width_per_group by 4
BasicBlock:
- Commented out ValueError triggered by base_width ... | 37.554974 | 107 | 0.577304 |
1a428b3cebba37ae0405317bd4d0e2bbdb0b64a7 | 717 | py | Python | DB_resource/code/insertMongodb.py | DaiShuHeng/shiyizhonghua_resource | 6faa284292102ab97438f356cf9bf69d2472335b | [
"Apache-2.0"
] | null | null | null | DB_resource/code/insertMongodb.py | DaiShuHeng/shiyizhonghua_resource | 6faa284292102ab97438f356cf9bf69d2472335b | [
"Apache-2.0"
] | 1 | 2021-11-29T03:38:21.000Z | 2021-11-29T03:38:21.000Z | DB_resource/code/insertMongodb.py | DaiShuHeng/shiyizhonghua_resource | 6faa284292102ab97438f356cf9bf69d2472335b | [
"Apache-2.0"
] | 13 | 2021-11-06T03:17:45.000Z | 2021-12-02T15:12:54.000Z | # -*- coding: utf-8 -*-
"""
Author:by on 2021/11/2 21:32
FileName:insertMongodb.py in shiyizhonghua_resource
Tools:PyCharm python3.8.4
"""
from pymongo import MongoClient
from util import *
if __name__ == '__main__':
dir_name = r'./../database_json'
paths = get_file_path(dir_name)
host = '114.55.236.49'... | 26.555556 | 61 | 0.608089 |
1a43a46c11649f880078bee3e46cde206645701e | 641 | py | Python | contrib/libprotobuf_mutator/atheris_libprotobuf_mutator/proto_fuzz_test.py | muzmu/atheris | 7339163c634367dada8e5bca5bcceab8ada2b312 | [
"Apache-2.0"
] | null | null | null | contrib/libprotobuf_mutator/atheris_libprotobuf_mutator/proto_fuzz_test.py | muzmu/atheris | 7339163c634367dada8e5bca5bcceab8ada2b312 | [
"Apache-2.0"
] | null | null | null | contrib/libprotobuf_mutator/atheris_libprotobuf_mutator/proto_fuzz_test.py | muzmu/atheris | 7339163c634367dada8e5bca5bcceab8ada2b312 | [
"Apache-2.0"
] | null | null | null | import unittest
import atheris
import atheris_libprotobuf_mutator
from atheris import fuzz_test_lib
from google.protobuf import wrappers_pb2
if __name__ == "__main__":
unittest.main()
| 22.892857 | 57 | 0.762871 |
1a43e33d04e3f0eaf830b974bf544c32498255dc | 13,028 | py | Python | notebooks/generative.py | jacobdeasy/geometric-js | c4fd9d17672ac1aef2a95daeb7514ce7c20a469a | [
"MIT"
] | 14 | 2020-06-18T14:14:10.000Z | 2021-08-18T01:59:48.000Z | notebooks/generative.py | jacobdeasy/geometric-js | c4fd9d17672ac1aef2a95daeb7514ce7c20a469a | [
"MIT"
] | null | null | null | notebooks/generative.py | jacobdeasy/geometric-js | c4fd9d17672ac1aef2a95daeb7514ce7c20a469a | [
"MIT"
] | 2 | 2021-03-23T23:43:36.000Z | 2021-05-04T08:35:36.000Z | import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import os
import pdb
from tqdm import tqdm
import argparse
import pandas as pd
import sys
BASE_DIR=os.path.dirname(os.getcwd())
sys.path.append(BASE_DIR)
sys.path.append('/home/tam63/geometric-js')
import torch
import scipy.stats
from scipy.... | 35.595628 | 130 | 0.623043 |
1a467cffc666f7d4209f357092ce125a04accdd5 | 1,234 | py | Python | News_chat_bot/News_scraper.py | amansharmma/News_Chat_Bot | f3342da9f20c5ff9037111a358b4e70c294a6a5b | [
"MIT"
] | null | null | null | News_chat_bot/News_scraper.py | amansharmma/News_Chat_Bot | f3342da9f20c5ff9037111a358b4e70c294a6a5b | [
"MIT"
] | null | null | null | News_chat_bot/News_scraper.py | amansharmma/News_Chat_Bot | f3342da9f20c5ff9037111a358b4e70c294a6a5b | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
import requests,datetime
top_news = {"world":[],"business":[],"technology":[],"sports":[],"entertainment":[]}
| 33.351351 | 275 | 0.670178 |
1a46d0a115b32d7ff6c6db2d71f59e05c37b173c | 2,388 | py | Python | telraam_data/tests/test_download.py | Duam/telraam-data | fd1bda4a0be3f858015470a6cb9a3d64e140ce32 | [
"MIT"
] | null | null | null | telraam_data/tests/test_download.py | Duam/telraam-data | fd1bda4a0be3f858015470a6cb9a3d64e140ce32 | [
"MIT"
] | null | null | null | telraam_data/tests/test_download.py | Duam/telraam-data | fd1bda4a0be3f858015470a6cb9a3d64e140ce32 | [
"MIT"
] | null | null | null | import telraam_data.query as query
import telraam_data.download as download
from .utils import get_data_keys
import datetime as dt
import shutil
import pandas as pd
import pathlib as pl
import random
import pytest
def test_list_segments():
# As of April 2020 there were more than 900 active segments.
segment... | 33.166667 | 95 | 0.725712 |
1a47a619909d8c68e7ff3f55a7292b76dc36728b | 4,544 | py | Python | kashgari/tasks/abs_task_model.py | SharpKoi/Kashgari | ef8c4b4d17dbd69616b9cc744489181909e313c3 | [
"Apache-2.0"
] | null | null | null | kashgari/tasks/abs_task_model.py | SharpKoi/Kashgari | ef8c4b4d17dbd69616b9cc744489181909e313c3 | [
"Apache-2.0"
] | null | null | null | kashgari/tasks/abs_task_model.py | SharpKoi/Kashgari | ef8c4b4d17dbd69616b9cc744489181909e313c3 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
# author: BrikerMan
# contact: eliyar917@gmail.com
# blog: https://eliyar.biz
# file: abs_task_model.py
# time: 1:43
import json
import os
import pathlib
from abc import ABC, abstractmethod
from typing import Dict, Any, TYPE_CHECKING, Union
import tensorflow as tf
import kashgari
from kashgari.e... | 38.184874 | 114 | 0.665493 |
1a47bdd4053aca36705ed4d58e60c21aacfb2da2 | 1,915 | py | Python | pyram/utils/make_info_from_amr.py | Hoseung/pyRamAn | f9386fa5a9f045f98590039988d3cd50bc488dc2 | [
"MIT"
] | 1 | 2021-11-25T16:11:56.000Z | 2021-11-25T16:11:56.000Z | pyram/utils/make_info_from_amr.py | Hoseung/pyRamAn | f9386fa5a9f045f98590039988d3cd50bc488dc2 | [
"MIT"
] | 6 | 2020-02-17T13:44:43.000Z | 2020-06-25T15:35:05.000Z | pyram/utils/make_info_from_amr.py | Hoseung/pyRamAn | f9386fa5a9f045f98590039988d3cd50bc488dc2 | [
"MIT"
] | 1 | 2021-11-25T16:11:56.000Z | 2021-11-25T16:11:56.000Z |
# coding: utf-8
"""
This can generate 'header' of info.
But it is not trivial to read 128-bit floating point (QUADHILBERT) numbers from binary bits in Python.
Instead, I used a fortran program to read amr.00001 and output hilbert keys in the info format.
"""
wdir = "./"
from pyram import load
nouts = range(113, 12... | 31.393443 | 111 | 0.565535 |
1a48273fcffbd81bf82e527381a62c49f570d938 | 3,794 | py | Python | 2021/d25/d25.py | btharper/aoc | c4e265515da4b61b9e6704652a1d1175ddfd3f92 | [
"Apache-2.0"
] | null | null | null | 2021/d25/d25.py | btharper/aoc | c4e265515da4b61b9e6704652a1d1175ddfd3f92 | [
"Apache-2.0"
] | null | null | null | 2021/d25/d25.py | btharper/aoc | c4e265515da4b61b9e6704652a1d1175ddfd3f92 | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict, Counter, deque
from functools import cache
from itertools import product, pairwise
from multiprocessing import Pool
import math
import re
non_digits = re.compile('[^0-9]+')
grid_char = {'.': '.', (0,1): 'v', (1,0):'>'}
if __name__ == '__main__':
cases = [
#(id, inp, p... | 29.410853 | 82 | 0.495783 |
1a49cf0573ed943c6db81fa5fa001609a4e4757e | 4,773 | py | Python | Hermes.py | jax777/Hermes | 55defa1640b2d8f14a63878b8bbff41272779c75 | [
"Unlicense"
] | null | null | null | Hermes.py | jax777/Hermes | 55defa1640b2d8f14a63878b8bbff41272779c75 | [
"Unlicense"
] | null | null | null | Hermes.py | jax777/Hermes | 55defa1640b2d8f14a63878b8bbff41272779c75 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
# coding: utf-8
# __author__ jax777
import os
import cgi
import json
import urllib
import hashlib
import datetime
import tornado.ioloop
import tornado.web
import traceback
from tornado.escape import json_decode
from multiprocessing import Process
from sqllitedb import *
from DnsServer import dns_serv... | 27.75 | 119 | 0.57511 |
1a4a79766214bce2c54862f0ba91b60a1d34cf35 | 1,348 | py | Python | landdegradation/download.py | gdaldegan/landdegradation | 08860179eb4fa5dcd4572b75dd2ce343e3575295 | [
"MIT"
] | null | null | null | landdegradation/download.py | gdaldegan/landdegradation | 08860179eb4fa5dcd4572b75dd2ce343e3575295 | [
"MIT"
] | null | null | null | landdegradation/download.py | gdaldegan/landdegradation | 08860179eb4fa5dcd4572b75dd2ce343e3575295 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import ee
from landdegradation.util import TEImage
from landdegradation.schemas.schemas import BandInfo
def download(asset, name, temporal_resolution, start_year, end_year,
EXECUTION_ID, logger)... | 36.432432 | 117 | 0.669881 |
1a4b90bcaa04099413775127fbdb065ea1e2bdcf | 1,344 | py | Python | tensorflow_datasets/core/logging/logging_logger.py | sourcery-ai-bot/datasets | b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28 | [
"Apache-2.0"
] | 1 | 2021-07-04T11:07:34.000Z | 2021-07-04T11:07:34.000Z | tensorflow_datasets/core/logging/logging_logger.py | sourcery-ai-bot/datasets | b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28 | [
"Apache-2.0"
] | null | null | null | tensorflow_datasets/core/logging/logging_logger.py | sourcery-ai-bot/datasets | b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28 | [
"Apache-2.0"
] | 1 | 2021-07-04T11:07:35.000Z | 2021-07-04T11:07:35.000Z | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 38.4 | 79 | 0.72619 |
1a4be22543af73441ad4c9ced85adf6351a9df98 | 100 | py | Python | zeeko/cyloop/tests/conftest.py | alexrudy/Zeeko | fb4992724620ed548dd32c3201f79f5b7bebfe32 | [
"BSD-3-Clause"
] | 2 | 2017-07-23T22:06:05.000Z | 2020-02-28T07:54:15.000Z | zeeko/cyloop/tests/conftest.py | alexrudy/Zeeko | fb4992724620ed548dd32c3201f79f5b7bebfe32 | [
"BSD-3-Clause"
] | 1 | 2020-10-29T19:54:06.000Z | 2020-10-29T19:54:06.000Z | zeeko/cyloop/tests/conftest.py | alexrudy/Zeeko | fb4992724620ed548dd32c3201f79f5b7bebfe32 | [
"BSD-3-Clause"
] | null | null | null | import pytest
import numpy as np
| 11.111111 | 26 | 0.65 |
1a4c9682da4b81a0f168d8e9419bc7e161393b09 | 26,025 | py | Python | build/releases/release-0.573py3/ob/ltr.py | farinacci/lispers.net | e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c | [
"Apache-2.0"
] | 26 | 2019-02-01T19:12:21.000Z | 2022-03-25T04:40:38.000Z | build/releases/release-0.572py3/ob/ltr.py | farinacci/lispers.net | e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c | [
"Apache-2.0"
] | 3 | 2019-10-29T17:49:19.000Z | 2022-03-20T21:21:31.000Z | build/releases/release-0.569/ob/ltr.py | farinacci/lispers.net | e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c | [
"Apache-2.0"
] | 4 | 2019-02-02T16:50:48.000Z | 2020-10-29T03:10:58.000Z | #!/usr/bin/python
# -----------------------------------------------------------------------------
#
# Copyright 2013-2019 lispers.net - Dino Farinacci <farinacci@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may o... | 44.035533 | 152 | 0.621134 |
1a4d09aa09e2665f13f249c5708fdd7192001e99 | 2,409 | py | Python | web/blog/migrations/0001_initial.py | CleyFaye/gtlive-info | 9e54e81b47f4292586211e83b776eec24214ab46 | [
"MIT"
] | null | null | null | web/blog/migrations/0001_initial.py | CleyFaye/gtlive-info | 9e54e81b47f4292586211e83b776eec24214ab46 | [
"MIT"
] | 22 | 2019-03-23T21:08:08.000Z | 2019-03-25T07:34:58.000Z | web/blog/migrations/0001_initial.py | CleyFaye/gtlive-info | 9e54e81b47f4292586211e83b776eec24214ab46 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-06 16:44
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 48.18 | 227 | 0.635949 |
1a4e44fa1437f33e3868edd4c85aa17b157bd285 | 311 | py | Python | Scraping/DarkWebScraper/main.py | Shokr/Python_Playbook | e29ba874890349742f198982cc40763b30a58842 | [
"MIT"
] | 12 | 2020-04-05T10:01:11.000Z | 2022-02-05T08:11:54.000Z | Scraping/DarkWebScraper/main.py | Shokr/Python_Playbook | e29ba874890349742f198982cc40763b30a58842 | [
"MIT"
] | null | null | null | Scraping/DarkWebScraper/main.py | Shokr/Python_Playbook | e29ba874890349742f198982cc40763b30a58842 | [
"MIT"
] | 6 | 2020-04-03T22:24:34.000Z | 2022-01-28T12:22:34.000Z | # https://justhackerthings.com/post/building-a-dark-web-scraper/
import sys
if __name__ == "__main__":
main()
| 16.368421 | 64 | 0.646302 |
1a4f1c919b299942a82c6932d7f00aabeb8479d0 | 316 | py | Python | tests/data/formulas/foo/foo-1.0.py | pmuller/ipkg | 9e3df803e0f16035a7552f63bbf54886244827d8 | [
"MIT"
] | 3 | 2016-04-20T21:24:59.000Z | 2021-11-17T10:58:49.000Z | tests/data/formulas/foo/foo-1.0.py | pmuller/ipkg | 9e3df803e0f16035a7552f63bbf54886244827d8 | [
"MIT"
] | null | null | null | tests/data/formulas/foo/foo-1.0.py | pmuller/ipkg | 9e3df803e0f16035a7552f63bbf54886244827d8 | [
"MIT"
] | null | null | null | from os.path import dirname
from ipkg.build import Formula, File
| 21.066667 | 72 | 0.626582 |
1a5061fa8eaa75165019221d64224e6c9602ed66 | 778 | py | Python | prob0002.py | chadhs/project-euler | c19a81a98efee991cadb6a66eb1865088416201e | [
"BSD-3-Clause"
] | null | null | null | prob0002.py | chadhs/project-euler | c19a81a98efee991cadb6a66eb1865088416201e | [
"BSD-3-Clause"
] | null | null | null | prob0002.py | chadhs/project-euler | c19a81a98efee991cadb6a66eb1865088416201e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
print sum_even_fib(4*10**6)
print sum_even_fib(4*10**6)
| 21.611111 | 46 | 0.618252 |
1a52dc51601a35116aee6d656ad33ca1c1841e16 | 7,660 | py | Python | tests/integration/test_autocommit.py | michaelcraige/neo4j-python-driver | 27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a | [
"Apache-2.0"
] | 1 | 2021-05-18T14:11:39.000Z | 2021-05-18T14:11:39.000Z | tests/integration/test_autocommit.py | michaelcraige/neo4j-python-driver | 27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a | [
"Apache-2.0"
] | null | null | null | tests/integration/test_autocommit.py | michaelcraige/neo4j-python-driver | 27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Copyright (c) 2002-2019 "Neo4j,"
# Neo4j Sweden AB [http://neo4j.com]
#
# This file is part of Neo4j.
#
# 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 L... | 33.160173 | 78 | 0.607441 |
1a5431d37ebda58e5b218f10d2b25e4f51243a49 | 1,596 | py | Python | bokeh/serve_through_api/flask_api/html_generator.py | eshanMewantha/data-visualization | d9cdd5551092d90572e34af1ebd82af414f16aaf | [
"MIT"
] | null | null | null | bokeh/serve_through_api/flask_api/html_generator.py | eshanMewantha/data-visualization | d9cdd5551092d90572e34af1ebd82af414f16aaf | [
"MIT"
] | null | null | null | bokeh/serve_through_api/flask_api/html_generator.py | eshanMewantha/data-visualization | d9cdd5551092d90572e34af1ebd82af414f16aaf | [
"MIT"
] | null | null | null | import pandas as pd
from bokeh.plotting import figure
from bokeh.sampledata.stocks import AAPL
| 26.163934 | 92 | 0.615915 |
1a55793e5089f89d8e094d3d19b917c7ca92caad | 1,728 | py | Python | app/nanoleaf/layout.py | kyleposluns/nanoleaf | b83fcf6d92a54b7ce2d92b04355cedf63f09e13b | [
"MIT"
] | null | null | null | app/nanoleaf/layout.py | kyleposluns/nanoleaf | b83fcf6d92a54b7ce2d92b04355cedf63f09e13b | [
"MIT"
] | null | null | null | app/nanoleaf/layout.py | kyleposluns/nanoleaf | b83fcf6d92a54b7ce2d92b04355cedf63f09e13b | [
"MIT"
] | null | null | null | from app.nanoleaf.model import AuroraObject | 37.565217 | 100 | 0.678241 |
1a5c80ab6f0c06783f4d0e9551701ed39a95c25b | 3,243 | py | Python | classes/data_handler.py | GorillaBus/tf-translate | 2cc23fb32cb1d78cb82c8c894e25f5e709d01b78 | [
"MIT"
] | null | null | null | classes/data_handler.py | GorillaBus/tf-translate | 2cc23fb32cb1d78cb82c8c894e25f5e709d01b78 | [
"MIT"
] | null | null | null | classes/data_handler.py | GorillaBus/tf-translate | 2cc23fb32cb1d78cb82c8c894e25f5e709d01b78 | [
"MIT"
] | null | null | null | import tensorflow as tf
from sklearn.model_selection import train_test_split
import unicodedata
import re
import io
'''
Handles data loading, pre-processing and tokenizing
'''
| 26.153226 | 101 | 0.670675 |
1a5e520e42f56529133381c93cca81b7e91fe302 | 4,060 | py | Python | tests/db/test_client.py | wxnacy/lfsdb | ff200e682ebafb9c806b8d5935c535d77b439981 | [
"MIT"
] | null | null | null | tests/db/test_client.py | wxnacy/lfsdb | ff200e682ebafb9c806b8d5935c535d77b439981 | [
"MIT"
] | null | null | null | tests/db/test_client.py | wxnacy/lfsdb | ff200e682ebafb9c806b8d5935c535d77b439981 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: wxnacy@gmail.com
"""
"""
import pytest
import os
from wpy.path import read_dict
from wpy.randoms import (
random_str
)
from lfsdb import FileStorage
from lfsdb.db import FileStorageError
from lfsdb.db.errors import FSQueryError
from lfsdb.db.ca... | 22.065217 | 82 | 0.599754 |
1a5fe65ea13d858d4fe548293ae1aefcbe8c803b | 865 | py | Python | days/dec6/dec6.py | denysvitali/aoc-2020 | b0b3460c5043e4ce78a6ef00a40cc817953f6c43 | [
"MIT"
] | null | null | null | days/dec6/dec6.py | denysvitali/aoc-2020 | b0b3460c5043e4ce78a6ef00a40cc817953f6c43 | [
"MIT"
] | null | null | null | days/dec6/dec6.py | denysvitali/aoc-2020 | b0b3460c5043e4ce78a6ef00a40cc817953f6c43 | [
"MIT"
] | null | null | null | import re
example = "".join(open("example.txt").readlines())
puzzle = "".join(open("puzzle.txt").readlines())
problem_input = puzzle
print("part_a: %d" % part_a())
print("part_b: %d" % part_b())
| 20.116279 | 50 | 0.552601 |
1a60a5f260cfd69458005fdf8f18f4a31de9980c | 1,154 | py | Python | integration_tests/web/test_issue_378.py | KharchenkoDmitriy/python-slack-sdk | 5340ee337a2364e84c38d696c107f19c341dd6eb | [
"MIT"
] | null | null | null | integration_tests/web/test_issue_378.py | KharchenkoDmitriy/python-slack-sdk | 5340ee337a2364e84c38d696c107f19c341dd6eb | [
"MIT"
] | null | null | null | integration_tests/web/test_issue_378.py | KharchenkoDmitriy/python-slack-sdk | 5340ee337a2364e84c38d696c107f19c341dd6eb | [
"MIT"
] | null | null | null | import asyncio
import logging
import os
import unittest
from integration_tests.env_variable_names import SLACK_SDK_TEST_USER_TOKEN
from integration_tests.helpers import async_test
from slack import WebClient
| 32.055556 | 118 | 0.740035 |
1a6106088407de4e7e1d70c09e88f77cac779b4b | 7,199 | py | Python | tune/iterative/asha.py | fugue-project/tune | bf2288ddcb29c8345d996a9b22c0910da9002da1 | [
"Apache-2.0"
] | 14 | 2021-03-03T20:02:09.000Z | 2021-11-10T20:32:22.000Z | tune/iterative/asha.py | fugue-project/tune | bf2288ddcb29c8345d996a9b22c0910da9002da1 | [
"Apache-2.0"
] | 26 | 2021-04-30T19:56:06.000Z | 2022-01-18T04:40:00.000Z | tune/iterative/asha.py | fugue-project/tune | bf2288ddcb29c8345d996a9b22c0910da9002da1 | [
"Apache-2.0"
] | 2 | 2021-04-30T03:12:21.000Z | 2022-02-05T12:13:37.000Z | from threading import RLock
from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Tuple
from triad import to_uuid
from tune.concepts.flow import (
Monitor,
Trial,
TrialDecision,
TrialJudge,
TrialReport,
TrialReportHeap,
)
class _PerTrial:
def __init__(self, parent: "_Per... | 33.640187 | 87 | 0.592999 |
1a617a21f77fb7f52b6d11e5c92d2818e85cb8ab | 326 | py | Python | powerwiki/markup/md.py | radiac/django-powerwiki | 3df80384261bdef8d25b1df9459073f0ae928a86 | [
"BSD-3-Clause"
] | 4 | 2020-09-10T20:36:02.000Z | 2021-11-03T17:09:11.000Z | powerwiki/markup/md.py | radiac/django-powerwiki | 3df80384261bdef8d25b1df9459073f0ae928a86 | [
"BSD-3-Clause"
] | null | null | null | powerwiki/markup/md.py | radiac/django-powerwiki | 3df80384261bdef8d25b1df9459073f0ae928a86 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.auth.models import AbstractUser
import markdown
from .base import MarkupEngine
| 21.733333 | 63 | 0.705521 |
1a67fad9931909e49275c4b3f5a5ee8cc9517384 | 75 | py | Python | driver27/urls/team.py | SRJ9/driver27 | 3fd32005a89112fe9f94281b33a497d4ab1ebb55 | [
"MIT"
] | 1 | 2016-10-12T22:49:09.000Z | 2016-10-12T22:49:09.000Z | driver27/urls/team.py | SRJ9/driver27 | 3fd32005a89112fe9f94281b33a497d4ab1ebb55 | [
"MIT"
] | 1 | 2016-10-12T22:47:08.000Z | 2016-10-12T22:47:08.000Z | driver27/urls/team.py | SRJ9/driver27 | 3fd32005a89112fe9f94281b33a497d4ab1ebb55 | [
"MIT"
] | null | null | null | from .default import dr27_stats_urls
urlpatterns = dr27_stats_urls('team') | 25 | 37 | 0.826667 |
1a68ae4c6daaddebc3deeeeee768f2c7fe6d1bdb | 1,936 | py | Python | cuppa/methods/markdown_to_html.py | pwj58/cuppa | 6c598a124c5aa52b459637ca1865cda2e2d300bd | [
"BSL-1.0"
] | 25 | 2015-09-24T07:04:45.000Z | 2022-02-19T03:31:03.000Z | cuppa/methods/markdown_to_html.py | pwj58/cuppa | 6c598a124c5aa52b459637ca1865cda2e2d300bd | [
"BSL-1.0"
] | 46 | 2015-05-20T12:48:12.000Z | 2022-01-10T10:38:55.000Z | cuppa/methods/markdown_to_html.py | pwj58/cuppa | 6c598a124c5aa52b459637ca1865cda2e2d300bd | [
"BSL-1.0"
] | 13 | 2015-07-12T09:55:03.000Z | 2021-07-02T15:32:12.000Z |
# Copyright Jamie Allsop 2015-2015
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#-------------------------------------------------------------------------------
# MarkdownToHtmlMethod
#--... | 29.333333 | 154 | 0.547521 |
1a68c8384b519235047d4e9148d15734f7c8bc80 | 3,718 | py | Python | WIN_EventLog/OS_gathering/files/extracting.py | exastro-playbook-collection/OS-Windows2019 | 79c4f13e75ae1d4380d30f503f04ffb4dcf52ecf | [
"Apache-2.0"
] | null | null | null | WIN_EventLog/OS_gathering/files/extracting.py | exastro-playbook-collection/OS-Windows2019 | 79c4f13e75ae1d4380d30f503f04ffb4dcf52ecf | [
"Apache-2.0"
] | null | null | null | WIN_EventLog/OS_gathering/files/extracting.py | exastro-playbook-collection/OS-Windows2019 | 79c4f13e75ae1d4380d30f503f04ffb4dcf52ecf | [
"Apache-2.0"
] | 1 | 2021-09-29T05:39:41.000Z | 2021-09-29T05:39:41.000Z | import re
import json
import sys
import os
args = sys.argv
if (len(args) < 2):
sys.exit(1)
path = args[1]
if(path[-1:] == "/"):
path = path[:-1]
result_filedata_list = []
registry_info = {}
target_filepath_list = []
target_filepath_list.append('/1/stdout.txt')
target_filepath_list.append('/3/stdout.txt')
f... | 39.553191 | 84 | 0.516945 |
1a6a4b81633f72d324dbf4acc99d2ef2ff1a4ab9 | 5,603 | py | Python | src/datamanager/dataset.py | iN1k1/deep-pyramidal-representations-peron-re-identification | 18eacd3b7bde2c4767ba290b655cb0f5c72ed8fe | [
"MIT"
] | 13 | 2019-08-09T08:33:27.000Z | 2020-12-21T08:51:33.000Z | src/datamanager/dataset.py | iN1k1/deep-pyramidal-representations-peron-re-identification | 18eacd3b7bde2c4767ba290b655cb0f5c72ed8fe | [
"MIT"
] | 5 | 2021-03-19T02:17:23.000Z | 2022-03-11T23:53:44.000Z | src/datamanager/dataset.py | iN1k1/deep-pyramidal-representations-peron-re-identification | 18eacd3b7bde2c4767ba290b655cb0f5c72ed8fe | [
"MIT"
] | 4 | 2019-11-06T08:02:21.000Z | 2021-01-13T20:34:23.000Z | import pickle
import os
import numpy as np
from .utils import make_dataset_images, find_classes
from operator import itemgetter
import copy
| 33.35119 | 130 | 0.598786 |
1a6aa4d0a786d3e399ee18bc2e9e652bb27f3099 | 1,108 | py | Python | video/main.py | ArseniKavalchuk/ffmpeg-hls-view | 943e8eb5de7357c720d332a3ef13be98fd1efdf5 | [
"Apache-2.0"
] | 1 | 2020-10-23T15:56:31.000Z | 2020-10-23T15:56:31.000Z | video/main.py | ArseniKavalchuk/ffmpeg-rtsp-hls-view | 943e8eb5de7357c720d332a3ef13be98fd1efdf5 | [
"Apache-2.0"
] | null | null | null | video/main.py | ArseniKavalchuk/ffmpeg-rtsp-hls-view | 943e8eb5de7357c720d332a3ef13be98fd1efdf5 | [
"Apache-2.0"
] | null | null | null | from video.segment import CodecCopyHLSFormatSegmenter
from video.segment import CodecX264HLSFormatSegmenter
from video.segment import CodecX264SegmentFormatSegmenter
from video.segment import CodecX264ResizeHLSFormatSegmenter
from video.snapshot import take_snapshot
import os
import pathlib
import argparse
PROJECT_ROO... | 38.206897 | 116 | 0.758123 |
1a6b3b67a196647e34aaaebda16a46305f5a9bec | 1,565 | py | Python | ada_loss/chainer_impl/ada_loss_transforms.py | kumasento/gradient-scaling | 0ca435433b9953e33656173c4d60ebd61c5c5e87 | [
"MIT"
] | 7 | 2020-08-12T12:04:28.000Z | 2021-11-22T15:56:08.000Z | ada_loss/chainer_impl/ada_loss_transforms.py | kumasento/gradient-scaling | 0ca435433b9953e33656173c4d60ebd61c5c5e87 | [
"MIT"
] | 1 | 2021-10-07T08:37:39.000Z | 2021-10-08T02:41:39.000Z | ada_loss/chainer_impl/ada_loss_transforms.py | kumasento/gradient-scaling | 0ca435433b9953e33656173c4d60ebd61c5c5e87 | [
"MIT"
] | null | null | null | """ Implement the transformations we need to use
to convert a link to an adaptive loss scaled link. """
# NOTE: this file is deprecated
import chainer
import chainer.links as L
import chainer.initializers as I
# pylint: disable=unused-wildcard-import
from ada_loss.chainer_impl.links import *
__all__ = [
"Ada... | 24.84127 | 86 | 0.623642 |
1a6c38fe3eac0c9e9490bdee1d1414080a4cb623 | 2,294 | py | Python | services/flask/project/elasticSearch/query_builder.py | eseerigha/countries-api | 31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4 | [
"MIT"
] | null | null | null | services/flask/project/elasticSearch/query_builder.py | eseerigha/countries-api | 31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4 | [
"MIT"
] | null | null | null | services/flask/project/elasticSearch/query_builder.py | eseerigha/countries-api | 31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from elasticsearch_dsl import query
from elasticsearch_dsl.query import MatchPhrasePrefix, Term, Bool, Match, MatchAll
| 26.367816 | 101 | 0.6068 |
1a6d2886a4a7ffe920b3a6389b89764f7a3428c8 | 2,002 | py | Python | run.py | RitvikSardana/ekatraone-backend | 13d4fc95de749b13bac6491c46eb471214b08e9a | [
"MIT"
] | null | null | null | run.py | RitvikSardana/ekatraone-backend | 13d4fc95de749b13bac6491c46eb471214b08e9a | [
"MIT"
] | null | null | null | run.py | RitvikSardana/ekatraone-backend | 13d4fc95de749b13bac6491c46eb471214b08e9a | [
"MIT"
] | 3 | 2021-12-16T14:14:58.000Z | 2022-01-24T10:49:48.000Z | """
The main app where all the routes are initiated here and runs the flask app
"""
from resources.auth import *
from resources.reset import *
from resources.userdetails import *
from resources.course import *
from resources.groups import *
from resources.delivery import *
from resources.dashboard_api import *
from re... | 38.5 | 75 | 0.766234 |
1a6d9e1b1f6a95c204998e268f6dedde3030bfcb | 4,451 | py | Python | atlas/foundations_rest_api/src/acceptance/v2beta/test_artifact_loading.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_rest_api/src/acceptance/v2beta/test_artifact_loading.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_rest_api/src/acceptance/v2beta/test_artifact_loading.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
from foundations_spec import *
from acceptance.api_acceptance_test_case_base import APIAcceptanceTestCaseBase
from acceptance.v2beta.jobs_tests_helper_mixin_v2 import JobsTestsHelperMixinV2
| 38.704348 | 121 | 0.682768 |
1a6deb9d77ae7f9dd3a6a89e5e68c8dd4e802884 | 16,234 | py | Python | model/state_encoder_model.py | lil-lab/cerealbar_generation | 41153537c0bd8aed97f2ea841165477a8c480d58 | [
"MIT"
] | null | null | null | model/state_encoder_model.py | lil-lab/cerealbar_generation | 41153537c0bd8aed97f2ea841165477a8c480d58 | [
"MIT"
] | null | null | null | model/state_encoder_model.py | lil-lab/cerealbar_generation | 41153537c0bd8aed97f2ea841165477a8c480d58 | [
"MIT"
] | null | null | null | import os, sys, copy
import pickle
import math
import time
import numpy as np
from typing import Dict, Any, List, Set, Tuple
import torch
import torch.nn.functional as F
from torch import nn
from torch.nn.utils.rnn import pad_sequence
import torch.nn.utils.rnn as rnn_utils
from agent.environment.position import Pos... | 44.721763 | 132 | 0.620549 |
1a6e8546353af8e6a5051dfc50d1bb801c40b2af | 2,247 | py | Python | tensorlayer/layers/noise.py | Howdy-Personally/tensorlayer-master | bb92e4e187419d5e7ded8331d5c7cbf5615ee744 | [
"Apache-2.0"
] | 4,484 | 2017-12-27T03:28:35.000Z | 2021-12-02T14:42:58.000Z | tensorlayer/layers/noise.py | Howdy-Personally/tensorlayer-master | bb92e4e187419d5e7ded8331d5c7cbf5615ee744 | [
"Apache-2.0"
] | 549 | 2017-12-28T07:19:52.000Z | 2021-11-05T02:34:20.000Z | tensorlayer/layers/noise.py | Howdy-Personally/tensorlayer-master | bb92e4e187419d5e7ded8331d5c7cbf5615ee744 | [
"Apache-2.0"
] | 1,076 | 2017-12-27T12:25:46.000Z | 2021-11-24T09:12:36.000Z | #! /usr/bin/python
# -*- coding: utf-8 -*-
import tensorflow as tf
import tensorlayer as tl
from tensorlayer import logging
from tensorlayer.decorators import deprecated_alias
from tensorlayer.layers.core import Layer
__all__ = [
'GaussianNoise',
]
| 27.072289 | 114 | 0.595461 |
1a6ed059d7b1feb8a9fc1f37a0a29d603590be28 | 447 | py | Python | aiautomation/testcase/scenarios_recovery.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | aiautomation/testcase/scenarios_recovery.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | aiautomation/testcase/scenarios_recovery.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# coding=utf-8
import abc
from aiautomation.testcase.browser import Browser
| 17.88 | 49 | 0.60179 |
1a700cc75c7db30432b3bee2d9bb6579a2ada503 | 2,195 | py | Python | examples/example_plots.py | lupify/pynverse | b943b49a0a398a00d4e712f492721f3dfa77ed52 | [
"MIT"
] | 46 | 2016-10-30T19:59:36.000Z | 2022-03-01T10:59:11.000Z | examples/example_plots.py | Phibedy/pynverse | afa62d1f8f59110cced17471e57d7a1b6ab4f1df | [
"MIT"
] | 3 | 2018-04-04T10:50:57.000Z | 2021-12-03T16:55:57.000Z | examples/example_plots.py | Phibedy/pynverse | afa62d1f8f59110cced17471e57d7a1b6ab4f1df | [
"MIT"
] | 9 | 2016-12-09T00:32:26.000Z | 2022-01-17T12:24:29.000Z | from pynverse import inversefunc, piecewise
import numpy as np
import matplotlib.pyplot as plt
import scipy
cube = lambda x: x**3
invcube = inversefunc(cube)
invcube_a = lambda x: scipy.special.cbrt(x)
square = lambda x: x**2
invsquare = inversefunc(square, domain=0)
invsquare_a = lambda x: x**(1/2.)
... | 30.486111 | 102 | 0.62779 |
1a70a409960397bfd1f99c4022d1a0d3e8addf9d | 174 | py | Python | modulo 3/aulas/5.5 - Funcao fatorial.py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null | modulo 3/aulas/5.5 - Funcao fatorial.py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null | modulo 3/aulas/5.5 - Funcao fatorial.py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null |
n = int(input('Digite um numero: '))
print(f'O fatorial de {n}: {fatorial(n)}')
| 15.818182 | 42 | 0.528736 |
1a712905e9ec638daa721b6a4b9b79d609dea3fe | 686 | py | Python | tests/nevermind_test.py | Arna-Maity/corobo | 856989ada0eb56edd8a2232a4ada12d90fc33c85 | [
"MIT"
] | 81 | 2017-05-09T13:20:10.000Z | 2021-04-11T14:56:24.000Z | tests/nevermind_test.py | Arna-Maity/corobo | 856989ada0eb56edd8a2232a4ada12d90fc33c85 | [
"MIT"
] | 648 | 2017-05-09T13:57:07.000Z | 2021-04-27T12:44:26.000Z | tests/nevermind_test.py | Arna-Maity/corobo | 856989ada0eb56edd8a2232a4ada12d90fc33c85 | [
"MIT"
] | 137 | 2017-05-28T04:11:00.000Z | 2021-09-04T17:46:38.000Z | from tests.isolated_testcase import IsolatedTestCase
| 42.875 | 80 | 0.616618 |
1a714779778dd4a1ce1758b9319d7fbb68580ce1 | 6,017 | py | Python | Kijiji-Scraper.py | YounesZ/Kijiji-Scraper | 23d19a8551e18d7478e814d0e71669ae7087f248 | [
"MIT"
] | null | null | null | Kijiji-Scraper.py | YounesZ/Kijiji-Scraper | 23d19a8551e18d7478e814d0e71669ae7087f248 | [
"MIT"
] | null | null | null | Kijiji-Scraper.py | YounesZ/Kijiji-Scraper | 23d19a8551e18d7478e814d0e71669ae7087f248 | [
"MIT"
] | null | null | null | #!C:\Python34\scrapper\Scripts
# Place url, linking to ad list, with desired search filters here.
url_to_scrape = "http://www.kijiji.ca/b-canot-kayak-paddle-board/quebec/kayak/k0c329l9001"
# Set the delay in (s) that the programs waits before scraping again.
scrape_delay = 600 # 600 = 10 mins
# Set filename to stor... | 31.668421 | 114 | 0.592156 |
1a721b84f67bae06186b9dfd9e9eef0d47fea1c9 | 10,303 | py | Python | v2gcalendar/main.py | felixb/v2gcalendar | 2bcd92e4f36d5783f2df06c7d7d9d73a65cab22a | [
"Apache-2.0"
] | 1 | 2017-08-18T01:17:16.000Z | 2017-08-18T01:17:16.000Z | v2gcalendar/main.py | felixb/v2gcalendar | 2bcd92e4f36d5783f2df06c7d7d9d73a65cab22a | [
"Apache-2.0"
] | null | null | null | v2gcalendar/main.py | felixb/v2gcalendar | 2bcd92e4f36d5783f2df06c7d7d9d73a65cab22a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import argparse
import datetime
import json
import re
import sys
from calendar_service import CalendarService
from icalendar import Calendar, Event, vDatetime, vText
from logger import Logger
from oauth2client.client import AccessTokenRefreshError
from pytz import reference
logger = Logger()
... | 34.0033 | 77 | 0.510337 |
1a72bf1b8ebe20d868f1d3cc9bd23715f706abbd | 13,401 | py | Python | kikimr/public/api/protos/ydb_discovery_pb2.py | MihanixA/ydb-python-sdk | d1b93c6d2409a87c350acd604915576891d1e4f3 | [
"Apache-2.0"
] | null | null | null | kikimr/public/api/protos/ydb_discovery_pb2.py | MihanixA/ydb-python-sdk | d1b93c6d2409a87c350acd604915576891d1e4f3 | [
"Apache-2.0"
] | null | null | null | kikimr/public/api/protos/ydb_discovery_pb2.py | MihanixA/ydb-python-sdk | d1b93c6d2409a87c350acd604915576891d1e4f3 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: kikimr/public/api/protos/ydb_discovery.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.proto... | 36.514986 | 1,078 | 0.753526 |
1a74249a03f2cae7503b71c858c78b242c87a346 | 424 | py | Python | tests/test_rrpproxy_check_contact.py | ByteInternet/rrpproxy | 9f644c8ed31f963f4eadc1dafea35e59006f89fc | [
"MIT"
] | 3 | 2020-10-20T12:12:36.000Z | 2021-12-11T19:10:20.000Z | tests/test_rrpproxy_check_contact.py | ByteInternet/rrpproxy | 9f644c8ed31f963f4eadc1dafea35e59006f89fc | [
"MIT"
] | null | null | null | tests/test_rrpproxy_check_contact.py | ByteInternet/rrpproxy | 9f644c8ed31f963f4eadc1dafea35e59006f89fc | [
"MIT"
] | null | null | null | from unittest.mock import patch
from tests.test_rrpproxy_base import TestRRPProxyBase
| 32.615385 | 78 | 0.773585 |
1a74a1e8b0ee6169f83c1660ff3489436c1f2d88 | 209 | py | Python | 20190724-hello-world-flask/hello-world-flask.py | rmoralesdelgado/python-scripts | 0ec6e4d73bc5a2303fb668feba8f1c71f02dd630 | [
"MIT"
] | null | null | null | 20190724-hello-world-flask/hello-world-flask.py | rmoralesdelgado/python-scripts | 0ec6e4d73bc5a2303fb668feba8f1c71f02dd630 | [
"MIT"
] | null | null | null | 20190724-hello-world-flask/hello-world-flask.py | rmoralesdelgado/python-scripts | 0ec6e4d73bc5a2303fb668feba8f1c71f02dd630 | [
"MIT"
] | null | null | null | '''
Script to run a "Hello World" using Python 3.X and Flask.
'''
from flask import Flask
app = Flask(__name__)
if __name__ == "__main__":
app.run()
| 13.933333 | 57 | 0.645933 |
1a75d4ccd2e54ea0708b468c31e7fe2bd3fd2f92 | 310 | py | Python | docker-wrapper/parse_docker_args.py | Duke-GCB/docker-wrapper | 004ca5cd067a177ec96ac40702b2f8cb9d57e440 | [
"MIT"
] | null | null | null | docker-wrapper/parse_docker_args.py | Duke-GCB/docker-wrapper | 004ca5cd067a177ec96ac40702b2f8cb9d57e440 | [
"MIT"
] | null | null | null | docker-wrapper/parse_docker_args.py | Duke-GCB/docker-wrapper | 004ca5cd067a177ec96ac40702b2f8cb9d57e440 | [
"MIT"
] | null | null | null | import os
| 25.833333 | 57 | 0.664516 |
1a76a52e6e7d5bdeb177ef8e685d702c16d3b2ac | 20,415 | py | Python | find_dups.py | colinrcooper/filedups | 7a2271c84df85f45c9f67ab18976bebe347bc256 | [
"MIT"
] | null | null | null | find_dups.py | colinrcooper/filedups | 7a2271c84df85f45c9f67ab18976bebe347bc256 | [
"MIT"
] | null | null | null | find_dups.py | colinrcooper/filedups | 7a2271c84df85f45c9f67ab18976bebe347bc256 | [
"MIT"
] | null | null | null | from __future__ import print_function
import os, sys
if sys.version_info[0] != 3 or sys.version_info[1] < 0:
print('Your Python version is too old! Please use Python 3.0 or higher.')
sys.exit(1)
import hashlib
import fnmatch
import configparser
import argparse
import platform
os.chdir(os.path.di... | 48.262411 | 235 | 0.611903 |
1a79ab06520a99ff01196eabd99831377f229eee | 13,208 | py | Python | devday/devday/tests/test_utils_devdata.py | stefanbethke/devday_website | c4820e03b9dbb22a63b84f9d338f3a165a6d0354 | [
"BSD-3-Clause"
] | null | null | null | devday/devday/tests/test_utils_devdata.py | stefanbethke/devday_website | c4820e03b9dbb22a63b84f9d338f3a165a6d0354 | [
"BSD-3-Clause"
] | null | null | null | devday/devday/tests/test_utils_devdata.py | stefanbethke/devday_website | c4820e03b9dbb22a63b84f9d338f3a165a6d0354 | [
"BSD-3-Clause"
] | null | null | null | from io import StringIO
from cms.constants import TEMPLATE_INHERITANCE_MAGIC
from cms.models import Page
from cms.models.pluginmodel import CMSPlugin
from cms.models.static_placeholder import StaticPlaceholder
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.sites.mod... | 43.022801 | 79 | 0.619397 |
1a79eeac88453654638db9192535898ef31080d0 | 2,499 | py | Python | xmantissa/suspension.py | jonathanj/mantissa | 53e5502aba23ce99be78b27f923a276593033fe8 | [
"MIT"
] | 6 | 2016-02-17T15:04:53.000Z | 2021-08-20T09:44:10.000Z | xmantissa/suspension.py | jonathanj/mantissa | 53e5502aba23ce99be78b27f923a276593033fe8 | [
"MIT"
] | 62 | 2015-02-04T23:40:55.000Z | 2021-02-18T19:56:02.000Z | xmantissa/suspension.py | jonathanj/mantissa | 53e5502aba23ce99be78b27f923a276593033fe8 | [
"MIT"
] | 8 | 2015-11-15T17:26:42.000Z | 2020-12-02T06:36:52.000Z | from twisted.python.components import registerAdapter
from axiom.attributes import reference
from axiom.item import Item
from nevow.page import Element
from xmantissa.ixmantissa import INavigableElement, INavigableFragment
from xmantissa.webnav import Tab
from zope.interface import implements, Interface
registerAdapte... | 32.454545 | 81 | 0.683473 |
1a7b4acea6211e0f11b6ce0b1340e0ebd3c19df0 | 1,889 | py | Python | setup.py | brianredbeard/mischief | b58210eae304614ee6102fc4e29af4ce4d07de8f | [
"MIT"
] | null | null | null | setup.py | brianredbeard/mischief | b58210eae304614ee6102fc4e29af4ce4d07de8f | [
"MIT"
] | null | null | null | setup.py | brianredbeard/mischief | b58210eae304614ee6102fc4e29af4ce4d07de8f | [
"MIT"
] | null | null | null | ##############################################
# The MIT License (MIT)
# Copyright (c) 2019 Kevin Walchko
# see LICENSE for full details
##############################################
from __future__ import print_function
from setuptools import setup
from build_utils import BuildCommand
from build_utils import Publis... | 30.467742 | 78 | 0.654314 |
1a7bf867c1b1bbf1814a6ce1e2bd6f07d0bcafef | 9,244 | py | Python | metadamage/main.py | ChristianMichelsen/metadamage | f2cd8b24ae93f50c8e64202b484c5cba973ae167 | [
"MIT"
] | 3 | 2021-01-18T12:12:01.000Z | 2021-01-18T15:10:43.000Z | metadamage/main.py | ChristianMichelsen/metadamage | f2cd8b24ae93f50c8e64202b484c5cba973ae167 | [
"MIT"
] | 7 | 2021-03-03T08:35:56.000Z | 2021-11-04T08:34:54.000Z | metadamage/main.py | ChristianMichelsen/metadamage | f2cd8b24ae93f50c8e64202b484c5cba973ae167 | [
"MIT"
] | 1 | 2021-03-25T11:34:49.000Z | 2021-03-25T11:34:49.000Z | # Scientific Library
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
# Standard Library
from collections import defaultdict
from concurrent.futures import ThreadPoolExecutor
from functools import partial
from importlib import reload
import logging
import os
from pathlib import Path
# Third Part... | 23.521628 | 93 | 0.545219 |
1a7ca17c8fac0cea02df710a8598ac8c259e6344 | 1,152 | py | Python | python/sklk_widgets/StringValueComboBox.py | skylarkwireless/sklk-demos | 9de3c05377f46576186a61035497fcf2a2ced324 | [
"Apache-2.0"
] | 2 | 2019-05-12T02:57:58.000Z | 2021-06-18T08:54:59.000Z | python/sklk_widgets/StringValueComboBox.py | skylarkwireless/sklk-demos | 9de3c05377f46576186a61035497fcf2a2ced324 | [
"Apache-2.0"
] | null | null | null | python/sklk_widgets/StringValueComboBox.py | skylarkwireless/sklk-demos | 9de3c05377f46576186a61035497fcf2a2ced324 | [
"Apache-2.0"
] | 3 | 2020-04-13T21:16:07.000Z | 2021-03-24T17:52:39.000Z | ########################################################################
## Combo box with string value interface
########################################################################
from PyQt5.QtWidgets import QComboBox
from PyQt5.QtCore import pyqtSignal
| 41.142857 | 88 | 0.604167 |
1a7d17cec7b26d8f082204fb03126fadc5b321d1 | 274 | py | Python | docker_monitor/checks/active_build.py | cfpb/docker-monitor | b2073fcf79816744b3d3915b410f105b72b29f54 | [
"CC0-1.0"
] | 1 | 2021-07-14T02:36:43.000Z | 2021-07-14T02:36:43.000Z | docker_monitor/checks/active_build.py | cfpb/docker-monitor | b2073fcf79816744b3d3915b410f105b72b29f54 | [
"CC0-1.0"
] | null | null | null | docker_monitor/checks/active_build.py | cfpb/docker-monitor | b2073fcf79816744b3d3915b410f105b72b29f54 | [
"CC0-1.0"
] | 1 | 2021-02-18T11:38:52.000Z | 2021-02-18T11:38:52.000Z | import logging
from docker_monitor.policy import PolicyCheck
logger = logging.getLogger(__name__)
| 18.266667 | 45 | 0.737226 |
1a7e3e87f84ae18c2e3e70c21079daec01376fa1 | 2,433 | py | Python | compaction.py | robbassi/kvs | 3242a70f9f214f90b2fa540f1049e836b62932d2 | [
"MIT"
] | 1 | 2020-10-07T16:47:07.000Z | 2020-10-07T16:47:07.000Z | compaction.py | robbassi/kvs | 3242a70f9f214f90b2fa540f1049e836b62932d2 | [
"MIT"
] | 7 | 2020-10-07T17:42:13.000Z | 2020-12-15T00:43:41.000Z | compaction.py | robbassi/kvs | 3242a70f9f214f90b2fa540f1049e836b62932d2 | [
"MIT"
] | 1 | 2020-10-07T16:49:06.000Z | 2020-10-07T16:49:06.000Z | import sys
from common import TOMBSTONE, Value
from binio import kv_iter, kv_writer
from typing import List, Optional, Tuple
from os import scandir, stat
from sstable import SSTable
MIN_THRESHOLD = 4
MIN_SIZE = 50000000
| 31.192308 | 86 | 0.594328 |
1a7ee06ae12edb30e9d03447739bff0ec37db3b6 | 8,002 | py | Python | mrl/configs/make_continuous_agents.py | nicolascastanet/mrl | 0623c40c3e03c6a4d3e495426eae765d9f8aa751 | [
"MIT"
] | null | null | null | mrl/configs/make_continuous_agents.py | nicolascastanet/mrl | 0623c40c3e03c6a4d3e495426eae765d9f8aa751 | [
"MIT"
] | null | null | null | mrl/configs/make_continuous_agents.py | nicolascastanet/mrl | 0623c40c3e03c6a4d3e495426eae765d9f8aa751 | [
"MIT"
] | null | null | null | from mrl.import_all import *
from argparse import Namespace
import gym
import time
def make_Alice_and_Bob(config):
"""
Set Alice and Bob policies / replay / algo etc ... from agent config
TO DO : implem default Agent config
"""
# Alice
config.policy_A.required_agent_modules = [
'actor_... | 35.564444 | 142 | 0.622969 |
1a80808d8e9e323c40e1bbd90918908a6dd8d9e0 | 4,036 | py | Python | gpuexperiments/old/sharedmemory.py | hughperkins/gpu-experiments | 3e5064e45682494be97190558807672b602f1c76 | [
"BSD-2-Clause"
] | 2 | 2016-07-05T05:52:18.000Z | 2018-04-14T07:35:36.000Z | gpuexperiments/old/sharedmemory.py | hughperkins/gpu-experiments | 3e5064e45682494be97190558807672b602f1c76 | [
"BSD-2-Clause"
] | null | null | null | gpuexperiments/old/sharedmemory.py | hughperkins/gpu-experiments | 3e5064e45682494be97190558807672b602f1c76 | [
"BSD-2-Clause"
] | null | null | null | # Note that this will erase your nvidia cache, ~/.nv/ComputeCache This may or may not be an undesirable side-effect for you. For example, cutorch will take 1-2 minutes or so to start after this cache has been emptied.
from __future__ import print_function, division
import time
import string
import random
import nump... | 27.834483 | 219 | 0.652131 |
1a80cfa10b9df2618d9406f7d94897169d17a59a | 4,827 | py | Python | activities/boss_db.py | jhuapl-boss/boss-tools | 2ace8ce2985ffa3c442ed85134d26c76fb5d984f | [
"Apache-2.0"
] | 1 | 2018-08-04T21:57:34.000Z | 2018-08-04T21:57:34.000Z | activities/boss_db.py | jhuapl-boss/boss-tools | 2ace8ce2985ffa3c442ed85134d26c76fb5d984f | [
"Apache-2.0"
] | 16 | 2018-05-21T16:28:10.000Z | 2021-03-17T20:15:25.000Z | activities/boss_db.py | jhuapl-boss/boss-tools | 2ace8ce2985ffa3c442ed85134d26c76fb5d984f | [
"Apache-2.0"
] | 3 | 2018-02-08T16:45:59.000Z | 2018-03-22T15:26:14.000Z | # Copyright 2020 The Johns Hopkins University Applied Physics Laboratory
#
# 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... | 33.061644 | 117 | 0.617982 |
1a81385c1aeda3274db449a3e0247ddc02d27f2f | 15,454 | py | Python | DataWrangler.py | AlexLamson/DataWrangler | 3d4b64c30d708a55f4423a486ec9559f087c5acd | [
"MIT"
] | 12 | 2018-08-15T15:12:52.000Z | 2021-11-21T16:04:52.000Z | DataWrangler.py | AlexLamson/DataWrangler | 3d4b64c30d708a55f4423a486ec9559f087c5acd | [
"MIT"
] | 19 | 2018-06-04T15:11:01.000Z | 2019-10-09T13:16:02.000Z | DataWrangler.py | AlexLamson/DataWrangler | 3d4b64c30d708a55f4423a486ec9559f087c5acd | [
"MIT"
] | 1 | 2019-04-09T16:23:30.000Z | 2019-04-09T16:23:30.000Z | import sublime
import sublime_plugin
from collections import defaultdict
from math import log10, floor, ceil
import threading
from subprocess import check_output
import re
import itertools
# pass in a variable name and an optional default value
# to get what that value is set to in settings
'''
Description
-----... | 32.81104 | 123 | 0.631616 |
1a8180645e23b18d704d5f3aab84f4eda829d302 | 507 | py | Python | resources/rasanlu/test.py | pmelet/tcnlu | 4ad9267de4f2d3d269be5e7adb70686d4935865c | [
"Apache-2.0"
] | 1 | 2018-09-13T08:36:15.000Z | 2018-09-13T08:36:15.000Z | resources/rasanlu/test.py | pmelet/tcnlu | 4ad9267de4f2d3d269be5e7adb70686d4935865c | [
"Apache-2.0"
] | 6 | 2018-09-13T09:37:32.000Z | 2018-09-26T07:54:59.000Z | resources/rasanlu/test.py | pmelet/tcnlu | 4ad9267de4f2d3d269be5e7adb70686d4935865c | [
"Apache-2.0"
] | null | null | null | import sys, json, random
from rasa_nlu.model import Interpreter
from pprint import pprint
interpreter = Interpreter.load("models\\current\\nlu")
responses_file = sys.argv[1]
responses = json.load(open(responses_file))
while True:
question = input("> ")
response = interpreter.parse(question)
pprint(respo... | 24.142857 | 54 | 0.70217 |
1a8287bb24f4652787ef08c0f07c41db1efb2cd8 | 1,529 | py | Python | src/sql_injection/bad_authentication.py | Enprogames/SQL-Injection-Example | 6c89fd388373c58c7bfcfd3db431d33df28df30a | [
"Apache-2.0"
] | null | null | null | src/sql_injection/bad_authentication.py | Enprogames/SQL-Injection-Example | 6c89fd388373c58c7bfcfd3db431d33df28df30a | [
"Apache-2.0"
] | null | null | null | src/sql_injection/bad_authentication.py | Enprogames/SQL-Injection-Example | 6c89fd388373c58c7bfcfd3db431d33df28df30a | [
"Apache-2.0"
] | null | null | null | # sql_injection/bad_authentication.py
from django.conf import settings
from django.contrib.auth.backends import BaseBackend
from django.contrib.auth.hashers import check_password
from django.contrib.auth.hashers import make_password
from django.contrib.auth.models import User
| 39.205128 | 140 | 0.683453 |
1a853f3174943b2868458e3fd5209f38f6c49f91 | 26,053 | py | Python | humaniq.py | Dexter-Maine/Eeveaem | ba9b551971d64274a7e5dd5ac87f820a96ab5060 | [
"MIT"
] | null | null | null | humaniq.py | Dexter-Maine/Eeveaem | ba9b551971d64274a7e5dd5ac87f820a96ab5060 | [
"MIT"
] | null | null | null | humaniq.py | Dexter-Maine/Eeveaem | ba9b551971d64274a7e5dd5ac87f820a96ab5060 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import time
from web3 import Web3, KeepAliveRPCProvider, IPCProvider
web3 = Web3(KeepAliveRPCProvider(host='127.0.0.1', port='8545'))
# Global Declarations
global true
global false
global hmq_account_0_a
global hmq_account_1_a
global hmq_account_2_a
global hmq_account_3_a
global hmq_accou... | 56.269978 | 3,870 | 0.734196 |
1a854f27f0f56d7e922198cf9ddc37bf19fd9e75 | 731 | py | Python | translations/en.py | fossabot/snips-app-say-it-again | 9a73575667ce4958c989b8ee8fa49cf64cde09a8 | [
"MIT"
] | 7 | 2018-12-01T15:00:05.000Z | 2019-03-21T22:11:00.000Z | translations/en.py | fossabot/snips-app-say-it-again | 9a73575667ce4958c989b8ee8fa49cf64cde09a8 | [
"MIT"
] | 15 | 2018-12-23T14:39:32.000Z | 2020-02-01T18:59:15.000Z | translations/en.py | fossabot/snips-app-say-it-again | 9a73575667ce4958c989b8ee8fa49cf64cde09a8 | [
"MIT"
] | 10 | 2018-12-21T20:52:22.000Z | 2020-03-30T19:05:10.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This module contains the result sentences and intents for the English version
of the Say it again skill.
"""
# Result sentences
RESULT_SAY_SORRY = "Sorry, I don't remember what I said. I must have fallen asleep."
RESULT_TEXT_SORRY = "Sorry, I don't remember what you s... | 38.473684 | 90 | 0.753762 |
1a85a960a6472eb85416df8f920eee65f1eef307 | 65 | py | Python | authentication/account/__init__.py | vo0doO/pydj-persweb | efcd6b7090230f7c0b9ec056008f6d1d9e876ed9 | [
"CC0-1.0"
] | null | null | null | authentication/account/__init__.py | vo0doO/pydj-persweb | efcd6b7090230f7c0b9ec056008f6d1d9e876ed9 | [
"CC0-1.0"
] | 4 | 2020-05-06T17:22:00.000Z | 2021-12-13T20:43:30.000Z | authentication/account/__init__.py | vo0doO/pydj-persweb | efcd6b7090230f7c0b9ec056008f6d1d9e876ed9 | [
"CC0-1.0"
] | null | null | null | default_app_config = 'authentication.account.apps.AccountConfig'
| 32.5 | 64 | 0.861538 |
1a85f5e8e7e8c3eb8c8d249a4d30db324f44895e | 1,065 | py | Python | dlib/tools/python/test/generate_numpy_returns_test_data.py | asm-jaime/facerec | e5e101b9f478168ead179e6b08b5605ea7607da2 | [
"CC0-1.0"
] | 11,719 | 2015-01-03T22:38:57.000Z | 2022-03-30T21:45:04.000Z | tools/python/test/generate_numpy_returns_test_data.py | KiLJ4EdeN/dlib | eb1f08ce6ab3ca6f9d10425d899103de3c0df56c | [
"BSL-1.0"
] | 2,518 | 2015-01-04T04:38:06.000Z | 2022-03-31T11:55:43.000Z | tools/python/test/generate_numpy_returns_test_data.py | KiLJ4EdeN/dlib | eb1f08ce6ab3ca6f9d10425d899103de3c0df56c | [
"BSL-1.0"
] | 3,308 | 2015-01-01T14:34:16.000Z | 2022-03-31T07:20:07.000Z | #!/usr/bin/python
# The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt
#
# This utility generates the test data required for the tests contained in test_numpy_returns.py
#
# Also note that this utility requires Numpy which can be installed
# via the command:
# pip insta... | 32.272727 | 98 | 0.738028 |
1a85fcc456833de5c744c6e5ff7017326cb330f4 | 788 | py | Python | Chapter 4/4-2.py | Nolazco1/pythonProjects | 33938487cb2e4771ea4ff6716703868844d04e52 | [
"MIT"
] | null | null | null | Chapter 4/4-2.py | Nolazco1/pythonProjects | 33938487cb2e4771ea4ff6716703868844d04e52 | [
"MIT"
] | null | null | null | Chapter 4/4-2.py | Nolazco1/pythonProjects | 33938487cb2e4771ea4ff6716703868844d04e52 | [
"MIT"
] | null | null | null | # This program assists a technician in the process
# of checking a substance's temperature.
# Nmaed constant to represent the maximum
# temperature.
MAX_TEMP = 102.5
# Get the substance's temperature.
temperature = float(input("Enter the subtance's Celsius temperature: "))
# As long as necessary, instruct ... | 32.833333 | 73 | 0.717005 |
1a89418df5aafa2cea0e5892d56ee2b5f2a950c1 | 9,495 | py | Python | custom/aaa/tests/test_eligible_couple_query_helper.py | dannyroberts/commcare-hq | 4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598 | [
"BSD-3-Clause"
] | null | null | null | custom/aaa/tests/test_eligible_couple_query_helper.py | dannyroberts/commcare-hq | 4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598 | [
"BSD-3-Clause"
] | null | null | null | custom/aaa/tests/test_eligible_couple_query_helper.py | dannyroberts/commcare-hq | 4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from __future__ import unicode_literals
from datetime import date
from django.test.testcases import TestCase
from custom.aaa.dbaccessors import EligibleCoupleQueryHelper
from custom.aaa.models import Child, Woman, WomanHistory
from six.moves import range
class TestEligibleCo... | 37.98 | 108 | 0.562717 |
1a89de4b46f00e88cfbed3e6547fad63b83b5448 | 31,473 | py | Python | sapextractor/algo/prod/obj_centr_log.py | aarkue/sap-meta-explorer | 613bf657bbaa72a3781a84664e5de7626516532f | [
"Apache-2.0"
] | null | null | null | sapextractor/algo/prod/obj_centr_log.py | aarkue/sap-meta-explorer | 613bf657bbaa72a3781a84664e5de7626516532f | [
"Apache-2.0"
] | null | null | null | sapextractor/algo/prod/obj_centr_log.py | aarkue/sap-meta-explorer | 613bf657bbaa72a3781a84664e5de7626516532f | [
"Apache-2.0"
] | null | null | null | import pandas as pd
from dateutil import parser
from pm4pymdl.objects.mdl.exporter import exporter as mdl_exporter
from pm4pymdl.objects.ocel.exporter import exporter as ocel_exporter
from sapextractor.utils.dates import timestamp_column_from_dt_tm
from pandas.core.frame import DataFrame
from sapextractor.database_conn... | 71.205882 | 293 | 0.722302 |
1a8c55fdde1ff4ebdfeb884f8d8ccf37742a0471 | 2,676 | py | Python | src/tempgen/parsers/docx.py | k5md/Templated-Generator | f3cd2bc6c7de6f68fa1e5835471e8eaa9163d530 | [
"MIT"
] | null | null | null | src/tempgen/parsers/docx.py | k5md/Templated-Generator | f3cd2bc6c7de6f68fa1e5835471e8eaa9163d530 | [
"MIT"
] | null | null | null | src/tempgen/parsers/docx.py | k5md/Templated-Generator | f3cd2bc6c7de6f68fa1e5835471e8eaa9163d530 | [
"MIT"
] | null | null | null | import docx
from tempgen.parsers.parser import AbstractParser | 39.940299 | 125 | 0.563901 |
1a8e5dbcf98db15a0749e18b881fa87a7833778c | 523 | py | Python | Contract/models.py | Hyped-247/rp | 9e3c6287ec2a183998f6ddadc20153736bbefaf3 | [
"MIT"
] | null | null | null | Contract/models.py | Hyped-247/rp | 9e3c6287ec2a183998f6ddadc20153736bbefaf3 | [
"MIT"
] | null | null | null | Contract/models.py | Hyped-247/rp | 9e3c6287ec2a183998f6ddadc20153736bbefaf3 | [
"MIT"
] | null | null | null | from django.db import models
from Apt.models import Apt
from Owner.models import Owner
from Renter.models import Renter
| 27.526316 | 54 | 0.745698 |
1a90e4197c82e64e65616870e1cd90e24176a9dd | 466 | py | Python | tf/easytensorflow.py | mutazag/mdsi_deeplearn | 45776b3ec3ed952d59477c5f29e444c4de277f11 | [
"MIT"
] | null | null | null | tf/easytensorflow.py | mutazag/mdsi_deeplearn | 45776b3ec3ed952d59477c5f29e444c4de277f11 | [
"MIT"
] | null | null | null | tf/easytensorflow.py | mutazag/mdsi_deeplearn | 45776b3ec3ed952d59477c5f29e444c4de277f11 | [
"MIT"
] | null | null | null | # https://github.com/easy-tensorflow/easy-tensorflow/blob/master/1_TensorFlow_Basics/Tutorials/1_Graph_and_Session.ipynb
#%%
import tensorflow as tf
# tf.disable_eager_execution()
#%%
a = 2
b = 3
c = tf.add(a, b, name='Add')
print(c)
#%%
# to run the graph, put it in a session and run
sess = tf.Session()
print(s... | 13.314286 | 120 | 0.665236 |
1a92064954db18af7514af8bb12eb3b5c7406db8 | 639 | py | Python | msk/consumer.py | wingkwong/aws-playground | 5d395bb63e6f47bb4a536bab9e34ca0744e79c5d | [
"MIT"
] | 1 | 2021-09-10T05:21:39.000Z | 2021-09-10T05:21:39.000Z | msk/consumer.py | wingkwong/aws-playground | 5d395bb63e6f47bb4a536bab9e34ca0744e79c5d | [
"MIT"
] | null | null | null | msk/consumer.py | wingkwong/aws-playground | 5d395bb63e6f47bb4a536bab9e34ca0744e79c5d | [
"MIT"
] | null | null | null | from kafka import KafkaConsumer
from json import loads
# Define Amazon MSK Brokers
brokers=['<YOUR_MSK_BROKER_1>:9092', '<YOUR_MSK_BROKER_2>:9092']
# Define Kafka topic to be consumed from
kafka_topic='<YOUR_KAFKA_TOPIC>'
# A Kafka client that consumes records from a Kafka cluster
consumer = KafkaConsumer(
... | 31.95 | 64 | 0.690141 |
1a9611f6590b2309ddd6925053805e4c14110715 | 12,176 | py | Python | MNIST_VAE.py | federicobergamin/Variational-Autoencoders | 6cae335c82ec55aa5fa9f260e7daa2ad6ace453e | [
"MIT"
] | 1 | 2019-12-23T12:12:13.000Z | 2019-12-23T12:12:13.000Z | MNIST_VAE.py | federicobergamin/Variational-Autoencoders | 6cae335c82ec55aa5fa9f260e7daa2ad6ace453e | [
"MIT"
] | null | null | null | MNIST_VAE.py | federicobergamin/Variational-Autoencoders | 6cae335c82ec55aa5fa9f260e7daa2ad6ace453e | [
"MIT"
] | null | null | null | '''
We are going to learn a latent space and a generative model for the MNIST dataset.
'''
import numpy as np
import torch
import torch.utils
import torch.utils.data
from torch.utils.tensorboard import SummaryWriter
import torchvision
import torch.nn.functional as F
from torchvision import datasets, transforms, utils... | 37.931464 | 185 | 0.634938 |
1a965592916f1ea93fda3c740173e3525efb4396 | 513 | py | Python | sqrt_test.py | patrickjwolf/lambdata | 10098611d4a074ab6685a14eb1d3ef183975e814 | [
"MIT"
] | null | null | null | sqrt_test.py | patrickjwolf/lambdata | 10098611d4a074ab6685a14eb1d3ef183975e814 | [
"MIT"
] | null | null | null | sqrt_test.py | patrickjwolf/lambdata | 10098611d4a074ab6685a14eb1d3ef183975e814 | [
"MIT"
] | null | null | null | import unittest
from sqrt import lazy_sqrt, builtin_sqrt, newton_sqrt1
if __name__ == '__main__':
unittest.main() | 28.5 | 61 | 0.68616 |
1a97c3f3a52c4076a37c5647166b601d480b1378 | 5,202 | py | Python | examples/allennlp/allennlp_simple.py | kevtran23/optuna | 4f2fa9c60d9a216ff3cfbc0f3ca12cb32ff53434 | [
"MIT"
] | null | null | null | examples/allennlp/allennlp_simple.py | kevtran23/optuna | 4f2fa9c60d9a216ff3cfbc0f3ca12cb32ff53434 | [
"MIT"
] | null | null | null | examples/allennlp/allennlp_simple.py | kevtran23/optuna | 4f2fa9c60d9a216ff3cfbc0f3ca12cb32ff53434 | [
"MIT"
] | null | null | null | """
Optuna example that optimizes a classifier configuration for IMDB movie review dataset.
This script is based on the example of allentune (https://github.com/allenai/allentune).
In this example, we optimize the validation accuracy of sentiment classification using AllenNLP.
Since it is too time-consuming to use the... | 33.133758 | 113 | 0.716455 |
1a989a264435ff4aa2d09487fe41bd4339c5d13b | 4,145 | pyp | Python | bootstrapper.pyp | NiklasRosenstein/c4ddocs | 9be4efba47d0dbd5787622933b21fdcf8fb5272e | [
"MIT"
] | 29 | 2017-03-10T18:00:11.000Z | 2021-02-22T22:56:36.000Z | bootstrapper.pyp | NiklasRosenstein/c4ddev | 9be4efba47d0dbd5787622933b21fdcf8fb5272e | [
"MIT"
] | 17 | 2017-04-26T14:13:49.000Z | 2018-07-07T21:37:35.000Z | bootstrapper.pyp | NiklasRosenstein/c4ddocs | 9be4efba47d0dbd5787622933b21fdcf8fb5272e | [
"MIT"
] | 5 | 2017-07-21T22:24:15.000Z | 2020-08-17T05:51:19.000Z | # localimport-v1.7.3-blob-mcw99
import base64 as b, types as t, zlib as z; m=t.ModuleType('localimport');
m.__file__ = __file__; blob=b'\
eJydWUuP20YSvutXEMiBpIfmeOLDAkJo7GaRAMEGORiLPUQrEBTVkumhSKK75Uhj5L+nHv2iSNpyfBiTXY+uqq76qpoqy+qsP\
/SyLIv4t+a5rVT0vleiU1o0XfSDdM8dEf95PFVNm9f96V28KstPQqqm71D4Kf9H/jZeNaehlzqq++Fqn49t... | 61.865672 | 99 | 0.895537 |
1a98b5e99f3f08c40346d868f154e3474a9471fd | 703 | py | Python | main/increasing-order-search-tree/increasing-order-search-tree.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/increasing-order-search-tree/increasing-order-search-tree.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/increasing-order-search-tree/increasing-order-search-tree.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
| 26.037037 | 56 | 0.479374 |
1a9922af72c1516621850ee44f2b5c699c589d4b | 2,715 | py | Python | src/lex.py | urlordjames/pointysnake | cac720068d55ffec8e7b220285e460faf6ceaa3e | [
"MIT"
] | 1 | 2020-07-12T14:20:58.000Z | 2020-07-12T14:20:58.000Z | src/lex.py | urlordjames/pointysnake | cac720068d55ffec8e7b220285e460faf6ceaa3e | [
"MIT"
] | 5 | 2020-07-16T15:58:41.000Z | 2020-07-24T01:42:59.000Z | src/lex.py | urlordjames/pointysnake | cac720068d55ffec8e7b220285e460faf6ceaa3e | [
"MIT"
] | null | null | null |
import re
tokens = {
"^function$": ["functiondefine"],
"^assert$": ["assert"],
"^{$": ["functionstart"],
"^}$": ["functionterminate"],
"^,$": ["argseperate"],
"^int$": ["type", "int"],
"^str$": ["type", "str"],
"^bool$": ["type", "bool"],
"^if$": ["ifdefine"],
"^while$": ["whil... | 28.882979 | 92 | 0.467403 |
1a9934c641a8e06786f568b40c4021e92eb93c05 | 7,678 | py | Python | __init__.py | wailord90/Capstone | 5d82339e31905f5c7ef3131f15526d9bc29f0a98 | [
"Apache-2.0"
] | 1 | 2019-03-14T19:29:55.000Z | 2019-03-14T19:29:55.000Z | __init__.py | wailord90/Capstone | 5d82339e31905f5c7ef3131f15526d9bc29f0a98 | [
"Apache-2.0"
] | null | null | null | __init__.py | wailord90/Capstone | 5d82339e31905f5c7ef3131f15526d9bc29f0a98 | [
"Apache-2.0"
] | 2 | 2019-02-09T21:13:50.000Z | 2019-03-14T21:03:52.000Z | from flask_bootstrap import Bootstrap
# from pipenv.vendor.dotenv import load_dotenv
from flask import Flask, render_template, request, jsonify, redirect, Response
import os
import thread
import json
import pprint
import pusher
import cv2
import sys
import numpy
import time
import serial
from time_convert import pretty... | 33.973451 | 165 | 0.586481 |
1a99b203e16bffe37d41eec19674afc04eae9420 | 129 | py | Python | djatracker/data/admin.py | na0495/Djatracker | 1a7a57897b87b70c1543ed6f4ab4e3b02a7da899 | [
"MIT"
] | null | null | null | djatracker/data/admin.py | na0495/Djatracker | 1a7a57897b87b70c1543ed6f4ab4e3b02a7da899 | [
"MIT"
] | null | null | null | djatracker/data/admin.py | na0495/Djatracker | 1a7a57897b87b70c1543ed6f4ab4e3b02a7da899 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import MappingData
# Register your models here.
admin.site.register(MappingData)
| 18.428571 | 32 | 0.813953 |
1a9bf2335bf26bc4c9f9e7623fc0e9e3be656abc | 3,381 | py | Python | experiment_basic.py | caranha/GDMC_experiments | 9cbef15c5fe2cb1703535586aded0cde5112cd3e | [
"MIT"
] | null | null | null | experiment_basic.py | caranha/GDMC_experiments | 9cbef15c5fe2cb1703535586aded0cde5112cd3e | [
"MIT"
] | null | null | null | experiment_basic.py | caranha/GDMC_experiments | 9cbef15c5fe2cb1703535586aded0cde5112cd3e | [
"MIT"
] | null | null | null | import random
import interfaceUtils
# Add text to a sign
# Add items to a chest
# Items is a list of [item string, item quantity]
# Create a book item from a text
# x position, z position, x size, z size
area = (0, 0, 128, 128) # default build area if build area is not set
interfaceUtils.runCommand("execute at ... | 33.81 | 100 | 0.572316 |
1a9d1bf580afd0ee0a24298894018f257f2969f5 | 351 | py | Python | MyGame/code/constants.py | Chad474/2dPyGame | 22d2c19a5407fa4b539b772facfc5c08e6860ddd | [
"MIT"
] | null | null | null | MyGame/code/constants.py | Chad474/2dPyGame | 22d2c19a5407fa4b539b772facfc5c08e6860ddd | [
"MIT"
] | null | null | null | MyGame/code/constants.py | Chad474/2dPyGame | 22d2c19a5407fa4b539b772facfc5c08e6860ddd | [
"MIT"
] | null | null | null | import pygame
TITLE = 'Gravity'
BLOCK_SIZE = 32
SCREEN_WIDTH = 1024 # 32 * 32
SCREEN_HEIGHT = 576 # 32* 18
SCREEN = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
COLOR_KEY = (200,0,200)
MAX_FPS = 60
| 18.473684 | 64 | 0.612536 |