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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
edce3a2737d93538f5eca2f4d5c2a1e9ad86dba9 | 31,641 | py | Python | web/indexData/demandSrc.py | BennyJane/career-planning-info | 406b41dc2913fce8623609efe4885abd9474cb6d | [
"MIT"
] | 1 | 2021-01-11T01:37:18.000Z | 2021-01-11T01:37:18.000Z | web/indexData/demandSrc.py | BennyJane/career-planning-info | 406b41dc2913fce8623609efe4885abd9474cb6d | [
"MIT"
] | null | null | null | web/indexData/demandSrc.py | BennyJane/career-planning-info | 406b41dc2913fce8623609efe4885abd9474cb6d | [
"MIT"
] | null | null | null | #
"""
:
Python():
:
:
:
"""
fourth_chart = {'first': [
{'demands': ['Python',
'Python',
'PythonWebTornadoDjangoFlask)',
'mysqlredis,mongodb',
'LinuxWeb',
'',
],
'salary': '10-12K',
'site': ''},
{'... | 43.703039 | 104 | 0.483708 |
edcf7b04649dc1f8150d732525f7d6e59b9654e9 | 1,647 | py | Python | build.py | danielrh/repeatexec | ed2080f06d141e236340c5d8d8cb36864c001cd4 | [
"BSD-2-Clause"
] | 2 | 2015-10-21T11:09:12.000Z | 2018-06-20T10:28:44.000Z | build.py | danielrh/repeatexec | ed2080f06d141e236340c5d8d8cb36864c001cd4 | [
"BSD-2-Clause"
] | null | null | null | build.py | danielrh/repeatexec | ed2080f06d141e236340c5d8d8cb36864c001cd4 | [
"BSD-2-Clause"
] | null | null | null | import os
import subprocess
import sys
import threading
try:
os.mkfifo("/tmp/shutdown",0666)
except OSError:
pass
try:
os.mkfifo("/tmp/abort",0666)
except OSError:
pass
subprocess.check_call(["go","build", "-ldflags", "-X main.FALLBACK_SHUTDOWN_PIPE /tmp/shutdown -X main.FALLBACK_ABORT_PIPE /tmp/abort -... | 33.612245 | 313 | 0.659381 |
edd057810862e9b45592c01aea58e9494fbf7d26 | 113 | py | Python | nft_generator/command/version.py | nft-generator/nft_generator | e2e17a204054a39eaf5d904d0956542e11155360 | [
"MIT"
] | 6 | 2021-12-05T10:00:28.000Z | 2022-01-09T02:22:46.000Z | nft_generator/command/version.py | nft-generator/nft_generator | e2e17a204054a39eaf5d904d0956542e11155360 | [
"MIT"
] | null | null | null | nft_generator/command/version.py | nft-generator/nft_generator | e2e17a204054a39eaf5d904d0956542e11155360 | [
"MIT"
] | 5 | 2021-12-05T14:35:37.000Z | 2022-01-13T17:02:10.000Z | import click
from nft_generator import __version__
| 12.555556 | 37 | 0.734513 |
edd10011ec4f0f850a3332528aca6a5835c7347c | 181 | py | Python | numpy_test.py | weepingwillowben/image-learn | 2acbf1c51600256e3d9b5d7cf13f0870556bca00 | [
"MIT"
] | null | null | null | numpy_test.py | weepingwillowben/image-learn | 2acbf1c51600256e3d9b5d7cf13f0870556bca00 | [
"MIT"
] | null | null | null | numpy_test.py | weepingwillowben/image-learn | 2acbf1c51600256e3d9b5d7cf13f0870556bca00 | [
"MIT"
] | null | null | null | import numpy as np
arg = np.arange(100).reshape((10,10))
print(arg)
print(arg[[(1,2),(3,4)]])
res = np.digitize(0.4,[0.2,0.3])
print(res)
print(np.add.accumulate([0.1,0.2,0.3]))
| 16.454545 | 39 | 0.624309 |
edd1a2eba2e777e57dd9ae7fe78935cdfc83cf44 | 4,165 | py | Python | scripts/fsm.py | ut-osa/syncchar | eba20da163260b6ae1ef3e334ad2137873a8d625 | [
"BSD-3-Clause"
] | null | null | null | scripts/fsm.py | ut-osa/syncchar | eba20da163260b6ae1ef3e334ad2137873a8d625 | [
"BSD-3-Clause"
] | null | null | null | scripts/fsm.py | ut-osa/syncchar | eba20da163260b6ae1ef3e334ad2137873a8d625 | [
"BSD-3-Clause"
] | 1 | 2019-05-14T16:36:45.000Z | 2019-05-14T16:36:45.000Z |
"""
Finite state machine class.
The fsm class stores dictionary of state/input keys, values are
next state and action
when searching for matching state/input key, exact match
is checked first, then the input is matched against any regular
expressions associated with the state. As a last resort, state/None
can be use... | 26.870968 | 67 | 0.664586 |
edd26443fbb7199143965a3072eb5ab1a9be5393 | 735 | py | Python | marvin/screen.py | Emphebion/MARVIN | 2053e8ce31b5e332e7c12271a71df3c25b0cb1a0 | [
"MIT"
] | null | null | null | marvin/screen.py | Emphebion/MARVIN | 2053e8ce31b5e332e7c12271a71df3c25b0cb1a0 | [
"MIT"
] | null | null | null | marvin/screen.py | Emphebion/MARVIN | 2053e8ce31b5e332e7c12271a71df3c25b0cb1a0 | [
"MIT"
] | null | null | null | #############################################
# Screen
# ===========================================
# Purpose is to:
# - What am I doing here?
#############################################
import pygame
| 26.25 | 80 | 0.487075 |
edd3070e919c28d260fa10a51ae510e33f6b0078 | 12,332 | py | Python | daguerre/tests/unit/test_management.py | littleweaver/django-daguerre | 9437dfc3f27386eac8aa769077e5715b81b5fe30 | [
"BSD-3-Clause"
] | 20 | 2015-01-08T07:43:42.000Z | 2018-01-28T02:25:51.000Z | daguerre/tests/unit/test_management.py | littleweaver/django-daguerre | 9437dfc3f27386eac8aa769077e5715b81b5fe30 | [
"BSD-3-Clause"
] | 28 | 2015-04-01T20:24:28.000Z | 2017-12-11T12:04:58.000Z | daguerre/tests/unit/test_management.py | littleweaver/django-daguerre | 9437dfc3f27386eac8aa769077e5715b81b5fe30 | [
"BSD-3-Clause"
] | 10 | 2015-04-09T10:56:41.000Z | 2018-01-26T07:11:05.000Z | from django.conf import settings
from django.core.files.storage import default_storage
from django.core.management.base import CommandError
from django.test.utils import override_settings
import mock
from daguerre.adjustments import Fit
from daguerre.management.commands._daguerre_clean import Command as Clean
from dag... | 40.565789 | 80 | 0.586685 |
edd3649e914776cccbee89a84d07e5264b3936d4 | 3,062 | py | Python | locust_exporter.py | nobusugi246/locust-exporter | 3d7511f61ee46da857eef1b9f305a92f820ab615 | [
"MIT"
] | null | null | null | locust_exporter.py | nobusugi246/locust-exporter | 3d7511f61ee46da857eef1b9f305a92f820ab615 | [
"MIT"
] | null | null | null | locust_exporter.py | nobusugi246/locust-exporter | 3d7511f61ee46da857eef1b9f305a92f820ab615 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from prometheus_client import start_http_server, Metric, REGISTRY
from prometheus_client.core import GaugeMetricFamily, CounterMetricFamily
import json
import requests
import sys
import time
if __name__ == '__main__':
# Usage: locust_exporter.py <port> <locust_host:port>
if len(sys.argv) != 3:
... | 42.527778 | 174 | 0.693991 |
edd3a35df965b681fd71b0b10561268de5b79d93 | 2,213 | py | Python | checkio/Hermit/Hexagon Spiral/test_hexagon_spiral.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 39 | 2015-02-09T13:24:12.000Z | 2019-05-16T17:51:19.000Z | checkio/Hermit/Hexagon Spiral/test_hexagon_spiral.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 1 | 2019-10-21T16:18:14.000Z | 2019-10-21T16:18:14.000Z | checkio/Hermit/Hexagon Spiral/test_hexagon_spiral.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 22 | 2015-01-30T18:00:05.000Z | 2021-05-22T02:57:23.000Z | import unittest
from hexagon_spiral import hex_spiral
| 45.163265 | 65 | 0.456846 |
edd41b59023c01a5c3a8d6a18413bd202a595445 | 394 | py | Python | server/src/define_player/config_init_map.py | jacksonsr45/project_game_rpg_server_python | b8a7750d5bcc6558431ac6ac831b1a3728651114 | [
"MIT"
] | null | null | null | server/src/define_player/config_init_map.py | jacksonsr45/project_game_rpg_server_python | b8a7750d5bcc6558431ac6ac831b1a3728651114 | [
"MIT"
] | null | null | null | server/src/define_player/config_init_map.py | jacksonsr45/project_game_rpg_server_python | b8a7750d5bcc6558431ac6ac831b1a3728651114 | [
"MIT"
] | null | null | null | __author__ = "jacksonsr45@gmail.com"
new_init_map = {
'knight': {
'pos_x': {
},
'pos_y': {
},
},
'paladin': {
'pos_x': {
},
'pos_y': {
},
},
'mage': {
'pos_x': {
},
'pos_y': {
},
},
'ranger'... | 11.257143 | 36 | 0.263959 |
edd44fd69a54eee9f7ca6b87c411e44a3378064a | 6,995 | py | Python | examples/py/tencent_road_map.py | KarcyLee/folium | c0fa6c217842f973037dc7ea8e871855069057f7 | [
"MIT"
] | null | null | null | examples/py/tencent_road_map.py | KarcyLee/folium | c0fa6c217842f973037dc7ea8e871855069057f7 | [
"MIT"
] | null | null | null | examples/py/tencent_road_map.py | KarcyLee/folium | c0fa6c217842f973037dc7ea8e871855069057f7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
from __future__ import print_function
import random
import folium
from folium.features import DivIcon
from folium.plugins import MarkerCluster, RotatedMarker, PolyLineTextPath, DirectedLine
def tencent_marker(out_dir="../../out"):
"""
:param out_dir:
... | 30.814978 | 109 | 0.567262 |
edd4a7a68b6a7e9dfa514b2b3b2ebe8065ec98d0 | 19,804 | py | Python | explainaboard/tasks/cws/eval_spec.py | Shadowlized/ExplainaBoard | 45f1c27468e528f8f88df4b01e10253ba96d3a9b | [
"MIT"
] | 255 | 2021-04-14T11:21:35.000Z | 2022-03-27T01:59:05.000Z | explainaboard/tasks/cws/eval_spec.py | ROGERDJQ/ExplainaBoard | 4a2a5aeb9cce33198aa748252f9206c6391a695c | [
"MIT"
] | 128 | 2021-04-15T14:30:13.000Z | 2022-03-31T18:22:40.000Z | explainaboard/tasks/cws/eval_spec.py | ROGERDJQ/ExplainaBoard | 4a2a5aeb9cce33198aa748252f9206c6391a695c | [
"MIT"
] | 27 | 2021-04-14T15:20:22.000Z | 2022-03-28T07:21:54.000Z | from random import choices
import explainaboard.error_analysis as ea
import numpy
import pickle
import codecs
import os
| 42.13617 | 175 | 0.588063 |
edd631fe92868c6f7b72a761ab6cdf558dd7e7bc | 3,045 | py | Python | tests/default.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | 2 | 2019-12-18T16:34:06.000Z | 2020-03-13T03:31:26.000Z | tests/default.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | 4 | 2019-12-22T18:40:31.000Z | 2020-05-07T00:52:48.000Z | tests/default.py | DasSkelett/AVC-VersionFileValidator | f31bab0cf5e273cbb675ffaf921741c32b3a2e15 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from unittest import TestCase
import validator.validator as validator
from .test_utils import schema, build_map
| 47.578125 | 110 | 0.617734 |
edd63cd9fb4b41ff585ff6a70fe4ee13e645a40a | 1,586 | py | Python | waitingthread.py | souzabrizolara/door-strut-simulator | 6de931f2d8b76b57a4fe457ecac6b7f13e373220 | [
"MIT"
] | null | null | null | waitingthread.py | souzabrizolara/door-strut-simulator | 6de931f2d8b76b57a4fe457ecac6b7f13e373220 | [
"MIT"
] | null | null | null | waitingthread.py | souzabrizolara/door-strut-simulator | 6de931f2d8b76b57a4fe457ecac6b7f13e373220 | [
"MIT"
] | null | null | null | import threading
import sys
import time
| 25.580645 | 67 | 0.583228 |
edd644d6be6dcd949445336e892644d72635cc12 | 476 | py | Python | ci/kubetest/test_posthog_hpa_enabled.py | momentumdash/charts-clickhouse | 9f8ef82f11db186810fcf98dd789ff4b0c1eed95 | [
"MIT"
] | null | null | null | ci/kubetest/test_posthog_hpa_enabled.py | momentumdash/charts-clickhouse | 9f8ef82f11db186810fcf98dd789ff4b0c1eed95 | [
"MIT"
] | null | null | null | ci/kubetest/test_posthog_hpa_enabled.py | momentumdash/charts-clickhouse | 9f8ef82f11db186810fcf98dd789ff4b0c1eed95 | [
"MIT"
] | null | null | null | import pytest
from helpers.utils import cleanup_k8s, helm_install, wait_for_pods_to_be_ready
HELM_INSTALL_CMD = """
helm upgrade \
--install \
-f ../../ci/values/kubetest/test_posthog_hpa_enabled.yaml \
--timeout 30m \
--create-namespace \
--namespace posthog \
posthog ../../charts/posthog \
... | 21.636364 | 78 | 0.691176 |
edd64bd4827b991c5d28e9da19d3d313de93c8a0 | 7,209 | py | Python | dental/settings.py | AbhiyantrikTechnology/DentalHub-Backend | 89802b3e7671ffe8b3d287a998c3c4f375b58f03 | [
"MIT"
] | 1 | 2021-04-03T19:57:32.000Z | 2021-04-03T19:57:32.000Z | dental/settings.py | AbhiyantrikTechnology/DentalHub-Backend | 89802b3e7671ffe8b3d287a998c3c4f375b58f03 | [
"MIT"
] | null | null | null | dental/settings.py | AbhiyantrikTechnology/DentalHub-Backend | 89802b3e7671ffe8b3d287a998c3c4f375b58f03 | [
"MIT"
] | null | null | null | """
Django settings for dental project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
impor... | 26.025271 | 91 | 0.657928 |
edd7c9fc4d4c13cce5799a53fe7796fa6ce013ec | 1,379 | py | Python | python/biograph/variants/add_ref_test.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 16 | 2021-07-14T23:32:31.000Z | 2022-03-24T16:25:15.000Z | python/biograph/variants/add_ref_test.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-20T20:39:47.000Z | 2021-09-16T20:57:59.000Z | python/biograph/variants/add_ref_test.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-15T19:38:35.000Z | 2022-01-31T19:24:56.000Z | # pylint: disable=missing-docstring
from __future__ import print_function
import unittest
import biograph
import biograph.variants as bgexvar
if __name__ == '__main__':
unittest.main(verbosity=2)
| 33.634146 | 97 | 0.636693 |
edd7dcbe7e77249b8bc05cc82a6e9d24f74df2a3 | 924 | py | Python | tools/trading/quotes.py | renoneto/swing_trading | 1d176d7e42bca6028efcb1869ec648824c535fe1 | [
"MIT"
] | 8 | 2020-06-19T11:23:44.000Z | 2022-02-11T00:52:29.000Z | tools/trading/quotes.py | renoneto/swing_trading | 1d176d7e42bca6028efcb1869ec648824c535fe1 | [
"MIT"
] | 5 | 2020-05-16T18:14:24.000Z | 2021-12-13T20:40:25.000Z | tools/trading/quotes.py | renoneto/swing_trading | 1d176d7e42bca6028efcb1869ec648824c535fe1 | [
"MIT"
] | 2 | 2020-05-16T23:31:04.000Z | 2021-06-06T18:40:01.000Z | import requests
def get_quotes(access_token,
my_client,
symbols):
"""
Function to get quotes of a list of stocks
"""
# Convert list to string
str_symbols = ','.join(symbols)
# define our headers
header = {'Authorization':"Bearer {}".format(access_token),
... | 28 | 76 | 0.643939 |
edd85d21386459fc38710dc31cb59fc4dd97a292 | 210 | py | Python | http-requests/variables.py | cmin764/robots | 447a8a44cb4231e1cb8acd271eb4f2c9bb2d3e21 | [
"MIT"
] | 1 | 2022-03-17T20:28:06.000Z | 2022-03-17T20:28:06.000Z | http-requests/variables.py | cmin764/robots | 447a8a44cb4231e1cb8acd271eb4f2c9bb2d3e21 | [
"MIT"
] | null | null | null | http-requests/variables.py | cmin764/robots | 447a8a44cb4231e1cb8acd271eb4f2c9bb2d3e21 | [
"MIT"
] | null | null | null | from pathlib import Path
api_key_name = "api_key_cosmin"
portrait_gif = Path("devdata") / "portrait.gif"
api_base = "https://sandbox.zamzar.com/v1" # SANDBOX
# api_base = "https://api.zamzar.com/v1" # LIVE
| 26.25 | 53 | 0.714286 |
edd948bb9ec9eb83072bfce6e93f8f8d37219a11 | 3,077 | py | Python | DQM/Physics/test/ewkElecDQM_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/Physics/test/ewkElecDQM_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/Physics/test/ewkElecDQM_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
process = cms.Process("EwkDQM")
process.load("DQM.Physics.ewkElecDQM_cfi")
process.load("DQMServices.Core.DQM_cfg")
process.load("DQMServices.Components.DQMEnvironment_cfi")
process.DQM.collectorHost = ''
#keep the logging output to a nice level
process.load("FWCore.Message... | 40.486842 | 123 | 0.753331 |
eddafd9744249b5f6384f3044c4d9c5bb3848404 | 4,809 | py | Python | indStudyA.py | rafaelorozco/cloudsimbuck | 5b6bc4f24343bb171bc44522244647fcdaff7bf5 | [
"MIT"
] | null | null | null | indStudyA.py | rafaelorozco/cloudsimbuck | 5b6bc4f24343bb171bc44522244647fcdaff7bf5 | [
"MIT"
] | null | null | null | indStudyA.py | rafaelorozco/cloudsimbuck | 5b6bc4f24343bb171bc44522244647fcdaff7bf5 | [
"MIT"
] | null | null | null |
#version 1
#
#
#Setup data structure
#Made timer that includes fps
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph.opengl as gl
import pyqtgraph as pg
import numpy as np
import random
#import time
from pyqtgraph.ptime import time
import functools
app = QtGui.QApplication([])
w = gl.GLViewWidget()
w.show()
... | 25.854839 | 120 | 0.602412 |
eddb7b91d6d5edcdefb53633a4ca2f99f6028413 | 63 | py | Python | python/nlusvc/displacy/dto/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/nlusvc/displacy/dto/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/nlusvc/displacy/dto/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | from .displacy_entity_generator import DisplacyEntityGenerator
| 31.5 | 62 | 0.920635 |
eddb7f49b44eca53b1e18b53a13b236ea0a652f8 | 521 | py | Python | src/artificial_neural_network/bias_layer.py | daengdaengLee/mnist-python-numpy | 909771bfc802e7031ab84af5776251e66fbc9a63 | [
"MIT"
] | null | null | null | src/artificial_neural_network/bias_layer.py | daengdaengLee/mnist-python-numpy | 909771bfc802e7031ab84af5776251e66fbc9a63 | [
"MIT"
] | 23 | 2019-10-26T08:56:28.000Z | 2021-06-02T00:37:18.000Z | src/artificial_neural_network/bias_layer.py | daengdaengLee/mnist-python-numpy | 909771bfc802e7031ab84af5776251e66fbc9a63 | [
"MIT"
] | null | null | null | import numpy as np
from artificial_neural_network.layer import Layer
| 24.809524 | 78 | 0.685221 |
eddc0f7669654fde433ed24f9dc39fbd4ba45302 | 2,102 | py | Python | tangle_connector/tests/test_tangle_connector.py | stkubr/MAML | fa621b21420c76f4df0afba56bbcb492c63a31f0 | [
"MIT"
] | 4 | 2019-01-16T22:53:57.000Z | 2019-04-11T08:20:16.000Z | tangle_connector/tests/test_tangle_connector.py | stkubr/MAML | fa621b21420c76f4df0afba56bbcb492c63a31f0 | [
"MIT"
] | 4 | 2019-01-23T07:07:06.000Z | 2019-07-22T16:33:30.000Z | tangle_connector/tests/test_tangle_connector.py | stkubr/MAML | fa621b21420c76f4df0afba56bbcb492c63a31f0 | [
"MIT"
] | 4 | 2019-01-16T22:54:04.000Z | 2020-01-29T18:31:23.000Z | from unittest import TestCase
from iota import Address, TransactionHash
from tangle_connector import TangleConnector
| 40.423077 | 116 | 0.764986 |
eddc8f3d3f9fe062304babd4121734ff09948049 | 426 | py | Python | src/Helix/playercontroller.py | FirstLevelGames/Helix | fd6f3106b65270db33dfa03797b4f0a14881778e | [
"MIT"
] | 2 | 2022-01-28T06:19:19.000Z | 2022-02-16T19:32:08.000Z | src/Helix/playercontroller.py | novialriptide/Helix | fd6f3106b65270db33dfa03797b4f0a14881778e | [
"MIT"
] | 15 | 2022-01-25T19:18:59.000Z | 2022-01-27T19:32:46.000Z | src/Helix/playercontroller.py | novialriptide/Helix | fd6f3106b65270db33dfa03797b4f0a14881778e | [
"MIT"
] | 2 | 2021-12-11T20:06:17.000Z | 2021-12-11T21:05:54.000Z | """
Helix: Flight Test (c) 2021 Andrew Hong
This code is licensed under GNU LESSER GENERAL PUBLIC LICENSE (see LICENSE for details)
"""
from SakuyaEngine.controllers import BaseController
| 25.058824 | 87 | 0.71831 |
eddc970d0bca10b6c7c843c88343bba235218464 | 433 | py | Python | example.py | dib-lab/pybbhash | 08a1f71fc5b1f52d450ba1f33b168241423c9047 | [
"MIT"
] | 16 | 2018-01-18T06:00:42.000Z | 2021-03-03T08:50:42.000Z | example.py | dib-lab/pybbhash | 08a1f71fc5b1f52d450ba1f33b168241423c9047 | [
"MIT"
] | 17 | 2018-01-21T22:38:37.000Z | 2021-01-01T16:26:49.000Z | example.py | dib-lab/pybbhash | 08a1f71fc5b1f52d450ba1f33b168241423c9047 | [
"MIT"
] | 3 | 2018-07-04T20:38:36.000Z | 2021-11-11T12:49:01.000Z | import bbhash
# some collection of 64-bit (or smaller) hashes
uint_hashes = [10, 20, 50, 80]
num_threads = 1 # hopefully self-explanatory :)
gamma = 1.0 # internal gamma parameter for BBHash
mph = bbhash.PyMPHF(uint_hashes, len(uint_hashes), num_threads, gamma)
for val in uint_hashes:
print('{} now hashes t... | 28.866667 | 75 | 0.709007 |
eddd968de66af8f80b1a36490ca5e2bd020c72b5 | 229 | py | Python | vesicashapi/upload.py | vesicash/vesicash-python-sdk | 0a665e302b88c4eeb316a635c5485c9c3c1fffeb | [
"Apache-2.0"
] | null | null | null | vesicashapi/upload.py | vesicash/vesicash-python-sdk | 0a665e302b88c4eeb316a635c5485c9c3c1fffeb | [
"Apache-2.0"
] | null | null | null | vesicashapi/upload.py | vesicash/vesicash-python-sdk | 0a665e302b88c4eeb316a635c5485c9c3c1fffeb | [
"Apache-2.0"
] | 1 | 2021-04-20T14:54:40.000Z | 2021-04-20T14:54:40.000Z | """ Script used to call the upload service"""
from vesicashapi.base import VesicashBase
| 25.444444 | 62 | 0.707424 |
edddf9cd795da9fd0a04623dab549ea31d356178 | 1,618 | py | Python | setup.py | creativechain/crea-python-graphenelib | 14b0de84c47c21c8ad2f03a9ace7816135345681 | [
"MIT"
] | null | null | null | setup.py | creativechain/crea-python-graphenelib | 14b0de84c47c21c8ad2f03a9ace7816135345681 | [
"MIT"
] | null | null | null | setup.py | creativechain/crea-python-graphenelib | 14b0de84c47c21c8ad2f03a9ace7816135345681 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
# Work around mbcs bug in distutils.
# http://bugs.python.org/issue10945
import codecs
try:
codecs.lookup('mbcs')
except LookupError:
ascii = codecs.lookup('ascii')
codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs'))
VERSION = '0.1.3... | 30.528302 | 95 | 0.585909 |
eddf6943097b3601f7342c46bb299220a540701b | 383 | py | Python | mak/libs/pyxx/cxx/grammar/declaration/using_enum.py | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | 4 | 2015-05-13T16:28:36.000Z | 2017-05-24T15:34:14.000Z | mak/libs/pyxx/cxx/grammar/declaration/using_enum.py | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | null | null | null | mak/libs/pyxx/cxx/grammar/declaration/using_enum.py | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | 1 | 2017-03-21T08:28:07.000Z | 2017-03-21T08:28:07.000Z | """
using-enum-declaration:
using elaborated-enum-specifier ;
"""
import glrp
from ...parser import cxx98
from be_typing import TYPE_CHECKING
if TYPE_CHECKING:
from ...parser import CxxParser | 20.157895 | 76 | 0.723238 |
ede0d5ebf66b21e6e1508ac010484457df91425a | 531 | py | Python | Kickstart/diwali-lightings.py | tushar-1728/Coding | 2df9da02cf3e5d4af5b47faf02a07ba54b3297cb | [
"MIT"
] | null | null | null | Kickstart/diwali-lightings.py | tushar-1728/Coding | 2df9da02cf3e5d4af5b47faf02a07ba54b3297cb | [
"MIT"
] | null | null | null | Kickstart/diwali-lightings.py | tushar-1728/Coding | 2df9da02cf3e5d4af5b47faf02a07ba54b3297cb | [
"MIT"
] | null | null | null | t = int(input())
for i in range(t):
pattern = input()
lindex, rindex = map(int, input().split())
d = len(pattern)
a_list = []
r_count = 0
l_count = 0
flag = 0
for j in range(d):
if pattern[j] == "B":
a_list.append(j +1)
for j in a_list:
temp = (rindex - j)... | 25.285714 | 64 | 0.45951 |
ede0d8d35a9f0d6e5afc0c244d8363190ccf8288 | 1,121 | py | Python | oteltrace/contrib/grpc/utils.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 2 | 2020-03-04T17:33:22.000Z | 2021-01-20T14:20:10.000Z | oteltrace/contrib/grpc/utils.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 4 | 2019-11-25T00:11:16.000Z | 2021-05-13T20:43:50.000Z | oteltrace/contrib/grpc/utils.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 3 | 2020-02-05T14:54:25.000Z | 2020-03-23T02:51:27.000Z | # Copyright 2019, OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 40.035714 | 77 | 0.729706 |
ede10dafbf743c6151c9253bd80b7dd3f59da855 | 3,852 | py | Python | datasetparser.py | moloned/volumetric_accelerator_toolkit | 8f5cf226a7d788e4dd4215c181db49d9568c6240 | [
"Apache-2.0"
] | 6 | 2019-02-11T14:32:23.000Z | 2021-12-07T09:49:41.000Z | datasetparser.py | moloned/volumetric_accelerator_toolkit | 8f5cf226a7d788e4dd4215c181db49d9568c6240 | [
"Apache-2.0"
] | null | null | null | datasetparser.py | moloned/volumetric_accelerator_toolkit | 8f5cf226a7d788e4dd4215c181db49d9568c6240 | [
"Apache-2.0"
] | 2 | 2018-10-11T17:29:37.000Z | 2021-09-08T12:01:40.000Z | #!/usr/bin/env python3
"""Reads all the headers in a folder and creates a vola index.
@author Jonathan Byrne
@copyright 2018 Intel Ltd (see LICENSE file).
"""
from __future__ import print_function
import argparse
import glob
import os
import struct
import json
def main():
"""Read the headers, calc the centroids a... | 33.495652 | 76 | 0.537383 |
ede193cbc7f6dd6ed49b143d3a053602c1a03e2e | 6,324 | py | Python | chart-generator/main.py | ShironCat/covid-19-fernandopolis | f7767ed604368c27732de0b3300967bf1019e6e6 | [
"CC0-1.0"
] | 3 | 2020-06-10T02:51:38.000Z | 2021-05-14T14:37:09.000Z | chart-generator/main.py | ShironCat/covid-19-fernandopolis | f7767ed604368c27732de0b3300967bf1019e6e6 | [
"CC0-1.0"
] | 1 | 2022-03-12T01:08:07.000Z | 2022-03-12T01:08:07.000Z | chart-generator/main.py | ShironCat/covid-19-fernandopolis | f7767ed604368c27732de0b3300967bf1019e6e6 | [
"CC0-1.0"
] | 1 | 2020-06-18T21:50:11.000Z | 2020-06-18T21:50:11.000Z | from datetime import datetime, timedelta
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import scipy.optimize as opt
if __name__ == '__main__':
main()
| 29.277778 | 79 | 0.553131 |
ede3596e0f595cefcd0e9bb3ee971620608011db | 5,297 | py | Python | carrier/classification/src/eda/eda.py | talk2sunil83/UpgradLearning | 70c4f993c68ce5030e9df0edd15004bbb9fc71e7 | [
"Apache-2.0"
] | null | null | null | carrier/classification/src/eda/eda.py | talk2sunil83/UpgradLearning | 70c4f993c68ce5030e9df0edd15004bbb9fc71e7 | [
"Apache-2.0"
] | null | null | null | carrier/classification/src/eda/eda.py | talk2sunil83/UpgradLearning | 70c4f993c68ce5030e9df0edd15004bbb9fc71e7 | [
"Apache-2.0"
] | null | null | null | # %% [markdown]
'''
# Calculate suspect score for manufacturing claims
'''
# %% [markdown]
'''
# Problem statement
'''
# %% [markdown]
'''
**Author** : Sunil Yadav || yadav.sunil83@gmail.com || +91 96206 38383 ||
'''
# %% [markdown]
'''
# Solution Approach
- Check if we can correctly segregate suspected claims
-... | 23.542222 | 111 | 0.600906 |
ede54949181848e3b9662de38d4f462733cf71e6 | 603 | py | Python | ztag/annotations/americanmegatrends.py | justinbastress/ztag | 137b754dfe22b7d6e0945ae33def372ec67d092b | [
"Apache-2.0"
] | 107 | 2015-10-13T16:03:21.000Z | 2021-11-08T10:53:07.000Z | ztag/annotations/americanmegatrends.py | justinbastress/ztag | 137b754dfe22b7d6e0945ae33def372ec67d092b | [
"Apache-2.0"
] | 73 | 2015-10-14T17:27:10.000Z | 2018-10-01T14:32:44.000Z | ztag/annotations/americanmegatrends.py | justinbastress/ztag | 137b754dfe22b7d6e0945ae33def372ec67d092b | [
"Apache-2.0"
] | 36 | 2015-10-14T17:13:20.000Z | 2021-10-05T19:41:10.000Z | from ztag.annotation import *
| 26.217391 | 81 | 0.621891 |
ede594c7b841a17bd745f94e6e14ca549a96c9d0 | 621 | py | Python | bnpy/viz/__init__.py | zhaottcrystal/bnpy | 0195a0228e9e698799e52a6dfa1d051e82b43fd0 | [
"BSD-3-Clause"
] | 1 | 2019-05-14T19:56:53.000Z | 2019-05-14T19:56:53.000Z | bnpy/viz/__init__.py | zhaottcrystal/bnpy | 0195a0228e9e698799e52a6dfa1d051e82b43fd0 | [
"BSD-3-Clause"
] | null | null | null | bnpy/viz/__init__.py | zhaottcrystal/bnpy | 0195a0228e9e698799e52a6dfa1d051e82b43fd0 | [
"BSD-3-Clause"
] | 1 | 2020-09-01T13:21:18.000Z | 2020-09-01T13:21:18.000Z | """
The :mod:`viz` module provides visualization capability
"""
import viz.BarsViz
import viz.BernViz
import viz.GaussViz
import viz.SequenceViz
import viz.ProposalViz
import viz.PlotTrace
import viz.PlotELBO
import viz.PlotK
import viz.PlotHeldoutLik
import viz.PlotParamComparison
import viz.PlotComps
import viz.J... | 23 | 74 | 0.745572 |
ede87d5f9bacdbbf74448b95d151644f8502d5f0 | 5,532 | py | Python | vlnce_baselines/common/ddppo_alg.py | Felix2048/VLN-CE | 4ea21f2af0d869ae65dd6677a53e788233f93761 | [
"MIT"
] | 106 | 2020-05-11T00:47:23.000Z | 2022-03-31T13:15:18.000Z | vlnce_baselines/common/ddppo_alg.py | Felix2048/VLN-CE | 4ea21f2af0d869ae65dd6677a53e788233f93761 | [
"MIT"
] | 30 | 2020-08-01T02:43:32.000Z | 2022-03-31T21:20:30.000Z | vlnce_baselines/common/ddppo_alg.py | Felix2048/VLN-CE | 4ea21f2af0d869ae65dd6677a53e788233f93761 | [
"MIT"
] | 36 | 2020-06-16T01:18:20.000Z | 2022-03-09T17:15:48.000Z | from typing import Tuple
import torch
from habitat_baselines.rl.ddppo.algo.ddppo import DDPPO
from torch.functional import Tensor
from torch.nn.functional import l1_loss
| 36.88 | 78 | 0.525669 |
edea2cfe56a56fb79fd1fce518faeebadbd65eee | 1,791 | py | Python | main.py | Jackson-Kang/Speech-dataset-generator | 7d73ea59f2fb0420cfcbd66afe9352a4eecbac9d | [
"MIT"
] | 4 | 2020-11-19T09:28:40.000Z | 2020-12-10T10:56:38.000Z | main.py | Jackson-Kang/Speech-dataset-generator | 7d73ea59f2fb0420cfcbd66afe9352a4eecbac9d | [
"MIT"
] | null | null | null | main.py | Jackson-Kang/Speech-dataset-generator | 7d73ea59f2fb0420cfcbd66afe9352a4eecbac9d | [
"MIT"
] | null | null | null | import sys
import configs as cfg
from video2wav import Video2Wav_Converter
from segment_speech import Segment_Speech
from transcribe_speech import Transcribe_Speech
from utils import create_dir
if __name__ == "__main__":
assert len(sys.argv) == 2, "[ERROR] option must be provided!"
if sys.argv[1] in [0, "0"... | 27.553846 | 79 | 0.757119 |
edeef0d9d796972bf70b21cd812c5bf7a74c376d | 216 | py | Python | cgh_practical_ml/b_pandas.py | bm2-lab/MLClass | 50e12d58aa56c25feefaa18af2351148052c4c22 | [
"Apache-2.0"
] | 2 | 2017-05-18T08:01:10.000Z | 2017-06-07T06:23:11.000Z | cgh_practical_ml/b_pandas.py | bm2-lab/MLClass | 50e12d58aa56c25feefaa18af2351148052c4c22 | [
"Apache-2.0"
] | null | null | null | cgh_practical_ml/b_pandas.py | bm2-lab/MLClass | 50e12d58aa56c25feefaa18af2351148052c4c22 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
dfm = pd.read_csv('h3.bed', sep='\t', header=None, index_col=None)
dfm.columns = ['chrom', 'start', 'end']
dfm['length'] = dfm['end'] - dfm['start']
dfm.to_csv('h3.tsv', sep='\t', index=None) | 21.6 | 66 | 0.62037 |
edef28264d82bcd62dedd4c32a8425656c175820 | 7,762 | py | Python | scripts/cros_oobe_autoconfig.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | scripts/cros_oobe_autoconfig.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | 2 | 2021-03-26T00:29:32.000Z | 2021-04-30T21:29:33.000Z | scripts/cros_oobe_autoconfig.py | khromiumos/chromiumos-chromite | a42a85481cdd9d635dc40a04585e427f89f3bb3f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Provision a recovery image for OOBE autoconfiguration.
This script populates the OOBE autoconfiguration data
(/stateful/unencr... | 33.747826 | 80 | 0.676887 |
edf065b3b9d813bd45d5a9f2000c563da0552f93 | 524 | py | Python | delivrable.py | minidfx/Cloud-Python- | c9e4741c4c4f7de77f439e2786cca7f03f70cad9 | [
"MIT"
] | null | null | null | delivrable.py | minidfx/Cloud-Python- | c9e4741c4c4f7de77f439e2786cca7f03f70cad9 | [
"MIT"
] | null | null | null | delivrable.py | minidfx/Cloud-Python- | c9e4741c4c4f7de77f439e2786cca7f03f70cad9 | [
"MIT"
] | null | null | null | import os
import sys
from Amazon import Amazon
from OpenStack import OpenStack
if sys.version_info.major < 2 and sys.version_info.minor < 7:
raise Exception("Python version 2.7 minimum is required for running this script.")
clouds = [OpenStack(), Amazon()]
for cloud in clouds:
cloud.create()
print('Press \... | 20.153846 | 86 | 0.717557 |
edf0710ec6bce13e2d9a52d1a1948bbc1d362eb2 | 11,466 | py | Python | tests/test_algebra_meta_onnx.py | adrinjalali/sklearn-onnx | 160200eb19880b4ded0acdd0c1e1a5ecd45c7b74 | [
"MIT"
] | null | null | null | tests/test_algebra_meta_onnx.py | adrinjalali/sklearn-onnx | 160200eb19880b4ded0acdd0c1e1a5ecd45c7b74 | [
"MIT"
] | null | null | null | tests/test_algebra_meta_onnx.py | adrinjalali/sklearn-onnx | 160200eb19880b4ded0acdd0c1e1a5ecd45c7b74 | [
"MIT"
] | null | null | null | import os
import unittest
from distutils.version import StrictVersion
from io import StringIO
import contextlib
import numpy
from numpy.testing import assert_almost_equal
import onnx
import onnxruntime
from onnx import numpy_helper, helper
from skl2onnx.algebra.onnx_ops import dynamic_class_creation
from skl2onnx.algeb... | 41.846715 | 79 | 0.513257 |
edf0ed4c0d4a032f2c535b742fa786f5f5390938 | 366 | py | Python | drink_partners/contrib/utils/tests/test_points_distance.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | null | null | null | drink_partners/contrib/utils/tests/test_points_distance.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | 22 | 2020-05-02T19:32:24.000Z | 2021-10-17T21:19:46.000Z | drink_partners/contrib/utils/tests/test_points_distance.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | null | null | null | from drink_partners.contrib.utils.points_distance import (
get_coordinate_distance_points
)
| 22.875 | 58 | 0.677596 |
edf26090d854080fb9b45549474f48ba0c37c05d | 7,526 | py | Python | moztrap/model/environments/api.py | mbeko/moztrap | db75e1f8756ef2c0c39652a66302b19c8afa0256 | [
"BSD-2-Clause"
] | null | null | null | moztrap/model/environments/api.py | mbeko/moztrap | db75e1f8756ef2c0c39652a66302b19c8afa0256 | [
"BSD-2-Clause"
] | null | null | null | moztrap/model/environments/api.py | mbeko/moztrap | db75e1f8756ef2c0c39652a66302b19c8afa0256 | [
"BSD-2-Clause"
] | null | null | null | from tastypie import fields
from tastypie import http
from tastypie.resources import ModelResource, ALL, ALL_WITH_RELATIONS
from tastypie.exceptions import ImmediateHttpResponse
from ..mtapi import MTResource, MTAuthorization
from .models import Profile, Environment, Element, Category
import logging
logger = logging.... | 34.209091 | 83 | 0.59806 |
edf3aad2c02724856ffa4ce73bc25b97e1a9d7b0 | 937 | py | Python | Bot/script7.py | hjunor/Bot-python-Instagran | 448312b12c5bdf959d7dd4ddb5a1eb5e1291f5c4 | [
"MIT"
] | 1 | 2020-07-29T18:00:18.000Z | 2020-07-29T18:00:18.000Z | Bot/script7.py | hjunor/Bot-python-Instagram | 448312b12c5bdf959d7dd4ddb5a1eb5e1291f5c4 | [
"MIT"
] | null | null | null | Bot/script7.py | hjunor/Bot-python-Instagram | 448312b12c5bdf959d7dd4ddb5a1eb5e1291f5c4 | [
"MIT"
] | null | null | null | #parar de seguir seguidores ...
from instapy import InstaPy
from instapy import smart_run
session = InstaPy(username='' , password='')
with smart_run(session):
session.set_do_follow(enabled=True, percentage=100)
session.set_do_like(enabled=True, percentage=100)
session.unfollow_users(amount=100, allFol... | 37.48 | 130 | 0.716115 |
edf492afe84acc1713a2081782233e25be267de7 | 890 | py | Python | examples/failbot/failbot/writer_options.py | Tallisado/DbBot | cfdea98a5770d86e886205fb2c8b9198c2d6be20 | [
"Apache-2.0"
] | 1 | 2021-11-22T14:35:22.000Z | 2021-11-22T14:35:22.000Z | examples/failbot/failbot/writer_options.py | Tallisado/DbBot | cfdea98a5770d86e886205fb2c8b9198c2d6be20 | [
"Apache-2.0"
] | null | null | null | examples/failbot/failbot/writer_options.py | Tallisado/DbBot | cfdea98a5770d86e886205fb2c8b9198c2d6be20 | [
"Apache-2.0"
] | null | null | null | from os.path import exists
from sys import argv
from dbbot import CommandLineOptions
| 30.689655 | 79 | 0.668539 |
edf4bcfd3616b9eb20798b538246c06d4982fdb4 | 223 | py | Python | Solving_Problems/max_common_divisor.py | mingzhangyang/learning_pandas | 6ec0ef09839d87a28dbf3beaa7c61e89f4346a36 | [
"Apache-2.0"
] | null | null | null | Solving_Problems/max_common_divisor.py | mingzhangyang/learning_pandas | 6ec0ef09839d87a28dbf3beaa7c61e89f4346a36 | [
"Apache-2.0"
] | null | null | null | Solving_Problems/max_common_divisor.py | mingzhangyang/learning_pandas | 6ec0ef09839d87a28dbf3beaa7c61e89f4346a36 | [
"Apache-2.0"
] | 1 | 2017-10-10T15:09:38.000Z | 2017-10-10T15:09:38.000Z | #!usr/bin/python
#coding:utf8
#mcd:max_common_divisor | 17.153846 | 61 | 0.587444 |
edf5ff589947e9a4cdd842f130ed6198e9f67912 | 1,129 | py | Python | Tarefas RNAs/rna_mpl.py | Jovioluiz/IA | 35247c782747a972e73a723608e71faa70cb6916 | [
"MIT"
] | null | null | null | Tarefas RNAs/rna_mpl.py | Jovioluiz/IA | 35247c782747a972e73a723608e71faa70cb6916 | [
"MIT"
] | null | null | null | Tarefas RNAs/rna_mpl.py | Jovioluiz/IA | 35247c782747a972e73a723608e71faa70cb6916 | [
"MIT"
] | null | null | null | #tarefa 4
#Jvio L. Giacomolli
import numpy as np
#funo sigmoide
#arquitetura da MPL
n_input = 3
n_hidden = 4
n_output = 2
#vetor dos valores de entrada(aleatoria)
x = np.array([1, 2, 3])
#pesos camada oculta
weights_in_hidden = np.array([[0.2, 0.1, -0.9, 0.03],
[0.6, ... | 25.659091 | 63 | 0.591674 |
edf8b9d24eb17e49b5ccc0a21211628f48bd98dd | 3,273 | py | Python | codestosort/CloudComputing/reports/hw3/src/run.py | jimmy-academia/Deeper-Learnings | ac363efe5450dd2751c0c1bea0ee7af457f7ac24 | [
"MIT"
] | 2 | 2019-09-30T04:57:11.000Z | 2020-04-06T04:27:46.000Z | codestosort/CloudComputing/reports/hw3/src/run.py | jimmy-academia/Deeper-Learnings | ac363efe5450dd2751c0c1bea0ee7af457f7ac24 | [
"MIT"
] | null | null | null | codestosort/CloudComputing/reports/hw3/src/run.py | jimmy-academia/Deeper-Learnings | ac363efe5450dd2751c0c1bea0ee7af457f7ac24 | [
"MIT"
] | null | null | null | from thrift.transport import TSocket,TTransport
from thrift.protocol import TBinaryProtocol
from hbase import Hbase
from hbase.ttypes import ColumnDescriptor
from hbase.ttypes import Mutation
import csv
import os
import time
import logging
from tqdm import tqdm
# table: station, column: attr, row: date
if __name__... | 36.775281 | 114 | 0.534983 |
edfad664d6522de1e57decf992ec9921d32421ab | 873 | py | Python | tests/functional/create_key.py | maxwolfe/autocsr | 6c8295c0796f597c8780658de1570f9951b3d846 | [
"MIT"
] | null | null | null | tests/functional/create_key.py | maxwolfe/autocsr | 6c8295c0796f597c8780658de1570f9951b3d846 | [
"MIT"
] | null | null | null | tests/functional/create_key.py | maxwolfe/autocsr | 6c8295c0796f597c8780658de1570f9951b3d846 | [
"MIT"
] | null | null | null | """Create PKCS11 Key."""
import pkcs11
from pkcs11.util.ec import encode_named_curve_parameters
if __name__ == "__main__":
lib = pkcs11.lib("/usr/lib/softhsm/libsofthsm2.so")
token = lib.get_token(token_label="token")
with token.open(rw=True, user_pin="1234") as session:
session.generate_keypair(... | 33.576923 | 87 | 0.662085 |
edfc9ce9d519343ae32bf3b714e11e2e15706541 | 2,353 | py | Python | model/losses.py | TomHacker/faster-rcnn | 313e51f76814cfceb5c2f24fed6d596bebcbd13f | [
"Apache-2.0"
] | 1 | 2019-06-10T00:47:53.000Z | 2019-06-10T00:47:53.000Z | model/losses.py | TomHacker/faster-rcnn | 313e51f76814cfceb5c2f24fed6d596bebcbd13f | [
"Apache-2.0"
] | null | null | null | model/losses.py | TomHacker/faster-rcnn | 313e51f76814cfceb5c2f24fed6d596bebcbd13f | [
"Apache-2.0"
] | null | null | null | from keras import backend as K
from keras.objectives import categorical_crossentropy
import tensorflow as tf
lambda_rpn_regr=1.0
lambda_rpn_class=1.0
lambda_cls_regr=1.0
lambda_cls_class=1.0
epsilon=1e-4
| 48.020408 | 122 | 0.486188 |
edfd77060965954e9fe35eddd7f4bb0c750e7c30 | 4,597 | py | Python | visualization.py | johnrickman/UnpairedImageTranslation | d1d5e1386babacceabb4fe45841592bc7b6c3baa | [
"MIT"
] | null | null | null | visualization.py | johnrickman/UnpairedImageTranslation | d1d5e1386babacceabb4fe45841592bc7b6c3baa | [
"MIT"
] | null | null | null | visualization.py | johnrickman/UnpairedImageTranslation | d1d5e1386babacceabb4fe45841592bc7b6c3baa | [
"MIT"
] | null | null | null | import os
import chainer
import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
from chainer import Variable,cuda
import numpy as np
import chainer.functions as F
import losses
from chainer.training import extensions
import warnings
# assume [0,1] input
## obsolete
def visualize(models,test_image_fold... | 39.290598 | 99 | 0.530998 |
61005a7c75432e9ae42ede4d5ac15e5f374b5507 | 19 | py | Python | myenv/Lib/site-packages/stripe/version.py | thestackcoder/notifao_app | e21ab3c0eed72a64ee24508b92045de13c8385bb | [
"MIT"
] | null | null | null | myenv/Lib/site-packages/stripe/version.py | thestackcoder/notifao_app | e21ab3c0eed72a64ee24508b92045de13c8385bb | [
"MIT"
] | null | null | null | myenv/Lib/site-packages/stripe/version.py | thestackcoder/notifao_app | e21ab3c0eed72a64ee24508b92045de13c8385bb | [
"MIT"
] | null | null | null | VERSION = "2.50.0"
| 9.5 | 18 | 0.578947 |
6100a22323f15fa26e9d7d5c689f91872739d259 | 2,336 | py | Python | spark_lsh.py | lambdadatascience/lsh | 9bff84c0de984bb3f3ded782baf49da73031517d | [
"MIT"
] | null | null | null | spark_lsh.py | lambdadatascience/lsh | 9bff84c0de984bb3f3ded782baf49da73031517d | [
"MIT"
] | null | null | null | spark_lsh.py | lambdadatascience/lsh | 9bff84c0de984bb3f3ded782baf49da73031517d | [
"MIT"
] | null | null | null | import argparse
import os.path
import functools
import numpy as np
from pyspark.mllib.linalg import SparseVector
from pyspark import SparkContext, SparkConf
import text_helpers
#TODO: implement
def getHashFunctions(n=200):
""" generates n number of hash functions
"""
pass
#TODO: implement
def getStopWord... | 29.2 | 75 | 0.657962 |
6101e8e012fece4c920c8244350e3a04fbec14a7 | 4,469 | py | Python | perfkitbenchmarker/linux_packages/memcached_server.py | pierre-emmanuelJ/PerfKitBenchmarker | 3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69 | [
"Apache-2.0"
] | 1 | 2016-12-07T19:49:58.000Z | 2016-12-07T19:49:58.000Z | perfkitbenchmarker/linux_packages/memcached_server.py | pierre-emmanuelJ/PerfKitBenchmarker | 3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69 | [
"Apache-2.0"
] | null | null | null | perfkitbenchmarker/linux_packages/memcached_server.py | pierre-emmanuelJ/PerfKitBenchmarker | 3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 33.601504 | 80 | 0.707765 |
6101fbe36a07e3eb66e44044a1570bf0f15fcbb4 | 582 | py | Python | tests/test_test_framework.py | mvaleev/asyncpgsa | 19b6b9f49cd8a6e63c79695fcb995a59964f694e | [
"Apache-2.0"
] | 419 | 2016-07-22T20:08:05.000Z | 2022-03-03T14:39:28.000Z | tests/test_test_framework.py | mvaleev/asyncpgsa | 19b6b9f49cd8a6e63c79695fcb995a59964f694e | [
"Apache-2.0"
] | 89 | 2016-09-16T17:28:14.000Z | 2021-04-30T08:16:47.000Z | tests/test_test_framework.py | mvaleev/asyncpgsa | 19b6b9f49cd8a6e63c79695fcb995a59964f694e | [
"Apache-2.0"
] | 63 | 2016-08-05T15:46:24.000Z | 2022-03-31T13:33:54.000Z | # Testing our tests!!
from asyncpgsa.testing import MockPG
| 25.304348 | 57 | 0.646048 |
610352de23c24c1211593fc045bfabda52ab33ba | 3,784 | py | Python | tests.py | dantheta/norm | 0048dc66686e24d08ae3d01fda8d719abc09f276 | [
"BSD-3-Clause"
] | null | null | null | tests.py | dantheta/norm | 0048dc66686e24d08ae3d01fda8d719abc09f276 | [
"BSD-3-Clause"
] | null | null | null | tests.py | dantheta/norm | 0048dc66686e24d08ae3d01fda8d719abc09f276 | [
"BSD-3-Clause"
] | null | null | null |
import NORM
import NORM.utils
import psycopg2
import unittest
import logging
logging.basicConfig(level = logging.WARN)
unittest.main()
| 24.101911 | 69 | 0.656184 |
61037aee09d2dd1ca60025b574f0aaaa3bfd465f | 4,012 | py | Python | logger/tensorboard_logger.py | system123/SOMatch | 6f10cf28f506998a5e430ccd3faab3076fe350d5 | [
"MIT"
] | 22 | 2020-09-25T05:10:57.000Z | 2022-03-16T08:16:00.000Z | logger/tensorboard_logger.py | system123/SOMatch | 6f10cf28f506998a5e430ccd3faab3076fe350d5 | [
"MIT"
] | 14 | 2020-10-09T14:12:08.000Z | 2021-05-18T12:55:18.000Z | logger/tensorboard_logger.py | system123/SOMatch | 6f10cf28f506998a5e430ccd3faab3076fe350d5 | [
"MIT"
] | 15 | 2020-11-02T02:01:58.000Z | 2022-03-30T08:00:17.000Z | import os
import torch
import numpy as np
import torchvision.utils as vutils
from tensorboardX import SummaryWriter
from datetime import datetime
from utils.helpers import get_learning_rate | 38.951456 | 115 | 0.720588 |
6103dca99223e2064971d08bcfcec2f45746107b | 870 | py | Python | challenges/week_1/bus_fare_challenge.py | sling254/python | c49c2c63a5fe92f07d24bbb28c3a176d516816da | [
"MIT"
] | null | null | null | challenges/week_1/bus_fare_challenge.py | sling254/python | c49c2c63a5fe92f07d24bbb28c3a176d516816da | [
"MIT"
] | null | null | null | challenges/week_1/bus_fare_challenge.py | sling254/python | c49c2c63a5fe92f07d24bbb28c3a176d516816da | [
"MIT"
] | null | null | null | # WRITE YOUR CODE SOLUTION HERE
from datetime import datetime, timedelta, date
#Get todays date and store it in a variable 'date'
date = datetime.now()
"""
# Use todays date to get the name on the day of the week written in a short
# form with the first letter capitalized (e.g) 'Fri' if today were Friday and
# as... | 20.714286 | 80 | 0.636782 |
6103de3de6f757d0d0039c05b3e7ed32ecf1a76c | 572 | py | Python | TaskManager/forms.py | farahaulita/pbp-tk | fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c | [
"Unlicense"
] | null | null | null | TaskManager/forms.py | farahaulita/pbp-tk | fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c | [
"Unlicense"
] | null | null | null | TaskManager/forms.py | farahaulita/pbp-tk | fabf8e07ed0e1270d3e98a3d1bdd46267a1a4d6c | [
"Unlicense"
] | null | null | null | from django.db.models.base import Model
from django.forms import ModelForm, widgets
from django import forms
from login.models import User, Task, Submissions, Subject
| 26 | 58 | 0.655594 |
610406ba37832372e56f799a0a8405cc81ffc202 | 2,200 | py | Python | src/GUI.py | samm82/WebexPollBuilder | 9dc52595fae22043f48981c12eeda0d90b000fc8 | [
"MIT"
] | null | null | null | src/GUI.py | samm82/WebexPollBuilder | 9dc52595fae22043f48981c12eeda0d90b000fc8 | [
"MIT"
] | 13 | 2020-09-10T01:18:43.000Z | 2020-09-21T12:56:58.000Z | src/GUI.py | samm82/WebexPollBuilder | 9dc52595fae22043f48981c12eeda0d90b000fc8 | [
"MIT"
] | null | null | null | import PySimpleGUI as sg
| 28.571429 | 74 | 0.605909 |
61044666403f7fed0ad63dd4accb5ea22bf27e14 | 12,740 | py | Python | spira/yevon/geometry/nets/net.py | qedalab/spira | 32e4d2096e298b9fcc5952abd654312dc232a259 | [
"MIT"
] | 10 | 2018-07-13T09:46:21.000Z | 2021-06-22T13:34:50.000Z | spira/yevon/geometry/nets/net.py | qedalab/spira | 32e4d2096e298b9fcc5952abd654312dc232a259 | [
"MIT"
] | 8 | 2018-09-09T11:32:40.000Z | 2019-10-08T07:47:31.000Z | spira/yevon/geometry/nets/net.py | qedalab/spira | 32e4d2096e298b9fcc5952abd654312dc232a259 | [
"MIT"
] | 7 | 2019-01-17T18:50:17.000Z | 2022-01-13T20:27:52.000Z | import numpy as np
import networkx as nx
from copy import deepcopy
from spira.core.parameters.variables import GraphParameter, StringParameter
from spira.core.parameters.descriptor import Parameter, RestrictedParameter
from spira.yevon.geometry.coord import Coord
from spira.yevon.vmodel.geometry import GeometryParamet... | 35.388889 | 111 | 0.557614 |
6106d1e77ba2c189d3335415eaec9708cfc5663a | 337 | py | Python | main.py | vsalvino/pyinstaller-demo | 0abfd197bb5aaafc894d3f48848d2c919ad62792 | [
"Unlicense"
] | null | null | null | main.py | vsalvino/pyinstaller-demo | 0abfd197bb5aaafc894d3f48848d2c919ad62792 | [
"Unlicense"
] | null | null | null | main.py | vsalvino/pyinstaller-demo | 0abfd197bb5aaafc894d3f48848d2c919ad62792 | [
"Unlicense"
] | null | null | null | """
Runs list_files on the current directory (".")
"""
from util import list_files
if __name__ == "__main__":
main()
| 16.047619 | 46 | 0.51632 |
6107e1c219772ea1245d3f4b2f2a7463443f4c29 | 11,846 | py | Python | bin/NormalizeReadCounts.py | DSchreyer/crisprquant | ffebb979064fed2d4f65ce6dc1c703b829ff23e7 | [
"MIT"
] | 1 | 2021-03-19T09:50:48.000Z | 2021-03-19T09:50:48.000Z | bin/NormalizeReadCounts.py | DSchreyer/crisprquant | ffebb979064fed2d4f65ce6dc1c703b829ff23e7 | [
"MIT"
] | 2 | 2021-03-19T09:43:20.000Z | 2021-06-23T07:22:43.000Z | bin/NormalizeReadCounts.py | DSchreyer/crisprquant | ffebb979064fed2d4f65ce6dc1c703b829ff23e7 | [
"MIT"
] | 3 | 2021-03-18T15:03:18.000Z | 2021-06-26T19:09:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 13 09:23:51 2017
@author: philipp
"""
# Analyze count distribution
# =======================================================================
# Imports
from __future__ import division # floating point division by default
import sys
import yaml
import ... | 46.637795 | 123 | 0.516968 |
610a96c124ddf123bf15adaeaa766b98e989700b | 3,022 | py | Python | tests/smoke/basic_tests.py | hsyed/rules_kotlin_old | 7abdd03cf63dcbc629033aac82de7681d27eebe0 | [
"Apache-2.0"
] | 9 | 2018-02-08T04:07:22.000Z | 2019-11-15T04:17:33.000Z | tests/smoke/basic_tests.py | hsyed/rules_kotlin_old | 7abdd03cf63dcbc629033aac82de7681d27eebe0 | [
"Apache-2.0"
] | null | null | null | tests/smoke/basic_tests.py | hsyed/rules_kotlin_old | 7abdd03cf63dcbc629033aac82de7681d27eebe0 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 42.56338 | 149 | 0.74818 |
610ab1863c7ddaa1c38857f222e1b6a7d510644e | 4,655 | py | Python | secuinside-2017/Very Very Chart/chart.py | mathboy7/CTF | e279bf91ad6b22fc41087571c5fba9501832ab80 | [
"Apache-2.0"
] | 46 | 2017-11-07T05:30:26.000Z | 2021-11-24T09:33:41.000Z | secuinside-2017/Very Very Chart/chart.py | mathboy7/CTF | e279bf91ad6b22fc41087571c5fba9501832ab80 | [
"Apache-2.0"
] | null | null | null | secuinside-2017/Very Very Chart/chart.py | mathboy7/CTF | e279bf91ad6b22fc41087571c5fba9501832ab80 | [
"Apache-2.0"
] | 3 | 2017-11-14T14:45:28.000Z | 2020-08-30T07:59:04.000Z | from pwn import *
r = process("./chart")
raw_input("$")
print r.recvuntil(">")
register(1, "mathboy", "mathboy", "mathboy")
register(2, "mitsuha", "mitsuha", "mitsuha", "A"*0x40)
login("mitsuha", "mitsuha") # composer now!
writeMusic("music1", "music1 hello")
writeMusic("sex", "sex")
logOut(2) # composer logout
r... | 20.874439 | 71 | 0.643179 |
610dcc6aa683bc18e852da17456d9fb2df99e847 | 8,761 | py | Python | main.py | francescofraternali/CityLearn | 0338dcd81a856638a163bbc88401fa93543b1e05 | [
"MIT"
] | 1 | 2020-07-21T22:30:54.000Z | 2020-07-21T22:30:54.000Z | main.py | francescofraternali/CityLearn | 0338dcd81a856638a163bbc88401fa93543b1e05 | [
"MIT"
] | null | null | null | main.py | francescofraternali/CityLearn | 0338dcd81a856638a163bbc88401fa93543b1e05 | [
"MIT"
] | null | null | null | from citylearn import CityLearn, building_loader, auto_size
from energy_models import HeatPump, EnergyStorage, Building
import matplotlib.pyplot as plt
import torch
import torch.optim as optim
import torch.nn as nn
import torch.nn.functional as F
import collections
import gym
from gym.utils import seeding
from gym im... | 38.091304 | 201 | 0.629266 |
610ddbb5e092cf2175ef5db86499670928275f5e | 2,041 | py | Python | main.py | ErikBavenstrand/Neural-Network-Implementation | 01652abd972139367c45ce991d228f2a1c125c07 | [
"MIT"
] | null | null | null | main.py | ErikBavenstrand/Neural-Network-Implementation | 01652abd972139367c45ce991d228f2a1c125c07 | [
"MIT"
] | 5 | 2019-11-20T13:29:21.000Z | 2022-03-12T00:05:57.000Z | main.py | ErikBavenstrand/Neural-Network-Implementation | 01652abd972139367c45ce991d228f2a1c125c07 | [
"MIT"
] | null | null | null | import pickle
import sys
from mnist import MNIST
from NeuralNetwork import *
import numpy as np
from PIL import Image
if __name__ == "__main__":
if len(sys.argv) != 2:
print("Creating a neural network...")
createNeuralNetwork(sys.argv[1:-1], sys.argv[-1])
print("Done")
else:
fi... | 31.4 | 100 | 0.610975 |
610dde3eaecfbbd308febda89f23fdad9f9119a4 | 139 | py | Python | jne/utils.py | kangfend/py-jne | 622643f0ab0e4c848a2e8578ec9946716984da34 | [
"MIT"
] | 15 | 2015-06-13T22:39:10.000Z | 2016-10-09T05:03:27.000Z | jne/utils.py | kangfend/py-jne | 622643f0ab0e4c848a2e8578ec9946716984da34 | [
"MIT"
] | 2 | 2015-08-28T13:44:18.000Z | 2016-01-23T10:06:31.000Z | jne/utils.py | kangfend/py-jne | 622643f0ab0e4c848a2e8578ec9946716984da34 | [
"MIT"
] | 10 | 2015-03-28T04:34:45.000Z | 2021-09-04T09:12:03.000Z | import json
def pretty_print(text):
"""This utils used for print pretty json"""
print json.dumps(text, indent=2, sort_keys=True)
| 19.857143 | 52 | 0.705036 |
610f4efe5e37318e7fc086def5a33639b6de24e4 | 1,286 | py | Python | JM_exerc/dao/Back_dao.py | matheusschuetz/TrabalhoPython | 953957898de633f8f2776681a45a1a15b68e80b9 | [
"MIT"
] | 1 | 2020-01-21T11:43:12.000Z | 2020-01-21T11:43:12.000Z | JM_exerc/dao/Back_dao.py | matheusschuetz/TrabalhoPython | 953957898de633f8f2776681a45a1a15b68e80b9 | [
"MIT"
] | null | null | null | JM_exerc/dao/Back_dao.py | matheusschuetz/TrabalhoPython | 953957898de633f8f2776681a45a1a15b68e80b9 | [
"MIT"
] | null | null | null | import MySQLdb
import sys
sys.path.append('C:/Users/900152/Documents/Dados/TrabalhoPython/JM_exerc')
from model.Back_model import BackEnd
| 31.365854 | 155 | 0.608087 |
611169f30f1750c8f1f5f07f7667caa4353a87fb | 40 | py | Python | dmaap/dmaapcontrollerif/__init__.py | onap/ccsdk-platform-plugins | c1dfbc118f75474b57377447442bd550dd58f1e1 | [
"Apache-2.0"
] | 1 | 2020-07-14T14:22:04.000Z | 2020-07-14T14:22:04.000Z | dmaap/dmaapcontrollerif/__init__.py | alex-sh2020/dcaegen2-platform-plugins | c5abb9b34468400bdcdd3ce23595af41ac03cd80 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | dmaap/dmaapcontrollerif/__init__.py | alex-sh2020/dcaegen2-platform-plugins | c5abb9b34468400bdcdd3ce23595af41ac03cd80 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2020-07-14T19:02:05.000Z | 2020-07-14T19:02:05.000Z | # DMaaP Bus Controller interface library | 40 | 40 | 0.85 |
611181e7d0195f21d069fc45894a9609fc7010a3 | 11,206 | py | Python | pynars/NARS/DataStructures/_py/Memory.py | AIxer/PyNARS | 443b6a5e1c9779a1b861df1ca51ce5a190998d2e | [
"MIT"
] | null | null | null | pynars/NARS/DataStructures/_py/Memory.py | AIxer/PyNARS | 443b6a5e1c9779a1b861df1ca51ce5a190998d2e | [
"MIT"
] | null | null | null | pynars/NARS/DataStructures/_py/Memory.py | AIxer/PyNARS | 443b6a5e1c9779a1b861df1ca51ce5a190998d2e | [
"MIT"
] | null | null | null | from pynars.Config import Enable
from pynars.NAL.Inference.LocalRules import solve_query, solution_query, solution_question
from pynars.NAL.MetaLevelInference.VariableSubstitution import unification__var_const
from pynars.NARS.DataStructures._py.Link import TaskLink
from pynars.Narsese._py.Sentence import Goal, Judgem... | 40.601449 | 165 | 0.602534 |
6111ddacc44418041a2bb2b9f13a62afcc927800 | 1,861 | py | Python | fn/fn_engine.py | zjjott/curiosity | d6aa8ef2503e7e21e26f53e964667288337d4ed1 | [
"MIT"
] | null | null | null | fn/fn_engine.py | zjjott/curiosity | d6aa8ef2503e7e21e26f53e964667288337d4ed1 | [
"MIT"
] | null | null | null | fn/fn_engine.py | zjjott/curiosity | d6aa8ef2503e7e21e26f53e964667288337d4ed1 | [
"MIT"
] | null | null | null | # coding=utf-8
""""""
from __future__ import unicode_literals, absolute_import
from fn.fn_loop import LoopContext
from fn.fn_eval import EvalContext
from collections import deque
| 23.2625 | 56 | 0.577109 |
611288649e75ce5d1bb3366ed4efae6440380a9d | 1,079 | py | Python | code/dataSource.py | youkaisteve/Population | bfda0b4b8dc510726911f5e5dd7ef6c7863634b1 | [
"MIT"
] | null | null | null | code/dataSource.py | youkaisteve/Population | bfda0b4b8dc510726911f5e5dd7ef6c7863634b1 | [
"MIT"
] | null | null | null | code/dataSource.py | youkaisteve/Population | bfda0b4b8dc510726911f5e5dd7ef6c7863634b1 | [
"MIT"
] | null | null | null | import re
import xlrd
DATA_BASE_PATH = '../data/population-migration-all/'
def get_files(file_path):
"""get files.
Keyword arguments:
file_path -- file path
"""
result = []
work_book = xlrd.open_workbook(file_path)
first_table = work_book.sheet_by_index(0)
cols = first_table.ncols
... | 22.957447 | 61 | 0.653383 |
61141cae8d0e62946e4aed085cc2f4ed83c66240 | 156 | py | Python | src/apps/analytics/urls.py | binfeng1018/competitions-v2 | 173ea6053b7eda5de3a9f1a687dfb0d43bfc4e9c | [
"Apache-2.0"
] | 19 | 2018-07-27T19:14:10.000Z | 2021-12-08T16:34:42.000Z | src/apps/analytics/urls.py | binfeng1018/competitions-v2 | 173ea6053b7eda5de3a9f1a687dfb0d43bfc4e9c | [
"Apache-2.0"
] | 516 | 2017-07-27T15:45:43.000Z | 2022-02-10T07:57:46.000Z | src/apps/analytics/urls.py | binfeng1018/competitions-v2 | 173ea6053b7eda5de3a9f1a687dfb0d43bfc4e9c | [
"Apache-2.0"
] | 16 | 2018-01-01T19:07:01.000Z | 2021-09-17T07:59:59.000Z | from django.urls import path
from . import views
app_name = "analytics"
urlpatterns = [
path('', views.AnalyticsView.as_view(), name="analytics"),
]
| 15.6 | 62 | 0.698718 |
61147373450b1b29dfcc15bb1bf5d047d010a877 | 168 | py | Python | luxem/__init__.py | Rendaw/luxem-python | c81de2f573fc646d16c746acf7cb7da63a199eb2 | [
"BSD-2-Clause"
] | null | null | null | luxem/__init__.py | Rendaw/luxem-python | c81de2f573fc646d16c746acf7cb7da63a199eb2 | [
"BSD-2-Clause"
] | null | null | null | luxem/__init__.py | Rendaw/luxem-python | c81de2f573fc646d16c746acf7cb7da63a199eb2 | [
"BSD-2-Clause"
] | null | null | null | from _luxem import Reader, to_ascii16, from_ascii16
from luxem.struct import Typed
from luxem.read import load
loads = load
from luxem.write import dump, dumps, Writer
| 28 | 51 | 0.815476 |
61155cc8647d3a04287a744c3fe45ab20382fb37 | 3,635 | py | Python | rest-server/bin/engines.py | soft-super/harness | 540f7648fd0702c1b71f0f1c41b71a870c9420fe | [
"Apache-2.0"
] | 1 | 2020-12-17T11:22:42.000Z | 2020-12-17T11:22:42.000Z | rest-server/bin/engines.py | soft-super/harness | 540f7648fd0702c1b71f0f1c41b71a870c9420fe | [
"Apache-2.0"
] | null | null | null | rest-server/bin/engines.py | soft-super/harness | 540f7648fd0702c1b71f0f1c41b71a870c9420fe | [
"Apache-2.0"
] | 1 | 2019-03-26T20:43:23.000Z | 2019-03-26T20:43:23.000Z | #!/usr/bin/env python3
from harness import EnginesClient, HttpError
from common import *
engine_client = EnginesClient(
url=url,
user_id=client_user_id,
user_secret=client_user_secret
)
if args.action == 'create':
with open(args.config) as data_file:
config = json.load(data_file)
tr... | 37.864583 | 121 | 0.646217 |
61185f9554e6fdad4742b175bf8931b9e3aa29a8 | 1,817 | py | Python | protlearn/dimreduction/pca.py | tadorfer/ProtClass | da1a01ea9abd3c367b3389dfed683c6a9dfa6afd | [
"MIT"
] | 24 | 2020-09-17T10:35:44.000Z | 2022-03-09T19:19:01.000Z | protlearn/dimreduction/pca.py | tadorfer/ProtClass | da1a01ea9abd3c367b3389dfed683c6a9dfa6afd | [
"MIT"
] | 14 | 2020-08-09T18:23:01.000Z | 2020-11-19T05:48:14.000Z | protlearn/dimreduction/pca.py | tadorfer/ProtClass | da1a01ea9abd3c367b3389dfed683c6a9dfa6afd | [
"MIT"
] | 3 | 2021-03-07T23:41:17.000Z | 2022-02-25T18:48:37.000Z | # Author: Thomas Dorfer <thomas.a.dorfer@gmail.com>
import warnings
import numpy as np
from sklearn.decomposition import PCA
def pca(X, *, thres=.9, whiten=False):
"""Principal component analysis.
PCA is defined as an orthogonal linear transformation that transforms the
data to a new coordinate system s... | 28.390625 | 80 | 0.636214 |
611ab93cd7e47ac7216315c2b7329f2585cfa2ee | 28,327 | py | Python | pysnmp-with-texts/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-VOICE-COMMON-DIAL-CONTROL-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VOICE-COMMON-DIAL-CONTROL-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:51:02 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Usi... | 182.754839 | 2,213 | 0.777386 |
611baf35e81592e930584d66af2ff718199af1d7 | 600 | py | Python | base/lib/pythonbin/urwid/tests/test_doctests.py | threefoldtech/sandbox_osx | e2a5ea812c3789dea40113719dbad6d6ee7cd720 | [
"Apache-2.0"
] | 4 | 2021-10-14T21:22:25.000Z | 2022-03-12T19:58:48.000Z | base/lib/pythonbin/urwid/tests/test_doctests.py | threefoldtech/sandbox_osx | e2a5ea812c3789dea40113719dbad6d6ee7cd720 | [
"Apache-2.0"
] | 3 | 2020-06-05T18:53:36.000Z | 2021-06-10T20:47:05.000Z | base/lib/pythonbin/urwid/tests/test_doctests.py | threefoldtech/sandbox_osx | e2a5ea812c3789dea40113719dbad6d6ee7cd720 | [
"Apache-2.0"
] | 1 | 2022-03-15T22:52:53.000Z | 2022-03-15T22:52:53.000Z | import unittest
import doctest
import urwid
| 25 | 76 | 0.64 |
611c050ab476af18d9d1aad22299045780867d91 | 36,390 | py | Python | python/three_sums.py | realpacific/algorithms | 199ee98e8959a13e4c0c52f9dcb3ac1b7860deaf | [
"MIT"
] | 88 | 2021-08-22T21:41:23.000Z | 2022-03-04T11:48:13.000Z | python/three_sums.py | realpacific/algorithms | 199ee98e8959a13e4c0c52f9dcb3ac1b7860deaf | [
"MIT"
] | 6 | 2021-09-07T14:41:33.000Z | 2021-12-08T13:05:21.000Z | python/three_sums.py | realpacific/algorithms | 199ee98e8959a13e4c0c52f9dcb3ac1b7860deaf | [
"MIT"
] | 2 | 2021-09-24T07:52:08.000Z | 2021-11-29T12:48:01.000Z | from unittest import TestCase
print(threeSum([-2, 0, 1, 1, 2]))
print("-=-=-=-")
print(threeSum([-1, 0, 1, 2, -1, -4]))
list = [
82597,
-9243,
62390,
83030,
-97960,
-26521,
-61011,
83390,
-38677,
12333,
75987,
46091,
83794,
19355,
-71037,
-6242,
... | 11.845703 | 84 | 0.436164 |
611c86f8ffe03767be73c533d68fe0d78449ed8f | 12,750 | py | Python | PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/labs/lab4_read_sensors.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/labs/lab4_read_sensors.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/labs/lab4_read_sensors.py | much2mutch/csse120-public | 4f862a6deb7a5373fb5723fb2a23e4042e4d4157 | [
"MIT"
] | null | null | null | """
Capstone Team Project. Code to run on a ROBOT (NOT a laptop).
This module is for testing STAND-ALONE code running on the ROBOT
(WITHOUT having LAPTOP GUI code running on the LAPTOP at the same time).
In tests the various SENSORS available to you.
Authors: Your professors (for the framework).
Winter term, 2019-2... | 37.946429 | 79 | 0.590039 |
611d13547f13c33b7652ed80fb015010531fb338 | 12,233 | py | Python | tests/unit_tests/test_tethys_apps/test_base/test_workspace.py | msouff/tethys | 45795d1e6561d5db8fddd838f4d1ae1d91dbb837 | [
"BSD-2-Clause"
] | 79 | 2015-10-05T13:13:28.000Z | 2022-02-01T12:30:33.000Z | tests/unit_tests/test_tethys_apps/test_base/test_workspace.py | msouff/tethys | 45795d1e6561d5db8fddd838f4d1ae1d91dbb837 | [
"BSD-2-Clause"
] | 542 | 2015-08-12T22:11:32.000Z | 2022-03-29T22:18:08.000Z | tests/unit_tests/test_tethys_apps/test_base/test_workspace.py | msouff/tethys | 45795d1e6561d5db8fddd838f4d1ae1d91dbb837 | [
"BSD-2-Clause"
] | 71 | 2016-01-16T01:03:41.000Z | 2022-03-31T17:55:54.000Z | import unittest
import tethys_apps.base.workspace as base_workspace
import os
import shutil
from unittest import mock
from ... import UserFactory
from django.http import HttpRequest
from django.contrib.auth.models import User
from django.core.exceptions import PermissionDenied
import tethys_apps.base.app_base as tethys... | 43.689286 | 118 | 0.710619 |
611e0ce498d0d6daa68a1e298efb23c3efe69b01 | 425 | py | Python | authentication/urls.py | NoMariusz/Praeteritum | c32fa017e23de7255224fcf72cd04abdfc3ebff4 | [
"MIT"
] | 3 | 2021-03-07T21:43:55.000Z | 2021-09-21T08:24:26.000Z | authentication/urls.py | NoMariusz/Praeteritum | c32fa017e23de7255224fcf72cd04abdfc3ebff4 | [
"MIT"
] | null | null | null | authentication/urls.py | NoMariusz/Praeteritum | c32fa017e23de7255224fcf72cd04abdfc3ebff4 | [
"MIT"
] | null | null | null | from django.urls import path
from django.views.decorators.csrf import csrf_exempt
from .views import UserView, RegisterUser, LoginUser, LogoutUser, \
CheckAuthenticated
urlpatterns = [
path('', UserView.as_view()),
path('register', csrf_exempt(RegisterUser.as_view())),
path('login', LoginUser.as_view()... | 32.692308 | 67 | 0.729412 |
611ef43855c4502d2337beaf2e9bbdd18e660663 | 1,287 | py | Python | test/utilities/test_Converter.py | pip-benchmark/pip-benchmark-python | d75672e940af12e2f9818607e2188490e989d8c5 | [
"MIT"
] | null | null | null | test/utilities/test_Converter.py | pip-benchmark/pip-benchmark-python | d75672e940af12e2f9818607e2188490e989d8c5 | [
"MIT"
] | null | null | null | test/utilities/test_Converter.py | pip-benchmark/pip-benchmark-python | d75672e940af12e2f9818607e2188490e989d8c5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from pip_benchmark_python.utilities.Converter import Converter
| 36.771429 | 66 | 0.695416 |
6122f59b015b8f42249ec2c010138d836ac0f35e | 1,541 | py | Python | research/develop/2016-12-08-irio-invalid-cnpj-or-cpf.py | SuccessionEcologicalServices/serenata-de-amor | 718a74e031ea0a4b020bf42801e1d23353e6bc34 | [
"MIT"
] | 59 | 2018-10-03T18:46:31.000Z | 2022-01-05T22:39:17.000Z | research/develop/2016-12-08-irio-invalid-cnpj-or-cpf.py | SuccessionEcologicalServices/serenata-de-amor | 718a74e031ea0a4b020bf42801e1d23353e6bc34 | [
"MIT"
] | 16 | 2018-10-03T21:36:50.000Z | 2021-04-12T22:10:16.000Z | research/develop/2016-12-08-irio-invalid-cnpj-or-cpf.py | SuccessionEcologicalServices/serenata-de-amor | 718a74e031ea0a4b020bf42801e1d23353e6bc34 | [
"MIT"
] | 20 | 2018-10-03T19:14:57.000Z | 2021-04-12T20:50:44.000Z |
# coding: utf-8
# # Invalid CNPJ or CPF
#
# `cnpj_cpf` is the column identifying the company or individual who received the payment made by the congressperson. Having this value empty should mean that it's an expense made outside Brazil, with a company (or person) without a Brazilian ID.
# In[1]:
import numpy as n... | 28.018182 | 265 | 0.659961 |
6123c525e5a5da797d3ca93718ec18aa3078da5c | 5,170 | py | Python | examples/convolutional_vae.py | twiecki/edward | 1ac2eeb7f5163915848afd3b027c714255459de3 | [
"Apache-2.0"
] | 4 | 2016-05-09T18:48:21.000Z | 2018-03-01T22:50:42.000Z | examples/convolutional_vae.py | twiecki/edward | 1ac2eeb7f5163915848afd3b027c714255459de3 | [
"Apache-2.0"
] | null | null | null | examples/convolutional_vae.py | twiecki/edward | 1ac2eeb7f5163915848afd3b027c714255459de3 | [
"Apache-2.0"
] | 3 | 2016-07-05T14:19:08.000Z | 2019-09-04T13:48:59.000Z | #!/usr/bin/env python
"""
Convolutional variational auto-encoder for MNIST data. The model is
written in TensorFlow, with neural networks using Pretty Tensor.
Probability model
Prior: Normal
Likelihood: Bernoulli parameterized by convolutional NN
Variational model
Likelihood: Mean-field Normal parameterize... | 33.571429 | 81 | 0.624758 |
61244fae3cb1d570e8f892707e02d30830b9dab4 | 4,998 | py | Python | cadnano/views/outlinerview/cnoutlineritem.py | mctrinh/cadnano2.5 | d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736 | [
"BSD-3-Clause"
] | 1 | 2022-03-27T14:37:32.000Z | 2022-03-27T14:37:32.000Z | cadnano/views/outlinerview/cnoutlineritem.py | mctrinh/cadnano2.5 | d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736 | [
"BSD-3-Clause"
] | null | null | null | cadnano/views/outlinerview/cnoutlineritem.py | mctrinh/cadnano2.5 | d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736 | [
"BSD-3-Clause"
] | 1 | 2021-01-22T02:29:38.000Z | 2021-01-22T02:29:38.000Z | from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QTreeWidgetItem
from cadnano.gui.palette import getBrushObj
from . import outlinerstyles as styles
NAME_COL = 0
LOCKED_COL = 1
VISIBLE_COL = 2
COLOR_COL = 3
LEAF_FLAGS = (Qt.ItemIsSelectable | Qt.ItemIsEditable |
Qt.ItemIsDragEnabled |
... | 35.7 | 107 | 0.622449 |
612569303782cf9c7b7179cfa384ea54e28fb8c1 | 13,579 | py | Python | data/dedupe.py | mcguinlu/COVID_suicide_living | 81ac106065b1113706f2df26051e0d73efe382aa | [
"MIT"
] | 1 | 2020-11-29T18:42:53.000Z | 2020-11-29T18:42:53.000Z | data/dedupe.py | L-ENA/SR_automation_LSR | c9b5d3a121e4e141485b4ad0f2e3975217861a3b | [
"MIT"
] | 1 | 2020-06-24T18:48:56.000Z | 2020-06-24T18:48:56.000Z | data/dedupe.py | L-ENA/SR_automation_LSR | c9b5d3a121e4e141485b4ad0f2e3975217861a3b | [
"MIT"
] | 3 | 2020-03-30T13:55:38.000Z | 2020-10-27T20:38:49.000Z | import pandas as pd
import re
from fuzzywuzzy import fuzz
from tqdm import tqdm
from datetime import date
import os
#os.chdir("C:\\Users\\lm16564\\OneDrive - University of Bristol\\Documents\\rrr\\COVID_suicide_living")
path = "data\\results\\all_results_tmp.csv"#is previous results but with some replacements
pat... | 45.414716 | 354 | 0.590839 |
6126964717eb366d024270381a24e685fbc06c89 | 6,922 | py | Python | glyphStruct.py | zach-king/GlyphyType | dd930730af4396ad7d5ac12d5011a35a1f5ab9bc | [
"MIT"
] | null | null | null | glyphStruct.py | zach-king/GlyphyType | dd930730af4396ad7d5ac12d5011a35a1f5ab9bc | [
"MIT"
] | null | null | null | glyphStruct.py | zach-king/GlyphyType | dd930730af4396ad7d5ac12d5011a35a1f5ab9bc | [
"MIT"
] | null | null | null | #Move to class variable of Glyph object
idDict = {0:'exclam', 1:'quotedbl', 2:'numbersign', 3:'dollar',
4:'percent', 5:'ampersand', 6:'quotesingle', 7:'parenleft',
8:'parenright', 9:'asterisk', 10:'plus', 11:'comma',
12:'hyphen', 13:'period', 14:'slash', 15:'zero',
16:'one', 17:'... | 46.146667 | 104 | 0.471829 |
6127b9212cd94fad711feb777e1aec83d4f79910 | 3,170 | py | Python | src/crimedb/regions/base.py | pgriess/crimedb | c29c6fb32b9270516ee6f7aaf62d3c1886589f96 | [
"Apache-2.0"
] | 2 | 2015-11-23T22:58:04.000Z | 2018-06-08T17:58:17.000Z | src/crimedb/regions/base.py | pgriess/crimedb | c29c6fb32b9270516ee6f7aaf62d3c1886589f96 | [
"Apache-2.0"
] | 6 | 2015-04-03T14:58:32.000Z | 2015-04-05T19:47:21.000Z | src/crimedb/regions/base.py | pgriess/crimedb | c29c6fb32b9270516ee6f7aaf62d3c1886589f96 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Peter Griess
#
# 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,... | 29.082569 | 79 | 0.65489 |
6128a7c74edde105c7f1147ca577aa5583dc43ae | 689 | py | Python | onener/transformer/pretokenizer.py | sansan-inc/OneNER | 4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3 | [
"Apache-2.0"
] | 2 | 2021-10-11T05:30:44.000Z | 2021-12-16T07:46:28.000Z | onener/transformer/pretokenizer.py | sansan-inc/OneNER | 4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3 | [
"Apache-2.0"
] | null | null | null | onener/transformer/pretokenizer.py | sansan-inc/OneNER | 4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import List
import MeCab
| 26.5 | 66 | 0.70537 |
6128d52040ae15c763ac67cfd1eb887cfac11cae | 10,920 | py | Python | transforms/detection/functional.py | qixuxiang/Pytorch_Lightweight_Network | 25fd3148b7c635cb6cbe6dc184dbed04d6f96282 | [
"MIT"
] | 82 | 2019-06-17T06:00:09.000Z | 2021-11-24T09:27:23.000Z | transforms/detection/functional.py | qixuxiang/Pytorch_Lightweight_Network | 25fd3148b7c635cb6cbe6dc184dbed04d6f96282 | [
"MIT"
] | 4 | 2019-06-20T11:29:19.000Z | 2021-07-28T03:31:20.000Z | transforms/detection/functional.py | qixuxiang/Pytorch_Lightweight_Network | 25fd3148b7c635cb6cbe6dc184dbed04d6f96282 | [
"MIT"
] | 17 | 2019-06-20T11:22:34.000Z | 2021-03-16T12:37:41.000Z | from typing import List, Dict, Sequence, Union, Tuple
from numbers import Number
import random
import numpy as np
from toolz import curry
from toolz.curried import get
from common import _tuple
__all__ = [
"resize", "resized_crop", "center_crop", "drop_boundary_bboxes",
"to_absolute_coords", "to_percent_coor... | 26.962963 | 104 | 0.542582 |
612b78a9bead3fbce9a078b2158bf96beee36bfe | 2,429 | py | Python | demands/models.py | moileretour/joatu | 9d18cb58b4280235688e269be6fd2d34b77ccead | [
"MIT"
] | 1 | 2018-05-01T04:54:36.000Z | 2018-05-01T04:54:36.000Z | demands/models.py | moileretour/joatu | 9d18cb58b4280235688e269be6fd2d34b77ccead | [
"MIT"
] | null | null | null | demands/models.py | moileretour/joatu | 9d18cb58b4280235688e269be6fd2d34b77ccead | [
"MIT"
] | 3 | 2018-04-13T18:28:32.000Z | 2018-05-01T01:38:38.000Z | from django.db import models
from profiles.models import Profile, ProfileHub
from hubs.models import Hub, HubGeolocation
from django.db.models.signals import post_save
from demands.extras.coordinates import coordinates_calculation
from demands.extras.distance import distance_calculation
# Create your models here.
po... | 48.58 | 121 | 0.766159 |
612c7b5f5d8b05511afc52271ac9e21aebf3efa3 | 3,353 | py | Python | post.py | DzikuVx/PogodaWSzczecinie | cac67d69d7e57081dd325914ca4c2a3c0bdc65ab | [
"MIT"
] | null | null | null | post.py | DzikuVx/PogodaWSzczecinie | cac67d69d7e57081dd325914ca4c2a3c0bdc65ab | [
"MIT"
] | null | null | null | post.py | DzikuVx/PogodaWSzczecinie | cac67d69d7e57081dd325914ca4c2a3c0bdc65ab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import random
import time
import tweetpony
import urllib2
import json
from config import config
if __name__ == "__main__":
main()
| 33.19802 | 119 | 0.559201 |
612c9bf3ffb82a317d05d60e00600b867adeb63c | 256 | py | Python | output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_max_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_max_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/long/schema_instance/nistschema_sv_iv_atomic_long_max_exclusive_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.long.schema_instance.nistschema_sv_iv_atomic_long_max_exclusive_1_xsd.nistschema_sv_iv_atomic_long_max_exclusive_1 import NistschemaSvIvAtomicLongMaxExclusive1
__all__ = [
"NistschemaSvIvAtomicLongMaxExclusive1",
]
| 42.666667 | 195 | 0.894531 |
612de04c96f064f94c0f251d285bdc28a27f4be1 | 1,310 | py | Python | src/robust_laplacian/core.py | nmwsharp/robust-laplacians-py | b1c0f8bcf94571d1c54ba1a79e6bc49c08c65562 | [
"MIT"
] | 123 | 2020-08-05T18:16:11.000Z | 2022-03-28T01:59:55.000Z | src/robust_laplacian/core.py | nmwsharp/robust-laplacians-py | b1c0f8bcf94571d1c54ba1a79e6bc49c08c65562 | [
"MIT"
] | 6 | 2020-08-28T02:42:57.000Z | 2022-02-01T21:32:34.000Z | src/robust_laplacian/core.py | nmwsharp/robust-laplacians-py | b1c0f8bcf94571d1c54ba1a79e6bc49c08c65562 | [
"MIT"
] | 12 | 2020-08-14T12:14:56.000Z | 2022-02-25T11:03:39.000Z | import numpy as np
import robust_laplacian_bindings as rlb
| 35.405405 | 91 | 0.658779 |
b615798ba86de33143bd8b83d54e8c2cb5fd5d97 | 1,992 | py | Python | src/licma/tests/test_pyrules_m2crypto_oop.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | 5 | 2021-09-13T11:24:13.000Z | 2022-03-18T21:56:58.000Z | src/licma/tests/test_pyrules_m2crypto_oop.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | null | null | null | src/licma/tests/test_pyrules_m2crypto_oop.py | stg-tud/licma | b899e6e682f7716d19e79d6ce7b73c28c6efd4cf | [
"MIT"
] | 1 | 2021-09-13T06:02:20.000Z | 2021-09-13T06:02:20.000Z | import unittest
from licma.babel_fish.babel_fish import BabelFish
from licma.rules.python.pyrules_m2crypto.pyrule1_m2crypto import PyRule1M2Crypto
from licma.rules.python.pyrules_m2crypto.pyrule2_m2crypto import PyRule2M2Crypto
from licma.rules.python.pyrules_m2crypto.pyrule3_m2crypto import PyRule3M2Crypto
from licma... | 46.325581 | 98 | 0.703313 |
b616788026b220ba10bb555db6739d8f4ae8230d | 5,161 | py | Python | sparkdq/models/dbscan/DBSCAN.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | 1 | 2021-02-08T07:49:54.000Z | 2021-02-08T07:49:54.000Z | sparkdq/models/dbscan/DBSCAN.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | null | null | null | sparkdq/models/dbscan/DBSCAN.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | null | null | null | from operator import add
import numpy as np
from pyspark.sql.types import StructField, StructType, IntegerType
from scipy.spatial.distance import euclidean
import sklearn.cluster as skc
from sparkdq.conf.Context import Context
from sparkdq.models.CommonUtils import DEFAULT_CLUSTER_COL, DEFAULT_INDEX_COL
from sparkdq.... | 35.840278 | 120 | 0.606665 |
b6176beeb32ae6064f09171a1d1d0db9edfa1f3a | 1,160 | py | Python | leflow/easy_example.py | santacml/Malware-as-Video | 12dc3954f2237cb34857a44eadbb5ca76f8e97b5 | [
"MIT"
] | 1 | 2019-05-26T22:40:00.000Z | 2019-05-26T22:40:00.000Z | leflow/easy_example.py | santacml/Malware-as-Video | 12dc3954f2237cb34857a44eadbb5ca76f8e97b5 | [
"MIT"
] | null | null | null | leflow/easy_example.py | santacml/Malware-as-Video | 12dc3954f2237cb34857a44eadbb5ca76f8e97b5 | [
"MIT"
] | 1 | 2019-06-27T20:21:49.000Z | 2019-06-27T20:21:49.000Z | import tensorflow as tf
import numpy as np
import sys
sys.path.append('../LeFlow/src')
import processMif as mif
# This creates a random 32-bit floating point input for your variables
nodes = 1
X = tf.placeholder(tf.float32, [1, 3])
test=rand([1,3])
dense1_w = tf.Variable(rand([3, nodes]))
dense1_b = tf.Variable(r... | 25.777778 | 97 | 0.671552 |