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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
51de1f4de659387b2c5be6920de4caf91b6d5a0c | 1,255 | py | Python | src/pyGLMHMM/GLMHMMSymbLik.py | aslansd/pyGLMHMM | 5930e1322435431c5835b2b3f241b2ca0d2fb887 | [
"MIT"
] | 3 | 2020-08-20T21:35:34.000Z | 2021-04-23T08:02:24.000Z | src/pyGLMHMM/GLMHMMSymbLik.py | aslansd/pyGLMHMM | 5930e1322435431c5835b2b3f241b2ca0d2fb887 | [
"MIT"
] | null | null | null | src/pyGLMHMM/GLMHMMSymbLik.py | aslansd/pyGLMHMM | 5930e1322435431c5835b2b3f241b2ca0d2fb887 | [
"MIT"
] | null | null | null | import numpy as np
| 50.2 | 192 | 0.56255 |
51df1caba9434b15b6d1ad06110006e4c3bd4231 | 10,885 | py | Python | pytouch/trainingmachine.py | aboutNisblee/PyTouch | 0098aa07ac78ec1868e0a155c92342512d07613a | [
"MIT"
] | 3 | 2016-08-19T16:17:53.000Z | 2017-07-19T18:55:37.000Z | pytouch/trainingmachine.py | mNisblee/PyTouch | 0098aa07ac78ec1868e0a155c92342512d07613a | [
"MIT"
] | null | null | null | pytouch/trainingmachine.py | mNisblee/PyTouch | 0098aa07ac78ec1868e0a155c92342512d07613a | [
"MIT"
] | null | null | null | import copy
import logging
from datetime import datetime, timedelta
from collections import namedtuple
from blinker import Signal
__all__ = [
'Event',
'TrainingMachineObserver',
'TrainingMachine',
]
logger = logging.getLogger(__name__)
def __getitem__(self, item):
return self._keystrokes... | 31.550725 | 142 | 0.615342 |
51df44ce7c8e1a44ded55d956bda03848984f7fe | 2,092 | py | Python | descriptor-packages/tools/charm-generator/setup.py | ayoubbargueoui1996/osm-devops | b5973c2a4477354bb17a56fe39559f277a3a994a | [
"Apache-2.0"
] | null | null | null | descriptor-packages/tools/charm-generator/setup.py | ayoubbargueoui1996/osm-devops | b5973c2a4477354bb17a56fe39559f277a3a994a | [
"Apache-2.0"
] | null | null | null | descriptor-packages/tools/charm-generator/setup.py | ayoubbargueoui1996/osm-devops | b5973c2a4477354bb17a56fe39559f277a3a994a | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Whitestack, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 32.6875 | 77 | 0.675908 |
51dff5b99b5e1a2f0a7fbe156b5008777b9ffcf6 | 7,623 | py | Python | Athos/RandomForests/parse_graphviz_to_ezpc_input.py | kanav99/EzPC | 094e75111d00883dd90ef328bd47a7c0a1eb689f | [
"MIT"
] | 221 | 2019-05-16T16:42:49.000Z | 2022-03-29T14:05:31.000Z | Athos/RandomForests/parse_graphviz_to_ezpc_input.py | kanav99/EzPC | 094e75111d00883dd90ef328bd47a7c0a1eb689f | [
"MIT"
] | 63 | 2019-07-02T11:50:15.000Z | 2022-03-31T08:14:02.000Z | Athos/RandomForests/parse_graphviz_to_ezpc_input.py | kanav99/EzPC | 094e75111d00883dd90ef328bd47a7c0a1eb689f | [
"MIT"
] | 67 | 2019-08-30T08:44:47.000Z | 2022-03-23T08:08:33.000Z | """
Authors: Mayank Rathee, Pratik Bhatu.
Copyright:
Copyright (c) 2021 Microsoft Research
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ri... | 34.493213 | 83 | 0.632559 |
51e18abcde48ab959bec2fe150985b11f8d1bbbf | 312 | py | Python | bin/udp_client.py | ingenarius/LoxBerry-Plugin-synology-v2 | 2891ccb8c4740c42a6975e4756ebd75d24a47d62 | [
"Apache-2.0"
] | null | null | null | bin/udp_client.py | ingenarius/LoxBerry-Plugin-synology-v2 | 2891ccb8c4740c42a6975e4756ebd75d24a47d62 | [
"Apache-2.0"
] | 1 | 2020-01-16T21:46:27.000Z | 2021-01-05T10:03:26.000Z | bin/udp_client.py | ingenarius/LoxBerry-Plugin-synology-v2 | 2891ccb8c4740c42a6975e4756ebd75d24a47d62 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import socket
UDP_IP="127.0.0.1"
UDP_PORT=5000
MESSAGE="Snapshot: 2"
print("UDP target IP:", UDP_IP)
print("UDP target port:", UDP_PORT)
print("message: \"%s\"" % MESSAGE)
sock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
sock.sendto( MESSAGE.encode('ascii'), (UDP_IP, UDP_PORT) )
| 20.8 | 58 | 0.705128 |
51e2f540cacd3b5bd352e4cf7636d2883a0ff40e | 76 | py | Python | include/tclap-1.4.0-rc1/tests/test90.py | SpaceKatt/cpp-cli-poc | 02ffefea2fc6e999fa2b27d08a8b3be6830b1b97 | [
"BSL-1.0"
] | 62 | 2021-09-21T18:58:02.000Z | 2022-03-07T02:17:43.000Z | third_party/tclap-1.4.0-rc1/tests/test90.py | Vertexwahn/FlatlandRT | 37d09fde38b25eff5f802200b43628efbd1e3198 | [
"Apache-2.0"
] | null | null | null | third_party/tclap-1.4.0-rc1/tests/test90.py | Vertexwahn/FlatlandRT | 37d09fde38b25eff5f802200b43628efbd1e3198 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import simple_test
simple_test.test("test29", ["-h", ])
| 12.666667 | 36 | 0.671053 |
51e477d0f9beac58a4c8c8d7b0f51e45e12352e0 | 362 | py | Python | Recipes/Recipes/web_app/models.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | 2 | 2022-03-05T13:17:12.000Z | 2022-03-05T13:17:16.000Z | Recipes/Recipes/web_app/models.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | Recipes/Recipes/web_app/models.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | from django.db import models
| 18.1 | 39 | 0.696133 |
51e63fcd1b5b7382a896bdd1a29c84ba4ffd6a93 | 4,127 | py | Python | pluto/control/controllable/commands.py | chalant/zipline-core | 85192c1738a272d11a3bf67d101dd7861dbb125c | [
"Apache-2.0"
] | null | null | null | pluto/control/controllable/commands.py | chalant/zipline-core | 85192c1738a272d11a3bf67d101dd7861dbb125c | [
"Apache-2.0"
] | null | null | null | pluto/control/controllable/commands.py | chalant/zipline-core | 85192c1738a272d11a3bf67d101dd7861dbb125c | [
"Apache-2.0"
] | null | null | null | import abc
from protos.clock_pb2 import (
SESSION_START,
SESSION_END,
MINUTE_END,
BEFORE_TRADING_START
)
from pluto.coms.utils import conversions
| 30.345588 | 92 | 0.587836 |
51e76030180785b46f9c554e2dcd4d90b82ca1fa | 141 | py | Python | mudi/plotting/__init__.py | getzlab/mudi | eda170119708e59920c23a03834af915ecca24ce | [
"MIT"
] | 1 | 2021-11-04T00:08:00.000Z | 2021-11-04T00:08:00.000Z | mudi/plotting/__init__.py | getzlab/mudi | eda170119708e59920c23a03834af915ecca24ce | [
"MIT"
] | null | null | null | mudi/plotting/__init__.py | getzlab/mudi | eda170119708e59920c23a03834af915ecca24ce | [
"MIT"
] | null | null | null | from .qc import adata_qc, adata_qc_grid
from .de import volcano_plot
from .enrich import pw_enrichment
from .misc import plot_barplot_a_by_b
| 28.2 | 39 | 0.843972 |
51e79a652e2419d989e8378624fd8711700925e5 | 9,538 | py | Python | mapillary_tools/process_geotag_properties.py | martinskans/mapillary_tools | ac15996ce4d2a499e6d9ba10af5c23126e535222 | [
"BSD-2-Clause"
] | null | null | null | mapillary_tools/process_geotag_properties.py | martinskans/mapillary_tools | ac15996ce4d2a499e6d9ba10af5c23126e535222 | [
"BSD-2-Clause"
] | null | null | null | mapillary_tools/process_geotag_properties.py | martinskans/mapillary_tools | ac15996ce4d2a499e6d9ba10af5c23126e535222 | [
"BSD-2-Clause"
] | null | null | null | import logging
import os
import typing as T
import json
import datetime
import jsonschema
import piexif
from . import image_log, types, error, uploader
from .exif_write import ExifEdit
from .geo import normalize_bearing
from .geotag import (
geotag_from_exif,
geotag_from_gopro,
geotag_from_nmea_file,
... | 32.776632 | 153 | 0.653806 |
51e807cae8471c13bf93df268ceb57c6fd9d0ac5 | 1,967 | py | Python | Exercise04/4-38.py | ywyz/IntroducingToProgrammingUsingPython | 614d59eacb7e37aece871a00f7d1518f7de88708 | [
"Apache-2.0"
] | null | null | null | Exercise04/4-38.py | ywyz/IntroducingToProgrammingUsingPython | 614d59eacb7e37aece871a00f7d1518f7de88708 | [
"Apache-2.0"
] | null | null | null | Exercise04/4-38.py | ywyz/IntroducingToProgrammingUsingPython | 614d59eacb7e37aece871a00f7d1518f7de88708 | [
"Apache-2.0"
] | null | null | null | '''
@Date: 2019-08-26 20:55:29
@Author: ywyz
@LastModifiedBy: ywyz
@Github: https://github.com/ywyz
@LastEditors: ywyz
@LastEditTime: 2019-08-26 20:56:13
'''
import turtle
import math
x1, y1, width1, height1 = eval(
input("Enter r1's center x- and y-coordinates,width, and height: "))
x2, y2, width2, height2 = eval... | 32.245902 | 72 | 0.614642 |
51ef9ad79c0cf57c4ac9a05c957ee4cd0b529c1c | 722 | py | Python | tests/test_coverage.py | mixedconnections/showprocess | ea47170d7dcba4dd3e4873f9e2bd30a20ce801d4 | [
"MIT"
] | null | null | null | tests/test_coverage.py | mixedconnections/showprocess | ea47170d7dcba4dd3e4873f9e2bd30a20ce801d4 | [
"MIT"
] | 5 | 2019-10-21T17:05:35.000Z | 2019-10-29T20:15:30.000Z | tests/test_coverage.py | mixedconnections/pst | ea47170d7dcba4dd3e4873f9e2bd30a20ce801d4 | [
"MIT"
] | 2 | 2020-08-11T14:46:20.000Z | 2020-08-18T13:53:57.000Z | import unittest
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import processparser as pp
if __name__ == "__main__":
unittest.main(failfast=True)
| 31.391304 | 74 | 0.724377 |
51f102b67e023e3358b125dbc6fa7d0397827bf7 | 498 | py | Python | examples/profiler_sgp4.py | danielk333/SORTS | f8454901fda405c0e8ce6553366553c3f043da0b | [
"MIT"
] | 4 | 2020-09-14T11:38:31.000Z | 2021-05-19T08:10:37.000Z | examples/profiler_sgp4.py | danielk333/SORTS | f8454901fda405c0e8ce6553366553c3f043da0b | [
"MIT"
] | 6 | 2020-09-14T05:48:02.000Z | 2021-05-29T14:12:16.000Z | examples/profiler_sgp4.py | danielk333/SORTS | f8454901fda405c0e8ce6553366553c3f043da0b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Profiling SGP4
======================
'''
import numpy as np
from sorts.profiling import Profiler
from sorts.propagator import SGP4
p = Profiler()
prop = SGP4(
settings = dict(
out_frame='TEME',
),
profiler = p,
)
state0 = np.array([-7100297.113,-3897715.442,18568433.... | 16.6 | 85 | 0.626506 |
51f2320f3c9591063857de7d6d5492313b73b369 | 307 | py | Python | Main.py | ytyaru/GitHub.Language.Database.Insert.201703161053 | fa9b7844716680c61bae57d1b3cd434bdbc5fdda | [
"CC0-1.0"
] | 1 | 2017-06-08T10:40:02.000Z | 2017-06-08T10:40:02.000Z | Main.py | ytyaru/GitHub.Language.Database.Insert.201703161053 | fa9b7844716680c61bae57d1b3cd434bdbc5fdda | [
"CC0-1.0"
] | null | null | null | Main.py | ytyaru/GitHub.Language.Database.Insert.201703161053 | fa9b7844716680c61bae57d1b3cd434bdbc5fdda | [
"CC0-1.0"
] | null | null | null | import LanguageSource
import Inserter
if __name__ == "__main__":
m = Main()
m.Run()
| 21.928571 | 53 | 0.644951 |
51f280a22a2402dac8c3e7d64d237356f2a5f2c7 | 2,171 | py | Python | programmers/lv3/find_route.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | programmers/lv3/find_route.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | programmers/lv3/find_route.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | #
import heapq
def solution(node_info):
answer = []
tree = Tree()
q = []
for i in range(len(node_info)):
current_node = node_info[i]
heapq.heappush(q, (-current_node[1], current_node[0], i + 1))
while q:
current_node = heapq.heappop(q)
tree.insert(current_node[1... | 23.095745 | 90 | 0.563795 |
51f47162a8ac60cd55429bbb057510a4f275ea75 | 732 | py | Python | Day 16 - Intermediate - Object Oriented Programming (OOP)/01_PROJECT_oop_coffee_machine/coffee_machine.py | not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022 | 2c21c190ab756176bd7b577b3f8a0370b75c3828 | [
"MIT"
] | null | null | null | Day 16 - Intermediate - Object Oriented Programming (OOP)/01_PROJECT_oop_coffee_machine/coffee_machine.py | not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022 | 2c21c190ab756176bd7b577b3f8a0370b75c3828 | [
"MIT"
] | null | null | null | Day 16 - Intermediate - Object Oriented Programming (OOP)/01_PROJECT_oop_coffee_machine/coffee_machine.py | not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022 | 2c21c190ab756176bd7b577b3f8a0370b75c3828 | [
"MIT"
] | null | null | null | from menu import Menu
from coffee_maker import CoffeeMaker
from money_machine import MoneyMachine
coffee_maker = CoffeeMaker()
money_machine = MoneyMachine()
menu = Menu()
coffee_machine()
| 26.142857 | 76 | 0.610656 |
51f48b69f5a97792ed83236058b2281a9436bf6c | 1,221 | py | Python | parsec/commands/workflows/extract_workflow_from_history.py | erasche/parsec | c2f1bda7ff776f9aa121c7b94d62e3da2fad93f6 | [
"Apache-2.0"
] | 8 | 2015-03-27T17:09:15.000Z | 2021-07-13T15:33:02.000Z | parsec/commands/workflows/extract_workflow_from_history.py | erasche/parsec | c2f1bda7ff776f9aa121c7b94d62e3da2fad93f6 | [
"Apache-2.0"
] | 30 | 2015-02-27T21:21:47.000Z | 2021-08-31T14:19:55.000Z | parsec/commands/workflows/extract_workflow_from_history.py | erasche/parsec | c2f1bda7ff776f9aa121c7b94d62e3da2fad93f6 | [
"Apache-2.0"
] | 12 | 2017-06-01T03:49:23.000Z | 2021-07-13T15:33:06.000Z | import click
from parsec.cli import pass_context, json_loads
from parsec.decorators import custom_exception, json_output
| 32.131579 | 177 | 0.763309 |
51f4ea1e8dffd32df205aff2ca163a1723388b58 | 10,566 | py | Python | pucadmin/secondments/migrations/0001_initial.py | JobDoesburg/PUC-admin | ab61478cbf1cb0ddb57661a7508e70b23642810b | [
"MIT"
] | null | null | null | pucadmin/secondments/migrations/0001_initial.py | JobDoesburg/PUC-admin | ab61478cbf1cb0ddb57661a7508e70b23642810b | [
"MIT"
] | null | null | null | pucadmin/secondments/migrations/0001_initial.py | JobDoesburg/PUC-admin | ab61478cbf1cb0ddb57661a7508e70b23642810b | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-11-26 20:07
from django.db import migrations, models
import django.db.models.deletion
| 34.529412 | 84 | 0.376301 |
51f92deb6441bf615c9c55898b9be6727d70fddd | 1,647 | py | Python | main_menu.py | Steven-Wilson/pyweek25 | 1547919a17973d0b13ed630bdb1d7285f07f2a5e | [
"MIT"
] | null | null | null | main_menu.py | Steven-Wilson/pyweek25 | 1547919a17973d0b13ed630bdb1d7285f07f2a5e | [
"MIT"
] | null | null | null | main_menu.py | Steven-Wilson/pyweek25 | 1547919a17973d0b13ed630bdb1d7285f07f2a5e | [
"MIT"
] | null | null | null | import model
import pyxelen
from view import *
from sounds import *
from utils import *
| 26.142857 | 77 | 0.677596 |
51f9af57461d277042b7c5b99cebab08e11e5c92 | 11,529 | py | Python | workflow/models.py | uktrade/approval-firebreak | 77ab80eb26509681efadbe559f2a234e22b39a54 | [
"MIT"
] | 1 | 2021-08-10T14:37:53.000Z | 2021-08-10T14:37:53.000Z | workflow/models.py | uktrade/approval-firebreak | 77ab80eb26509681efadbe559f2a234e22b39a54 | [
"MIT"
] | null | null | null | workflow/models.py | uktrade/approval-firebreak | 77ab80eb26509681efadbe559f2a234e22b39a54 | [
"MIT"
] | 1 | 2021-08-05T16:41:47.000Z | 2021-08-05T16:41:47.000Z | import uuid
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from django.db import models
from django.urls import reverse
from django_fsm import FSMField, transition
from chartofaccount.models import (
DepartmentalGroup,
Directorate,... | 30.662234 | 202 | 0.630497 |
51fb53a5a5d184165370e0966a17a0a5662d4247 | 6,702 | py | Python | generated-libraries/python/netapp/net/net_ifgrp_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/net/net_ifgrp_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/net/net_ifgrp_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | from netapp.netapp_object import NetAppObject
| 32.066986 | 103 | 0.579528 |
51fd1ee0affbea3983a9baf19ef487642c72089d | 4,056 | py | Python | gui_rest_client/menu_handlers.py | devdo-eu/macau | 6f3c4ad119c133be01935485d8afe6aa0a8d0589 | [
"MIT"
] | null | null | null | gui_rest_client/menu_handlers.py | devdo-eu/macau | 6f3c4ad119c133be01935485d8afe6aa0a8d0589 | [
"MIT"
] | 18 | 2021-03-07T13:01:01.000Z | 2021-03-25T18:56:33.000Z | gui_rest_client/menu_handlers.py | devdo-eu/macau | 6f3c4ad119c133be01935485d8afe6aa0a8d0589 | [
"MIT"
] | 1 | 2022-02-20T05:42:41.000Z | 2022-02-20T05:42:41.000Z | import gui_rest_client.common as common
import pyglet
def on_key_release_factory(window):
"""
Function used to create specific on_key_release method for window property of MenuWindow object.
:param window: MenuWindow object
:return: functor with prepared on_key_release method
"""
return funct... | 31.6875 | 115 | 0.649408 |
51fd6e1385ce7272c861fec22cf85ee0156b3761 | 2,933 | py | Python | core/SSD/vgg.py | calmisential/SkeNetch | c014b9d2caa0a3a9809b437c957cea3b73af685d | [
"Apache-2.0"
] | 1 | 2021-12-14T07:26:28.000Z | 2021-12-14T07:26:28.000Z | core/SSD/vgg.py | calmisential/SkeNetch | c014b9d2caa0a3a9809b437c957cea3b73af685d | [
"Apache-2.0"
] | null | null | null | core/SSD/vgg.py | calmisential/SkeNetch | c014b9d2caa0a3a9809b437c957cea3b73af685d | [
"Apache-2.0"
] | 1 | 2021-12-14T07:26:30.000Z | 2021-12-14T07:26:30.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
| 32.588889 | 115 | 0.562905 |
51fea77c4fb553d0e364aa13c3a70332bc7140e9 | 840 | py | Python | tivac_power_JCA0224D01/GERBERS/2.-creado desde flatcam/procesa_gcode.py | fgallud/kicad | de0a13375f428ba2b3d30bd1eee2d2a010840af0 | [
"MIT"
] | null | null | null | tivac_power_JCA0224D01/GERBERS/2.-creado desde flatcam/procesa_gcode.py | fgallud/kicad | de0a13375f428ba2b3d30bd1eee2d2a010840af0 | [
"MIT"
] | null | null | null | tivac_power_JCA0224D01/GERBERS/2.-creado desde flatcam/procesa_gcode.py | fgallud/kicad | de0a13375f428ba2b3d30bd1eee2d2a010840af0 | [
"MIT"
] | null | null | null | import re
velocidad_xy=200 #[mm/minuto]
velocidad_z=10 #[mm/minuto]
fichero_nombres=['agujeros_broca0.6.gcode',
'agujeros_broca0.8.gcode',
'agujeros_broca1.1.gcode']
for fichero_nombre in fichero_nombres:
procesa_fichero(fichero_nombre)
| 27.096774 | 53 | 0.647619 |
a400495c45ce712f436631104311183285251059 | 628 | py | Python | var/spack/repos/builtin/packages/py-iocapture/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11 | 2015-10-04T02:17:46.000Z | 2018-02-07T18:23:00.000Z | var/spack/repos/builtin/packages/py-iocapture/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 22 | 2017-08-01T22:45:10.000Z | 2022-03-10T07:46:31.000Z | var/spack/repos/builtin/packages/py-iocapture/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2016-06-10T17:57:39.000Z | 2018-09-11T04:59:38.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
| 29.904762 | 95 | 0.716561 |
a4042c74bb460724f81c2a3bc84335fbfffb8bdc | 5,526 | py | Python | tobias/tobiasfyi/settings/base.py | tobias-fyi/tobiasfyi | 194768e27d9767f2d3f839106b56ff3502c86564 | [
"MIT"
] | null | null | null | tobias/tobiasfyi/settings/base.py | tobias-fyi/tobiasfyi | 194768e27d9767f2d3f839106b56ff3502c86564 | [
"MIT"
] | 16 | 2020-01-19T20:15:49.000Z | 2021-09-22T18:49:09.000Z | tobias/tobiasfyi/settings/base.py | tobias-fyi/tobiasfyi | 194768e27d9767f2d3f839106b56ff3502c86564 | [
"MIT"
] | null | null | null | """
tobias.fyi :: Base Django settings
"""
import os
import dj_database_url
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_DIR = os.path.dirname(PROJECT_DIR)
# === Application definition === #
INSTALLED_APPS = [
"home",
"search",
"blog",
"navigator",
"wagtail.co... | 32.698225 | 91 | 0.675172 |
a405c2663ddd2f594225a8baf7e7262566708aa1 | 135 | py | Python | debug/vis.py | arpit196/multihead-siamese-nets | 328bd29abc6011fd39f6eae30313babd550aa3d5 | [
"MIT"
] | 2 | 2019-05-24T08:52:02.000Z | 2022-01-10T21:38:08.000Z | debug/vis.py | arpit196/multihead-siamese-nets | 328bd29abc6011fd39f6eae30313babd550aa3d5 | [
"MIT"
] | 10 | 2020-01-28T22:06:21.000Z | 2022-02-10T00:16:53.000Z | debug/vis.py | warisqr007/ConvSANN | 0cede14601ce1a62bd58abf92a04ad3d7cc3be99 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import seaborn as sns
| 16.875 | 33 | 0.703704 |
a405e633e0bf2bee6a4d55ce17c3b01ad230679e | 21,789 | py | Python | try1.py | joseph-reynolds/minecraft-pidoodles | e5b1f309a8a773b35f760e67588a52fb23916d65 | [
"MIT"
] | 1 | 2021-01-27T17:48:24.000Z | 2021-01-27T17:48:24.000Z | try1.py | joseph-reynolds/minecraft-pidoodles | e5b1f309a8a773b35f760e67588a52fb23916d65 | [
"MIT"
] | null | null | null | try1.py | joseph-reynolds/minecraft-pidoodles | e5b1f309a8a773b35f760e67588a52fb23916d65 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""Ideas for minecraft
Ideas:
- determine the size of the world (x..x, y..y, z..z)
- given a house foundation, build the entire house
- clear a large area of blocks
- dig a shaft or steps down
- jump to the top of a nearby tree
- create a miniature world: reduce (256,256) to (16,16)
- determi... | 33.781395 | 93 | 0.579788 |
a4070d5261493c37bcf2333af0d0da98724223b5 | 266 | py | Python | setup.py | philipwfowler/gromarks | d30c1d08a403b5044db5af2cb69d48f49f2d21fd | [
"MIT"
] | null | null | null | setup.py | philipwfowler/gromarks | d30c1d08a403b5044db5af2cb69d48f49f2d21fd | [
"MIT"
] | null | null | null | setup.py | philipwfowler/gromarks | d30c1d08a403b5044db5af2cb69d48f49f2d21fd | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='gromarks',
version='0.1',
author='Philip Fowler',
packages=['gromarks'],
scripts=["bin/gromarks-analyse.py","bin/gromarks-create.py"],
license='MIT',
long_description=open('README.md').read(),
)
| 22.166667 | 65 | 0.650376 |
a407242461184b970c016601cce111a785980f10 | 1,411 | py | Python | todocli/interface.py | JuanChiogna/tod0 | 444ecdfc0348c30fe5dcc4c4e657c4ae90cbb554 | [
"MIT"
] | null | null | null | todocli/interface.py | JuanChiogna/tod0 | 444ecdfc0348c30fe5dcc4c4e657c4ae90cbb554 | [
"MIT"
] | null | null | null | todocli/interface.py | JuanChiogna/tod0 | 444ecdfc0348c30fe5dcc4c4e657c4ae90cbb554 | [
"MIT"
] | null | null | null | import tkinter as tk
import os
window = tk.Tk()
window.title("Microsoft To Do: Quick Task")
window.iconbitmap(f"{os.path.dirname(os.path.abspath(__file__))}\\Microsoft-To-Do.ico")
window.attributes("-topmost", True)
window.lift()
title_value = ""
details_value = ""
title_entry = tk.Entry(window, font = "SegoeUI 26"... | 28.22 | 105 | 0.710843 |
a40726587f04af95b976390a559a025a5d96eb39 | 2,455 | py | Python | lightparam/param_qt.py | portugueslab/lightparam | 5cfd68c3144745af71249bdebe40c7b570d37612 | [
"MIT"
] | 3 | 2019-01-03T21:54:06.000Z | 2020-05-12T13:36:50.000Z | lightparam/param_qt.py | portugueslab/lightparam | 5cfd68c3144745af71249bdebe40c7b570d37612 | [
"MIT"
] | 4 | 2020-06-12T15:55:36.000Z | 2020-11-04T09:38:55.000Z | lightparam/param_qt.py | portugueslab/lightparam | 5cfd68c3144745af71249bdebe40c7b570d37612 | [
"MIT"
] | 1 | 2019-08-03T20:54:07.000Z | 2019-08-03T20:54:07.000Z | from lightparam import Parametrized, Param, ParameterTree
from lightparam.gui import ParameterGui
from PyQt5.QtWidgets import QApplication, QDialog, QWidget, QLayout
from PyQt5.QtCore import pyqtSignal, QObject
if __name__ == "__main__":
from lightparam import ParameterTree
app = QApplication([])
p = ... | 32.733333 | 67 | 0.58778 |
a408b894fdad1cbda2ef1fe7c7ed3242f74e95b4 | 879 | py | Python | assignment3/src/nn_preprocess.py | nilax97/col774 | 5a8cb575e864765a7d039bbadb624fac8c297e44 | [
"MIT"
] | 5 | 2021-05-31T07:03:36.000Z | 2022-01-31T11:51:05.000Z | assignment3/src/nn_preprocess.py | nilax97/col774 | 5a8cb575e864765a7d039bbadb624fac8c297e44 | [
"MIT"
] | null | null | null | assignment3/src/nn_preprocess.py | nilax97/col774 | 5a8cb575e864765a7d039bbadb624fac8c297e44 | [
"MIT"
] | null | null | null | import numpy as np
import time
import sys
import warnings
if not sys.warnoptions:
warnings.simplefilter("ignore")
path_train = sys.argv[1];
path_test = sys.argv[2];
one_train = sys.argv[3];
one_test = sys.argv[4];
train_arr = np.genfromtxt(path_train,delimiter=',');
test_arr = np.genfromtxt(path_test,delimiter=','... | 20.928571 | 52 | 0.659841 |
a4091e44532af00cac5cc93fda527572cdeb465c | 2,469 | py | Python | bin/capture_jls_v2.py | blackenstock/pyjoulescope_examples | 3d0b989e49cd34711d50a06df1bf583dfec2eebd | [
"Apache-2.0"
] | 5 | 2019-07-08T08:36:37.000Z | 2021-10-06T12:28:35.000Z | bin/capture_jls_v2.py | blackenstock/pyjoulescope_examples | 3d0b989e49cd34711d50a06df1bf583dfec2eebd | [
"Apache-2.0"
] | 4 | 2021-06-17T04:50:19.000Z | 2021-07-27T23:01:58.000Z | bin/capture_jls_v2.py | blackenstock/pyjoulescope_examples | 3d0b989e49cd34711d50a06df1bf583dfec2eebd | [
"Apache-2.0"
] | 8 | 2020-06-03T08:11:33.000Z | 2022-01-06T22:09:17.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2020-2021 Jetperch LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | 32.064935 | 112 | 0.635075 |
a409519b575802d5e295668a5c504b47abedd1a4 | 70 | py | Python | trade_system/offers/choises.py | Artsiom-Shlapakou/trade-system | 41c7bd6779b159d1c867968f5230d4ccbc37995a | [
"MIT"
] | null | null | null | trade_system/offers/choises.py | Artsiom-Shlapakou/trade-system | 41c7bd6779b159d1c867968f5230d4ccbc37995a | [
"MIT"
] | null | null | null | trade_system/offers/choises.py | Artsiom-Shlapakou/trade-system | 41c7bd6779b159d1c867968f5230d4ccbc37995a | [
"MIT"
] | null | null | null | BUY = 1
SALE = 2
OrderType = [
(BUY, 'BUY'),
(SALE, 'SALE')
] | 10 | 18 | 0.457143 |
a40a3e43ea0d5f259d288fe063a614330fd8634e | 668 | py | Python | HLTrigger/special/test/testDynamicPrescaler.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | HLTrigger/special/test/testDynamicPrescaler.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | HLTrigger/special/test/testDynamicPrescaler.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(True)
)
process.source = cms.Source("EmptySource")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.i... | 27.833333 | 57 | 0.785928 |
a40c134772d49ab93a95b17b92d661e9e1dc23d1 | 533 | py | Python | modules/example_name_get/models/custom_model.py | ngi-odoo/examples | d1d4dc109862d90f8fc4f34af169ff09f0c8ea2f | [
"MIT"
] | null | null | null | modules/example_name_get/models/custom_model.py | ngi-odoo/examples | d1d4dc109862d90f8fc4f34af169ff09f0c8ea2f | [
"MIT"
] | null | null | null | modules/example_name_get/models/custom_model.py | ngi-odoo/examples | d1d4dc109862d90f8fc4f34af169ff09f0c8ea2f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from odoo import api, fields, models
| 29.611111 | 76 | 0.673546 |
a40c8b53c82db18dc8dc952f046c2a7a09fe4bf4 | 1,103 | py | Python | spike2_processor/tests/params.py | Pennsieve/timeseries-processor | 85766afa76182503fd66cec8382c22e757743f01 | [
"Apache-2.0"
] | null | null | null | spike2_processor/tests/params.py | Pennsieve/timeseries-processor | 85766afa76182503fd66cec8382c22e757743f01 | [
"Apache-2.0"
] | null | null | null | spike2_processor/tests/params.py | Pennsieve/timeseries-processor | 85766afa76182503fd66cec8382c22e757743f01 | [
"Apache-2.0"
] | null | null | null | from base_processor.timeseries.tests import TimeSeriesTest, ChannelTest
# -----------------------------
# parameters for channel tests
# -----------------------------
# ----------------------- test channels -----------------------
channels_00 = [
# continuous channels
ChannelTest(name='EKG-1000.0', nsamples=... | 34.46875 | 93 | 0.547597 |
a40db11741130eabb1a7be750837118bf41900aa | 2,330 | py | Python | lib/sundials_6.0.0/benchmarks/advection_reaction_3D/scripts/pickle_solution_output.py | detcitty/math | fe99d5f31171edb24bc841a9fa2f082982771d35 | [
"BSD-3-Clause"
] | 256 | 2017-10-06T04:11:32.000Z | 2022-03-25T07:15:53.000Z | lib/sundials_6.0.0/benchmarks/advection_reaction_3D/scripts/pickle_solution_output.py | detcitty/math | fe99d5f31171edb24bc841a9fa2f082982771d35 | [
"BSD-3-Clause"
] | 114 | 2018-03-24T20:38:31.000Z | 2022-03-30T16:59:05.000Z | lib/sundials_6.0.0/benchmarks/advection_reaction_3D/scripts/pickle_solution_output.py | detcitty/math | fe99d5f31171edb24bc841a9fa2f082982771d35 | [
"BSD-3-Clause"
] | 77 | 2017-11-16T08:32:31.000Z | 2022-01-25T15:22:17.000Z | #!/usr/bin/env python
# -----------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2021, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
# See the top-level LICENSE and NOTICE files for details.
#
# SPD... | 31.486486 | 110 | 0.608155 |
cf8b19fbe5f731f22b00f0e8cbf2dacf2cbb775f | 243 | py | Python | LSTMText/utils.py | Cristina-cxq/models-1 | b1acb2ee66900bd4be36e41d36aa407a04b5b3ac | [
"Apache-2.0"
] | null | null | null | LSTMText/utils.py | Cristina-cxq/models-1 | b1acb2ee66900bd4be36e41d36aa407a04b5b3ac | [
"Apache-2.0"
] | null | null | null | LSTMText/utils.py | Cristina-cxq/models-1 | b1acb2ee66900bd4be36e41d36aa407a04b5b3ac | [
"Apache-2.0"
] | null | null | null | """
imdb dataset saved in https://github.com/Oneflow-Inc/models/imdb
"""
import sys
sys.path.append("../")
from imdb.utils import pad_sequences, load_imdb_data, colored_string
__all__ = ["pad_sequences", "load_imdb_data", "colored_string"]
| 22.090909 | 68 | 0.748971 |
cf8bf175075177bf940eb88972c096da0cd5c335 | 2,764 | py | Python | src/ModuleManager.py | RhysRead/RhysRoom | 7cc2643f4ff10f56263310e1d7648a90720122be | [
"MIT"
] | null | null | null | src/ModuleManager.py | RhysRead/RhysRoom | 7cc2643f4ff10f56263310e1d7648a90720122be | [
"MIT"
] | null | null | null | src/ModuleManager.py | RhysRead/RhysRoom | 7cc2643f4ff10f56263310e1d7648a90720122be | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""ModuleManager.py: This file contains the code for the module managing aspect of the RhysRoom software."""
__author__ = "Rhys Read"
__copyright__ = "Copyright 2018, Rhys Read"
import logging
import os
from importlib.machinery import SourceFileLoader
import threading
MODULE_FOLDER_LOCATION ... | 30.711111 | 120 | 0.62301 |
cf8c77a8403d7c2b9ad92146eb9320547377a0ac | 1,441 | py | Python | dependencies/svgwrite/tests/test_rect.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 21 | 2015-01-16T05:10:02.000Z | 2021-06-11T20:48:15.000Z | dependencies/svgwrite/tests/test_rect.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 1 | 2019-09-09T12:10:27.000Z | 2020-05-22T10:12:14.000Z | dependencies/svgwrite/tests/test_rect.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 2 | 2015-05-03T04:51:08.000Z | 2018-08-24T08:28:53.000Z | #!/usr/bin/env python
#coding:utf-8
# Author: mozman --<mozman@gmx.at>
# Purpose: test rect object
# Created: 25.09.2010
# Copyright (C) 2010, Manfred Moitzi
# License: GPLv3
import sys
import unittest
from svgwrite.shapes import Rect
if __name__=='__main__':
unittest.main() | 36.025 | 105 | 0.616239 |
cf8eec3c909d7c269516f865d5a681fbefe44e6f | 297 | py | Python | app/feature/get_details/service.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | app/feature/get_details/service.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | app/feature/get_details/service.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | from app.db_models.models import userModel
from sqlalchemy.orm import session
from app.db_models import Session
from app.db_models.users import User
import math
| 21.214286 | 42 | 0.737374 |
cf91304e2204d86edfae47bac4c942d96ebb31ad | 1,807 | py | Python | meiduo_mall/meiduo_mall/apps/verifications/views.py | zhiliangsu/MeiduoMall | a3968c52f6815ccda6513371d331580dc5aa58f3 | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/verifications/views.py | zhiliangsu/MeiduoMall | a3968c52f6815ccda6513371d331580dc5aa58f3 | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/verifications/views.py | zhiliangsu/MeiduoMall | a3968c52f6815ccda6513371d331580dc5aa58f3 | [
"MIT"
] | null | null | null | import logging
from django.shortcuts import render
from rest_framework.response import Response
from rest_framework.views import APIView
from random import randint
from django_redis import get_redis_connection
from rest_framework import status
from meiduo_mall.libs.yuntongxun.sms import CCP
from . import constants
fr... | 30.627119 | 96 | 0.679026 |
cf9131b0c67c09bd6174123b5d32f978c48c094b | 1,955 | py | Python | datasource.py | aliabbasjaffri/fashion_mnist-metaflow-bentoml-pipeline | 5b1f9aca677191a251ceb503145a5bf804aa8b28 | [
"MIT"
] | null | null | null | datasource.py | aliabbasjaffri/fashion_mnist-metaflow-bentoml-pipeline | 5b1f9aca677191a251ceb503145a5bf804aa8b28 | [
"MIT"
] | null | null | null | datasource.py | aliabbasjaffri/fashion_mnist-metaflow-bentoml-pipeline | 5b1f9aca677191a251ceb503145a5bf804aa8b28 | [
"MIT"
] | null | null | null | import os
import random
import numpy as np
import torch
from torchvision import transforms
from torchvision.datasets import FashionMNIST
from torch.utils.data import DataLoader
# reproducible setup for testing
seed = 42
random.seed(seed)
np.random.seed(seed)
FASHION_MNIST_CLASSES = [
"T-shirt/top",
"Trouser",... | 22.215909 | 77 | 0.675703 |
cf93a8fb947171db61193394450cab6da3bc92ab | 841 | py | Python | freenodejobs/urls.py | freenode/freenodejobs | 235388c88ac6f984f36cd20074542e21369bcc8b | [
"MIT"
] | 4 | 2018-06-22T22:27:33.000Z | 2021-12-04T20:48:52.000Z | freenodejobs/urls.py | freenode/freenodejobs | 235388c88ac6f984f36cd20074542e21369bcc8b | [
"MIT"
] | 31 | 2018-05-22T15:38:55.000Z | 2021-03-18T20:31:53.000Z | freenodejobs/urls.py | freenode/freenodejobs | 235388c88ac6f984f36cd20074542e21369bcc8b | [
"MIT"
] | 5 | 2018-06-02T17:28:42.000Z | 2021-12-04T20:48:41.000Z | from django.conf import settings
from django.urls import path, include
from django.views.static import serve
urlpatterns = (
path('', include('freenodejobs.account.urls',
namespace='account')),
path('', include('freenodejobs.admin.urls',
namespace='admin')),
path('', include('freenodejob... | 31.148148 | 54 | 0.634958 |
cf94ab15ef61234ff6a115816349957accc1bdbb | 4,510 | py | Python | py/hwid/service/appengine/hwid_util_test.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 3 | 2022-01-06T16:52:52.000Z | 2022-03-07T11:30:47.000Z | py/hwid/service/appengine/hwid_util_test.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | null | null | null | py/hwid/service/appengine/hwid_util_test.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 1 | 2021-10-24T01:47:22.000Z | 2021-10-24T01:47:22.000Z | #!/usr/bin/env python3
# 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.
"""AppEngine integration test for hwid_util"""
import os.path
import unittest
from cros.factory.hwid.service.appengine import hwid... | 34.427481 | 74 | 0.721286 |
cf95312507f1473416b02012c79c8a7752ec3681 | 24,584 | py | Python | BubbleChart/BubbleChart.py | O-Aiden/Danim | 3303f6d2745a6a47d80622234a9a2d9983d34501 | [
"MIT"
] | 218 | 2019-09-01T02:20:56.000Z | 2022-03-19T02:53:05.000Z | BubbleChart/BubbleChart.py | zanboo/Danim | 3303f6d2745a6a47d80622234a9a2d9983d34501 | [
"MIT"
] | 2 | 2019-10-14T09:48:15.000Z | 2020-01-05T05:26:48.000Z | BubbleChart/BubbleChart.py | zanboo/Danim | 3303f6d2745a6a47d80622234a9a2d9983d34501 | [
"MIT"
] | 30 | 2019-09-01T09:41:37.000Z | 2021-12-23T12:16:24.000Z | from manimlib.imports import *
from Danim.BubbleChart.BCutils import *
from Danim.BubbleChart.bubble_constants import *
| 36.206186 | 116 | 0.465628 |
cf95df9246b03f938d1d4f3756880961c1e10f3f | 1,647 | py | Python | hobbify/habits/models/habits.py | Hobbify-Team/Hobbify-API | 73bead774ffec095c864bd2aabaca6c1ced5ab64 | [
"MIT"
] | 1 | 2020-07-18T21:59:45.000Z | 2020-07-18T21:59:45.000Z | hobbify/habits/models/habits.py | hobbify-team/hobbify-api | 73bead774ffec095c864bd2aabaca6c1ced5ab64 | [
"MIT"
] | 11 | 2020-06-29T00:09:58.000Z | 2020-07-10T21:52:03.000Z | hobbify/habits/models/habits.py | Hobbify-Team/Hobbify-API | 73bead774ffec095c864bd2aabaca6c1ced5ab64 | [
"MIT"
] | 1 | 2020-06-30T01:36:16.000Z | 2020-06-30T01:36:16.000Z | """ Habits model """
# Django
from django.db import models
# Utils
from hobbify.utils.models import HobbifyModel
from django.utils import timezone
| 27.45 | 87 | 0.618094 |
cf979da2b0879df2295856513fb6ed1f865b5a4a | 7,591 | py | Python | src/main.py | EOEPCA/um-pep-engine | efdf87027b54efc5686b3abd3882095441994978 | [
"Apache-2.0"
] | null | null | null | src/main.py | EOEPCA/um-pep-engine | efdf87027b54efc5686b3abd3882095441994978 | [
"Apache-2.0"
] | 3 | 2021-04-12T11:40:39.000Z | 2022-03-08T17:04:03.000Z | src/main.py | EOEPCA/um-pep-engine | efdf87027b54efc5686b3abd3882095441994978 | [
"Apache-2.0"
] | 1 | 2020-07-22T10:35:58.000Z | 2020-07-22T10:35:58.000Z | #!/usr/bin/env python3
from WellKnownHandler import WellKnownHandler
from WellKnownHandler import TYPE_UMA_V2, KEY_UMA_V2_RESOURCE_REGISTRATION_ENDPOINT, KEY_UMA_V2_PERMISSION_ENDPOINT, KEY_UMA_V2_INTROSPECTION_ENDPOINT
from flask import Flask, request, Response
from flask_swagger_ui import get_swaggerui_blueprint
fr... | 39.331606 | 164 | 0.673561 |
cf9862173fd4e6a1863a882d4f923cadd58a150c | 10,455 | py | Python | fit.py | uoguelph-mlrg/cnn-moth-detection | dbc2b2ef04e341ba8657f4cdb52f2c2108fa4aa3 | [
"ECL-2.0"
] | 2 | 2019-07-24T06:11:18.000Z | 2021-09-13T11:36:41.000Z | fit.py | uoguelph-mlrg/cnn-moth-detection | dbc2b2ef04e341ba8657f4cdb52f2c2108fa4aa3 | [
"ECL-2.0"
] | null | null | null | fit.py | uoguelph-mlrg/cnn-moth-detection | dbc2b2ef04e341ba8657f4cdb52f2c2108fa4aa3 | [
"ECL-2.0"
] | null | null | null | import os
import sys
import time
import copy
import numpy as np
import theano
import theano.tensor as T
from tools_theano import shared_dataset
import logging
def fit(classifier, train_set,
flag_report_valid=False, valid_set=None,
flag_report_test=False, test_set=None,
early_stop=True,
... | 33.085443 | 130 | 0.604017 |
cf9918d07c426c0c04713411e8bdb6f09a77713e | 9,607 | py | Python | tests/test_transfertree.py | atiqm/adapt | af9833cb7e698bdcb722941622d67c06f04822f7 | [
"BSD-2-Clause"
] | null | null | null | tests/test_transfertree.py | atiqm/adapt | af9833cb7e698bdcb722941622d67c06f04822f7 | [
"BSD-2-Clause"
] | null | null | null | tests/test_transfertree.py | atiqm/adapt | af9833cb7e698bdcb722941622d67c06f04822f7 | [
"BSD-2-Clause"
] | null | null | null | import copy
import numpy as np
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier
from adapt.parameter_based import TransferTreeClassifier, TransferForestClassifier
methods = [
'relab',
'ser',
'strut',
'ser_nr',
'ser_no_ext',
'ser_nr_lambda',
... | 50.298429 | 114 | 0.652545 |
cf9c2d9f9897781d3b19f04b709f542b6fd809ba | 2,420 | py | Python | inversefed/utils.py | hyunjoors/invertinggradients | 854b07b3726ba1306a82543d01c3a748f8fede0e | [
"MIT"
] | 119 | 2020-04-01T02:56:03.000Z | 2022-03-30T13:01:49.000Z | inversefed/utils.py | Conan-saber/invertinggradients | 1157b61c6704df42c497ab9eb074c75da5204334 | [
"MIT"
] | 8 | 2020-04-08T08:52:19.000Z | 2021-12-08T04:22:37.000Z | inversefed/utils.py | Conan-saber/invertinggradients | 1157b61c6704df42c497ab9eb074c75da5204334 | [
"MIT"
] | 47 | 2020-04-06T07:14:59.000Z | 2022-03-21T15:57:53.000Z | """Various utilities."""
import os
import csv
import torch
import random
import numpy as np
import socket
import datetime
def system_startup(args=None, defs=None):
"""Print useful system information."""
# Choose GPU device and print status information:
device = torch.device('cuda:0') if torch.cuda.is_a... | 34.084507 | 107 | 0.632645 |
cf9c752b74644c9c12dfb79d7869be3415a08b1f | 5,078 | py | Python | pokerstats/statslogic.py | pokermania/pokernetwork | 6e34a860659d86b6d3733b5c9649eab9f4be9c6a | [
"BSD-2-Clause"
] | 57 | 2015-05-25T05:39:03.000Z | 2021-12-03T13:30:54.000Z | pokerstats/statslogic.py | track2/pokernetwork | 6e34a860659d86b6d3733b5c9649eab9f4be9c6a | [
"BSD-2-Clause"
] | 2 | 2015-02-06T03:43:21.000Z | 2018-07-06T00:35:33.000Z | pokerstats/statslogic.py | track2/pokernetwork | 6e34a860659d86b6d3733b5c9649eab9f4be9c6a | [
"BSD-2-Clause"
] | 18 | 2015-01-26T04:54:12.000Z | 2019-11-16T09:07:07.000Z | #
# Copyright (C) 2008, 2009 Loic Dachary <loic@dachary.org>
#
# This software's license gives you freedom; you can copy, convey,
# propagate, redistribute and/or modify this program under the terms of
# the GNU Affero General Public License (AGPL) as published by the Free
# Software Foundation (FSF), either version 3 ... | 44.156522 | 200 | 0.576605 |
cf9c78ede48195cf2c3a61fc9f5787fc0aa9ab8b | 1,114 | py | Python | core/views.py | DjangoBoston/django-mulsite | 1a4c0e710fa89cbdeda1f0d9070588cdde0878db | [
"MIT"
] | null | null | null | core/views.py | DjangoBoston/django-mulsite | 1a4c0e710fa89cbdeda1f0d9070588cdde0878db | [
"MIT"
] | 4 | 2021-03-19T01:05:57.000Z | 2022-02-10T08:23:38.000Z | core/views.py | DjangoBoston/django-mulsite | 1a4c0e710fa89cbdeda1f0d9070588cdde0878db | [
"MIT"
] | null | null | null |
from django.contrib.sites.models import Site
from django.contrib.auth import get_user_model
from django.contrib.sites.shortcuts import get_current_site
from rest_framework import viewsets
from core.models import SiteUser
from core import sites
from core.serializers import SiteUserSerializer, SiteSerializer, UserSeri... | 27.170732 | 79 | 0.752244 |
cf9d331b8df5bee8697093247c209e1dc1500366 | 1,445 | py | Python | Mutable Function.py | samli6479/PythonLearn | 2ad78f62d58612132d3a3759aecec4a52381566f | [
"Apache-2.0"
] | null | null | null | Mutable Function.py | samli6479/PythonLearn | 2ad78f62d58612132d3a3759aecec4a52381566f | [
"Apache-2.0"
] | null | null | null | Mutable Function.py | samli6479/PythonLearn | 2ad78f62d58612132d3a3759aecec4a52381566f | [
"Apache-2.0"
] | null | null | null | # A function with Behavior That varies Over Time
# A function compound value have a body and a parent frame
# The parent frame contains the balance, the local state of the withdraw function
# Non-Local Assignment & Persistent Local State
# Work for python 3
def make_withdraw(balance):
""" Return a withdraw fun... | 32.111111 | 130 | 0.674048 |
cf9e960c5b7d6e6d38e029f7b86f629b6f33db46 | 1,804 | py | Python | downpour/resources.py | dhellmann/aerostat | 0872727f99c549833e576dd23b39ed04d456074b | [
"Apache-2.0"
] | 1 | 2018-02-01T14:53:13.000Z | 2018-02-01T14:53:13.000Z | downpour/resources.py | dhellmann/aerostat | 0872727f99c549833e576dd23b39ed04d456074b | [
"Apache-2.0"
] | null | null | null | downpour/resources.py | dhellmann/aerostat | 0872727f99c549833e576dd23b39ed04d456074b | [
"Apache-2.0"
] | 1 | 2020-01-06T15:36:14.000Z | 2020-01-06T15:36:14.000Z | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | 29.57377 | 75 | 0.660754 |
cf9f2dffcca7faa4bae484271d8e331b630da008 | 663 | py | Python | karanja_me/polls/admin.py | denisKaranja/django-dive-in | 451742ac065136cb0f9ac7b042d5913bbc2a36d0 | [
"MIT"
] | null | null | null | karanja_me/polls/admin.py | denisKaranja/django-dive-in | 451742ac065136cb0f9ac7b042d5913bbc2a36d0 | [
"MIT"
] | null | null | null | karanja_me/polls/admin.py | denisKaranja/django-dive-in | 451742ac065136cb0f9ac7b042d5913bbc2a36d0 | [
"MIT"
] | null | null | null | from django.contrib import admin
# register Pools app in the admin interface
from .models import Choice, Question
admin.site.register(Question, QuestionAdmin)
| 24.555556 | 75 | 0.701357 |
cfa14a0e31a7c092c64a03b127bd224176953f35 | 14,559 | py | Python | social_sim_ros/src/trial_runner.py | yale-sean/social_sim_ros | f4c0d0150c76791df7617522859bf9ed594f2a40 | [
"BSD-3-Clause"
] | 5 | 2020-09-10T04:54:42.000Z | 2021-12-21T18:15:47.000Z | social_sim_ros/src/trial_runner.py | yale-sean/social_sim_ros | f4c0d0150c76791df7617522859bf9ed594f2a40 | [
"BSD-3-Clause"
] | 1 | 2021-07-03T20:37:29.000Z | 2021-07-03T20:37:29.000Z | social_sim_ros/src/trial_runner.py | yale-sean/social_sim_ros | f4c0d0150c76791df7617522859bf9ed594f2a40 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
'''
run social sim trials
'''
import actionlib
import rospy
from rospy_message_converter import message_converter
import tf
from geometry_msgs.msg import PoseArray, Pose
from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal, MoveBaseActionGoal
from social_sim_ros.msg import TrialStart, Tria... | 41.716332 | 194 | 0.639055 |
cfa1a25549efa47448ad1448922fc795471458fd | 5,347 | py | Python | dnstap_receiver/fstrm.py | paukstis/dnstap-receiver | d0190340cc58975f92bcfeebfed025fe637a7b78 | [
"MIT"
] | null | null | null | dnstap_receiver/fstrm.py | paukstis/dnstap-receiver | d0190340cc58975f92bcfeebfed025fe637a7b78 | [
"MIT"
] | null | null | null | dnstap_receiver/fstrm.py | paukstis/dnstap-receiver | d0190340cc58975f92bcfeebfed025fe637a7b78 | [
"MIT"
] | null | null | null | import struct
import logging
# https://farsightsec.github.io/fstrm/
# Frame Streams Control Frame Format
# |------------------------------------|----------------------|
# | Data frame length | 4 bytes |
# |------------------------------------|----------------------|
# | Control frame le... | 34.057325 | 75 | 0.440808 |
cfa2a19a6fee9411efccdfb482457383e23112e9 | 19 | py | Python | posthog/version.py | Algogator/posthog | 764e10696b6ee9cba927b38e0789ed896f5d67dd | [
"MIT"
] | null | null | null | posthog/version.py | Algogator/posthog | 764e10696b6ee9cba927b38e0789ed896f5d67dd | [
"MIT"
] | null | null | null | posthog/version.py | Algogator/posthog | 764e10696b6ee9cba927b38e0789ed896f5d67dd | [
"MIT"
] | null | null | null | VERSION = "1.13.0"
| 9.5 | 18 | 0.578947 |
cfa4ca9a10bea098722aaeb8c2a7d2d1a93ebf25 | 9,065 | py | Python | tests/src/main/python/rest/tests/extract/swagger_client/models/measure_parameter_info.py | IBM/quality-measure-and-cohort-service | 8963227bf4941d6a5fdc641b37ca0f72da5a6f2b | [
"Apache-2.0"
] | 1 | 2020-10-05T15:10:03.000Z | 2020-10-05T15:10:03.000Z | tests/src/main/python/rest/tests/extract/swagger_client/models/measure_parameter_info.py | IBM/quality-measure-and-cohort-service | 8963227bf4941d6a5fdc641b37ca0f72da5a6f2b | [
"Apache-2.0"
] | null | null | null | tests/src/main/python/rest/tests/extract/swagger_client/models/measure_parameter_info.py | IBM/quality-measure-and-cohort-service | 8963227bf4941d6a5fdc641b37ca0f72da5a6f2b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
IBM Cohort Engine
Service to evaluate cohorts and measures # noqa: E501
OpenAPI spec version: 2.1.0 2022-02-18T21:50:45Z
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.configuratio... | 30.833333 | 196 | 0.60706 |
cfa5fb84a168cd5549d5b4a34b8799e8cc2a103c | 60 | py | Python | tests/__init__.py | vooon/hass-radiacode | c1bdc0211a5a8eac368a192377fbdf77cad95fe8 | [
"MIT"
] | 4 | 2021-12-31T23:50:40.000Z | 2022-03-22T10:27:29.000Z | tests/__init__.py | vooon/hass-radiacode | c1bdc0211a5a8eac368a192377fbdf77cad95fe8 | [
"MIT"
] | 5 | 2021-12-17T02:20:31.000Z | 2022-02-28T02:30:08.000Z | tests/__init__.py | vooon/hass-radiacode | c1bdc0211a5a8eac368a192377fbdf77cad95fe8 | [
"MIT"
] | 2 | 2022-01-15T02:33:46.000Z | 2022-03-17T05:31:31.000Z | """Tests for RadiaCode 101 sensor component integration."""
| 30 | 59 | 0.766667 |
cfa7bd5d7ec2f99a297f366a1a0a2f89d5b27f60 | 4,768 | py | Python | qconfig.py | zhuang-group/SAQ | 594e9c74944999766e119e7137f50583aeedf52b | [
"Apache-2.0"
] | 22 | 2021-11-24T23:19:26.000Z | 2022-03-10T12:08:32.000Z | qconfig.py | zip-group/SAQ | 594e9c74944999766e119e7137f50583aeedf52b | [
"Apache-2.0"
] | null | null | null | qconfig.py | zip-group/SAQ | 594e9c74944999766e119e7137f50583aeedf52b | [
"Apache-2.0"
] | 4 | 2021-11-29T04:10:32.000Z | 2021-12-03T03:08:19.000Z | import os
from core.config import create_dir, get_parser, params_check
| 30.76129 | 143 | 0.592911 |
cfa7c54b2c60bb286552dff00421bc13413e5568 | 2,352 | py | Python | beartype_test/util/pyterror.py | jonathanmorley/beartype | 0d1207210220807d5c5848033d13657afa307983 | [
"MIT"
] | null | null | null | beartype_test/util/pyterror.py | jonathanmorley/beartype | 0d1207210220807d5c5848033d13657afa307983 | [
"MIT"
] | null | null | null | beartype_test/util/pyterror.py | jonathanmorley/beartype | 0d1207210220807d5c5848033d13657afa307983 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# --------------------( LICENSE )--------------------
# Copyright (c) 2014-2021 Beartype authors.
# See "LICENSE" for further details.
'''
**:mod:`pytest` exception-handling utilities.**
This submodule provides functions validating caller-defined exceptions raised
duri... | 37.333333 | 79 | 0.616922 |
cfa9479031a99ce5275e837310711a9d4444c9a2 | 174 | py | Python | django_doctest_tests/src/urls.py | michilu/django-doctest | b7be9e7a621216877d193eafc983ace03aa43e03 | [
"BSD-3-Clause"
] | null | null | null | django_doctest_tests/src/urls.py | michilu/django-doctest | b7be9e7a621216877d193eafc983ace03aa43e03 | [
"BSD-3-Clause"
] | null | null | null | django_doctest_tests/src/urls.py | michilu/django-doctest | b7be9e7a621216877d193eafc983ace03aa43e03 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls.defaults import *
import views
urlpatterns = patterns("",
(r'^render/(.*/)?', views.render),
(r'^use_template/(.*/)?', views.use_template),
)
| 19.333333 | 50 | 0.632184 |
cfab1a84be9c0072b43334afcc4dc985928ed6db | 2,247 | py | Python | tests/utils.py | Upabjojr/matchpy | ff8b28a0e178f3cc5d6546c25ee1d891cff64425 | [
"MIT"
] | null | null | null | tests/utils.py | Upabjojr/matchpy | ff8b28a0e178f3cc5d6546c25ee1d891cff64425 | [
"MIT"
] | null | null | null | tests/utils.py | Upabjojr/matchpy | ff8b28a0e178f3cc5d6546c25ee1d891cff64425 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from matchpy.expressions.constraints import Constraint
from matchpy.expressions.substitution import Substitution
from matchpy.expressions.expressions import Pattern
| 37.45 | 132 | 0.64308 |
cfabe5f2d61ce7adc4df7c38be359699321d629a | 7,340 | py | Python | Discrete2D/torch-ac-composable/torch_ac_composable/models/acmodel_modular_fixed.py | Lifelong-ML/Mendez2022ModularLifelongRL | c166c520a25c2a60b6bcae16fee2840027768809 | [
"Apache-2.0"
] | null | null | null | Discrete2D/torch-ac-composable/torch_ac_composable/models/acmodel_modular_fixed.py | Lifelong-ML/Mendez2022ModularLifelongRL | c166c520a25c2a60b6bcae16fee2840027768809 | [
"Apache-2.0"
] | null | null | null | Discrete2D/torch-ac-composable/torch_ac_composable/models/acmodel_modular_fixed.py | Lifelong-ML/Mendez2022ModularLifelongRL | c166c520a25c2a60b6bcae16fee2840027768809 | [
"Apache-2.0"
] | null | null | null | '''
This version uses a Q function for PPO, the same that is
later used for BCQ
'''
import torch
import torch.nn as nn
import torch.autograd as autograd
import torch.nn.functional as F
from torch.distributions.categorical import Categorical
import random
import numpy as np
# Function from https://github.com/ikostrik... | 33.824885 | 116 | 0.576839 |
cfabf3d5052b6b32c59e5f038139bebacdf240ea | 1,162 | py | Python | python/sorting/sort-list-on-binaryOnes.py | krishnaiitd/eagleicode | 1011b6d1f11c0c26e89fa733c20eb82c8549f3b3 | [
"Apache-2.0"
] | null | null | null | python/sorting/sort-list-on-binaryOnes.py | krishnaiitd/eagleicode | 1011b6d1f11c0c26e89fa733c20eb82c8549f3b3 | [
"Apache-2.0"
] | null | null | null | python/sorting/sort-list-on-binaryOnes.py | krishnaiitd/eagleicode | 1011b6d1f11c0c26e89fa733c20eb82c8549f3b3 | [
"Apache-2.0"
] | null | null | null | # Complete the function below.
import operator
a = [2, 3, 4, 6]
swap_array(a)
| 23.714286 | 82 | 0.536145 |
cfae276e00c535030e057c9ddc74b0073c1f988e | 1,470 | py | Python | brain/src/model/firmware_error.py | siddharthkundu/raspberry-pi-os-image-builder | ffbb008668340e602722f98227048ed3e5243386 | [
"Apache-2.0"
] | null | null | null | brain/src/model/firmware_error.py | siddharthkundu/raspberry-pi-os-image-builder | ffbb008668340e602722f98227048ed3e5243386 | [
"Apache-2.0"
] | null | null | null | brain/src/model/firmware_error.py | siddharthkundu/raspberry-pi-os-image-builder | ffbb008668340e602722f98227048ed3e5243386 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from enum import unique, IntEnum
import json
| 30.625 | 116 | 0.647619 |
cfb21d4a9cdd85f0f62e4fd06045dd96b635904d | 11,617 | py | Python | habitat/extravehicular/migrations/0001_initial.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | 1 | 2021-02-01T19:04:39.000Z | 2021-02-01T19:04:39.000Z | habitat/extravehicular/migrations/0001_initial.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | habitat/extravehicular/migrations/0001_initial.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-29 18:53
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import habitat.timezone.models.martian_standard_time
| 71.269939 | 308 | 0.634845 |
cfb23450358399f117f247e51bf8ad70f91b84ed | 1,014 | py | Python | scraper/storage_spiders/vanphongphamanhkhoacom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/vanphongphamanhkhoacom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/vanphongphamanhkhoacom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='clus']/h2[@class='nomargin title_sp']",
'price' : "//h2[@class='nomargin']/font",
'category' : "//div[@class='head_t... | 37.555556 | 83 | 0.642998 |
cfb3214c3f6a84da7ae3a26cd3ea7f301f7b740a | 2,220 | py | Python | src/pysonata/sonata/tests/circuit/test_file.py | AllenInstitute/project7 | 901350cdf5c57a56b7efece2a309c72bdf5f2608 | [
"BSD-3-Clause"
] | 35 | 2018-04-10T13:54:27.000Z | 2022-03-12T09:22:31.000Z | src/pysonata/sonata/tests/circuit/test_file.py | AllenInstitute/project7 | 901350cdf5c57a56b7efece2a309c72bdf5f2608 | [
"BSD-3-Clause"
] | 92 | 2018-03-19T10:14:18.000Z | 2022-01-29T15:21:47.000Z | src/pysonata/sonata/tests/circuit/test_file.py | AllenInstitute/project7 | 901350cdf5c57a56b7efece2a309c72bdf5f2608 | [
"BSD-3-Clause"
] | 25 | 2018-03-16T23:14:42.000Z | 2022-02-09T19:37:05.000Z | import pytest
import tempfile
from conftest import load_circuit_files
| 32.647059 | 115 | 0.709009 |
cfb359a75fd23df18019205b11141a9fe3516090 | 8,979 | py | Python | segeval/ml/test.py | cfournie/segmentation.evaluation | c4140b48112aac697aa7f05effe8026648ebc501 | [
"BSD-3-Clause"
] | 27 | 2015-03-22T23:06:47.000Z | 2022-01-21T23:21:05.000Z | segeval/ml/test.py | cfournie/segmentation.evaluation | c4140b48112aac697aa7f05effe8026648ebc501 | [
"BSD-3-Clause"
] | 4 | 2015-03-12T18:27:08.000Z | 2019-10-24T13:09:31.000Z | segeval/ml/test.py | cfournie/segmentation.evaluation | c4140b48112aac697aa7f05effe8026648ebc501 | [
"BSD-3-Clause"
] | 7 | 2015-03-12T18:29:27.000Z | 2019-01-25T08:52:05.000Z | '''
Tests the machine learning (ML) statistics functions, and ml package.
.. moduleauthor:: Chris Fournier <chris.m.fournier@gmail.com>
'''
from __future__ import absolute_import
import unittest
from decimal import Decimal
from segeval.ml import (
__precision__, precision, __recall__, recall, __fmeasure__,
fme... | 39.03913 | 79 | 0.538145 |
cfb3732057211f535d8019c8ff6d43bb2848aa9e | 325 | py | Python | Gold_Badges/Ayuba_Badge/backend/frontend/tests.py | MoonX-Hub/Voting | e7d3672405a8752a7d8ea15bfde8201c943d7685 | [
"Apache-2.0"
] | 5 | 2021-09-15T08:03:05.000Z | 2022-03-31T22:12:35.000Z | Gold_Badges/Ayuba_Badge/backend/frontend/tests.py | MoonX-Hub/Voting | e7d3672405a8752a7d8ea15bfde8201c943d7685 | [
"Apache-2.0"
] | null | null | null | Gold_Badges/Ayuba_Badge/backend/frontend/tests.py | MoonX-Hub/Voting | e7d3672405a8752a7d8ea15bfde8201c943d7685 | [
"Apache-2.0"
] | 3 | 2021-12-10T01:30:38.000Z | 2021-12-26T17:45:13.000Z | #from django.test import TestCase
# Create your tests here.
from algosdk import account,mnemonic
generateAccount() | 23.214286 | 61 | 0.769231 |
cfb4b0c8700c88c4fd2800a29364308bc33ccbcd | 3,793 | py | Python | ez_utils/verify_code_utils.py | darkripples/none-web-frame | 489e599cdc296bdfa1ea410fcd129a892a18c142 | [
"Apache-2.0"
] | 2 | 2019-12-17T10:11:01.000Z | 2020-05-07T01:22:24.000Z | ez_utils/verify_code_utils.py | darkripples/none-web-frame | 489e599cdc296bdfa1ea410fcd129a892a18c142 | [
"Apache-2.0"
] | 8 | 2021-03-30T14:02:38.000Z | 2022-03-12T00:40:05.000Z | ez_utils/verify_code_utils.py | darkripples/django_mouldle_project | cb94397f9264c623ae5e7906ec865ab2cc46b292 | [
"Apache-2.0"
] | 1 | 2019-12-17T10:12:06.000Z | 2019-12-17T10:12:06.000Z | # !/usr/bin/env python
# coding:utf8
"""
@Time : 2019/11/23
@Author : fls
@Contact : fls@darkripples.com
@Desc : flsutils-utils
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2019/11/23 17:13 fls 1.0 create
"""
fr... | 30.837398 | 111 | 0.58608 |
cfb605ce579ab99dc01188920f3a9491fb2551d6 | 2,269 | py | Python | blockchain/diophantine_equation.py | ikr4mm/Python | 50c163ea56a411f17bc1b850ad28ac4c98eb7dff | [
"MIT"
] | 79 | 2021-09-12T02:31:14.000Z | 2022-03-29T08:46:53.000Z | blockchain/diophantine_equation.py | ikr4mm/Python | 50c163ea56a411f17bc1b850ad28ac4c98eb7dff | [
"MIT"
] | 121 | 2021-09-10T02:38:47.000Z | 2022-03-30T03:30:35.000Z | blockchain/diophantine_equation.py | ikr4mm/Python | 50c163ea56a411f17bc1b850ad28ac4c98eb7dff | [
"MIT"
] | 76 | 2021-09-10T02:27:28.000Z | 2022-03-28T10:24:12.000Z | # https://en.wikipedia.org/wiki/Diophantine_equation
from typing import Tuple
def diophantine(a: int, b: int, c: int) -> Tuple[float, float]:
"""
Persamaan Diophantine : Diberikan bilangan bulat a,b,c
( setidaknya satu dari a dan b != 0),
persamaan diophantine a*x + b*y = c
memiliki solusi (di ma... | 22.919192 | 69 | 0.519171 |
cfb844c544f145debb7a5d0e92ad31995fc02a2c | 568 | py | Python | pyrandall/network.py | kpn/pyrandall | ece91d3cae901c1913451c3c8996a7ce9f6f58af | [
"Apache-2.0"
] | 2 | 2019-09-26T13:45:35.000Z | 2019-09-27T08:03:43.000Z | pyrandall/network.py | kpn/pyrandall | ece91d3cae901c1913451c3c8996a7ce9f6f58af | [
"Apache-2.0"
] | 7 | 2019-09-25T09:00:36.000Z | 2020-06-29T06:58:11.000Z | pyrandall/network.py | kpn/pyrandall | ece91d3cae901c1913451c3c8996a7ce9f6f58af | [
"Apache-2.0"
] | 2 | 2019-09-25T09:41:38.000Z | 2020-02-17T11:49:37.000Z | import posixpath
from urllib.parse import urljoin, urlparse
| 25.818182 | 88 | 0.653169 |
cfb9c80e9041d86fce1446f5ea75be15ef468ae9 | 192 | py | Python | pytesster.py | HuizhangXu/BJTU_Grab_Class | f6f58f3a14c8215733ea9c52a52dbd142f161e97 | [
"MIT"
] | 4 | 2019-08-28T10:53:56.000Z | 2021-06-08T02:32:09.000Z | pytesster.py | HuizhangXu/BJTU_Grab_Class | f6f58f3a14c8215733ea9c52a52dbd142f161e97 | [
"MIT"
] | null | null | null | pytesster.py | HuizhangXu/BJTU_Grab_Class | f6f58f3a14c8215733ea9c52a52dbd142f161e97 | [
"MIT"
] | null | null | null | from PIL import Image
import pytesser
import pytesseract
image = Image.open('test.jpg')
print(pytesseract.image_file_to_string('test.jpg'))
print(pytesseract.image_to_string(image))
| 21.333333 | 52 | 0.776042 |
cfbad1f6c17648b152ae02e148a38ce075fb4e62 | 252 | py | Python | gpvdm_data/shape/Gaus/example.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 12 | 2016-09-13T08:58:13.000Z | 2022-01-17T07:04:52.000Z | gpvdm_core/inp_template/shape/example.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 3 | 2017-11-11T12:33:02.000Z | 2019-03-08T00:48:08.000Z | gpvdm_data/shape/Gaus/example.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 6 | 2019-01-03T06:17:12.000Z | 2022-01-01T15:59:00.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
from gpvdm_api import gpvdm_api | 19.384615 | 40 | 0.674603 |
cfbb704f9aaa960b7d69d0dfa8df0111d8a29aa0 | 2,454 | py | Python | scripts/npc/make_ston.py | varenty-x/v204.1 | 804302399f100bcec713f58a89b3352f114c36f5 | [
"MIT"
] | 9 | 2021-04-26T11:59:29.000Z | 2021-12-20T13:15:27.000Z | scripts/npc/make_ston.py | varenty-x/v203.4 | 359d6575ef8256bb2d6df87bf4156c4608243232 | [
"MIT"
] | null | null | null | scripts/npc/make_ston.py | varenty-x/v203.4 | 359d6575ef8256bb2d6df87bf4156c4608243232 | [
"MIT"
] | 6 | 2021-07-14T06:32:05.000Z | 2022-02-06T02:32:56.000Z | # Eurek the Alchemist (2040050)
from net.swordie.ms.constants import JobConstants
echoDict = {
112: 1005, # Hero
122: 1005, # Paladin
132: 1005, # Dark Knight
212: 1005, # F/P
222: 1005, # I/L
232: 1005, # Bishop
312: 1005, # Bowmaster
322: 1005, # Marksman
412: 1005, # Night Lord
... | 35.057143 | 131 | 0.597392 |
cfbba94515cd85c42f66f489666d043f63087f36 | 404 | py | Python | parens/plistd.py | NoraCodes/pyparens | 3f0579bfd947d9f689ee51b706109b4a3d4b21a9 | [
"MIT"
] | 2 | 2021-01-08T17:13:30.000Z | 2021-11-17T11:39:24.000Z | parens/plistd.py | NoraCodes/pyparens | 3f0579bfd947d9f689ee51b706109b4a3d4b21a9 | [
"MIT"
] | null | null | null | parens/plistd.py | NoraCodes/pyparens | 3f0579bfd947d9f689ee51b706109b4a3d4b21a9 | [
"MIT"
] | null | null | null | # plistd.py
# Python LIsp STanDard library
def makelist(*args):
" Create a list from arguments. "
return list(args)
| 19.238095 | 72 | 0.638614 |
cfbc8836b9338fc10d87caa2064f58d5522b99bd | 14,758 | py | Python | mininet/mininet/mapper/mapper.py | a815027104/Distrinet | 29a0c6acbbe15932581b7ebb4407412b8daa2feb | [
"MIT"
] | 16 | 2019-08-27T13:57:21.000Z | 2021-12-10T12:24:10.000Z | mininet/mininet/mapper/mapper.py | a815027104/Distrinet | 29a0c6acbbe15932581b7ebb4407412b8daa2feb | [
"MIT"
] | 56 | 2019-08-22T14:16:27.000Z | 2022-01-15T20:33:31.000Z | mininet/mininet/mapper/mapper.py | a815027104/Distrinet | 29a0c6acbbe15932581b7ebb4407412b8daa2feb | [
"MIT"
] | 7 | 2019-08-11T13:11:20.000Z | 2021-12-09T04:03:33.000Z | from distriopt import VirtualNetwork
from distriopt.embedding.physical import PhysicalNetwork
from distriopt.embedding.algorithms import (
EmbedBalanced,
# EmbedILP,
EmbedPartition,
EmbedGreedy,
)
from distriopt.packing.algorithms import ( BestFitDopProduct,
Fir... | 35.221957 | 179 | 0.62522 |
cfbcb5bc2acb6279eef24720e20d7b58a8af8a90 | 54 | py | Python | login.py | fengli5588/test01 | 427912a5cc4a7ef7011e6419cb5a1ec9a8ba003d | [
"MIT"
] | null | null | null | login.py | fengli5588/test01 | 427912a5cc4a7ef7011e6419cb5a1ec9a8ba003d | [
"MIT"
] | null | null | null | login.py | fengli5588/test01 | 427912a5cc4a7ef7011e6419cb5a1ec9a8ba003d | [
"MIT"
] | null | null | null | num = 1
val = 2
val2 = 333333
val2 = 333
val3 = 55555
| 9 | 13 | 0.62963 |
cfbff16de9e16fac8a5fe820461cd9fa77da8887 | 1,387 | py | Python | test_functions/test_edo.py | otoolej/envelope_derivative_operator | 1b3395f6f36f32084e65d37a2bba5323b18320c0 | [
"BSD-3-Clause"
] | 7 | 2019-12-29T07:36:42.000Z | 2022-01-06T03:28:43.000Z | test_functions/test_edo.py | otoolej/envelope_derivative_operator | 1b3395f6f36f32084e65d37a2bba5323b18320c0 | [
"BSD-3-Clause"
] | null | null | null | test_functions/test_edo.py | otoolej/envelope_derivative_operator | 1b3395f6f36f32084e65d37a2bba5323b18320c0 | [
"BSD-3-Clause"
] | 2 | 2020-03-27T05:50:08.000Z | 2020-09-13T11:43:45.000Z | """
functions to run through all 5 test signals and plot
John M. O' Toole, University College Cork
Started: 05-09-2019
last update: <2019-09-04 13:36:01 (otoolej)>
"""
import numpy as np
from matplotlib import pyplot as plt
from energy_operators import edo as ed
from test_functions import gen_test_signals as gs
def ... | 26.169811 | 70 | 0.602019 |
cfc009644d9a35b2c694d49f384f6f5404aef0d1 | 19,334 | py | Python | tests/python/cuda/test_features.py | jakeKonrad/torch-quiver | 16e01b8b61459ae41b7386b6a57ef9d20dfb6606 | [
"Apache-2.0"
] | 196 | 2021-10-30T23:40:27.000Z | 2022-03-28T03:43:18.000Z | tests/python/cuda/test_features.py | jakeKonrad/torch-quiver | 16e01b8b61459ae41b7386b6a57ef9d20dfb6606 | [
"Apache-2.0"
] | 32 | 2021-11-03T15:07:50.000Z | 2022-03-07T09:03:33.000Z | tests/python/cuda/test_features.py | jakeKonrad/torch-quiver | 16e01b8b61459ae41b7386b6a57ef9d20dfb6606 | [
"Apache-2.0"
] | 24 | 2021-10-31T12:28:34.000Z | 2022-03-19T03:03:13.000Z | import torch
import torch_quiver as torch_qv
import random
import numpy as np
import time
from typing import List
from quiver.shard_tensor import ShardTensor, ShardTensorConfig, Topo
from quiver.utils import reindex_feature
import torch.multiprocessing as mp
from torch.multiprocessing import Process
import os
import sy... | 36.479245 | 190 | 0.591859 |
cfc0232daa45b5f2cfe6bcff55c3dfe4c6d0fd64 | 243 | py | Python | jpp_boosted_django/jpp_boosted/website/templatetags/project_overview_list.py | QualmandDriven/jpp_boosted | 895e2e85a7b0dd2fcfc6f2352fc318f2555e16df | [
"MIT"
] | 1 | 2020-07-28T19:36:51.000Z | 2020-07-28T19:36:51.000Z | jpp_boosted_django/jpp_boosted/website/templatetags/project_overview_list.py | QualmandDriven/jpp_boosted | 895e2e85a7b0dd2fcfc6f2352fc318f2555e16df | [
"MIT"
] | 11 | 2020-06-05T22:37:24.000Z | 2022-02-10T08:25:59.000Z | jpp_boosted_django/jpp_boosted/website/templatetags/project_overview_list.py | QualmandDriven/jpp_boosted | 895e2e85a7b0dd2fcfc6f2352fc318f2555e16df | [
"MIT"
] | null | null | null | from django import template
from django.template.loader import get_template
register = template.Library() | 34.714286 | 53 | 0.82716 |
cfc09c070f522385e60c53187a4c3bcc4617dbb6 | 806 | py | Python | Swimple_Server/consumers.py | gordiig/Swimple-Server | 5181b51a7809ab6868f87129b6a4e1efaf779f6f | [
"MIT"
] | null | null | null | Swimple_Server/consumers.py | gordiig/Swimple-Server | 5181b51a7809ab6868f87129b6a4e1efaf779f6f | [
"MIT"
] | null | null | null | Swimple_Server/consumers.py | gordiig/Swimple-Server | 5181b51a7809ab6868f87129b6a4e1efaf779f6f | [
"MIT"
] | null | null | null | from channels.generic.websocket import WebsocketConsumer
from asgiref.sync import async_to_sync
import json
| 27.793103 | 56 | 0.657568 |
cfc0c9af69eee8f57296e3b7974a4886673a6ccf | 2,728 | py | Python | billboard/display.py | setrofim/billboard | acb7d3e0a26c1c42def85a96ec33cd895c8a7ead | [
"BSD-3-Clause"
] | 1 | 2018-08-01T13:03:22.000Z | 2018-08-01T13:03:22.000Z | billboard/display.py | setrofim/billboard | acb7d3e0a26c1c42def85a96ec33cd895c8a7ead | [
"BSD-3-Clause"
] | 2 | 2016-04-21T14:11:28.000Z | 2018-06-28T15:05:59.000Z | billboard/display.py | setrofim/billboard | acb7d3e0a26c1c42def85a96ec33cd895c8a7ead | [
"BSD-3-Clause"
] | 2 | 2017-02-26T17:30:11.000Z | 2018-06-29T15:35:14.000Z | import os
import logging
from PyQt4.QtCore import Qt, QObject, SIGNAL
from PyQt4.QtGui import (QMainWindow, QWidget, QPixmap, QLabel,
QGraphicsDropShadowEffect, QColor,
QDesktopWidget)
| 35.894737 | 77 | 0.608504 |
cfc2ea3d78c3a831837498879a871c4777a0230c | 6,393 | py | Python | platformio/test/command.py | ufo2011/platformio-core | 0ceae62701731f8b32c34d7993a34dea34aea59c | [
"Apache-2.0"
] | null | null | null | platformio/test/command.py | ufo2011/platformio-core | 0ceae62701731f8b32c34d7993a34dea34aea59c | [
"Apache-2.0"
] | null | null | null | platformio/test/command.py | ufo2011/platformio-core | 0ceae62701731f8b32c34d7993a34dea34aea59c | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014-present PlatformIO <contact@platformio.org>
#
# 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... | 31.492611 | 86 | 0.647583 |
cfc428f974aa00ff3dee6c7b4e66ce2e5079c59d | 1,755 | py | Python | archives/learning/bp/ch24/asynchat-example-1.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 7 | 2016-07-08T10:53:13.000Z | 2021-07-20T00:20:10.000Z | archives/learning/bp/ch24/asynchat-example-1.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 1 | 2021-05-11T05:20:18.000Z | 2021-05-11T05:20:18.000Z | archives/learning/bp/ch24/asynchat-example-1.py | mcxiaoke/python-labs | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | [
"Apache-2.0"
] | 7 | 2016-10-31T06:31:54.000Z | 2020-08-31T20:55:00.000Z | # File: asynchat-example-1.py
import asyncore, asynchat
import os, socket, string
PORT = 8000
#
# try it out
s = HTTPServer(PORT)
print "serving at port", PORT, "..."
asyncore.loop()
## GET / HTTP/1.1
## Accept: */*
## Accept-Language: en, sv
## Accept-Encoding: gzip, deflate
## User-Agent: Mozilla/4.0 (compatible... | 27 | 69 | 0.577778 |
cfc528487c2f09d697eca1b0a7a489d118353bf2 | 6,825 | py | Python | TEST_DATA.py | GundlackFelixDEV/pdf-template-service | ccd5133b00fed88ca60063fa4e22401c78bb18cb | [
"MIT"
] | null | null | null | TEST_DATA.py | GundlackFelixDEV/pdf-template-service | ccd5133b00fed88ca60063fa4e22401c78bb18cb | [
"MIT"
] | null | null | null | TEST_DATA.py | GundlackFelixDEV/pdf-template-service | ccd5133b00fed88ca60063fa4e22401c78bb18cb | [
"MIT"
] | null | null | null | PROFILE = {
"reciepientsFullName": "Max Mustermann",
"lastName": "Mustermann",
"title": "Mr.",
"reciepientsAddress": "Musterstrae 11",
"zipCode": "123456",
"city": "Musterhausen",
"IBAN": "DE07123412341234123412"
}
NF_FORM = {
"proc_agency": "USAG Grafenwoehr,<br>HQUSAG Grafenwoer,<b... | 31.164384 | 117 | 0.490256 |
cfc6accc22951a6ccb09c88099ae882a7bc524f6 | 4,411 | py | Python | tests/tflite_test_runner.py | xhuohai/nncase | cf7921c273c7446090939c64f57ef783a62bf29c | [
"Apache-2.0"
] | null | null | null | tests/tflite_test_runner.py | xhuohai/nncase | cf7921c273c7446090939c64f57ef783a62bf29c | [
"Apache-2.0"
] | null | null | null | tests/tflite_test_runner.py | xhuohai/nncase | cf7921c273c7446090939c64f57ef783a62bf29c | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
from test_runner import *
import os
import shutil
| 42.009524 | 89 | 0.579234 |
cfc6e08407928e3548052c679f6f0664817d44d5 | 5,408 | py | Python | EfficientDetObjectDetector.py | atlan-antillia/EfficientDet-USA-RoadSigns | 7fba0c355bf6aec8ae7d191873ce5c860738ff72 | [
"Apache-2.0"
] | null | null | null | EfficientDetObjectDetector.py | atlan-antillia/EfficientDet-USA-RoadSigns | 7fba0c355bf6aec8ae7d191873ce5c860738ff72 | [
"Apache-2.0"
] | null | null | null | EfficientDetObjectDetector.py | atlan-antillia/EfficientDet-USA-RoadSigns | 7fba0c355bf6aec8ae7d191873ce5c860738ff72 | [
"Apache-2.0"
] | null | null | null | # ==============================================================================
# Copyright 2020 Google Research. 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
#
# ... | 37.296552 | 130 | 0.661982 |
cfc8ebb474939216aa62bdb9e6ffae2fd8ff8ede | 6,124 | py | Python | algolib/graphs/simple_graph.py | ref-humbold/AlgoLib_Python | 05f725504656ec93b879374a8cd87464d88fff77 | [
"Apache-2.0"
] | null | null | null | algolib/graphs/simple_graph.py | ref-humbold/AlgoLib_Python | 05f725504656ec93b879374a8cd87464d88fff77 | [
"Apache-2.0"
] | null | null | null | algolib/graphs/simple_graph.py | ref-humbold/AlgoLib_Python | 05f725504656ec93b879374a8cd87464d88fff77 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Structure of simple graph"""
from abc import ABCMeta, abstractmethod
from typing import Any, Iterable, Optional, Union
from .graph import Edge, Graph, Vertex
class SimpleGraph(Graph, metaclass=ABCMeta):
def get_vertex(self, vertex_id):
return self._representation.get_vertex(v... | 34.59887 | 98 | 0.652351 |
cfcb6a4f0872b518bd141f3c547eb5922fb29a11 | 363 | py | Python | r2d2.py | clumsyme/r2d2 | b2fad40cb0f364e87b9c1da906cdcfdd122ba718 | [
"MIT"
] | null | null | null | r2d2.py | clumsyme/r2d2 | b2fad40cb0f364e87b9c1da906cdcfdd122ba718 | [
"MIT"
] | null | null | null | r2d2.py | clumsyme/r2d2 | b2fad40cb0f364e87b9c1da906cdcfdd122ba718 | [
"MIT"
] | null | null | null | import os
from contextlib import contextmanager
| 20.166667 | 37 | 0.644628 |
cfcc0c173cc04cd06fb9541afc5a52fc6abd7401 | 636 | py | Python | generate_password/random_sample.py | XinyueZ/some-python-codes | 2d7296a4deebb0cd086be34ad7d66f5042cdf6e6 | [
"Unlicense"
] | null | null | null | generate_password/random_sample.py | XinyueZ/some-python-codes | 2d7296a4deebb0cd086be34ad7d66f5042cdf6e6 | [
"Unlicense"
] | null | null | null | generate_password/random_sample.py | XinyueZ/some-python-codes | 2d7296a4deebb0cd086be34ad7d66f5042cdf6e6 | [
"Unlicense"
] | null | null | null | """
This is another sample to generate password.
"""
import random
# Use an import statement at the top
word_file = "words.txt"
word_list = []
#fill up the word_list
with open(word_file,'r') as words:
for line in words:
# remove white space and make everything lowercase
word = line.strip().lower(... | 25.44 | 68 | 0.597484 |
cfce4df83ee050f4da91fa160d70e6a0124b23ec | 12,680 | py | Python | deepsim/test/test_deepsim/core/test_quaternion.py | aws-deepracer/deepsim | cad2639f525c2f94ec5c03d8b855cc65b0b8ee55 | [
"Apache-2.0"
] | 1 | 2022-03-25T07:20:49.000Z | 2022-03-25T07:20:49.000Z | deepsim/test/test_deepsim/core/test_quaternion.py | aws-deepracer/deepsim | cad2639f525c2f94ec5c03d8b855cc65b0b8ee55 | [
"Apache-2.0"
] | null | null | null | deepsim/test/test_deepsim/core/test_quaternion.py | aws-deepracer/deepsim | cad2639f525c2f94ec5c03d8b855cc65b0b8ee55 | [
"Apache-2.0"
] | null | null | null | #################################################################################
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"). ... | 39.256966 | 110 | 0.549132 |
cfcef9df4894b134addf72c709648c18ea2aa5c9 | 628 | py | Python | ramda/ap.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 1 | 2022-03-14T07:35:13.000Z | 2022-03-14T07:35:13.000Z | ramda/ap.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 3 | 2022-03-24T02:30:18.000Z | 2022-03-31T07:46:04.000Z | ramda/ap.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | null | null | null | from .map import map
from .private._concat import _concat
from .private._curry2 import _curry2
from .private._helper import getAttribute
from .private._isFunction import _isFunction
from .private._reduce import _reduce
ap = _curry2(inner_ap)
| 31.4 | 73 | 0.75 |
cfcf8fa839b41138218284459309129182c2a00f | 3,964 | py | Python | scripts/client/set-override.py | JeffersonLab/jaws | 59c135d686c1d2be716f7a413e971a8bdf9f5f6a | [
"MIT"
] | 2 | 2022-01-11T18:14:52.000Z | 2022-01-11T22:38:54.000Z | scripts/client/set-override.py | JeffersonLab/jaws | 59c135d686c1d2be716f7a413e971a8bdf9f5f6a | [
"MIT"
] | 23 | 2021-03-15T11:46:14.000Z | 2022-03-15T21:38:24.000Z | scripts/client/set-override.py | JeffersonLab/jaws | 59c135d686c1d2be716f7a413e971a8bdf9f5f6a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import pwd
import types
import click
import time
from confluent_kafka import SerializingProducer
from confluent_kafka.schema_registry import SchemaRegistryClient
from jlab_jaws.avro.entities import AlarmOverrideUnion, LatchedOverride, FilteredOverride, MaskedOverride, \
DisabledO... | 36.703704 | 134 | 0.71115 |
cfd103c655e14bd5cf358f126c6fa0c152f8b798 | 1,894 | py | Python | toxaway/views/contract/__init__.py | cmickeyb/toxaway | dbc3391bfafac8464b191e6e5228ab56258f02fb | [
"Apache-2.0"
] | null | null | null | toxaway/views/contract/__init__.py | cmickeyb/toxaway | dbc3391bfafac8464b191e6e5228ab56258f02fb | [
"Apache-2.0"
] | null | null | null | toxaway/views/contract/__init__.py | cmickeyb/toxaway | dbc3391bfafac8464b191e6e5228ab56258f02fb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# 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, softwar... | 51.189189 | 119 | 0.716473 |