hexsha stringlengths 40 40 | size int64 2 1.05M | ext stringclasses 9
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 193 | max_stars_repo_name stringlengths 6 109 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 36.6k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 193 | max_issues_repo_name stringlengths 6 109 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 29.8k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 193 | max_forks_repo_name stringlengths 6 109 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 11.2k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 1.05M | avg_line_length float64 1 404k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79facd36141b3fd0105120ffd5e6bb6ed649e3fd | 384 | py | Python | Courses/Udacity/CS101/Lesson_1_How_to_Get_Started/08-First_Programming_Quiz/supplied/studentMain.py | leparrav/Playground | dcb90a2dd2bc1867511cfe621eb21248a60e357f | [
"Unlicense"
] | 1 | 2019-02-13T12:02:26.000Z | 2019-02-13T12:02:26.000Z | Courses/Udacity/CS101/Lesson_1_How_to_Get_Started/08-First_Programming_Quiz/supplied/studentMain.py | leparrav/Playground | dcb90a2dd2bc1867511cfe621eb21248a60e357f | [
"Unlicense"
] | 1 | 2018-08-13T15:58:33.000Z | 2018-08-13T15:58:33.000Z | Courses/Udacity/CS101/Lesson_1_How_to_Get_Started/08-First_Programming_Quiz/supplied/studentMain.py | leparrav/Playground | dcb90a2dd2bc1867511cfe621eb21248a60e357f | [
"Unlicense"
] | 2 | 2017-08-10T20:01:29.000Z | 2021-07-01T08:39:13.000Z | # This is a Python comment. Lines that begin with a '#' are ignored by the
# Python interpreter. Comments are useful for documenting code or explaining
# quiz questions!
# Write a Python program that prints out the number of minutes in seven weeks.
# Click the "Run" button below to try running your code and see the ou... | 42.666667 | 78 | 0.760417 |
79fad319dd3e2f9d7a7bacfa4f033f427927ca9f | 286 | py | Python | oscar/lib/python2.7/site-packages/pip/req/__init__.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/pip/req/__init__.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/pip/req/__init__.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from .req_install import InstallRequirement
from .req_set import RequirementSet, Requirements
from .req_file import parse_requirements
__all__ = [
"RequirementSet", "Requirements", "InstallRequirement",
"parse_requirements",
]
| 26 | 60 | 0.776224 |
79fae6618d1cba5b9bf5f1d610e62f4b79cf1256 | 4,014 | py | Python | sdk/redis/azure-mgmt-redis/azure/mgmt/redis/models/_redis_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/redis/azure-mgmt-redis/azure/mgmt/redis/models/_redis_management_client_enums.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/redis/azure-mgmt-redis/azure/mgmt/redis/models/_redis_management_client_enums.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 30.876923 | 101 | 0.673642 |
79faf3d6796f5d662cb5b63c1cad9468ee579477 | 1,439 | py | Python | processfamily/test/pipes_example_code/child.py | matthewhampton/processfamily | 6b29bfe541c7e6049841b2e1003f652cfe574fe5 | [
"Apache-2.0"
] | null | null | null | processfamily/test/pipes_example_code/child.py | matthewhampton/processfamily | 6b29bfe541c7e6049841b2e1003f652cfe574fe5 | [
"Apache-2.0"
] | null | null | null | processfamily/test/pipes_example_code/child.py | matthewhampton/processfamily | 6b29bfe541c7e6049841b2e1003f652cfe574fe5 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Administrator'
import os
import sys
import msvcrt
import win32api
import win32con
# Get file descriptor from argument
ppid = int(sys.argv[1])
pipearg = int(sys.argv[2])
pipe2arg = int(sys.argv[3])
curproc = win32api.GetCurrentProcess()
parent_process = win32api.OpenProcess(win32con.PROCESS_DUP_HANDLE,... | 31.282609 | 88 | 0.645587 |
79fb15bdc121146c971972d8cc6d57a7c81ae209 | 18,799 | py | Python | tensorflow/python/ops/tensor_array_ops.py | gnoses/TensorFlow | 63a21e054007d86269ed1ad0145ebce04ee57a81 | [
"Apache-2.0"
] | 44 | 2017-01-26T11:39:36.000Z | 2019-06-28T10:03:19.000Z | tensorflow/python/ops/tensor_array_ops.py | amineferchichi/tensorflow | 4ac9c09d5ca57a03b8daa5fb9e295947b1619854 | [
"Apache-2.0"
] | 5 | 2017-01-31T00:32:02.000Z | 2017-12-17T14:34:17.000Z | tensorflow/python/ops/tensor_array_ops.py | amineferchichi/tensorflow | 4ac9c09d5ca57a03b8daa5fb9e295947b1619854 | [
"Apache-2.0"
] | 10 | 2017-03-27T04:15:07.000Z | 2018-07-09T15:03:03.000Z | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 39.576842 | 80 | 0.66078 |
79fb4874c735a59e33424cdf677cf5390ff7c4bc | 5,974 | py | Python | asposewordscloud/models/requests/remove_range_online_request.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 14 | 2018-07-15T17:01:52.000Z | 2018-11-29T06:15:33.000Z | asposewordscloud/models/requests/remove_range_online_request.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 1 | 2018-09-28T12:59:34.000Z | 2019-10-08T08:42:59.000Z | asposewordscloud/models/requests/remove_range_online_request.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 2 | 2020-12-21T07:59:17.000Z | 2022-02-16T21:41:25.000Z | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="remove_range_online_request.py">
# Copyright (c) 2021 Aspose.Words for Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a ... | 47.792 | 170 | 0.669066 |
79fb5ca743814c6ec8cec1ca617a52845e419f45 | 629 | py | Python | bellman/agents/decision_time_planning/__init__.py | RL-Gym/bellman | 210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d | [
"Apache-2.0"
] | 40 | 2021-03-24T10:41:56.000Z | 2022-03-15T09:50:47.000Z | bellman/agents/decision_time_planning/__init__.py | RL-Gym/bellman | 210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d | [
"Apache-2.0"
] | 12 | 2021-03-25T18:36:27.000Z | 2021-07-27T11:09:34.000Z | bellman/agents/decision_time_planning/__init__.py | RL-Gym/bellman | 210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d | [
"Apache-2.0"
] | 3 | 2021-04-25T03:18:44.000Z | 2021-11-14T15:54:34.000Z | # Copyright 2021 The Bellman Contributors
#
# 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... | 39.3125 | 74 | 0.763116 |
79fb6c0559757a1a5b3243e266e1b30f8e121ea3 | 1,338 | py | Python | oscar/lib/python2.7/site-packages/django/contrib/gis/geos/prototypes/misc.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/django/contrib/gis/geos/prototypes/misc.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/django/contrib/gis/geos/prototypes/misc.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | """
This module is for the miscellaneous GEOS routines, particularly the
ones that return the area, distance, and length.
"""
from ctypes import POINTER, c_double, c_int
from django.contrib.gis.geos.libgeos import GEOM_PTR, GEOSFuncFactory
from django.contrib.gis.geos.prototypes.errcheck import check_dbl, che... | 34.307692 | 89 | 0.724215 |
79fb8617aa5ecb8a6d9d432eb49bd7bf04e6b0ee | 244 | py | Python | discretisedfield/tests/test_init.py | minrk/discretisedfield | 251584f8d976a7fafdff5402d16327489407c4dd | [
"BSD-3-Clause"
] | null | null | null | discretisedfield/tests/test_init.py | minrk/discretisedfield | 251584f8d976a7fafdff5402d16327489407c4dd | [
"BSD-3-Clause"
] | null | null | null | discretisedfield/tests/test_init.py | minrk/discretisedfield | 251584f8d976a7fafdff5402d16327489407c4dd | [
"BSD-3-Clause"
] | null | null | null | import discretisedfield as df
def test_version():
assert isinstance(df.__version__, str)
assert '.' in df.__version__
def test_dependencies():
assert isinstance(df.__dependencies__, list)
assert len(df.__dependencies__) > 0
| 20.333333 | 48 | 0.737705 |
79fb9e84828af23148544206e51212a6b7ba5d10 | 880 | py | Python | importfix/importfix.py | timothy-shields/importfix | a38b2ec925682de65c5b2d214443a186c8bbd0a2 | [
"MIT"
] | 1 | 2016-09-20T18:41:32.000Z | 2016-09-20T18:41:32.000Z | importfix/importfix.py | timothy-shields/importfix | a38b2ec925682de65c5b2d214443a186c8bbd0a2 | [
"MIT"
] | null | null | null | importfix/importfix.py | timothy-shields/importfix | a38b2ec925682de65c5b2d214443a186c8bbd0a2 | [
"MIT"
] | null | null | null | """Utilities for "fixing" Python imports."""
def fix_imports(file_path):
"""Walks up the directory hierarchy to find the appropriate path to add to PYTHONPATH.
The first directory that does not contain an __init__.py file is the chosen directory. When you call this function,
you usually pass in __file__ ... | 35.2 | 119 | 0.704545 |
79fbf1a7b0c3b553537ab4a8a00e563a30430428 | 6,135 | py | Python | demo1/demo/notify.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | 1 | 2019-02-03T08:41:52.000Z | 2019-02-03T08:41:52.000Z | demo1/demo/notify.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | null | null | null | demo1/demo/notify.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2010 Google Inc.
#
# 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, ... | 31.30102 | 77 | 0.650693 |
79fc170744fddbdc769aa480b77d86b321e9923c | 1,252 | py | Python | win32attributegetter.py | XxhavertybrianxX/PythonSingles | bb6b36458703271a100a445c5e4ce10a57b7dc87 | [
"MIT"
] | null | null | null | win32attributegetter.py | XxhavertybrianxX/PythonSingles | bb6b36458703271a100a445c5e4ce10a57b7dc87 | [
"MIT"
] | null | null | null | win32attributegetter.py | XxhavertybrianxX/PythonSingles | bb6b36458703271a100a445c5e4ce10a57b7dc87 | [
"MIT"
] | null | null | null | from inspect import getmembers
import os, os.path,time
import win32com.client as win32
excel = win32.gencache.EnsureDispatch('Excel.Application')
def print_members(obj, obj_name="placeholder_name"):
"""Print members of given COM object"""
try:
fields = list(obj._prop_map_get_.keys())
excep... | 33.837838 | 83 | 0.583866 |
79fc1a0b5a71705840f21b6e25f6f11af4179e8e | 9,898 | py | Python | doc/jupyter_execute/examples/pachyderm-simple/index.py | edshee/seldon-core | 78c10fbca16a5e2a0c25b9673aa3deb220070e26 | [
"Apache-2.0"
] | null | null | null | doc/jupyter_execute/examples/pachyderm-simple/index.py | edshee/seldon-core | 78c10fbca16a5e2a0c25b9673aa3deb220070e26 | [
"Apache-2.0"
] | null | null | null | doc/jupyter_execute/examples/pachyderm-simple/index.py | edshee/seldon-core | 78c10fbca16a5e2a0c25b9673aa3deb220070e26 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Pachyderm-Seldon Integration: Version Controlled Models
#
# [Pachyderm](https://pachyderm.io/) is a data science platform that combines Data Lineage with End-to-End Pipelines. [Seldon-Core](https://www.seldon.io/tech/products/core/) is an open-source platform for rapidly depl... | 43.603524 | 679 | 0.733987 |
79fc333a13472ecf7d468d4f3878a5d231e2f2da | 12,248 | py | Python | userbot/modules/android.py | JoanLindo/BaianoBot-backup-sexo | b3d0b0f83b6460c3279a243ab753745df1562852 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2021-11-23T16:43:44.000Z | 2021-11-23T16:43:44.000Z | userbot/modules/android.py | JoanLindo/purpled | fd95c674de3e4c0bc9eb909dddb4a65c7623fa02 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | userbot/modules/android.py | JoanLindo/purpled | fd95c674de3e4c0bc9eb909dddb4a65c7623fa02 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | # Copyright (C) 2019 The Raphielscape Company LLC.
#
# Licensed under the Raphielscape Public License, Version 1.d (the "License");
# you may not use this file except in compliance with the License.
#
""" Userbot module containing commands related to android"""
import asyncio
import json
import math
import os
import r... | 35.29683 | 96 | 0.569971 |
79fc38ca97b9d70886e6208b916750cc637670d8 | 10,421 | py | Python | test/integ/pandas/test_unit_arrow_result.py | 666Chao666/snowflake-connector-python | 81a10e522fcf19d45580c79bc066b7a4eab25485 | [
"Apache-2.0"
] | null | null | null | test/integ/pandas/test_unit_arrow_result.py | 666Chao666/snowflake-connector-python | 81a10e522fcf19d45580c79bc066b7a4eab25485 | [
"Apache-2.0"
] | 14 | 2021-01-26T06:53:10.000Z | 2022-03-14T11:16:54.000Z | test/integ/pandas/test_unit_arrow_result.py | 666Chao666/snowflake-connector-python | 81a10e522fcf19d45580c79bc066b7a4eab25485 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved.
#
import datetime
import math
import random
from io import BytesIO
import pytest
from snowflake.connector.arrow_context import ArrowConverterContext
from snowflake.connector.cursor import SnowflakeC... | 33.08254 | 116 | 0.594281 |
79fc5cff16ed22bc1225085cffb0d859e865ef05 | 5,896 | py | Python | rhucrl/policy/adversarial_policy.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2021-11-19T11:46:48.000Z | 2021-11-19T11:46:48.000Z | rhucrl/policy/adversarial_policy.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2021-11-22T07:48:03.000Z | 2021-11-22T07:48:03.000Z | rhucrl/policy/adversarial_policy.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2022-03-26T10:18:01.000Z | 2022-03-26T10:18:01.000Z | """Python Script Template."""
from abc import ABCMeta
import torch
from hucrl.policy.augmented_policy import AugmentedPolicy
from rllib.policy import AbstractPolicy, NNPolicy
class AdversarialPolicy(AbstractPolicy, metaclass=ABCMeta):
"""Given a protagonist and an antagonist policy, combine to give a joint polic... | 35.095238 | 87 | 0.650102 |
79fc79666b046e0d41b575a60456faa41bff3e8f | 564 | py | Python | iris_sdk/models/data/dlda.py | NumberAI/python-bandwidth-iris | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | [
"MIT"
] | 2 | 2020-04-13T13:47:59.000Z | 2022-02-23T20:32:41.000Z | iris_sdk/models/data/dlda.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2020-09-18T20:59:24.000Z | 2021-08-25T16:51:42.000Z | iris_sdk/models/data/dlda.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2018-12-12T14:39:50.000Z | 2020-11-17T21:42:29.000Z | #!/usr/bin/env python
from iris_sdk.models.base_resource import BaseData
from iris_sdk.models.maps.dlda import DldaMap
from iris_sdk.models.data.dlda_tn_groups import DldaTnGroups
from iris_sdk.models.data.error_list import ErrorList
class DldaData(DldaMap, BaseData):
@property
def count_of_tns(self):
... | 29.684211 | 60 | 0.751773 |
79fcec59cbf38c223d6740c4c93dfb58a76b93f7 | 1,495 | py | Python | tryalgo/left_right_inversions.py | xcarcelle/tryalgo | c159fbffbea0a4e8b70e8898c31c62c7e08a3865 | [
"MIT"
] | null | null | null | tryalgo/left_right_inversions.py | xcarcelle/tryalgo | c159fbffbea0a4e8b70e8898c31c62c7e08a3865 | [
"MIT"
] | null | null | null | tryalgo/left_right_inversions.py | xcarcelle/tryalgo | c159fbffbea0a4e8b70e8898c31c62c7e08a3865 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Left and right inversions in a table
# christoph durr - 2016-2018
# snip{
def _merge_sort(tab, tmp, rank, left, right, lo, hi):
if hi <= lo + 1: # interval is empty or singleton
return # nothing to do
mid = lo + (hi - lo) /... | 31.808511 | 90 | 0.520401 |
79fd095aa68d9e2086c20fd2faf714f874e0b181 | 539 | py | Python | code/recursion/sierpinski.py | codio-content/cs-intro-python-fundamentals | 7b59810b6fb98089d3b725a3b898a6403a32c447 | [
"MIT"
] | null | null | null | code/recursion/sierpinski.py | codio-content/cs-intro-python-fundamentals | 7b59810b6fb98089d3b725a3b898a6403a32c447 | [
"MIT"
] | null | null | null | code/recursion/sierpinski.py | codio-content/cs-intro-python-fundamentals | 7b59810b6fb98089d3b725a3b898a6403a32c447 | [
"MIT"
] | null | null | null | import turtle
t = turtle.Turtle()
t.speed(10)
def sierpinski(length, n):
if n == 1:
draw_triangle(length)
else:
sierpinski(length, n-1)
t.rt(120)
t.fd(length * 2**(n-2))
sierpinski(length, n-1)
t.lt(120)
t.fd(length * 2**(n-2))
sierpinski(lengt... | 19.962963 | 31 | 0.504638 |
79fd4a39554abc2e0d2101c3b6dd40eae8633620 | 12,906 | py | Python | alternative_wmiircs/python/pygmi/event.py | martinetd/wmii | 7f41d11da154100521d9f9c66e99df9a52a80273 | [
"MIT"
] | 2 | 2019-03-21T11:47:13.000Z | 2019-04-22T18:54:32.000Z | alternative_wmiircs/python/pygmi/event.py | martinetd/wmii | 7f41d11da154100521d9f9c66e99df9a52a80273 | [
"MIT"
] | null | null | null | alternative_wmiircs/python/pygmi/event.py | martinetd/wmii | 7f41d11da154100521d9f9c66e99df9a52a80273 | [
"MIT"
] | 1 | 2022-02-08T01:15:28.000Z | 2022-02-08T01:15:28.000Z | import os
import re
import sys
import traceback
from socket import error as SocketError
from errno import EPIPE as BROKEN_PIPE
import pygmi
from pygmi.util import prop
from pygmi import monitor, client, curry, call, program_list, _
__all__ = ('keys', 'events', 'Match')
class Match(object):
"""
A class used ... | 34.416 | 113 | 0.53572 |
79fd77de0beb908aa11747ceb2b753cd6a5a295a | 1,339 | py | Python | jenkinsapi/utils/krb_requester.py | ifwe/jenkinsapi | 31a7fbb07efcd48e226f7dcf643fd2a2625416c0 | [
"MIT"
] | 1 | 2015-01-12T14:15:59.000Z | 2015-01-12T14:15:59.000Z | jenkinsapi/utils/krb_requester.py | moustuk/jenkinsapi-1 | d18c1e669965c209093763f3295f79c9d3ccdeea | [
"MIT"
] | null | null | null | jenkinsapi/utils/krb_requester.py | moustuk/jenkinsapi-1 | d18c1e669965c209093763f3295f79c9d3ccdeea | [
"MIT"
] | null | null | null | """
Kerberos aware Requester
"""
from jenkinsapi.utils.requester import Requester
from requests_kerberos import HTTPKerberosAuth, OPTIONAL
#pylint: disable=W0222
class KrbRequester(Requester):
"""
A class which carries out HTTP requests with Kerberos/GSSAPI authentication.
"""
def __init__(self, ssl_v... | 31.880952 | 101 | 0.619119 |
79fda71eff76656ea55e9723fe5259c3d1034518 | 4,332 | py | Python | pywick/models/classification/dpn/model_factory.py | ashishpatel26/pywick | 1afffd1c21c2b188836d3599e802146182757bb5 | [
"MIT"
] | 2 | 2020-11-28T07:56:09.000Z | 2021-11-08T09:30:39.000Z | pywick/models/classification/dpn/model_factory.py | ashishpatel26/pywick | 1afffd1c21c2b188836d3599e802146182757bb5 | [
"MIT"
] | null | null | null | pywick/models/classification/dpn/model_factory.py | ashishpatel26/pywick | 1afffd1c21c2b188836d3599e802146182757bb5 | [
"MIT"
] | null | null | null | # Source: https://github.com/rwightman/pytorch-dpn-pretrained (License: Apache 2.0)
# Pretrained: Yes
import math
from .dualpath import *
from torchvision.models.resnet import resnet18, resnet34, resnet50, resnet101, resnet152
from torchvision.models.densenet import densenet121, densenet169, densenet161, densenet201
f... | 43.32 | 113 | 0.684441 |
79fdd7f7692c4475bc5c00b0db5f2bdd69b4bff3 | 663 | py | Python | manage.py | danielchriscarter/part2-django | d4adffa3280431151bb8d1c51f0be2dbffff9dd1 | [
"BSD-2-Clause"
] | null | null | null | manage.py | danielchriscarter/part2-django | d4adffa3280431151bb8d1c51f0be2dbffff9dd1 | [
"BSD-2-Clause"
] | null | null | null | manage.py | danielchriscarter/part2-django | d4adffa3280431151bb8d1c51f0be2dbffff9dd1 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'krbsite.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | 28.826087 | 73 | 0.678733 |
79fddb8d95c275dc668ad5806e144aac6b4bf767 | 532 | py | Python | src/ggrc_workflows/services/common.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-03-30T11:28:48.000Z | 2018-03-30T11:28:48.000Z | src/ggrc_workflows/services/common.py | trevordonnelly/ggrc-core | 499cf0d3cce70737b080991b12c203ec22015cea | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2018-07-06T00:04:23.000Z | 2021-02-26T21:13:20.000Z | src/ggrc_workflows/services/common.py | zidarsk8/ggrc-core | 2509c989eddf434249d3bef50c21e08dbf56c1a4 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-11-11T22:16:56.000Z | 2017-11-11T22:16:56.000Z | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
from blinker import Namespace
class Signals():
signals = Namespace()
status_change = signals.signal(
'Status Changed',
"""
This is used to signal any listeners of any changes in model ob... | 25.333333 | 78 | 0.678571 |
79fe017f33b2a9ecad167ab9fa335999bfc82167 | 7,317 | py | Python | analyse.py | alexmojaki/oeis-explorer | fa3fdb88199050c97b804ad3bb8d352efb37cbbf | [
"MIT"
] | 5 | 2021-04-28T05:38:09.000Z | 2022-03-15T08:37:20.000Z | analyse.py | alexmojaki/oeis-explorer | fa3fdb88199050c97b804ad3bb8d352efb37cbbf | [
"MIT"
] | 1 | 2021-07-21T19:20:48.000Z | 2021-07-24T14:11:09.000Z | analyse.py | alexmojaki/oeis-explorer | fa3fdb88199050c97b804ad3bb8d352efb37cbbf | [
"MIT"
] | null | null | null | import itertools
import json
import re
from collections import defaultdict, Counter
from pathlib import Path
import networkx
from parse import parse
parsed = parse()
def group_by_key_func(iterable, key_func):
"""
Create a dictionary from an iterable such that the keys are the result of evaluating a key fun... | 37.523077 | 115 | 0.562116 |
79fe3fb861f6937a2ffcc6b416786ab97e346871 | 974 | py | Python | archive/game_v2.py | Tailen/Alpha_Connect | 56128bbf996d6e95af81ab72b9e6044e2420bfa5 | [
"MIT"
] | 3 | 2018-12-03T13:17:01.000Z | 2019-01-06T13:59:17.000Z | archive/game_v2.py | Tailen/Alpha_Connect | 56128bbf996d6e95af81ab72b9e6044e2420bfa5 | [
"MIT"
] | null | null | null | archive/game_v2.py | Tailen/Alpha_Connect | 56128bbf996d6e95af81ab72b9e6044e2420bfa5 | [
"MIT"
] | null | null | null | from random import randint
# For simpler reading x is red, o is green
class game(object):
# Print msgs and errors if cout is True, players is a list of two players
def __init__(self, players, cout=True):
# (0,0) is top left corner
self.slots = [['-' for i in range(6)] for i in range(7)]
... | 32.466667 | 91 | 0.562628 |
79fe46bfd0a52a4c1a96c03566ad42316ce584b5 | 14,278 | py | Python | nova/virt/xenapi/host.py | rossella/nova | 9b1180d5a09227604a470cb9d0790b57daf1b6d7 | [
"Apache-2.0"
] | null | null | null | nova/virt/xenapi/host.py | rossella/nova | 9b1180d5a09227604a470cb9d0790b57daf1b6d7 | [
"Apache-2.0"
] | null | null | null | nova/virt/xenapi/host.py | rossella/nova | 9b1180d5a09227604a470cb9d0790b57daf1b6d7 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2012 Citrix Systems, Inc.
# Copyright 2010 OpenStack Foundation
#
# 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... | 42.748503 | 79 | 0.578582 |
79fe53176a98bb5ca0799a63c5543bcbbf3174ca | 544 | py | Python | openpype/hosts/webpublisher/plugins/publish/collect_fps.py | yosuperdope/OpenPype | 0c90df97ddb8cda291a4f66d35da58b3deb94a71 | [
"MIT"
] | 44 | 2019-03-19T04:56:35.000Z | 2021-04-23T12:05:08.000Z | openpype/hosts/webpublisher/plugins/publish/collect_fps.py | jrsndl/pype | f9d80ef2c0663921291c5f47d24bea51fc43bac7 | [
"MIT"
] | 655 | 2020-03-17T15:10:21.000Z | 2021-04-23T18:22:52.000Z | openpype/hosts/webpublisher/plugins/publish/collect_fps.py | jrsndl/pype | f9d80ef2c0663921291c5f47d24bea51fc43bac7 | [
"MIT"
] | 21 | 2019-03-19T04:56:38.000Z | 2021-04-23T09:10:59.000Z | """
Requires:
Nothing
Provides:
Instance
"""
import pyblish.api
from pprint import pformat
class CollectFPS(pyblish.api.InstancePlugin):
"""
Adds fps from context to instance because of ExtractReview
"""
label = "Collect fps"
order = pyblish.api.CollectorOrder + 0.49
hosts = ["w... | 18.758621 | 66 | 0.621324 |
79fe6cee31e0d8db93257de7377e924d60d89ad2 | 7,525 | py | Python | test/test_anlpy2.py | goroyabu/anlpy2 | 8f7ab1f794694b467a6aad90b7666bb701620d4f | [
"MIT"
] | null | null | null | test/test_anlpy2.py | goroyabu/anlpy2 | 8f7ab1f794694b467a6aad90b7666bb701620d4f | [
"MIT"
] | null | null | null | test/test_anlpy2.py | goroyabu/anlpy2 | 8f7ab1f794694b467a6aad90b7666bb701620d4f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os, time, datetime, argparse
from ROOT import gROOT, TH1D
from anlpy2.analysis_status import AnalysisStatus as stt
from anlpy2.event_flags import EventFlags as evs
from anlpy2.analysis_framework import VANLModule
from anlpy2.commandline_arguments import ArrayAction as anl_action, Argume... | 30.465587 | 119 | 0.617674 |
79fe6d3afb609c25d9f17e19d2df5f8f6e453d23 | 6,337 | py | Python | lightly/models/simsiam.py | Tekrific/lightly | 75a1d56b4cee77f68e0f3166e3a412711d0dbb2d | [
"MIT"
] | 1 | 2021-06-23T07:31:26.000Z | 2021-06-23T07:31:26.000Z | lightly/models/simsiam.py | Tekrific/lightly | 75a1d56b4cee77f68e0f3166e3a412711d0dbb2d | [
"MIT"
] | null | null | null | lightly/models/simsiam.py | Tekrific/lightly | 75a1d56b4cee77f68e0f3166e3a412711d0dbb2d | [
"MIT"
] | null | null | null | """ SimSiam Model """
# Copyright (c) 2020. Lightly AG and its affiliates.
# All Rights Reserved
import torch
import torch.nn as nn
def _prediction_mlp(in_dims: int,
h_dims: int,
out_dims: int) -> nn.Sequential:
"""Prediction MLP. The original paper's implementation has... | 32.664948 | 94 | 0.578665 |
79fe9e1e73ca23c1545d26f7d246d6754f0b3efb | 1,771 | py | Python | Polynomial.py | chapman-phys227-2016s/hw-7-ChinmaiRaman | ed985215003006e2fd011c3f83f453ad63f7c61b | [
"MIT"
] | null | null | null | Polynomial.py | chapman-phys227-2016s/hw-7-ChinmaiRaman | ed985215003006e2fd011c3f83f453ad63f7c61b | [
"MIT"
] | null | null | null | Polynomial.py | chapman-phys227-2016s/hw-7-ChinmaiRaman | ed985215003006e2fd011c3f83f453ad63f7c61b | [
"MIT"
] | null | null | null | #! /usr/bin/env python
"""
File: Polynomial
Copyright (c) 2016 Chinmai Raman
License: MIT
Course: PHYS227
Assignment: 7.27
Date: April 14th, 2016
Email: raman105@mail.chapman.edu
Name: Chinmai Raman
Description: Regular Polynomial class
"""
from __future__ import division
import matplotlib.pyplot as plt
import numpy ... | 27.246154 | 66 | 0.564088 |
79fedad3e62f0e9e3941346b7ef80e51181c19ff | 1,516 | py | Python | src/api/models/blogModel.py | 0x6f736f646f/backend-blog-application | e2f5444def814776df5754aaf56e4d1eec9336d6 | [
"MIT"
] | null | null | null | src/api/models/blogModel.py | 0x6f736f646f/backend-blog-application | e2f5444def814776df5754aaf56e4d1eec9336d6 | [
"MIT"
] | 33 | 2020-04-20T23:15:59.000Z | 2020-04-24T22:14:05.000Z | src/api/models/blogModel.py | 0x6f736f646f/backend-blog-application | e2f5444def814776df5754aaf56e4d1eec9336d6 | [
"MIT"
] | null | null | null | from api import db
import datetime
class BlogpostModel(db.Model):
"""
Blog Model
"""
__tablename__ = 'blogpost'
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(255), nullable=False)
description = db.Column(db.Text)
content = db.Column(db.Text, nullable=False)
... | 28.603774 | 79 | 0.633245 |
79fee8620d822ea750edb0c7829447fe9a4e3d1c | 770 | py | Python | B_Scan/Master Program/install.py | sriramsocrates/B_Scan | 93e37aaa24f69c73f1e28c4c6f148408ab8ec77d | [
"MIT"
] | null | null | null | B_Scan/Master Program/install.py | sriramsocrates/B_Scan | 93e37aaa24f69c73f1e28c4c6f148408ab8ec77d | [
"MIT"
] | null | null | null | B_Scan/Master Program/install.py | sriramsocrates/B_Scan | 93e37aaa24f69c73f1e28c4c6f148408ab8ec77d | [
"MIT"
] | null | null | null | import sys
import os
import pip
import time
if not os.geteuid() == 0:
sys.exit('You must Run this Script as ROOT!')
try:
os.system('apt-get install python-pip')
os.system('easy_install pip')
os.system('apt-get install nmap')
os.system('apt-get install curl')
install = os.system("apt-get update && apt-get instal... | 29.615385 | 152 | 0.680519 |
79ff027dc4480606b32c9a4542a63543925088ae | 12,205 | py | Python | testtools/content.py | elopio/testtools-textresult | 04384df526e1111834a6801d70d4c13052a4d261 | [
"MIT"
] | null | null | null | testtools/content.py | elopio/testtools-textresult | 04384df526e1111834a6801d70d4c13052a4d261 | [
"MIT"
] | null | null | null | testtools/content.py | elopio/testtools-textresult | 04384df526e1111834a6801d70d4c13052a4d261 | [
"MIT"
] | null | null | null | # Copyright (c) 2009-2012 testtools developers. See LICENSE for details.
"""Content - a MIME-like Content object."""
__all__ = [
'attach_file',
'Content',
'content_from_file',
'content_from_stream',
'text_content',
'TracebackContent',
]
import codecs
import json
import os
import sys
impor... | 37.43865 | 80 | 0.661368 |
79ff220df4845c44481ff4726309e2a00a98ed65 | 310 | py | Python | geoapps/simpegPF/EM/Utils/__init__.py | RichardScottOZ/geoapps | 5b3c1d4fd11add45992e8b2497312ac014272b69 | [
"MIT"
] | 1 | 2022-02-18T16:24:53.000Z | 2022-02-18T16:24:53.000Z | geoapps/simpegPF/EM/Utils/__init__.py | sebhmg/geoapps | 1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4 | [
"MIT"
] | null | null | null | geoapps/simpegPF/EM/Utils/__init__.py | sebhmg/geoapps | 1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4 | [
"MIT"
] | null | null | null | from .EMUtils import omega, k, VTEMFun, TriangleFun, SineFun
from .AnalyticUtils import (
MagneticDipoleFields,
MagneticDipoleVectorPotential,
MagneticLoopVectorPotential,
orientationDict,
)
from .CurrentUtils import (
getSourceTermLineCurrentPolygon,
getStraightLineCurrentIntegral,
)
| 25.833333 | 60 | 0.790323 |
79ff5fd6e97c83575ade548d07cacd1f10d313c7 | 1,955 | py | Python | tests/gpu_multi/nccl/nccl_reduce_inplace_test.py | thobauma/dace | 668e4c49e476437e1ea3b272e9dbefca2b92d2e7 | [
"BSD-3-Clause"
] | null | null | null | tests/gpu_multi/nccl/nccl_reduce_inplace_test.py | thobauma/dace | 668e4c49e476437e1ea3b272e9dbefca2b92d2e7 | [
"BSD-3-Clause"
] | null | null | null | tests/gpu_multi/nccl/nccl_reduce_inplace_test.py | thobauma/dace | 668e4c49e476437e1ea3b272e9dbefca2b92d2e7 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.
import dace
import numpy as np
import pytest
from dace.sdfg import nodes, infer_types
from dace import dtypes
import dace.libraries.nccl as nccl
from dace.config import Config
N = dace.symbol('N')
root_device = dace.symbol('root_device')
num_... | 31.031746 | 78 | 0.676726 |
79ff7c5d966eeca4d9143eade3c60ac4d676f30e | 2,337 | py | Python | alipay/aop/api/response/AlipayBossFncGfsettleprodPoamountQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayBossFncGfsettleprodPoamountQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayBossFncGfsettleprodPoamountQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
from alipay.aop.api.dom... | 40.293103 | 119 | 0.747967 |
79ff9d99a18abf4bdb8f771c321d69d4fffc48e0 | 28 | py | Python | btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/PlayerStats/NamedMonkeyPanel/named_monkey_panel.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/PlayerStats/NamedMonkeyPanel/named_monkey_panel.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/PlayerStats/NamedMonkeyPanel/named_monkey_panel.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | class NamedMonkeyPanel: pass | 28 | 28 | 0.892857 |
79ffe42d5e082d6e573d0145cb50c5e199670d9a | 1,444 | py | Python | htmlscreenshot/lib.py | MichaelCurrin/html-screenshot-py | ffcde403259863a783acd31b53bf7c0eb653ce4f | [
"MIT"
] | null | null | null | htmlscreenshot/lib.py | MichaelCurrin/html-screenshot-py | ffcde403259863a783acd31b53bf7c0eb653ce4f | [
"MIT"
] | 5 | 2021-11-02T17:33:20.000Z | 2021-12-09T10:12:44.000Z | htmlscreenshot/lib.py | MichaelCurrin/html-screenshot-py | ffcde403259863a783acd31b53bf7c0eb653ce4f | [
"MIT"
] | null | null | null | """
Lib module.
"""
import datetime
import re
from pathlib import Path
VAR_DIR = Path(__file__).parent / "var"
PDF_DIR = VAR_DIR / "pdf"
PNG_DIR = VAR_DIR / "png"
SLUG_PATTERN = re.compile(r"[\W_]+")
ADD_DATETIME_DEFAULT = False
DATETIME_FORMAT = "%Y-%m-%d--%H:%m"
def read(path_str: str) -> list[str]:
"""
... | 20.628571 | 66 | 0.617729 |
79fff651c8ecf4aae8708d0c51cb55f956857931 | 2,509 | py | Python | email_auth/migrations/0004_passwordreset.py | cdriehuys/django-simple-email-auth | 3ea1e227d7faa61692aeefe40b24c6696ea04f75 | [
"MIT"
] | 1 | 2020-06-05T23:29:24.000Z | 2020-06-05T23:29:24.000Z | email_auth/migrations/0004_passwordreset.py | cdriehuys/django-simple-email-auth | 3ea1e227d7faa61692aeefe40b24c6696ea04f75 | [
"MIT"
] | 40 | 2019-08-30T23:08:10.000Z | 2019-12-08T13:58:19.000Z | email_auth/migrations/0004_passwordreset.py | cdriehuys/django-simple-email-auth | 3ea1e227d7faa61692aeefe40b24c6696ea04f75 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2019-09-18 18:42
from django.db import migrations, models
import django.db.models.deletion
import email_auth.models
class Migration(migrations.Migration):
dependencies = [("email_auth", "0003_rm_emailaddress_normalizedaddress")]
operations = [
migrations.CreateModel(
... | 35.338028 | 87 | 0.420088 |
03001aba66f2ec0fad8b055f5daff3fb8c7c4679 | 4,080 | py | Python | tests/TestInc.py | zanachka/parsedatetime | 96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916 | [
"Apache-2.0"
] | 463 | 2015-01-05T11:10:50.000Z | 2022-03-20T03:48:29.000Z | tests/TestInc.py | zanachka/parsedatetime | 96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916 | [
"Apache-2.0"
] | 196 | 2015-01-04T15:31:06.000Z | 2022-03-24T16:57:53.000Z | tests/TestInc.py | zanachka/parsedatetime | 96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916 | [
"Apache-2.0"
] | 96 | 2015-01-19T14:38:49.000Z | 2021-12-17T14:20:21.000Z | # -*- coding: utf-8 -*-
"""
Test Calendar.Inc() routine
"""
import sys
import time
import datetime
import unittest
import parsedatetime as pdt
from parsedatetime.context import pdtContext
from . import utils
class test(unittest.TestCase):
@utils.assertEqualWithComparator
def assertExpectedRes... | 37.431193 | 77 | 0.555882 |
03006eedd8166622f7a069a41219d11085d56ab4 | 10,598 | py | Python | ranx/report.py | AmenRa/ranx | ccab1549de81e7366e34213c86089e965db55f72 | [
"MIT"
] | 21 | 2021-12-19T13:28:06.000Z | 2022-03-22T10:34:03.000Z | ranx/report.py | AmenRa/ranx | ccab1549de81e7366e34213c86089e965db55f72 | [
"MIT"
] | 11 | 2021-12-20T14:59:05.000Z | 2022-03-30T11:31:59.000Z | ranx/report.py | AmenRa/ranx | ccab1549de81e7366e34213c86089e965db55f72 | [
"MIT"
] | 3 | 2022-01-10T12:00:49.000Z | 2022-03-24T14:36:03.000Z | """`Report` stores the results of a comparison."""
import json
from typing import Dict, List, Tuple
import numpy as np
from tabulate import tabulate
from .frozenset_dict import FrozensetDict
chars = list("abcdefghijklmnopqrstuvwxyz")
super_chars = list("ᵃᵇᶜᵈᵉᶠᵍʰᶦʲᵏˡᵐⁿᵒᵖ۹ʳˢᵗᵘᵛʷˣʸᶻ")
metric_labels = {
"hits": "H... | 31.262537 | 196 | 0.485941 |
03008d6bf096f0aacf04c4ddafb094d6bc101b41 | 584 | py | Python | unifier/apps/core/migrations/0013_auto_20210730_2103.py | sosolidkk/manga-unifier | 4cca148affbb197b9284d46ef04c66d42d96c03a | [
"MIT"
] | 6 | 2021-03-25T14:55:36.000Z | 2021-05-25T15:12:41.000Z | unifier/apps/core/migrations/0013_auto_20210730_2103.py | sosolidkk/manga-unifier | 4cca148affbb197b9284d46ef04c66d42d96c03a | [
"MIT"
] | 6 | 2021-02-19T12:32:26.000Z | 2021-03-25T16:54:40.000Z | unifier/apps/core/migrations/0013_auto_20210730_2103.py | sosolidkk/manga-unifier | 4cca148affbb197b9284d46ef04c66d42d96c03a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-07-30 21:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0012_favorite'),
]
operations = [
migrations.AddField(
model_name='manga',
name='is_mature',
fie... | 24.333333 | 79 | 0.585616 |
0300c2a1052c2060a456b688496d17ad5b49b003 | 936 | py | Python | oas/python-client/test/test_universal_resource.py | NGenetzky/jatdb | 518e0cedca1b61b8a744aef5e02255d8501bf8eb | [
"MIT"
] | null | null | null | oas/python-client/test/test_universal_resource.py | NGenetzky/jatdb | 518e0cedca1b61b8a744aef5e02255d8501bf8eb | [
"MIT"
] | null | null | null | oas/python-client/test/test_universal_resource.py | NGenetzky/jatdb | 518e0cedca1b61b8a744aef5e02255d8501bf8eb | [
"MIT"
] | null | null | null | # coding: utf-8
"""
jatdb
JSON API to DB: Fetch JSON from APIs and send to a TinyDB database. # noqa: E501
OpenAPI spec version: 0.0.2
Contact: Nathan@Genetzky.us
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
impor... | 22.829268 | 90 | 0.708333 |
0300d4567a149015e8a8625990a02b4b8e2018ce | 16,241 | py | Python | Backprop/Backprop_network_maker.py | BensonRen/idlm_Ben | 0d83780232d6341575daf88792959542aef82132 | [
"MIT"
] | 3 | 2019-08-28T17:10:29.000Z | 2020-11-22T14:06:45.000Z | Backprop/Backprop_network_maker.py | PL187/idlm_Ben | 5ba93da0d9b5d9313a9ce968e3593fefd0a05fc9 | [
"MIT"
] | 1 | 2019-11-03T12:02:43.000Z | 2019-11-20T02:04:36.000Z | Backprop/Backprop_network_maker.py | PL187/idlm_Ben | 5ba93da0d9b5d9313a9ce968e3593fefd0a05fc9 | [
"MIT"
] | 2 | 2019-08-29T02:32:56.000Z | 2019-12-22T17:44:26.000Z | import os
import time
import inspect #The built-in lib of Python, inspecting the live objects
import numpy as np
import tensorflow as tf
import struct
import pandas as pd
import model_maker
import time_recorder
class BackPropCnnNetwork(object):
def __init__(self, features, labels, model_fn, batch_size,
... | 50.126543 | 132 | 0.577181 |
0300e046555c058bd6d99742e6d6b320c378f088 | 2,791 | py | Python | orcid_hub/oauth.py | mohi7solanki/NZ-ORCID-Hub | 285d0787b32e813ceee01fc8dad0ae6775a65d04 | [
"MIT"
] | null | null | null | orcid_hub/oauth.py | mohi7solanki/NZ-ORCID-Hub | 285d0787b32e813ceee01fc8dad0ae6775a65d04 | [
"MIT"
] | null | null | null | orcid_hub/oauth.py | mohi7solanki/NZ-ORCID-Hub | 285d0787b32e813ceee01fc8dad0ae6775a65d04 | [
"MIT"
] | null | null | null | """OAuth support for provider."""
from datetime import datetime, timedelta
from flask import jsonify, render_template, request
from flask_login import current_user, login_required
from . import app, oauth
from .models import Client, Grant, Token
@oauth.clientgetter
def load_client(client_id): # noqa: D103
try... | 30.010753 | 98 | 0.678968 |
0300f8b21a99d591134fa0462b123244d6622821 | 37,949 | py | Python | Bio/SearchIO/BlastIO/blast_xml.py | mikepm35/biopython | 9f2d4d8d70ec7223df35fdc3d9c4a3c018756327 | [
"BSD-3-Clause"
] | null | null | null | Bio/SearchIO/BlastIO/blast_xml.py | mikepm35/biopython | 9f2d4d8d70ec7223df35fdc3d9c4a3c018756327 | [
"BSD-3-Clause"
] | null | null | null | Bio/SearchIO/BlastIO/blast_xml.py | mikepm35/biopython | 9f2d4d8d70ec7223df35fdc3d9c4a3c018756327 | [
"BSD-3-Clause"
] | 1 | 2019-03-14T18:59:30.000Z | 2019-03-14T18:59:30.000Z | # Copyright 2012 by Wibowo Arindrarto. All rights reserved.
#
# This file is part of the Biopython distribution and governed by your
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
# Please see the LICENSE file that should have been included as part of this
# package.
"""Bio.SearchIO pars... | 39.12268 | 107 | 0.555772 |
030113a2883252e9d3bcaf6fcf98dc380ee19453 | 2,380 | py | Python | python/nano/test/inc/tf/test_keras_quantize.py | sgwhat/BigDL | 25b402666fbb26b0bc18fc8100e9a00469844778 | [
"Apache-2.0"
] | null | null | null | python/nano/test/inc/tf/test_keras_quantize.py | sgwhat/BigDL | 25b402666fbb26b0bc18fc8100e9a00469844778 | [
"Apache-2.0"
] | null | null | null | python/nano/test/inc/tf/test_keras_quantize.py | sgwhat/BigDL | 25b402666fbb26b0bc18fc8100e9a00469844778 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2016 The BigDL 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 in ... | 42.5 | 90 | 0.664286 |
0301206e74b377053ff29cea2186813b27280c80 | 9,787 | py | Python | nnef/physics/grad_minimizer.py | lahplover/nnef | dcabf31337e5849593f343e6502fe0b8dc20452e | [
"MIT"
] | 2 | 2021-04-30T06:07:49.000Z | 2021-06-30T06:47:00.000Z | nnef/physics/grad_minimizer.py | lahplover/nnef | dcabf31337e5849593f343e6502fe0b8dc20452e | [
"MIT"
] | null | null | null | nnef/physics/grad_minimizer.py | lahplover/nnef | dcabf31337e5849593f343e6502fe0b8dc20452e | [
"MIT"
] | null | null | null | import numpy as np
from tqdm import tqdm
import torch
import pandas as pd
class GradMinimizerBase():
def __init__(self, energy_fn, protein, num_steps=1000, log_interval=10):
self.energy_fn = energy_fn
self.protein = protein
self.optimizer = None
self.x_best = self.protein.coords
... | 35.460145 | 101 | 0.609073 |
0301345e11fc0304ee29d196d78db3022c07308a | 3,569 | py | Python | intersight/models/syslog_policy_ref.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/syslog_policy_ref.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | intersight/models/syslog_policy_ref.py | gumpcraca/intersight-python | 780e6703c739f329084beacbbf2ad7a6a2e59b2b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-255
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class SyslogPolicyRef(object):
"""
NOTE: This class... | 23.793333 | 77 | 0.536285 |
030134aebdf5efafc9d0f887df1c1b1916522401 | 2,829 | py | Python | collect.py | misja/huas-micropython | af3d470b96e1a98c14359fec6da8b135b6ee42f9 | [
"MIT"
] | null | null | null | collect.py | misja/huas-micropython | af3d470b96e1a98c14359fec6da8b135b6ee42f9 | [
"MIT"
] | null | null | null | collect.py | misja/huas-micropython | af3d470b96e1a98c14359fec6da8b135b6ee42f9 | [
"MIT"
] | null | null | null | import re
import shutil
import argparse
import importlib
from io import BytesIO
from pathlib import Path
from typing import Optional
from zipfile import ZipFile
from urllib.request import urlopen
DOC = "https://github.com/hlovatt/PyBoardTypeshed/archive/master.zip"
MOD = "https://github.com/Josverl/micropython-stubs/a... | 26.688679 | 84 | 0.665253 |
03013b91493cccd1498579121a56c0151aac2272 | 3,101 | py | Python | rocrate/model/preview.py | simleo/ro-crate-py | 99ebd922a072b49f91c26ff63f2d3aa2df6fe8e1 | [
"Apache-2.0"
] | null | null | null | rocrate/model/preview.py | simleo/ro-crate-py | 99ebd922a072b49f91c26ff63f2d3aa2df6fe8e1 | [
"Apache-2.0"
] | null | null | null | rocrate/model/preview.py | simleo/ro-crate-py | 99ebd922a072b49f91c26ff63f2d3aa2df6fe8e1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2019-2021 The University of Manchester, UK
# Copyright 2020-2021 Vlaams Instituut voor Biotechnologie (VIB), BE
# Copyright 2020-2021 Barcelona Supercomputing Center (BSC), ES
# Copyright 2020-2021 Center for Advanced Studies, Research and Development in Sardinia (CRS4), IT
#
# Licens... | 32.642105 | 98 | 0.611093 |
03013efcb52a6716359bef7108fb4626c53d4238 | 12,092 | py | Python | nova/tests/unit/virt/vmwareapi/test_imagecache.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 5 | 2016-04-28T16:20:38.000Z | 2021-04-25T11:19:03.000Z | nova/tests/unit/virt/vmwareapi/test_imagecache.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/virt/vmwareapi/test_imagecache.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 5 | 2020-04-08T20:24:45.000Z | 2020-10-05T19:02:13.000Z | # Copyright (c) 2014 VMware, Inc.
#
# 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 a... | 43.811594 | 79 | 0.582451 |
03015ae7412f718aed5e50913f41e186ddd2b5a7 | 704 | py | Python | src/data/create_valset.py | zaxcie/toxiccomment | 2c1ed79ccb25dd403aaa5c02dd54d4fdfd8505c9 | [
"MIT"
] | null | null | null | src/data/create_valset.py | zaxcie/toxiccomment | 2c1ed79ccb25dd403aaa5c02dd54d4fdfd8505c9 | [
"MIT"
] | 1 | 2018-02-16T18:50:03.000Z | 2018-02-16T18:50:03.000Z | src/data/create_valset.py | zaxcie/toxiccomment | 2c1ed79ccb25dd403aaa5c02dd54d4fdfd8505c9 | [
"MIT"
] | null | null | null | import pandas as pd
import random
from math import floor
def train_val_split(df, perc):
random.seed(966)
pop = int(df.shape[0])
k = floor(pop*perc)
sample = random.sample(list(range(pop)), k)
train = df[df.index.isin(sample)]
val = df[~df.index.isin(sample)]
return train, val
if __na... | 27.076923 | 114 | 0.713068 |
030173c42992df1a16f6df9cf29fa174297768de | 1,228 | py | Python | numpyro/infer/__init__.py | aleatory-science/numpyro | a395fc6c17b92d934155ecf59cc045cd9c5b03fc | [
"Apache-2.0"
] | null | null | null | numpyro/infer/__init__.py | aleatory-science/numpyro | a395fc6c17b92d934155ecf59cc045cd9c5b03fc | [
"Apache-2.0"
] | null | null | null | numpyro/infer/__init__.py | aleatory-science/numpyro | a395fc6c17b92d934155ecf59cc045cd9c5b03fc | [
"Apache-2.0"
] | 1 | 2020-11-13T15:42:16.000Z | 2020-11-13T15:42:16.000Z | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
from numpyro.infer.barker import BarkerMH
from numpyro.infer.elbo import (
ELBO,
RenyiELBO,
Trace_ELBO,
TraceGraph_ELBO,
TraceMeanField_ELBO,
)
from numpyro.infer.hmc import HMC, NUTS
from numpyro.infer.hmc_gibbs im... | 21.54386 | 70 | 0.694625 |
0301abfa9b289a945105fa361e000f84c5de9ab5 | 2,175 | py | Python | gt/procs.py | krvss/graph-talk | b420bc5b57c7dc25008428bf7c0ebfcbebd61b72 | [
"Apache-2.0"
] | null | null | null | gt/procs.py | krvss/graph-talk | b420bc5b57c7dc25008428bf7c0ebfcbebd61b72 | [
"Apache-2.0"
] | null | null | null | gt/procs.py | krvss/graph-talk | b420bc5b57c7dc25008428bf7c0ebfcbebd61b72 | [
"Apache-2.0"
] | 1 | 2018-01-11T09:23:46.000Z | 2018-01-11T09:23:46.000Z | """
.. module:: gt.procs
:platform: Unix, Windows
:synopsis: Graph-talk file processor classes
.. moduleauthor:: Stas Kravets (krvss) <stas.kravets@gmail.com>
"""
from gt.core import *
class FileProcessor(Process):
"""
File processor contains the graph and the parsing process to parse the file conten... | 28.246753 | 105 | 0.634023 |
0301b3d699e52ce60ba42ee5b3c0db5dd9772398 | 31,300 | py | Python | easy_gold/model_wrappers.py | nakayama-r/Probspace-kiva-3rd | 1fe41aa10b4dd2ec992096228a03b85b61a28a2f | [
"MIT"
] | null | null | null | easy_gold/model_wrappers.py | nakayama-r/Probspace-kiva-3rd | 1fe41aa10b4dd2ec992096228a03b85b61a28a2f | [
"MIT"
] | null | null | null | easy_gold/model_wrappers.py | nakayama-r/Probspace-kiva-3rd | 1fe41aa10b4dd2ec992096228a03b85b61a28a2f | [
"MIT"
] | null | null | null | # coding:utf-8
import os
import pathlib
import numpy as np
import pandas as pd
import lightgbm as lgb
import pytorch_lightning as pl
from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint
from pytorch_lightning.loggers import WandbLogger
from DNNmodel import *
from utils import *
... | 35.771429 | 228 | 0.565431 |
0301e0c4e3acb01ad5d36424f709d59f73dc2e4d | 19,883 | py | Python | source/job-builder/m2c2-job-builder/m2c2_greengrass_handler.py | guikcd/machine-to-cloud-connectivity-framework | 83de873d4df58224f73c6263239681fdd5246186 | [
"Apache-2.0",
"MIT"
] | null | null | null | source/job-builder/m2c2-job-builder/m2c2_greengrass_handler.py | guikcd/machine-to-cloud-connectivity-framework | 83de873d4df58224f73c6263239681fdd5246186 | [
"Apache-2.0",
"MIT"
] | null | null | null | source/job-builder/m2c2-job-builder/m2c2_greengrass_handler.py | guikcd/machine-to-cloud-connectivity-framework | 83de873d4df58224f73c6263239681fdd5246186 | [
"Apache-2.0",
"MIT"
] | null | null | null | ## Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
## SPDX-License-Identifier: Apache-2.0
import boto3
import logging
import os
import json
import time
import m2c2_protocol_converter as builder
import m2c2_utils as utils
import m2c2_globals as var
import m2c2_post_handler as post
logger = l... | 51.113111 | 166 | 0.592818 |
0301f4baced9a70f7f718b69783cec1f54dde63f | 955 | py | Python | examples/tutorials/as_fast_as_lightning/programmatic/simple/main.py | lorenzosteccanella/machin | 9d3ce87dbed820b5019211b0690b54613084d9e4 | [
"MIT"
] | 287 | 2020-06-13T05:19:50.000Z | 2022-03-31T04:46:32.000Z | examples/tutorials/as_fast_as_lightning/programmatic/simple/main.py | lorenzosteccanella/machin | 9d3ce87dbed820b5019211b0690b54613084d9e4 | [
"MIT"
] | 19 | 2020-08-19T05:33:45.000Z | 2022-03-27T15:16:03.000Z | examples/tutorials/as_fast_as_lightning/programmatic/simple/main.py | lorenzosteccanella/machin | 9d3ce87dbed820b5019211b0690b54613084d9e4 | [
"MIT"
] | 44 | 2020-07-06T00:41:44.000Z | 2022-03-29T17:05:08.000Z | from machin.auto.config import (
generate_algorithm_config,
generate_env_config,
generate_training_config,
launch,
)
import torch as t
import torch.nn as nn
class SomeQNet(nn.Module):
def __init__(self, state_dim, action_num):
super().__init__()
self.fc1 = nn.Linear(state_dim, 16... | 27.285714 | 84 | 0.653403 |
030229140aaacdcb6e648c6dc787ce0db1e72293 | 5,691 | py | Python | deeplearning/ml4pl/graphs/llvm2graph/node_encoder.py | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | 1 | 2020-07-14T12:17:45.000Z | 2020-07-14T12:17:45.000Z | deeplearning/ml4pl/graphs/llvm2graph/node_encoder.py | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | null | null | null | deeplearning/ml4pl/graphs/llvm2graph/node_encoder.py | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 the ProGraML authors.
#
# Contact Chris Cummins <chrisc.101@gmail.com>.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0... | 35.792453 | 97 | 0.706378 |
03023e2e2c74862c6bd35150e02efbf03d177ca0 | 4,408 | py | Python | couchapp/dispatch.py | weijia/couchapp | 83a1b5c0754f9c205179f4c7d6b0f95e9632ae77 | [
"Apache-2.0"
] | 224 | 2015-01-03T13:35:56.000Z | 2022-02-13T14:27:17.000Z | couchapp/dispatch.py | weijia/couchapp | 83a1b5c0754f9c205179f4c7d6b0f95e9632ae77 | [
"Apache-2.0"
] | 79 | 2015-03-11T15:28:00.000Z | 2022-02-17T13:53:46.000Z | couchapp/dispatch.py | weijia/couchapp | 83a1b5c0754f9c205179f4c7d6b0f95e9632ae77 | [
"Apache-2.0"
] | 56 | 2015-01-03T13:37:22.000Z | 2022-01-11T08:33:38.000Z | # -*- coding: utf-8 -*-
#
# This file is part of couchapp released under the Apache 2 license.
# See the NOTICE for more information.
import logging
import getopt
import sys
import couchapp.commands as commands
from couchapp.errors import AppError, CommandLineError
from couchapp.config import Config
logger = logging... | 25.627907 | 72 | 0.592559 |
0302a19a8c23e6318b57c04ea4ce2e943a245a51 | 161 | py | Python | bookr/filter_demo/urls.py | paxcodes/bookr | 185e2ec71da53ef8816edd90a76cc71e40b41e24 | [
"MIT"
] | null | null | null | bookr/filter_demo/urls.py | paxcodes/bookr | 185e2ec71da53ef8816edd90a76cc71e40b41e24 | [
"MIT"
] | null | null | null | bookr/filter_demo/urls.py | paxcodes/bookr | 185e2ec71da53ef8816edd90a76cc71e40b41e24 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('greet', views.greeting, name='greeting'),
]
| 20.125 | 51 | 0.664596 |
0302a6fd429093615a9a8a606b391efbcb896461 | 5,630 | py | Python | web_app.py | jireh-father/tacotron2 | f9f5ddf867d2381f4dbf286766bb346fbaceeccf | [
"BSD-3-Clause"
] | null | null | null | web_app.py | jireh-father/tacotron2 | f9f5ddf867d2381f4dbf286766bb346fbaceeccf | [
"BSD-3-Clause"
] | null | null | null | web_app.py | jireh-father/tacotron2 | f9f5ddf867d2381f4dbf286766bb346fbaceeccf | [
"BSD-3-Clause"
] | null | null | null | import sys
sys.path.append('waveglow/')
# import glow
from flask import Flask, render_template, redirect, url_for, request, send_from_directory
import numpy as np
import os
from pydub import AudioSegment
from hparams import create_hparams
from train import load_model
import torch
from denoiser import Denoiser
from text... | 38.040541 | 122 | 0.708526 |
0302ceefc12ae08d64e9822b6d9b0388b892410f | 12,781 | py | Python | sdk/search/azure-search-documents/azure/search/documents/_generated/models/_search_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/search/azure-search-documents/azure/search/documents/_generated/models/_search_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/search/azure-search-documents/azure/search/documents/_generated/models/_search_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 42.603333 | 102 | 0.678116 |
0302d4d773d684f583f341989bec825083ca5b46 | 15,156 | py | Python | airflow/cli/commands/task_command.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | 1 | 2021-03-03T07:00:02.000Z | 2021-03-03T07:00:02.000Z | airflow/cli/commands/task_command.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | 36 | 2021-11-26T00:08:49.000Z | 2021-11-26T00:09:33.000Z | airflow/cli/commands/task_command.py | kevin0120/airflow | fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd | [
"Apache-2.0"
] | 3 | 2020-06-30T02:38:17.000Z | 2022-01-19T06:14:08.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 33.236842 | 107 | 0.662774 |
0302d8c3152caa1c5c3fe280da7774b11e3500d3 | 25,692 | py | Python | joulescope/datafile.py | tadodotcom/pyjoulescope | ab9645a2774cf5d5355dee4c1e60a566419b0e00 | [
"Apache-2.0"
] | 29 | 2018-12-19T22:42:09.000Z | 2022-01-31T12:26:52.000Z | joulescope/datafile.py | tadodotcom/pyjoulescope | ab9645a2774cf5d5355dee4c1e60a566419b0e00 | [
"Apache-2.0"
] | 23 | 2019-07-21T23:44:46.000Z | 2022-03-11T13:29:11.000Z | joulescope/datafile.py | tadodotcom/pyjoulescope | ab9645a2774cf5d5355dee4c1e60a566419b0e00 | [
"Apache-2.0"
] | 9 | 2019-07-22T00:07:53.000Z | 2021-11-26T11:46:19.000Z | # Copyright 2018 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
#
# Unless required by applicable law or agreed to in writing,... | 36.390935 | 115 | 0.63802 |
0302f0cff532b4c70938a900bb85ea81d86238ee | 32,151 | py | Python | cgatpipelines/tools/pipeline_docs/pipeline_motifs/trackers/Motifs.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 49 | 2015-04-13T16:49:25.000Z | 2022-03-29T10:29:14.000Z | cgatpipelines/tools/pipeline_docs/pipeline_motifs/trackers/Motifs.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 252 | 2015-04-08T13:23:34.000Z | 2019-03-18T21:51:29.000Z | cgatpipelines/tools/pipeline_docs/pipeline_motifs/trackers/Motifs.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 22 | 2015-05-21T00:37:52.000Z | 2019-09-25T05:04:27.000Z | import os
import re
import math
import numpy
import numpy.ma
import xml.etree.ElementTree
from IntervalReport import *
##########################################################################
##########################################################################
#################################################... | 35.291987 | 163 | 0.53059 |
0302f43167c38f4fb7fa10ece19b566c78448a7e | 712 | py | Python | cgatpipelines/tools/pipeline_docs/pipeline_rrbs/server.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 49 | 2015-04-13T16:49:25.000Z | 2022-03-29T10:29:14.000Z | cgatpipelines/tools/pipeline_docs/pipeline_rrbs/server.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 252 | 2015-04-08T13:23:34.000Z | 2019-03-18T21:51:29.000Z | cgatpipelines/tools/pipeline_docs/pipeline_rrbs/server.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 22 | 2015-05-21T00:37:52.000Z | 2019-09-25T05:04:27.000Z | #!/bin/env python
import web
from SphinxReport import Cache
from SphinxReport import DataTree
urls = ( '/data/(.*)', 'DataTable',
'/index/(.*)', 'Index' )
# expose zip within templates
global_vars = {'zip': zip }
render = web.template.render('templates/', globals = global_vars)
app = web.application(url... | 20.941176 | 69 | 0.654494 |
0302f680beedc8f69cdc7ebb7d990fd0ee8a9bc7 | 12,659 | py | Python | scripts/common.py | NxtGames/p3d-discord | 3b141ca7199fb48dc8f1b1c727256354a1134f7e | [
"MIT"
] | 2 | 2022-02-18T01:17:07.000Z | 2022-02-21T13:15:44.000Z | scripts/common.py | NxtStudios/p3d-discord | 3b141ca7199fb48dc8f1b1c727256354a1134f7e | [
"MIT"
] | null | null | null | scripts/common.py | NxtStudios/p3d-discord | 3b141ca7199fb48dc8f1b1c727256354a1134f7e | [
"MIT"
] | null | null | null | """
Common functions for the build system
"""
from __future__ import print_function
import locale
import sys
import subprocess
import platform
from os.path import dirname, realpath, join, isdir, isfile
from os import makedirs
from sys import argv, stdout, stderr, exit
from panda3d.core import PandaSystem, Filename... | 33.489418 | 115 | 0.661111 |
03030468e9003e01c1d4095dba4ed4c64d9d5205 | 50,018 | py | Python | src/pykeen/nn/modules.py | Rodrigo-A-Pereira/pykeen | 76c5acb707faa524b5951b0d1d85ab1afe806462 | [
"MIT"
] | null | null | null | src/pykeen/nn/modules.py | Rodrigo-A-Pereira/pykeen | 76c5acb707faa524b5951b0d1d85ab1afe806462 | [
"MIT"
] | null | null | null | src/pykeen/nn/modules.py | Rodrigo-A-Pereira/pykeen | 76c5acb707faa524b5951b0d1d85ab1afe806462 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Stateful interaction functions."""
from __future__ import annotations
import itertools as itt
import logging
import math
from abc import ABC, abstractmethod
from typing import Any, Callable, Generic, Mapping, MutableMapping, Optional, Sequence, Set, Tuple, Union, cast
import torch
from cl... | 35.248767 | 119 | 0.645128 |
03031be11f94da7a895b2d87fdd50aa40c8125a4 | 123 | py | Python | geoq/agents/apps.py | kaydoh/geoq | 6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0 | [
"MIT"
] | 471 | 2015-01-05T15:16:26.000Z | 2022-03-28T05:06:11.000Z | geoq/agents/apps.py | kaydoh/geoq | 6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0 | [
"MIT"
] | 109 | 2015-01-06T20:00:58.000Z | 2022-03-11T23:17:53.000Z | geoq/agents/apps.py | kaydoh/geoq | 6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0 | [
"MIT"
] | 100 | 2015-01-05T15:16:39.000Z | 2021-12-01T12:13:13.000Z | from django.apps import AppConfig
class AgentsConfig(AppConfig):
name = 'geoq.agents'
verbose_name = 'GeoQ Agents' | 24.6 | 33 | 0.739837 |
0303364605e885375bbb794885b36d66dd9fc3d5 | 1,909 | py | Python | example/titanic/Select.py | ranchlin/Feature-Selection | e0d015ea25623889bc0fbdd2015b894bae86ca79 | [
"MIT"
] | 596 | 2018-04-23T04:17:14.000Z | 2022-03-28T15:56:53.000Z | example/titanic/Select.py | luobaozhu/Feature-Selection | 42523625187e59866eb827f6bc84e31f9272995c | [
"MIT"
] | 15 | 2018-04-24T02:41:41.000Z | 2020-06-29T07:03:26.000Z | example/titanic/Select.py | luobaozhu/Feature-Selection | 42523625187e59866eb827f6bc84e31f9272995c | [
"MIT"
] | 201 | 2018-04-23T04:31:07.000Z | 2022-03-28T02:44:33.000Z | from sklearn.linear_model import LogisticRegression
from MLFeatureSelection import sequence_selection as ss
from sklearn.metrics import log_loss
import pandas as pd
import numpy as np
from sklearn.model_selection import KFold
def prepareData():
df = pd.read_csv('clean_train.csv')
Title = list(np.unique(df.Titl... | 30.301587 | 148 | 0.666317 |
0303ba3a39c2b7c6d8aa41a2357cc02eac282912 | 7,848 | py | Python | natear.py | EastonLee/PyPunchP2P | 1560a624979a26df0248ab5ff4468a05a6613b05 | [
"MIT"
] | null | null | null | natear.py | EastonLee/PyPunchP2P | 1560a624979a26df0248ab5ff4468a05a6613b05 | [
"MIT"
] | null | null | null | natear.py | EastonLee/PyPunchP2P | 1560a624979a26df0248ab5ff4468a05a6613b05 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding:utf-8
#2015-8-22, because i can't find stable and fast relay server ( or i will need to
#buy a vps for myself ), so i pause this project
#todo: -relay server-
# | |
#socks5 - client1 client2 - socks5 relay
#ok todo todo ok
... | 39.24 | 110 | 0.576707 |
03041d253f77ea31e0c2ea07af381713495ea3b0 | 1,093 | py | Python | validate_ip.py | tomwisniewskiprv/Python_networking | 6584aaa94630eb4afdcceacaa0563cc68b21fc2b | [
"MIT"
] | null | null | null | validate_ip.py | tomwisniewskiprv/Python_networking | 6584aaa94630eb4afdcceacaa0563cc68b21fc2b | [
"MIT"
] | null | null | null | validate_ip.py | tomwisniewskiprv/Python_networking | 6584aaa94630eb4afdcceacaa0563cc68b21fc2b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Python 3.6
# Python_networking | ip_validation
# 07.07.2017 Tomasz Wisniewski
import re
import unittest
def validate_ip(ip):
"""
IP address validation,
:return 1 if IP is correct , else returns 0
"""
ipregex = re.compile(
"^([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4... | 26.02381 | 219 | 0.556267 |
03042dfc2d99cce6214213cd70fdde1f8f3e6c53 | 327 | py | Python | formtools_addons/__init__.py | hpe95/django-formtools-addons | 057062293a0d49aa8010e23b4f7fc6c0fee0f7b8 | [
"BSD-3-Clause"
] | null | null | null | formtools_addons/__init__.py | hpe95/django-formtools-addons | 057062293a0d49aa8010e23b4f7fc6c0fee0f7b8 | [
"BSD-3-Clause"
] | null | null | null | formtools_addons/__init__.py | hpe95/django-formtools-addons | 057062293a0d49aa8010e23b4f7fc6c0fee0f7b8 | [
"BSD-3-Clause"
] | null | null | null | __version__ = '0.2.2'
from .wizard.views.multipleformwizard import (
SessionMultipleFormWizardView, CookieMultipleFormWizardView,
NamedUrlSessionMultipleFormWizardView, NamedUrlCookieMultipleFormWizardView,
MultipleFormWizardView, NamedUrlMultipleFormWizardView)
from .wizard.views.wizardapi import WizardA... | 36.333333 | 80 | 0.850153 |
03044198a804945cf592aa3a53b643c121c0c5f3 | 15,829 | py | Python | brim/service.py | gholt/python-brim | d21bc19fde9f8b8dfb5fdfb8ad6585494e4821c1 | [
"Apache-2.0"
] | null | null | null | brim/service.py | gholt/python-brim | d21bc19fde9f8b8dfb5fdfb8ad6585494e4821c1 | [
"Apache-2.0"
] | null | null | null | brim/service.py | gholt/python-brim | d21bc19fde9f8b8dfb5fdfb8ad6585494e4821c1 | [
"Apache-2.0"
] | null | null | null | """Provides functions useful for background services."""
"""Copyright and License.
Copyright 2012-2014 Gregory Holt
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/license... | 36.983645 | 79 | 0.6164 |
030450a1e71ad85b3ab542cc537a2aea48b9aa6f | 6,755 | py | Python | tests/test_main.py | Met48/diff-highlight-tokens | 198c1903f76b4cdc7eda91cdd1c8f9195b40d23d | [
"MIT"
] | 2 | 2016-03-09T20:30:39.000Z | 2016-08-19T23:20:32.000Z | tests/test_main.py | Met48/diff-highlight-tokens | 198c1903f76b4cdc7eda91cdd1c8f9195b40d23d | [
"MIT"
] | 12 | 2016-03-09T17:07:40.000Z | 2016-09-04T05:54:51.000Z | tests/test_main.py | Met48/diff-highlight-tokens | 198c1903f76b4cdc7eda91cdd1c8f9195b40d23d | [
"MIT"
] | null | null | null | from diff_highlighter.constants import (
FORMAT_ADD,
FORMAT_INVERT,
FORMAT_REMOVE,
FORMAT_RESET,
FORMAT_RESET_INVERT,
)
from diff_highlighter.main import main
def check(input_lines, expected_lines):
input_lines = [
line.format(
add=FORMAT_ADD,
remove=FORMAT_REMO... | 26.912351 | 102 | 0.495633 |
030486e49f63c56c92beef254f6fa8772a161b77 | 35,349 | py | Python | synapse/tests/test_lib_types.py | larrycameron80/synapse | 24bf21c40b4a467e5dc28c8204aecaf502d5cddf | [
"Apache-2.0"
] | null | null | null | synapse/tests/test_lib_types.py | larrycameron80/synapse | 24bf21c40b4a467e5dc28c8204aecaf502d5cddf | [
"Apache-2.0"
] | null | null | null | synapse/tests/test_lib_types.py | larrycameron80/synapse | 24bf21c40b4a467e5dc28c8204aecaf502d5cddf | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
import base64
import synapse.cores.common as s_cores_common
import synapse.common as s_common
import synapse.lib.types as s_types
from synapse.tests.common import *
class DataTypesTest(SynTest):
def test_datatype_basics(self):
tlib = s_types.TypeLib()
self.true(tlib.isDat... | 47.576043 | 120 | 0.594642 |
0304a6bb6f83d260d8745a8aedc5c32e7e2680ff | 571 | py | Python | 02-basic-openCV-and-computerVision/010_grayscale.py | megatran/selflearning_openCV_ComputerVision | 9977c72451e5db6d581621f9bba6475020df493b | [
"MIT"
] | 3 | 2016-12-22T01:41:12.000Z | 2018-04-03T14:26:16.000Z | 02-basic-openCV-and-computerVision/010_grayscale.py | megatran/selflearning_openCV_ComputerVision | 9977c72451e5db6d581621f9bba6475020df493b | [
"MIT"
] | null | null | null | 02-basic-openCV-and-computerVision/010_grayscale.py | megatran/selflearning_openCV_ComputerVision | 9977c72451e5db6d581621f9bba6475020df493b | [
"MIT"
] | null | null | null | import cv2
#load input image
source_input = "/Users/nhant/Google Drive/OnlineLearning/selflearning_CV_with_Python/practice_sources/images/input.jpg"
image = cv2.imread(source_input)
cv2.imshow('Original', image)
cv2.waitKey()
#use cvtColor to convert to grayscale
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
... | 24.826087 | 119 | 0.793345 |
0304a813fed8181468d9c00c11c0b4282f4cd408 | 4,984 | py | Python | thundra/wrappers/wrapper_utils.py | thundra-io/thundra-agent-python | 448e18c17d8730c381b2e2a773782cf80c5a7cfb | [
"Apache-2.0"
] | 15 | 2021-07-28T08:03:50.000Z | 2021-11-08T08:36:06.000Z | thundra/wrappers/wrapper_utils.py | thundra-io/thundra-agent-python | 448e18c17d8730c381b2e2a773782cf80c5a7cfb | [
"Apache-2.0"
] | 1 | 2021-08-08T07:45:45.000Z | 2021-08-08T12:41:36.000Z | thundra/wrappers/wrapper_utils.py | thundra-io/thundra-agent-python | 448e18c17d8730c381b2e2a773782cf80c5a7cfb | [
"Apache-2.0"
] | 3 | 2021-08-07T14:19:23.000Z | 2021-12-08T15:35:40.000Z | import time
import uuid
from thundra import constants
from thundra.config import config_names
from thundra.config.config_provider import ConfigProvider
from thundra.context.execution_context import ExecutionContext
from thundra.plugins.invocation import invocation_trace_support
from thundra.plugins.invocation.invocati... | 39.872 | 100 | 0.750401 |
0304a8771e9d59706bb76a90dfeab924b7a0381d | 3,330 | py | Python | snmp_collector/read_conf/read_configuration.py | agn-7/snmp-collector | 5d06b2380d89e338a5d3cce949dc9e8f857ae4d0 | [
"MIT"
] | 6 | 2022-01-31T10:13:54.000Z | 2022-02-19T18:48:47.000Z | snmp_collector/read_conf/read_configuration.py | agn-7/snmp-collector | 5d06b2380d89e338a5d3cce949dc9e8f857ae4d0 | [
"MIT"
] | 1 | 2022-02-21T07:06:51.000Z | 2022-02-21T07:06:51.000Z | snmp_collector/read_conf/read_configuration.py | agn-7/snmp-collector | 5d06b2380d89e338a5d3cce949dc9e8f857ae4d0 | [
"MIT"
] | 1 | 2020-08-08T09:20:43.000Z | 2020-08-08T09:20:43.000Z | import json
import os
from pprint import pprint
from pysnmp.hlapi.asyncio import *
from colored_print import ColoredPrint
try:
from snmp_collector.utility.utility import MWT
except:
from utility.utility import MWT
log = ColoredPrint()
__author__ = "aGn"
__copyright__ = "Copyright 2018, Planet Earth"
def f... | 27.983193 | 97 | 0.611411 |
0304c26e2d3dd1c33f6d7bee5dbaba9d5959a494 | 49 | py | Python | Tests/Bugs/boulton/r_boulton1_t.py | jwilk/Pyrex | 83dfbae1261788933472e3f9c501ad74c61a37c5 | [
"Apache-2.0"
] | 5 | 2019-05-26T20:48:36.000Z | 2021-07-09T01:38:38.000Z | Tests/Bugs/boulton/r_boulton1_t.py | jwilk/Pyrex | 83dfbae1261788933472e3f9c501ad74c61a37c5 | [
"Apache-2.0"
] | null | null | null | Tests/Bugs/boulton/r_boulton1_t.py | jwilk/Pyrex | 83dfbae1261788933472e3f9c501ad74c61a37c5 | [
"Apache-2.0"
] | 1 | 2022-02-10T07:14:58.000Z | 2022-02-10T07:14:58.000Z | from r_boulton1 import Spam
s = Spam()
del s[42]
| 12.25 | 27 | 0.714286 |
0304ee66ad2c85efef6dd0d699393fb050cd9bb6 | 1,054 | py | Python | setup.py | rsprouse/bokeh_phon | 1fcc319c43f8f39317727cba06ada86315f1362e | [
"BSD-3-Clause"
] | null | null | null | setup.py | rsprouse/bokeh_phon | 1fcc319c43f8f39317727cba06ada86315f1362e | [
"BSD-3-Clause"
] | null | null | null | setup.py | rsprouse/bokeh_phon | 1fcc319c43f8f39317727cba06ada86315f1362e | [
"BSD-3-Clause"
] | null | null | null | import sys
from shutil import copy
from setuptools import find_packages, setup
import versioneer
# We want to have the license at the top level of the GitHub repo, but setup
# can't include it from there, so copy it to the package directory first thing
copy('LICENSE', 'bokeh_phon/')
# State our runtime deps here, al... | 28.486486 | 78 | 0.70778 |
030519854148f332b196b82047b2548bacbcbbd4 | 47,141 | py | Python | src/sardana/taurus/core/tango/sardana/macroserver.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 43 | 2016-11-25T15:21:23.000Z | 2021-08-20T06:09:40.000Z | src/sardana/taurus/core/tango/sardana/macroserver.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 1,263 | 2016-11-25T15:58:37.000Z | 2021-11-02T22:23:47.000Z | src/sardana/taurus/core/tango/sardana/macroserver.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 58 | 2016-11-21T11:33:55.000Z | 2021-09-01T06:21:21.000Z | #!/usr/bin/env python
##############################################################################
##
# This file is part of Sardana
##
# http://www.sardana-controls.org/
##
# Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain
##
# Sardana is free software: you can redistribute it and/or modify
# it under th... | 36.178818 | 79 | 0.591608 |
03054be40eff5d0c7b1c526ae0cef0f1e81fe0fc | 172 | py | Python | test/integration/test_lookup_syntax.py | donerancl/sedre | ad87ea8db7508ffce0060e4aca3eb176fda9e329 | [
"MIT"
] | null | null | null | test/integration/test_lookup_syntax.py | donerancl/sedre | ad87ea8db7508ffce0060e4aca3eb176fda9e329 | [
"MIT"
] | 1 | 2020-03-21T00:10:49.000Z | 2020-03-21T00:10:49.000Z | test/integration/test_lookup_syntax.py | donerancl/sedre | ad87ea8db7508ffce0060e4aca3eb176fda9e329 | [
"MIT"
] | 1 | 2020-03-25T14:34:49.000Z | 2020-03-25T14:34:49.000Z | def func():
try:
import sedre
result = True
except NameError:
result = False
return result
def test_answer():
assert func() == True | 17.2 | 25 | 0.563953 |
03054e4d95bf8e854a4b60d7e6c2af89e3ea1ec0 | 133 | py | Python | cmsc_210/examples/lecture_20/cheeseshop/catalog/admin.py | mazelife/cmsc-210 | dbaa1604ef49bcfe5a70e09c17fbd243a8b80220 | [
"MIT"
] | null | null | null | cmsc_210/examples/lecture_20/cheeseshop/catalog/admin.py | mazelife/cmsc-210 | dbaa1604ef49bcfe5a70e09c17fbd243a8b80220 | [
"MIT"
] | 5 | 2022-01-16T23:30:12.000Z | 2022-01-30T23:03:21.000Z | cmsc_210/examples/lecture_20/cheeseshop/catalog/admin.py | mazelife/cmsc-210 | dbaa1604ef49bcfe5a70e09c17fbd243a8b80220 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Cheese
@admin.register(Cheese)
class CheeseAdmin(admin.ModelAdmin):
pass
| 14.777778 | 36 | 0.781955 |
03054ee2fbcc0b02fcf607155d57ef3068bab269 | 98 | py | Python | survae/nn/blocks/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 262 | 2020-07-05T20:57:44.000Z | 2022-03-28T02:24:43.000Z | survae/nn/blocks/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 17 | 2020-08-15T05:43:34.000Z | 2022-01-31T12:24:21.000Z | survae/nn/blocks/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 35 | 2020-08-24T06:55:37.000Z | 2022-02-11T05:17:58.000Z | from .denseblock import DenseLayer, DenseBlock, ResidualDenseBlock
from .autoregressive import *
| 24.5 | 66 | 0.836735 |
0305b2e30e6413ceb5e11478d3e3d71c868acb39 | 17,328 | py | Python | src/design_of_experiments.py | 2010019970909/design_of_experiments | 72030c2916f938637c86302b311eab25dd52cbe3 | [
"MIT"
] | null | null | null | src/design_of_experiments.py | 2010019970909/design_of_experiments | 72030c2916f938637c86302b311eab25dd52cbe3 | [
"MIT"
] | null | null | null | src/design_of_experiments.py | 2010019970909/design_of_experiments | 72030c2916f938637c86302b311eab25dd52cbe3 | [
"MIT"
] | null | null | null | """
The aim of this script is to automate some process in
the Design of experiments (DoE) workflow.
"""
__author__ = "Vincent STRAGIER"
# Maths modules
from itertools import permutations, combinations
from scipy.special import erfinv
import numpy as np
# Plotting module
import matplotlib.pyplot as plt
def gen_desig... | 26.495413 | 262 | 0.595395 |
0305b4575e4c56df71b192151351dfccf93db3c3 | 1,829 | py | Python | label_loader.py | psi9730/naver_ai_hackathon_speech | b0739bc93a4d1abddd0b90ef194aa36dec418611 | [
"Apache-2.0"
] | 9 | 2019-11-05T06:26:42.000Z | 2020-12-03T05:49:12.000Z | label_loader.py | psi9730/naver_ai_hackathon_speech | b0739bc93a4d1abddd0b90ef194aa36dec418611 | [
"Apache-2.0"
] | null | null | null | label_loader.py | psi9730/naver_ai_hackathon_speech | b0739bc93a4d1abddd0b90ef194aa36dec418611 | [
"Apache-2.0"
] | 4 | 2019-11-05T05:57:58.000Z | 2021-12-11T12:32:03.000Z | """
Copyright 2019-present NAVER Corp.
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, so... | 27.712121 | 72 | 0.602515 |
0305c77b294efea69d5e177caa943cb1e0e42b1b | 49,950 | py | Python | tofu/data/_DataCollection_class.py | WinstonLHS/tofu | c95b2eb6aedcf4bac5676752b9635b78f31af6ca | [
"MIT"
] | 56 | 2017-07-09T10:29:45.000Z | 2022-03-31T02:44:50.000Z | tofu/data/_DataCollection_class.py | WinstonLHS/tofu | c95b2eb6aedcf4bac5676752b9635b78f31af6ca | [
"MIT"
] | 522 | 2017-07-02T21:06:07.000Z | 2022-03-02T08:07:57.000Z | tofu/data/_DataCollection_class.py | Didou09/tofu | 4a4e1f058bab8e7556ed9d518f90807cec605476 | [
"MIT"
] | 9 | 2017-07-02T20:38:53.000Z | 2021-12-04T00:12:30.000Z | # -*- coding: utf-8 -*-
# Built-in
import sys
import os
# import itertools as itt
import copy
import warnings
from abc import ABCMeta, abstractmethod
import inspect
# Common
import numpy as np
import scipy.interpolate as scpinterp
# import matplotlib.pyplot as plt
# from matplotlib.tri import Triangulation as mplTr... | 32.477243 | 79 | 0.493774 |
0305d82c8f57f94f4681f138416ca0de70ba60ed | 882 | py | Python | setup.py | hsuaz/ferrox | ac89b698e6c12c57c7a3128b6a25a3dc100bfc15 | [
"MIT"
] | 3 | 2017-01-03T20:55:16.000Z | 2022-03-01T15:21:53.000Z | setup.py | hsuaz/ferrox | ac89b698e6c12c57c7a3128b6a25a3dc100bfc15 | [
"MIT"
] | null | null | null | setup.py | hsuaz/ferrox | ac89b698e6c12c57c7a3128b6a25a3dc100bfc15 | [
"MIT"
] | 4 | 2017-01-03T20:48:09.000Z | 2022-03-01T15:21:58.000Z | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='ferrox',
version="",
#description='',
#author='',
#author_email='',
#url='',
install_requires=["... | 27.5625 | 72 | 0.613379 |
0305ee0e88027149e5f6ee2a4a69e9d1afa7aed6 | 36,800 | py | Python | sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_11_01/aio/operations/_disaster_recovery_configs_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_11_01/aio/operations/_disaster_recovery_configs_operations.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_11_01/aio/operations/_disaster_recovery_configs_operations.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 51.468531 | 262 | 0.676386 |
0305fd39c63c3798d7108d079074858de704f59e | 1,743 | py | Python | Boosting and CNN/CNN/viz_features.py | QinganZhao/Introduction-to-Machine-Learning | 57edb519aaff3851e94c1917c9556180e0bb281a | [
"MIT"
] | 1 | 2019-01-08T02:53:51.000Z | 2019-01-08T02:53:51.000Z | Boosting and CNN/CNN/viz_features.py | QinganZhao/Machine-Learning | 57edb519aaff3851e94c1917c9556180e0bb281a | [
"MIT"
] | null | null | null | Boosting and CNN/CNN/viz_features.py | QinganZhao/Machine-Learning | 57edb519aaff3851e94c1917c9556180e0bb281a | [
"MIT"
] | null | null | null | from sklearn.metrics import confusion_matrix
import matplotlib.pyplot as plt
import random
import cv2
import IPython
import numpy as np
class Viz_Feat(object):
def __init__(self,val_data,train_data, class_labels,sess):
self.val_data = val_data
self.train_data = train_data
self.CLASS_LA... | 24.208333 | 129 | 0.574297 |
0306284ee8eb8453712b02cfeb9675456d4ecb8e | 26,562 | bzl | Python | public.bzl | ale-adobe/skia | 4036cb1f0b6e275009ff08681e878cde0763c3e9 | [
"BSD-3-Clause"
] | null | null | null | public.bzl | ale-adobe/skia | 4036cb1f0b6e275009ff08681e878cde0763c3e9 | [
"BSD-3-Clause"
] | null | null | null | public.bzl | ale-adobe/skia | 4036cb1f0b6e275009ff08681e878cde0763c3e9 | [
"BSD-3-Clause"
] | null | null | null | ################################################################################
# Skylark macros
################################################################################
is_bazel = not hasattr(native, "genmpm")
def portable_select(select_dict, bazel_condition, default_condition):
"""Replaces select() wit... | 30.08154 | 95 | 0.497365 |
03062bb7c7b97aabb361fcdee093a6124d037a64 | 18,156 | py | Python | gmt_extensions/grid.py | mjziebarth/gmt-python-extensions | a6a42b0d2ae123117c780d4ce3f93563ad3ad4d8 | [
"BSD-3-Clause"
] | 2 | 2020-07-23T23:09:36.000Z | 2021-09-22T07:12:32.000Z | gmt_extensions/grid.py | mjziebarth/gmt-python-extensions | a6a42b0d2ae123117c780d4ce3f93563ad3ad4d8 | [
"BSD-3-Clause"
] | null | null | null | gmt_extensions/grid.py | mjziebarth/gmt-python-extensions | a6a42b0d2ae123117c780d4ce3f93563ad3ad4d8 | [
"BSD-3-Clause"
] | null | null | null | # A grid class.
#from scipy.interpolate import SmoothSphereBivariateSpline
from scipy.interpolate import LinearNDInterpolator,NearestNDInterpolator
from tempfile import NamedTemporaryFile
import numpy as np
import gmt
from os import remove
from shutil import copyfile
from math import gcd
def same_shape(array1, array2)... | 31.24957 | 85 | 0.63764 |
0306475245d6919527cd983ac19cd4b145efd484 | 7,701 | py | Python | tests/test_level4/test_lang.py | stefanor/soupsieve | 7fa3846c9fac4735f8ec444a7ed3baa355e59f34 | [
"MIT"
] | null | null | null | tests/test_level4/test_lang.py | stefanor/soupsieve | 7fa3846c9fac4735f8ec444a7ed3baa355e59f34 | [
"MIT"
] | null | null | null | tests/test_level4/test_lang.py | stefanor/soupsieve | 7fa3846c9fac4735f8ec444a7ed3baa355e59f34 | [
"MIT"
] | null | null | null | """Test language selectors."""
from __future__ import unicode_literals
from .. import util
class TestLang(util.TestCase):
"""Test language selectors."""
MARKUP = """
<div lang="de-DE">
<p id="1"></p>
</div>
<div lang="de-DE-1996">
<p id="2"></p>
</div>
<div lang="de-Latn-D... | 24.447619 | 110 | 0.429944 |
03066914c7055f98d623698922b2036e36d568e0 | 2,866 | py | Python | require_license/tests/test_storage.py | collab-project/django-require-license | 27c9ec2e79014d5b55cad56745fd4da1601de5e7 | [
"MIT"
] | 2 | 2015-04-01T00:04:01.000Z | 2016-07-13T13:00:35.000Z | require_license/tests/test_storage.py | collab-project/django-require-license | 27c9ec2e79014d5b55cad56745fd4da1601de5e7 | [
"MIT"
] | 2 | 2017-04-10T19:53:23.000Z | 2019-07-09T21:26:06.000Z | require_license/tests/test_storage.py | collab-project/django-require-license | 27c9ec2e79014d5b55cad56745fd4da1601de5e7 | [
"MIT"
] | 4 | 2016-05-25T09:40:32.000Z | 2022-03-07T07:02:01.000Z | # Copyright Collab 2013-2016
# See LICENSE for details.
"""
Tests for the :py:mod:`require_license.storage` module.
"""
from __future__ import unicode_literals
import os
import codecs
from datetime import datetime, date
from django.conf import settings
from django.test import TestCase
from django.core.management im... | 33.717647 | 78 | 0.575366 |
030680cde08d9fea1845d3e3e410e7e4b61c576b | 5,821 | py | Python | cryptoxlib/clients/eterbase/EterbaseWebsocket.py | PetrZufan/cryptoxlib-aio | 8fbb817ee7a7a88693804e24877863370d1d53c7 | [
"MIT"
] | 90 | 2020-04-09T18:34:49.000Z | 2022-03-09T14:29:32.000Z | cryptoxlib/clients/eterbase/EterbaseWebsocket.py | PetrZufan/cryptoxlib-aio | 8fbb817ee7a7a88693804e24877863370d1d53c7 | [
"MIT"
] | 44 | 2020-04-03T17:02:20.000Z | 2022-01-29T14:51:51.000Z | cryptoxlib/clients/eterbase/EterbaseWebsocket.py | PetrZufan/cryptoxlib-aio | 8fbb817ee7a7a88693804e24877863370d1d53c7 | [
"MIT"
] | 28 | 2020-04-25T21:34:53.000Z | 2022-03-31T07:20:07.000Z | import json
import logging
import datetime
import hmac
import hashlib
from typing import List, Any
from cryptoxlib.WebsocketMgr import Subscription, WebsocketMgr, WebsocketMessage, Websocket, CallbacksType
from cryptoxlib.clients.eterbase.exceptions import EterbaseException
LOG = logging.getLogger(__name__)
class E... | 34.241176 | 106 | 0.638378 |
03068710a5fcd6c06c62e513a9f71329d14ca2e3 | 4,347 | py | Python | dags/bigquery_run_query_dag.py | danieldjewell/starthinker | 3327d5874f01d7563603b8a82c1ecd6615b9768d | [
"Apache-2.0"
] | 1 | 2020-12-04T17:13:35.000Z | 2020-12-04T17:13:35.000Z | dags/bigquery_run_query_dag.py | hgrias/starthinker | b9ed33e23b4ffd72565a31ebb8a8041d346bfca2 | [
"Apache-2.0"
] | null | null | null | dags/bigquery_run_query_dag.py | hgrias/starthinker | b9ed33e23b4ffd72565a31ebb8a8041d346bfca2 | [
"Apache-2.0"
] | null | null | null | ###########################################################################
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/l... | 32.931818 | 145 | 0.573499 |
0306898949de95224cc713c398dcfdc86cd52707 | 4,649 | py | Python | kenbot/linechat.py | kalipsal/line-bot-sdk-python | c935bdb35c9abc4a4ae41fea25f173791a877f39 | [
"Apache-2.0"
] | null | null | null | kenbot/linechat.py | kalipsal/line-bot-sdk-python | c935bdb35c9abc4a4ae41fea25f173791a877f39 | [
"Apache-2.0"
] | null | null | null | kenbot/linechat.py | kalipsal/line-bot-sdk-python | c935bdb35c9abc4a4ae41fea25f173791a877f39 | [
"Apache-2.0"
] | null | null | null | import sys
import os
import inspect
import json
import logging
from asyncio import Queue, CancelledError
from sanic import Sanic, Blueprint, response
from sanic.request import Request
from typing import Text, List, Dict, Any, Optional, Callable, Iterable, Awaitable
from rasa.core.channels.channel import UserMessage, In... | 33.934307 | 94 | 0.632179 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.