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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f2b9b881e8f73f67cedd4bd5a979546da0d9dcab | 988 | py | Python | textembedding/__init__.py | Hanscal/textembedding | 0076a7a67e1c0e0b3ebc4bbbfa9dcdcfbf16c4c7 | [
"MIT"
] | 1 | 2021-05-26T09:42:37.000Z | 2021-05-26T09:42:37.000Z | textembedding/__init__.py | Hanscal/textembedding | 0076a7a67e1c0e0b3ebc4bbbfa9dcdcfbf16c4c7 | [
"MIT"
] | null | null | null | textembedding/__init__.py | Hanscal/textembedding | 0076a7a67e1c0e0b3ebc4bbbfa9dcdcfbf16c4c7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2021/2/26 12:07
@Author : hcai
@Email : hua.cai@unidt.com
"""
import textembedding.get_embedding
import textembedding.load_model
name = "textbedding"
# wv model
#
#
# | 29.058824 | 122 | 0.765182 |
f2ba3f6c4a26d42ba28e90efe9fded89ad4b027a | 385 | py | Python | Importing_&_Managing_Financial_Data/Importing_financial_data_from_the_web/Visualize_a_stock_price_trend.py | RKiddle/python_finance | 7c0ed2998c0f82a0998ba0cb06225453ba8ee3fe | [
"MIT"
] | 1 | 2021-04-28T01:26:38.000Z | 2021-04-28T01:26:38.000Z | Importing_&_Managing_Financial_Data/Importing_financial_data_from_the_web/Visualize_a_stock_price_trend.py | RKiddle/python_finance | 7c0ed2998c0f82a0998ba0cb06225453ba8ee3fe | [
"MIT"
] | null | null | null | Importing_&_Managing_Financial_Data/Importing_financial_data_from_the_web/Visualize_a_stock_price_trend.py | RKiddle/python_finance | 7c0ed2998c0f82a0998ba0cb06225453ba8ee3fe | [
"MIT"
] | null | null | null | # Import matplotlib.pyplot
import matplotlib.pyplot as plt
# Set start and end dates
start = date(2016, 1, 1)
end = date(2016, 12, 31)
# Set the ticker and data_source
ticker = 'FB'
data_source = 'google'
# Import the data using DataReader
stock_prices = DataReader(ticker, data_source, start, end)
# Plot Close
stoc... | 19.25 | 58 | 0.735065 |
f2bbbde7ac14cbda28bc8fe761c19a1e71889708 | 2,808 | py | Python | pfrock/cli/config_parser.py | knightliao/pfrock | 33587f11caeeccc11d0b8219b4e02df153905486 | [
"Apache-2.0"
] | 62 | 2016-02-24T10:47:17.000Z | 2019-04-27T01:36:56.000Z | pfrock/cli/config_parser.py | knightliao/pfrock | 33587f11caeeccc11d0b8219b4e02df153905486 | [
"Apache-2.0"
] | 1 | 2019-04-19T12:13:21.000Z | 2021-08-10T09:16:09.000Z | pfrock/cli/config_parser.py | knightliao/pfrock | 33587f11caeeccc11d0b8219b4e02df153905486 | [
"Apache-2.0"
] | 24 | 2016-03-01T14:59:29.000Z | 2019-09-02T08:12:00.000Z | # !/usr/bin/env python
# coding=utf8
import json
import traceback
from tornado.web import RequestHandler
from pfrock.cli import logger
from pfrock.core.constants import PFROCK_CONFIG_SERVER, PFROCK_CONFIG_ROUTER, PFROCK_CONFIG_PORT, ROUTER_METHOD, \
ROUTER_PATH, ROUTER_OPTIONS, ROUTER_HANDLER
from pfrock.core.lib... | 33.428571 | 114 | 0.649217 |
f2bdc8d9084d26a302efcbe7ca92780a65ffbfe3 | 3,722 | py | Python | src/resnet/resnetv2_3stage_gaussian.py | googleinterns/out-of-distribution | 84a2d5af59462f0943f629f742090b485ed50e61 | [
"Apache-2.0"
] | null | null | null | src/resnet/resnetv2_3stage_gaussian.py | googleinterns/out-of-distribution | 84a2d5af59462f0943f629f742090b485ed50e61 | [
"Apache-2.0"
] | null | null | null | src/resnet/resnetv2_3stage_gaussian.py | googleinterns/out-of-distribution | 84a2d5af59462f0943f629f742090b485ed50e61 | [
"Apache-2.0"
] | null | null | null | from typing import List, Union
import torch
from torch import nn
from torch.nn import functional as F
from src.modules.max_mahalanobis import MaxMahalanobis, GaussianResult
from src.modules.normalize import Normalize
from src.resnet.bottleneck_block_v2s3 import create_bottleneck_stage_v2s3
from src.resnet.shared impo... | 35.113208 | 109 | 0.671682 |
f2c0ef753b4cd8675d6db691f0d1c053e49d0236 | 504 | py | Python | assignments/Exercise_Lecture73_Phumeth.P.py | ZnoKunG/PythonProject | 388b5dfeb0161aee66094e7b2ecc2d6ed13588bd | [
"MIT"
] | null | null | null | assignments/Exercise_Lecture73_Phumeth.P.py | ZnoKunG/PythonProject | 388b5dfeb0161aee66094e7b2ecc2d6ed13588bd | [
"MIT"
] | null | null | null | assignments/Exercise_Lecture73_Phumeth.P.py | ZnoKunG/PythonProject | 388b5dfeb0161aee66094e7b2ecc2d6ed13588bd | [
"MIT"
] | null | null | null | systemMenu = {"": 35, "": 45, "": 55, "": 20}
menuList = []
while True:
menuName = input("Please Enter Menu :")
if(menuName.lower() == "exit"):
break
else:
menuList.append([menuName, systemMenu[menuName]])
showBill() | 28 | 70 | 0.613095 |
f2c15988d8527886dc69eb42d21e16810aed3ba2 | 2,229 | py | Python | FetchTextFromRISE.py | RISE-MPIWG/hylg | 7d49e7aed0623d9730d5c8933030954fa8f729b0 | [
"MIT"
] | 1 | 2020-05-30T02:29:36.000Z | 2020-05-30T02:29:36.000Z | FetchTextFromRISE.py | RISE-MPIWG/hylg | 7d49e7aed0623d9730d5c8933030954fa8f729b0 | [
"MIT"
] | null | null | null | FetchTextFromRISE.py | RISE-MPIWG/hylg | 7d49e7aed0623d9730d5c8933030954fa8f729b0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import requests
import os
# 6000 is a large number to make sure we get all the components of a collection. Please do note that RISE also has a pagination feature,
# which can be implemented by clients if they wish.
per_page = 6000
# getting the list of collections that the user has access to:
... | 39.803571 | 139 | 0.682369 |
f2c28b1aa80b1c46d32c2a27e47aa2e4dc3f68c8 | 612 | py | Python | ipfinder.py | robertas64/realGrowIp | bc1f1f4cf30eaa4091a6f81907a39eb8d3b66990 | [
"MIT"
] | 1 | 2022-03-09T23:21:18.000Z | 2022-03-09T23:21:18.000Z | ipfinder.py | njartemis/realGrowIp | bc1f1f4cf30eaa4091a6f81907a39eb8d3b66990 | [
"MIT"
] | null | null | null | ipfinder.py | njartemis/realGrowIp | bc1f1f4cf30eaa4091a6f81907a39eb8d3b66990 | [
"MIT"
] | 1 | 2021-04-16T16:11:24.000Z | 2021-04-16T16:11:24.000Z | # ___ ___ ___ _ _
# |_ _| _ \___| __(_)_ _ __| |___ _ _
# | || _/___| _|| | ' \/ _` / -_) '_|
# |___|_| |_| |_|_||_\__,_\___|_|
# Made by Robertas64
#Importing the module
import os
from time import *
banner = """
___ ___ ___ _ _
|_ _| _ \___| __(_)_ _ __| |_... | 22.666667 | 40 | 0.47549 |
f2c4872a061796a24a75f519586680551cd85468 | 348 | py | Python | data.py | alantess/DDQN-BTC | 0fff185200dd1c16088dc322cbb7790b848c1e6d | [
"MIT"
] | 2 | 2021-01-12T08:59:54.000Z | 2022-02-07T23:41:49.000Z | data.py | alantess/DDQN-BTC | 0fff185200dd1c16088dc322cbb7790b848c1e6d | [
"MIT"
] | null | null | null | data.py | alantess/DDQN-BTC | 0fff185200dd1c16088dc322cbb7790b848c1e6d | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
| 23.2 | 55 | 0.666667 |
f2c664d27fab22d77e93ebebd90d26fccfda0d77 | 4,715 | py | Python | main.py | lucaswerner90/upc_dl_project_2021 | c02061da0e25a0b24a9b742074b87ac30f36586d | [
"MIT"
] | 2 | 2021-07-15T12:30:43.000Z | 2021-11-04T07:50:16.000Z | main.py | lucaswerner90/upc_dl_project_2021 | c02061da0e25a0b24a9b742074b87ac30f36586d | [
"MIT"
] | 30 | 2021-05-03T07:37:37.000Z | 2021-07-01T18:53:23.000Z | main.py | lucaswerner90/upc_dl_project_2021 | c02061da0e25a0b24a9b742074b87ac30f36586d | [
"MIT"
] | 1 | 2021-06-21T11:12:32.000Z | 2021-06-21T11:12:32.000Z | import argparse
import os
import torch
import torch.nn as nn
import torch.optim as optim
import argparse
from torch.utils.data import DataLoader
from torchvision import transforms
from dataset.main import Flickr8kDataset
from dataset.caps_collate import CapsCollate
from dataset.download import DownloadDataset
from mode... | 45.336538 | 196 | 0.759915 |
f2c78a6895c6f2bb08f5bc34684b1ca6a132fd79 | 2,050 | py | Python | tests/FasterSubsetSumTests/test_randomizedBase.py | joakiti/Benchmark-SubsetSums | a875b5adf7f800d26b73516452904031c73ec29d | [
"MIT"
] | null | null | null | tests/FasterSubsetSumTests/test_randomizedBase.py | joakiti/Benchmark-SubsetSums | a875b5adf7f800d26b73516452904031c73ec29d | [
"MIT"
] | null | null | null | tests/FasterSubsetSumTests/test_randomizedBase.py | joakiti/Benchmark-SubsetSums | a875b5adf7f800d26b73516452904031c73ec29d | [
"MIT"
] | null | null | null | import unittest
from unittest import TestCase
from Implementations.FastIntegersFromGit import FastIntegersFromGit
from Implementations.helpers.Helper import ListToPolynomial, toNumbers
from Implementations.FasterSubsetSum.RandomizedBase import NearLinearBase
from benchmarks.test_distributions import Distributions as d... | 38.679245 | 112 | 0.661463 |
f2ca33e35faaa3a6ab066c758e3c492f242feea7 | 633 | py | Python | lesson_3_set.py | pis2pis2/pis2pis2 | a8ab83d89bbeaa2b4a6a2be684ae5b7513472a7f | [
"MIT"
] | null | null | null | lesson_3_set.py | pis2pis2/pis2pis2 | a8ab83d89bbeaa2b4a6a2be684ae5b7513472a7f | [
"MIT"
] | null | null | null | lesson_3_set.py | pis2pis2/pis2pis2 | a8ab83d89bbeaa2b4a6a2be684ae5b7513472a7f | [
"MIT"
] | 4 | 2019-11-12T06:59:35.000Z | 2021-01-29T21:34:15.000Z | # (set)------------------------
#------------------------------------------
#
temp_set = {1,2,3}
print(type(temp_set), temp_set)
temp_list = [1,2,1,2,2,3,4,12,32]
temp_set = set(temp_list)
print(type(temp_set), temp_set)
#
print(100 in temp_set)
for element in temp_set:
print(element)
# ... | 20.419355 | 52 | 0.598736 |
f2ca9fdc60f3ee0343b7c18df16ab40ecebc987e | 4,744 | py | Python | web/fabric_utils/deploy.py | kbarnes3/guidcoin | c9011a00f18bbd181a538a553950dbc0e8c1a05e | [
"BSD-2-Clause"
] | null | null | null | web/fabric_utils/deploy.py | kbarnes3/guidcoin | c9011a00f18bbd181a538a553950dbc0e8c1a05e | [
"BSD-2-Clause"
] | null | null | null | web/fabric_utils/deploy.py | kbarnes3/guidcoin | c9011a00f18bbd181a538a553950dbc0e8c1a05e | [
"BSD-2-Clause"
] | null | null | null | from fabric.api import cd, run, settings, sudo
configurations = {
'daily': {
'branch': 'master',
'ssl': False,
},
'dev': {
'branch': 'master',
'ssl': False,
},
'prod': {
'branch': 'prod',
'ssl': False,
},
'staging': {
'... | 35.669173 | 92 | 0.620784 |
f2cace32420ebacd10ddd9012cee72a53278a13e | 1,863 | py | Python | sorts/4.Tree_sort.py | 18-2-SKKU-OSS/2018-2-OSS-E5-- | 8bb7e4c239f5bd95f4635b442bb8b2838e76fb36 | [
"MIT"
] | 4 | 2018-12-02T14:21:02.000Z | 2019-02-28T04:15:42.000Z | sorts/4.Tree_sort.py | 18-2-SKKU-OSS/2018-2-OSS-E5 | 8bb7e4c239f5bd95f4635b442bb8b2838e76fb36 | [
"MIT"
] | 25 | 2018-11-27T10:00:05.000Z | 2018-12-11T01:58:46.000Z | sorts/4.Tree_sort.py | 18-2-SKKU-OSS/2018-2-OSS-E5-- | 8bb7e4c239f5bd95f4635b442bb8b2838e76fb36 | [
"MIT"
] | null | null | null | """
Tree Sort .
Binary Search Tree .
Binary Search Tree
.
Root .
.
.
Binary Search Tree .
"""
from __future__ import print_function
"""
Binary Search Tree
inorder inorder .
"""
if __name__ == '__main__':
try:
raw_input # Python 2
... | 28.661538 | 79 | 0.570585 |
f2cb9232d1beaf4ae9243ec51c0966d350c75625 | 446 | py | Python | rules/helpers.py | prokoptsev/rules | 436348004aa34c2e50d71960dad2076719fc433b | [
"MIT"
] | null | null | null | rules/helpers.py | prokoptsev/rules | 436348004aa34c2e50d71960dad2076719fc433b | [
"MIT"
] | 1 | 2017-02-01T08:56:08.000Z | 2017-02-01T08:56:08.000Z | rules/helpers.py | prokoptsev/rules | 436348004aa34c2e50d71960dad2076719fc433b | [
"MIT"
] | 1 | 2019-11-08T10:44:43.000Z | 2019-11-08T10:44:43.000Z | # coding: utf-8
from __future__ import unicode_literals, absolute_import
_NOTSET = type(
b"NotSet",
(object,),
{"__repr__": lambda self: "<ValueNotSet>"}
)()
| 24.777778 | 56 | 0.632287 |
4b2bca30173574ead32b90a8d29f7a356f54d612 | 3,030 | py | Python | e2e/Vectors/Generation/Consensus/Beaten.py | kayabaNerve/Currency | 260ebc20f1704f42ad6183fee39ad58ec6d07961 | [
"CC0-1.0"
] | 66 | 2019-01-14T08:39:52.000Z | 2022-01-06T11:39:15.000Z | e2e/Vectors/Generation/Consensus/Beaten.py | kayabaNerve/Currency | 260ebc20f1704f42ad6183fee39ad58ec6d07961 | [
"CC0-1.0"
] | 228 | 2019-01-16T15:42:44.000Z | 2022-02-05T07:48:07.000Z | e2e/Vectors/Generation/Consensus/Beaten.py | kayabaNerve/Currency | 260ebc20f1704f42ad6183fee39ad58ec6d07961 | [
"CC0-1.0"
] | 19 | 2019-01-14T08:53:04.000Z | 2021-11-03T20:19:28.000Z | from typing import List
import json
import e2e.Libs.Ristretto.Ristretto as Ristretto
from e2e.Libs.BLS import PrivateKey
from e2e.Classes.Transactions.Transactions import Claim, Send, Transactions
from e2e.Classes.Consensus.Verification import SignedVerification
from e2e.Classes.Consensus.VerificationPacket import V... | 29.705882 | 89 | 0.718482 |
4b2c8fbe001a03db6be5e0e2f8295d8600500dd8 | 5,105 | py | Python | main/pythonDev/TestModels/sphericalJointTest.py | eapcivil/EXUDYN | 52bddc8c258cda07e51373f68e1198b66c701d03 | [
"BSD-3-Clause-Open-MPI"
] | 1 | 2020-10-06T08:06:25.000Z | 2020-10-06T08:06:25.000Z | main/pythonDev/TestModels/sphericalJointTest.py | eapcivil/EXUDYN | 52bddc8c258cda07e51373f68e1198b66c701d03 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | main/pythonDev/TestModels/sphericalJointTest.py | eapcivil/EXUDYN | 52bddc8c258cda07e51373f68e1198b66c701d03 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# This is an EXUDYN example
#
# Details: Simulate Chain with 3D rigid bodies and SphericalJoint;
# Also test MarkerNodePosition
#
# Author: Johannes Gerstmayr
# Date: 2020-04-09
#
# Copyright:This file is part of Exudyn. Exu... | 40.84 | 181 | 0.681097 |
4b315d99b885f67bca9bd8f9e32645470a5d8448 | 1,915 | py | Python | inference/online_inference/src/app.py | made-ml-in-prod-2021/marina-zav | 7b4b6e5f333707001e36dfb014dcd36bf975d969 | [
"FTL"
] | null | null | null | inference/online_inference/src/app.py | made-ml-in-prod-2021/marina-zav | 7b4b6e5f333707001e36dfb014dcd36bf975d969 | [
"FTL"
] | null | null | null | inference/online_inference/src/app.py | made-ml-in-prod-2021/marina-zav | 7b4b6e5f333707001e36dfb014dcd36bf975d969 | [
"FTL"
] | null | null | null | import logging
import sys
import time
from typing import List, Optional
import uvicorn
from fastapi import FastAPI
from fastapi.exceptions import RequestValidationError
from fastapi.responses import PlainTextResponse
from sklearn.pipeline import Pipeline
from src.entities import (
read_app_params,
HeartDiseas... | 26.232877 | 80 | 0.769191 |
4b34659c04f2dfee8c71b653e9b765ff930cf91e | 8,040 | py | Python | serverCollector.py | VertexC/pipot-server | 0e2c9b0e34a589d9813301765ef8d2433ef67869 | [
"ISC"
] | 4 | 2019-02-11T12:43:08.000Z | 2019-03-23T06:59:38.000Z | serverCollector.py | VertexC/pipot-server | 0e2c9b0e34a589d9813301765ef8d2433ef67869 | [
"ISC"
] | 25 | 2019-02-26T17:16:58.000Z | 2019-08-19T03:36:56.000Z | serverCollector.py | VertexC/pipot-server | 0e2c9b0e34a589d9813301765ef8d2433ef67869 | [
"ISC"
] | 5 | 2019-01-15T06:32:21.000Z | 2020-01-10T11:58:43.000Z | import hashlib
import hmac
import json
import datetime
from abc import ABCMeta, abstractmethod
from twisted.internet import protocol
from mod_config.models import Rule, Actions
from mod_honeypot.models import PiPotReport, Deployment
from pipot.encryption import Encryption
from pipot.notifications import Notification... | 37.924528 | 78 | 0.486318 |
4b3702971613873f8e0d3ea487888d2084d6acd1 | 4,852 | py | Python | pyhttptest/decorators.py | NickMitin/pyhttptest | 5116caf3962dab63d62bffe94b0659f435b3e2d3 | [
"BSD-3-Clause"
] | 142 | 2019-10-22T11:19:44.000Z | 2021-11-09T11:05:27.000Z | pyhttptest/decorators.py | NickMitin/pyhttptest | 5116caf3962dab63d62bffe94b0659f435b3e2d3 | [
"BSD-3-Clause"
] | 5 | 2019-10-22T14:43:39.000Z | 2020-10-09T13:25:24.000Z | pyhttptest/decorators.py | NickMitin/pyhttptest | 5116caf3962dab63d62bffe94b0659f435b3e2d3 | [
"BSD-3-Clause"
] | 14 | 2019-10-23T18:27:58.000Z | 2020-09-22T01:07:39.000Z | from sys import modules
from functools import wraps
from jsonschema import validate
from pyhttptest.constants import (
HTTP_METHOD_NAMES,
JSON_FILE_EXTENSION,
)
from pyhttptest.exceptions import (
FileExtensionError,
HTTPMethodNotSupportedError
)
from pyhttptest.http_schemas import ( # noqa
get_s... | 31.303226 | 82 | 0.61789 |
4b37117f289d4054432d5850f0a931ebb4548e7d | 4,523 | py | Python | resources/tests/test_perf.py | HotStew/respa | 04f39efb15b4f4206a122e665f8377c7198e1f25 | [
"MIT"
] | 49 | 2015-10-21T06:25:31.000Z | 2022-03-20T07:24:20.000Z | resources/tests/test_perf.py | HotStew/respa | 04f39efb15b4f4206a122e665f8377c7198e1f25 | [
"MIT"
] | 728 | 2015-06-24T13:26:54.000Z | 2022-03-24T12:18:41.000Z | resources/tests/test_perf.py | digipointtku/respa | a529e0df4d3f072df7801adb5bf97a5f4abd1243 | [
"MIT"
] | 46 | 2015-06-26T10:52:57.000Z | 2021-12-17T09:38:25.000Z | from datetime import datetime
import arrow
import pytest
from django.conf import settings
from resources.models import Day, Period, Reservation, Resource, ResourceType, Unit
TEST_PERFORMANCE = bool(getattr(settings, "TEST_PERFORMANCE", False))
| 50.255556 | 118 | 0.676984 |
4b37de6730f4bf33d3ca155f712cb0a661d6d553 | 951 | py | Python | docker-app/qfieldcloud/core/migrations/0045_auto_20211012_2234.py | livelihoods-and-landscapes/qfieldcloud-tcs | 3075e19d89caa3090a0d2027a376336526572764 | [
"MIT"
] | 34 | 2021-06-08T12:06:24.000Z | 2022-03-07T11:45:10.000Z | docker-app/qfieldcloud/core/migrations/0045_auto_20211012_2234.py | livelihoods-and-landscapes/qfieldcloud-tcs | 3075e19d89caa3090a0d2027a376336526572764 | [
"MIT"
] | 139 | 2021-06-08T00:24:51.000Z | 2022-03-28T09:59:54.000Z | docker-app/qfieldcloud/core/migrations/0045_auto_20211012_2234.py | livelihoods-and-landscapes/qfieldcloud-tcs | 3075e19d89caa3090a0d2027a376336526572764 | [
"MIT"
] | 8 | 2021-06-11T04:18:36.000Z | 2022-02-15T20:52:58.000Z | # Generated by Django 3.2.8 on 2021-10-12 22:34
from django.db import migrations, models
| 28.818182 | 81 | 0.64143 |
4b385a13715b06d087f942d7458bcb33eb5bba5d | 74 | py | Python | src/wagtail_tag_manager/__init__.py | Tehnode/wagtail-tag-manager | 048a03fe61b57ddd1eea0377ab26cf96527f5457 | [
"BSD-3-Clause"
] | 59 | 2018-06-13T07:30:42.000Z | 2022-03-22T02:14:34.000Z | src/wagtail_tag_manager/__init__.py | Tehnode/wagtail-tag-manager | 048a03fe61b57ddd1eea0377ab26cf96527f5457 | [
"BSD-3-Clause"
] | 74 | 2018-08-09T20:52:56.000Z | 2022-03-02T08:39:30.000Z | src/wagtail_tag_manager/__init__.py | Tehnode/wagtail-tag-manager | 048a03fe61b57ddd1eea0377ab26cf96527f5457 | [
"BSD-3-Clause"
] | 23 | 2018-10-10T05:29:38.000Z | 2022-01-19T15:09:51.000Z | default_app_config = "wagtail_tag_manager.config.WagtailTagManagerConfig"
| 37 | 73 | 0.891892 |
4b3983c191ae8db18994072c0ce7b31ca01543db | 12,081 | py | Python | python/test/lib/zk/cache_test.py | cschutijser/scion | 054cef53b31a577ed224a090d6a4fd3883fd520b | [
"Apache-2.0"
] | 1 | 2018-03-18T14:46:34.000Z | 2018-03-18T14:46:34.000Z | python/test/lib/zk/cache_test.py | cschutijser/scion | 054cef53b31a577ed224a090d6a4fd3883fd520b | [
"Apache-2.0"
] | 1 | 2020-03-20T01:28:56.000Z | 2020-03-20T01:28:56.000Z | python/test/lib/zk/cache_test.py | cschutijser/scion | 054cef53b31a577ed224a090d6a4fd3883fd520b | [
"Apache-2.0"
] | 2 | 2020-03-14T16:03:27.000Z | 2020-03-18T08:13:19.000Z | # Copyright 2015 ETH Zurich
#
# 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, sof... | 36.279279 | 77 | 0.631653 |
4b3b08e4408a36e23ecf7b49e3efe15dedf8336d | 2,347 | py | Python | scripts/macro-f1-tag.py | shuoyangd/stenella | a677c67c602f2229e4452ed7f38b778897df51c0 | [
"MIT"
] | 1 | 2021-11-09T04:57:24.000Z | 2021-11-09T04:57:24.000Z | scripts/macro-f1-tag.py | shuoyangd/stenella | a677c67c602f2229e4452ed7f38b778897df51c0 | [
"MIT"
] | null | null | null | scripts/macro-f1-tag.py | shuoyangd/stenella | a677c67c602f2229e4452ed7f38b778897df51c0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2021 Shuoyang Ding <shuoyangd@gmail.com>
# Created on 2021-02-11
#
# Distributed under terms of the MIT license.
import argparse
import logging
import math
import sys
logging.basicConfig(
format='%(asctime)s %(levelname)s: %(message)s',
datefmt='%Y-%m-%d %H:%M:%S', level=log... | 27.611765 | 127 | 0.647635 |
4b3bc0d2b44d013537c672eed0453f853feeca74 | 8,865 | py | Python | Stack/Solutions_Two.py | daniel-zeiler/potential-happiness | 1c9d503a52c35dab8b031f72e63725578735ac73 | [
"MIT"
] | null | null | null | Stack/Solutions_Two.py | daniel-zeiler/potential-happiness | 1c9d503a52c35dab8b031f72e63725578735ac73 | [
"MIT"
] | null | null | null | Stack/Solutions_Two.py | daniel-zeiler/potential-happiness | 1c9d503a52c35dab8b031f72e63725578735ac73 | [
"MIT"
] | null | null | null | import collections
from typing import List
input = [1, 4, 2, 5, 3]
print(validSubarrays(input))
| 24.901685 | 77 | 0.502538 |
4b3c016c7ef444898f5da6f026c91b333cec123a | 4,684 | py | Python | scripts/pklhisto2root.py | umd-lhcb/lhcb-ntuples-gen | d306895a0dc6bad2def19ca3d7d1304a5a9be239 | [
"BSD-2-Clause"
] | null | null | null | scripts/pklhisto2root.py | umd-lhcb/lhcb-ntuples-gen | d306895a0dc6bad2def19ca3d7d1304a5a9be239 | [
"BSD-2-Clause"
] | 105 | 2018-12-20T19:09:19.000Z | 2022-03-19T09:53:06.000Z | scripts/pklhisto2root.py | umd-lhcb/lhcb-ntuples-gen | d306895a0dc6bad2def19ca3d7d1304a5a9be239 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
#
# Stolen almost verbatim from:
# https://gitlab.cern.ch/lhcb-rta/pidcalib2/-/blob/master/src/pidcalib2/pklhisto2root.py
###############################################################################
# (c) Copyright 2021 CERN for the benefit of the LHCb Collaboration #
# ... | 35.755725 | 107 | 0.604825 |
4b3d1227daae503aacdc59d3f5aff14a4ad6eda7 | 112 | py | Python | week3DataStructuren/Dictionaries/dictionary.py | hanbioinformatica/owe2a | f572866ef3bc75689d2d571cb393c6d60480655b | [
"Apache-2.0"
] | null | null | null | week3DataStructuren/Dictionaries/dictionary.py | hanbioinformatica/owe2a | f572866ef3bc75689d2d571cb393c6d60480655b | [
"Apache-2.0"
] | null | null | null | week3DataStructuren/Dictionaries/dictionary.py | hanbioinformatica/owe2a | f572866ef3bc75689d2d571cb393c6d60480655b | [
"Apache-2.0"
] | 1 | 2018-12-04T15:23:47.000Z | 2018-12-04T15:23:47.000Z | d1 = {"koe":4,"slang":0,"konijn":4,"zebra":4}
d1["koe"]
d2 = {"vis":0,"beer":4,"kip":2}
d1.update(d2)
print (d1) | 22.4 | 45 | 0.553571 |
4b3d9db6b58f7211471a5f7c96ec4eb5f14b1e04 | 958 | py | Python | backend/app/exceptions/exceptions.py | Michal-Miko/competitive-teams | 6bb55542e06121f413248ddf0b75285296b610bb | [
"MIT"
] | null | null | null | backend/app/exceptions/exceptions.py | Michal-Miko/competitive-teams | 6bb55542e06121f413248ddf0b75285296b610bb | [
"MIT"
] | null | null | null | backend/app/exceptions/exceptions.py | Michal-Miko/competitive-teams | 6bb55542e06121f413248ddf0b75285296b610bb | [
"MIT"
] | null | null | null | from app.database import crud
from fastapi import HTTPException, status
| 41.652174 | 117 | 0.775574 |
4b42581465b8edd2e244428913cc73b52bb89dd0 | 1,964 | py | Python | ASC/Teme/tema1/consumer.py | mihai-constantin/ACS | 098c99d82dad8fb5d0e909da930c72f1185a99e2 | [
"Apache-2.0"
] | null | null | null | ASC/Teme/tema1/consumer.py | mihai-constantin/ACS | 098c99d82dad8fb5d0e909da930c72f1185a99e2 | [
"Apache-2.0"
] | null | null | null | ASC/Teme/tema1/consumer.py | mihai-constantin/ACS | 098c99d82dad8fb5d0e909da930c72f1185a99e2 | [
"Apache-2.0"
] | null | null | null | """
This module represents the Consumer.
Computer Systems Architecture Course
Assignment 1
March 2020
"""
from threading import Thread
from time import sleep
| 30.215385 | 85 | 0.563646 |
4b42f8a4c4ed9dadeb6bc01da50d750be154d614 | 978 | py | Python | rnn_based/model2.py | gunkaynar/heart_anomaly | 94ea2700e2c4d79028e0448022f6857df3c35e04 | [
"MIT"
] | null | null | null | rnn_based/model2.py | gunkaynar/heart_anomaly | 94ea2700e2c4d79028e0448022f6857df3c35e04 | [
"MIT"
] | null | null | null | rnn_based/model2.py | gunkaynar/heart_anomaly | 94ea2700e2c4d79028e0448022f6857df3c35e04 | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch
import numpy as np
from torch.autograd import Variable
| 31.548387 | 98 | 0.649284 |
4b442e7411a54e834374d8e754640fa1c026849b | 791 | py | Python | src/linuxforhealth/x12/v5010/x12_834_005010X220A1/transaction_set.py | joewright/x12 | 3734589b5ffa554388174234aa7dc37c2543f46a | [
"Apache-2.0"
] | 4 | 2021-12-11T15:38:03.000Z | 2021-12-22T13:18:31.000Z | src/linuxforhealth/x12/v5010/x12_834_005010X220A1/transaction_set.py | joewright/x12 | 3734589b5ffa554388174234aa7dc37c2543f46a | [
"Apache-2.0"
] | 55 | 2021-06-12T01:11:15.000Z | 2022-02-03T19:28:32.000Z | src/linuxforhealth/x12/v5010/x12_834_005010X220A1/transaction_set.py | joewright/x12 | 3734589b5ffa554388174234aa7dc37c2543f46a | [
"Apache-2.0"
] | 3 | 2021-06-11T19:33:19.000Z | 2021-11-19T23:33:58.000Z | """
transaction_set.py
Defines the Enrollment 834 005010X220A1 transaction set model.
"""
from typing import List, Optional
from linuxforhealth.x12.models import X12SegmentGroup
from .loops import Footer, Header, Loop1000A, Loop1000B, Loop1000C, Loop2000
from pydantic import root_validator, Field
from linuxforhealt... | 27.275862 | 88 | 0.78129 |
4b44ab85799151e1020d7bb62b4190682ce5fa39 | 1,974 | py | Python | src/entities/report/actions/consult.py | LuisArmando-TestCoder/ShareGraph | fa89d37c8fe522c526b903fe25bd1e22fd769425 | [
"MIT"
] | null | null | null | src/entities/report/actions/consult.py | LuisArmando-TestCoder/ShareGraph | fa89d37c8fe522c526b903fe25bd1e22fd769425 | [
"MIT"
] | null | null | null | src/entities/report/actions/consult.py | LuisArmando-TestCoder/ShareGraph | fa89d37c8fe522c526b903fe25bd1e22fd769425 | [
"MIT"
] | null | null | null | from utilities.getStore import getStore
filePath = "./entities/bill/store.json"
productFilePath = "./entities/product/store.json"
| 28.608696 | 103 | 0.644377 |
4b44b5778d0cc6b0adc1458cef3d5591585dd53d | 1,826 | py | Python | discordbot.py | kinotan/discordpy-startup | 1505c4f78deff7f793de75985e669ee84a78a3f2 | [
"MIT"
] | null | null | null | discordbot.py | kinotan/discordpy-startup | 1505c4f78deff7f793de75985e669ee84a78a3f2 | [
"MIT"
] | null | null | null | discordbot.py | kinotan/discordpy-startup | 1505c4f78deff7f793de75985e669ee84a78a3f2 | [
"MIT"
] | null | null | null | #discord.py
from asyncio import sleep
import discord
client = discord.Client()
#BOT
# BOT
client.run("***")
| 37.265306 | 107 | 0.545455 |
4b453f03ad86e35ca9832f88f32cb3f426b3e7ef | 1,191 | py | Python | api/migrations/0002_element_pokemon.py | danielchikara/pokemon_in_hom | 5da9baa3f87e012ae0d4278668409e1668bf87a6 | [
"MIT"
] | null | null | null | api/migrations/0002_element_pokemon.py | danielchikara/pokemon_in_hom | 5da9baa3f87e012ae0d4278668409e1668bf87a6 | [
"MIT"
] | null | null | null | api/migrations/0002_element_pokemon.py | danielchikara/pokemon_in_hom | 5da9baa3f87e012ae0d4278668409e1668bf87a6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.11 on 2022-01-08 03:50
from django.db import migrations, models
import django.db.models.deletion
| 35.029412 | 146 | 0.572628 |
4b45b1a0f99a331cd3db5bcbd3c80d4d359c59e4 | 5,468 | py | Python | src/CLI/actioner/sonic-cli-ip-prefix.py | project-arlo/sonic-mgmt-framework | 562cd84ff3fec9ca705c7df621742f2daa61ce71 | [
"Apache-2.0"
] | 7 | 2019-10-17T06:12:02.000Z | 2021-09-08T11:16:19.000Z | src/CLI/actioner/sonic-cli-ip-prefix.py | noolex/sonic-mgmt-framework | 5493889adc47fc584b04dca1a0cc0a2007211df4 | [
"Apache-2.0"
] | 207 | 2019-06-24T04:48:11.000Z | 2020-05-06T05:51:37.000Z | src/CLI/actioner/sonic-cli-ip-prefix.py | noolex/sonic-mgmt-framework | 5493889adc47fc584b04dca1a0cc0a2007211df4 | [
"Apache-2.0"
] | 20 | 2019-06-27T19:24:45.000Z | 2021-07-15T21:12:30.000Z | #!/usr/bin/python
###########################################################################
#
# Copyright 2019 Dell, 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.... | 34.389937 | 285 | 0.599854 |
4b465725a6717037599028f9aa649996198118b6 | 268 | py | Python | exec-shell.py | zqsheng/snippet | cb14300fc62c616d48e6552ad93c6d33b5e8c9a1 | [
"Apache-2.0"
] | 1 | 2018-09-10T11:31:33.000Z | 2018-09-10T11:31:33.000Z | exec-shell.py | zqsheng/snippet | cb14300fc62c616d48e6552ad93c6d33b5e8c9a1 | [
"Apache-2.0"
] | null | null | null | exec-shell.py | zqsheng/snippet | cb14300fc62c616d48e6552ad93c6d33b5e8c9a1 | [
"Apache-2.0"
] | null | null | null | import os
import time
exec_count = 100
cmds = []
cmds.append("tar -cPzf /opt/web.tar.gz /opt/web/ /opt/soft")
cmds.append("rm -f /opt/web.tar.gz")
for i in range(exec_count):
for cmd in cmds:
if os.system(cmd) != 0:
break
time.sleep(1) | 24.363636 | 60 | 0.604478 |
4b489a2a948e0d5e9116987af060d05a349b77d2 | 123 | py | Python | handlers/__init__.py | IronWolf-K/nonebot_plugin_fr24 | f3752882598de54f41cd9b27456dd3b6f88971e2 | [
"MIT"
] | null | null | null | handlers/__init__.py | IronWolf-K/nonebot_plugin_fr24 | f3752882598de54f41cd9b27456dd3b6f88971e2 | [
"MIT"
] | null | null | null | handlers/__init__.py | IronWolf-K/nonebot_plugin_fr24 | f3752882598de54f41cd9b27456dd3b6f88971e2 | [
"MIT"
] | null | null | null | from .help import help_handler
from .pre import pre_handler
from .now import now_handler
from .filter import filter_handler | 30.75 | 34 | 0.845528 |
4b48a1ce648ccd7eddf1077ee9304a100d815be4 | 581 | py | Python | day6_10/day6b.py | invincible-akshay/advent_of_code2020 | 81f207c6f7218ff235c31d67e1b4659cc482297c | [
"MIT"
] | null | null | null | day6_10/day6b.py | invincible-akshay/advent_of_code2020 | 81f207c6f7218ff235c31d67e1b4659cc482297c | [
"MIT"
] | null | null | null | day6_10/day6b.py | invincible-akshay/advent_of_code2020 | 81f207c6f7218ff235c31d67e1b4659cc482297c | [
"MIT"
] | null | null | null | import utils.fileutils as futils
inp = futils.read_list("../data/day6.txt")
nums_dict = dict()
group_size, res_count = 0, 0
for line in inp:
if line == "":
# res_count += len(nums_set)
for k, v in nums_dict.items():
if v == group_size:
res_count += 1
nums_dict = ... | 25.26087 | 48 | 0.567986 |
4b48d527c36dcd783a13d6a5609545147bc8c89c | 45,165 | py | Python | platform/hwconf_data/zgm13/PythonSnippet/ExporterModel.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | null | null | null | platform/hwconf_data/zgm13/PythonSnippet/ExporterModel.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T02:36:22.000Z | 2020-08-25T02:36:22.000Z | platform/hwconf_data/zgm13/PythonSnippet/ExporterModel.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T01:56:04.000Z | 2020-08-25T01:56:04.000Z | from . import types
from . import dep
from . import RuntimeModel
from . import Metadata
def get_property(mod, property_name):
"""
Get a property model object by searching for property name
:param mod: module on which to look for the property
:param property_name: name of the property
... | 44.497537 | 179 | 0.613949 |
4b4b052054557003ef2b409b1b9f8cb5ed96012e | 48,837 | py | Python | tests/schematics_proto3_tests_pb2.py | mlga/schematics-proto3 | 588fe5bc212e203688166638a1c52dfeda931403 | [
"MIT"
] | null | null | null | tests/schematics_proto3_tests_pb2.py | mlga/schematics-proto3 | 588fe5bc212e203688166638a1c52dfeda931403 | [
"MIT"
] | 11 | 2020-04-09T13:33:54.000Z | 2020-08-19T17:38:26.000Z | tests/schematics_proto3_tests_pb2.py | mlga/schematics-proto3 | 588fe5bc212e203688166638a1c52dfeda931403 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tests/schematics_proto3_tests.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descri... | 33.750518 | 3,198 | 0.757377 |
4b4dceb98d231438a803f497f8f31de32f299051 | 241 | py | Python | sps_demo/accounts/api/serializers.py | JuanDM93/sps_django | df47c7ee63a1e99468644a6f428a6cdabc7ac6ae | [
"MIT"
] | null | null | null | sps_demo/accounts/api/serializers.py | JuanDM93/sps_django | df47c7ee63a1e99468644a6f428a6cdabc7ac6ae | [
"MIT"
] | 1 | 2021-07-27T06:46:05.000Z | 2021-07-27T06:46:05.000Z | sps_demo/accounts/api/serializers.py | JuanDM93/sps_django | df47c7ee63a1e99468644a6f428a6cdabc7ac6ae | [
"MIT"
] | null | null | null | from rest_framework.serializers import ModelSerializer
from accounts.models import Account
| 21.909091 | 54 | 0.6639 |
4b4ddf5eeb83ed879035c41d407475a7baf89592 | 6,320 | py | Python | benchmark/HIGGS/explore/contour_nll.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | 2 | 2019-03-20T09:05:02.000Z | 2019-03-20T15:23:44.000Z | benchmark/HIGGS/explore/contour_nll.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | null | null | null | benchmark/HIGGS/explore/contour_nll.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import os
import logging
import datetime
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from config impor... | 39.012346 | 125 | 0.708861 |
4b4e8e6fb685efd1c0bdeed695e0d638ddd30af1 | 1,376 | py | Python | backend/framework/qlf/dashboard/migrations/0012_auto_20180921_1717.py | desihub/qlf | a9c455f7aee41d7901c89ae90dd821c617340a86 | [
"BSD-3-Clause"
] | 8 | 2017-09-08T00:24:20.000Z | 2019-02-03T07:31:03.000Z | backend/framework/qlf/dashboard/migrations/0012_auto_20180921_1717.py | desihub/qlf | a9c455f7aee41d7901c89ae90dd821c617340a86 | [
"BSD-3-Clause"
] | 77 | 2017-06-15T21:39:09.000Z | 2019-07-13T19:41:27.000Z | backend/framework/qlf/dashboard/migrations/0012_auto_20180921_1717.py | desihub/qlf | a9c455f7aee41d7901c89ae90dd821c617340a86 | [
"BSD-3-Clause"
] | 5 | 2017-09-10T02:25:03.000Z | 2019-02-06T20:55:59.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-09-21 17:17
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
| 38.222222 | 152 | 0.635174 |
4b53328e075db009dbb8d21c3c121da0a2ce955a | 476 | py | Python | qcodes/instrument_drivers/rohde_schwarz/HMC8042.py | LGruenhaupt/Qcodes | ffb74dae53c13c4885e61b5a2df3f833d524de04 | [
"MIT"
] | 1 | 2019-12-07T01:25:49.000Z | 2019-12-07T01:25:49.000Z | qcodes/instrument_drivers/rohde_schwarz/HMC8042.py | Dominik-Vogel/Qcodes | b4cf7d58bc1bf3be97af6bf48f57cb6b87d588bb | [
"MIT"
] | 12 | 2020-10-13T16:53:37.000Z | 2020-10-14T17:16:22.000Z | qcodes/instrument_drivers/rohde_schwarz/HMC8042.py | Dominik-Vogel/Qcodes | b4cf7d58bc1bf3be97af6bf48f57cb6b87d588bb | [
"MIT"
] | 1 | 2020-05-03T22:47:40.000Z | 2020-05-03T22:47:40.000Z | from .private.HMC804x import _RohdeSchwarzHMC804x
from qcodes.utils.deprecate import deprecate_moved_to_qcd
| 39.666667 | 110 | 0.781513 |
4b5611952b114a3d2cf44eadfe8d22e693d8c643 | 682 | py | Python | python_fundamentals/Multiple_Sum_Average/index.py | justnclrk/Python | 0922961cbd94694a69ae8132a5c33baf552d8d89 | [
"MIT"
] | null | null | null | python_fundamentals/Multiple_Sum_Average/index.py | justnclrk/Python | 0922961cbd94694a69ae8132a5c33baf552d8d89 | [
"MIT"
] | 8 | 2020-06-06T01:02:06.000Z | 2022-03-12T00:24:13.000Z | python_fundamentals/Multiple_Sum_Average/index.py | justnclrk/Python | 0922961cbd94694a69ae8132a5c33baf552d8d89 | [
"MIT"
] | null | null | null | # Multiples -- Part I - Write code that prints all the odd numbers from 1 to 1000. Use the for loop and don't use a list to do this exercise
for i in range(1, 1000, 2):
print(i)
# Multiples -- Part II - Create another program that prints all the multiples of 5 from 5 to 1,000,000
for m in range(5, 1000000, 5):
... | 40.117647 | 140 | 0.64956 |
4b5646cef1fca290360a2f8a03244f3cf60a9b62 | 2,817 | py | Python | examples/gen9_valset_test.py | mgesteiro/pyubx2 | 02fd8fa2863b88ed2d746b5800717a1b6b213181 | [
"BSD-3-Clause"
] | null | null | null | examples/gen9_valset_test.py | mgesteiro/pyubx2 | 02fd8fa2863b88ed2d746b5800717a1b6b213181 | [
"BSD-3-Clause"
] | null | null | null | examples/gen9_valset_test.py | mgesteiro/pyubx2 | 02fd8fa2863b88ed2d746b5800717a1b6b213181 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
"""
Demo example to test CFG-VALSET ublox message - generation 9
@author: mgesteiro
"""
import sys
import time
from serial import Serial, SerialException, SerialTimeoutException
from pyubx2 import (
UBXMessage,
GET,
SET,
VALSET_RAM,
UBXMessageError,
UBXTypeError,
UBXP... | 28.17 | 88 | 0.606674 |
4b57edd76cfedc441b5ed69fe2a9fd78c4dbd2d2 | 3,996 | py | Python | main.py | saswatsamal/Snake-Game | 2c0f427fd6001f09d26a4586ce55453af706c355 | [
"CC0-1.0"
] | 2 | 2021-04-25T07:34:14.000Z | 2021-04-30T15:24:55.000Z | main.py | saswatsamal/Snake-Game | 2c0f427fd6001f09d26a4586ce55453af706c355 | [
"CC0-1.0"
] | null | null | null | main.py | saswatsamal/Snake-Game | 2c0f427fd6001f09d26a4586ce55453af706c355 | [
"CC0-1.0"
] | null | null | null | import pygame
import time
import sys, random
pygame.init()
yellow = (255, 255, 102)
green = (0, 255, 0)
black = (0,0,0)
width = 1280
height = 720
gameDisplay = pygame.display.set_mode((width, height))
pygame.display.set_caption('Snake Game By Saswat Samal')
clock = pygame.time.Clock()
snake_block = 10
snak... | 27.369863 | 104 | 0.56006 |
4b59cb1bcbcd0c6d58e12de2aac812a57e139151 | 918 | py | Python | SoftMax_Regression.py | chunish/tfboy-is-on-the-way | 7cd4c1f7c0c1dd94189377ee0751f2c232a1e98c | [
"Apache-2.0"
] | null | null | null | SoftMax_Regression.py | chunish/tfboy-is-on-the-way | 7cd4c1f7c0c1dd94189377ee0751f2c232a1e98c | [
"Apache-2.0"
] | null | null | null | SoftMax_Regression.py | chunish/tfboy-is-on-the-way | 7cd4c1f7c0c1dd94189377ee0751f2c232a1e98c | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot = True)
sess = tf.InteractiveSession()
x = tf.placeholder(tf.float32, [None, 784])
W = tf.Variable(tf.zeros([784, 10]))
b = tf.Variable(tf.zeros([10]))
y = tf.nn.softmax(tf.matm... | 31.655172 | 87 | 0.734205 |
4b5a4dc0a470a6b6a0219e69281685d307bd50e5 | 465 | py | Python | ltc/analyzer/migrations/0006_graphitevariable_function.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | 4 | 2016-12-30T13:26:59.000Z | 2017-04-26T12:07:36.000Z | ltc/analyzer/migrations/0006_graphitevariable_function.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | null | null | null | ltc/analyzer/migrations/0006_graphitevariable_function.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | null | null | null | # Generated by Django 2.2.20 on 2021-05-27 14:53
from django.db import migrations, models
| 24.473684 | 117 | 0.584946 |
4b5c74257ca507c7289c021413a4bdff6ed7d6a6 | 2,865 | py | Python | Python/061.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | null | null | null | Python/061.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | 1 | 2018-04-16T21:01:50.000Z | 2018-04-16T21:01:50.000Z | Python/061.py | jaimeliew1/Project_Euler_Solutions | 963c9c6d6571cade8f87341f97a6a2cd1af202bb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Solution to Project Euler problem X
Author: Jaime Liew
https://github.com/jaimeliew1/Project_Euler_Solutions
"""
import math
isPoly = [isTri, isSqr, isPent, isHex,isHept,isOct]
if __name__ == "__main__":
print(run())
| 25.131579 | 89 | 0.506806 |
4b5cbe04dec6e7c55b09522e71410c55307b8fa0 | 302 | py | Python | shop/views/shop_views.py | cuescience/cuescience-shop | bf5ea159f9277d1d6ab7acfcad3f2517723a225c | [
"MIT"
] | null | null | null | shop/views/shop_views.py | cuescience/cuescience-shop | bf5ea159f9277d1d6ab7acfcad3f2517723a225c | [
"MIT"
] | null | null | null | shop/views/shop_views.py | cuescience/cuescience-shop | bf5ea159f9277d1d6ab7acfcad3f2517723a225c | [
"MIT"
] | null | null | null | from shop.models import Product
from django.shortcuts import render_to_response
from django.template import RequestContext
| 20.133333 | 108 | 0.788079 |
4b5d16684195ca44a761cc1ab6755c005952e4d5 | 163 | py | Python | qrogue/test/statevector_tests.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | 4 | 2021-12-14T19:13:43.000Z | 2022-02-16T13:25:38.000Z | qrogue/test/statevector_tests.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | null | null | null | qrogue/test/statevector_tests.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | 1 | 2022-01-04T18:35:51.000Z | 2022-01-04T18:35:51.000Z | import numpy as np
from qrogue.game.logic.actors import StateVector
stv = StateVector([1 / np.sqrt(2), 0 + 0j, 0 + 0j, 1 / np.sqrt(2)])
#stv.extend(1)
print(stv) | 23.285714 | 67 | 0.680982 |
4b5fd841b1005516ab298b5be16fb1dd41b071b3 | 3,190 | py | Python | taehyoungram/images/views.py | TaeHyoungKwon/taehyoungram | 055c9effdaa718d60e7627196754ea6b48dded20 | [
"MIT"
] | null | null | null | taehyoungram/images/views.py | TaeHyoungKwon/taehyoungram | 055c9effdaa718d60e7627196754ea6b48dded20 | [
"MIT"
] | 7 | 2020-02-12T01:23:48.000Z | 2022-03-11T23:26:02.000Z | taehyoungram/images/views.py | TaeHyoungKwon/taehyoungram | 055c9effdaa718d60e7627196754ea6b48dded20 | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from .models import Image, Comment, Like
from .serializers import ImageSerializer, CommentSerializer, LikeSerializer
| 27.73913 | 89 | 0.626646 |
4b6108a9e3aec6079aa6d738f5836676b16bd14f | 4,195 | py | Python | examples/zoomed.py | ColmTalbot/psd-covariance-matrices | 59631dd1860e9cf28658df1ce28b10f6f8d59868 | [
"MIT"
] | null | null | null | examples/zoomed.py | ColmTalbot/psd-covariance-matrices | 59631dd1860e9cf28658df1ce28b10f6f8d59868 | [
"MIT"
] | null | null | null | examples/zoomed.py | ColmTalbot/psd-covariance-matrices | 59631dd1860e9cf28658df1ce28b10f6f8d59868 | [
"MIT"
] | 2 | 2021-07-01T02:00:10.000Z | 2021-08-02T07:29:03.000Z | #!/usr/bin/env python
"""
Compute the comparison of the analytic and experimental PSD matrices.
This will generate Figure 1.
This is probably the only example that will run in a reasonable time without
a GPU.
For more details on the method see https://arxiv.org/abs/2106.13785.
"""
import numpy as np
import matplotli... | 32.269231 | 77 | 0.695828 |
4b624ab13f54c8cfd7032b48000491920f6d9a27 | 5,581 | py | Python | web_spider/web_spider/pipelines.py | syun0216/simple_ci | 83d31cb04357fe0bd428ab8f09c2db81a06eb723 | [
"MIT"
] | null | null | null | web_spider/web_spider/pipelines.py | syun0216/simple_ci | 83d31cb04357fe0bd428ab8f09c2db81a06eb723 | [
"MIT"
] | null | null | null | web_spider/web_spider/pipelines.py | syun0216/simple_ci | 83d31cb04357fe0bd428ab8f09c2db81a06eb723 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymysql
| 52.650943 | 226 | 0.392403 |
4b63b53c7d4c16192575ee81d07d9b767d76c245 | 239 | py | Python | etl_framework/config_mixins/AddDestinationMixin.py | pantheon-ci-bot/etl-framework | 36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f | [
"MIT"
] | 2 | 2017-03-01T20:09:06.000Z | 2019-02-08T17:10:16.000Z | etl_framework/config_mixins/AddDestinationMixin.py | pantheon-ci-bot/etl-framework | 36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f | [
"MIT"
] | 40 | 2015-10-10T15:02:21.000Z | 2020-03-17T22:32:04.000Z | etl_framework/config_mixins/AddDestinationMixin.py | pantheon-ci-bot/etl-framework | 36d4c0d5c26ddd7c0bb2d2b99e3138b50a21c46f | [
"MIT"
] | 2 | 2018-11-14T21:50:58.000Z | 2022-03-07T20:59:27.000Z | """mixin to add destinations to config attributes"""
| 23.9 | 68 | 0.707113 |
4b65eb4040ecf11e53140f9d3ec6fb5084fff907 | 6,298 | py | Python | src/utilities/download_bc.py | geoschem/integrated_methane_inversion | 0615e3b76c111beadaf0d7fb5b9fa99aa782f403 | [
"MIT"
] | null | null | null | src/utilities/download_bc.py | geoschem/integrated_methane_inversion | 0615e3b76c111beadaf0d7fb5b9fa99aa782f403 | [
"MIT"
] | 3 | 2022-02-14T20:42:35.000Z | 2022-03-29T18:11:40.000Z | src/utilities/download_bc.py | geoschem/integrated_methane_inversion | 0615e3b76c111beadaf0d7fb5b9fa99aa782f403 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Description:
------------
This Python script (assumes Python3) downloads boundary conditions
files from AWS S3 to a target directory for the requested date range.
Remarks:
--------
(1) Jiawei Zhuang found that it is much faster to issue aws s3 cp
commands from a bash script than... | 30.872549 | 88 | 0.580343 |
4b675eebc011dcbf30a99943e8204d368b2ed0b9 | 216 | py | Python | backend/core/__init__.py | itimor/one-ops | f1111735de252012752dfabe11598e9690c89257 | [
"MIT"
] | 2 | 2020-09-25T05:52:55.000Z | 2021-01-14T07:06:17.000Z | backend/core/__init__.py | itimor/one-ops | f1111735de252012752dfabe11598e9690c89257 | [
"MIT"
] | 6 | 2021-03-19T10:20:05.000Z | 2021-09-22T19:30:21.000Z | backend/core/__init__.py | itimor/one-ops | f1111735de252012752dfabe11598e9690c89257 | [
"MIT"
] | 1 | 2022-02-24T01:37:06.000Z | 2022-02-24T01:37:06.000Z | from __future__ import absolute_import, unicode_literals
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
# import pymysql
#
# pymysql.install_as_MySQLdb()
| 30.857143 | 56 | 0.805556 |
4b6ab5ac671d440fac187ec117fb8831906a3c8f | 39 | tac | Python | semantics_and_generate/samples/link1.tac | AHEADer/my_decaf_compiler | 42ba9f140c5fda3cd2b4fdb727745d2cfd39c923 | [
"MIT"
] | 1 | 2018-01-03T03:35:38.000Z | 2018-01-03T03:35:38.000Z | semantics_and_generate/samples/link1.tac | AHEADer/my_decaf_compiler | 42ba9f140c5fda3cd2b4fdb727745d2cfd39c923 | [
"MIT"
] | null | null | null | semantics_and_generate/samples/link1.tac | AHEADer/my_decaf_compiler | 42ba9f140c5fda3cd2b4fdb727745d2cfd39c923 | [
"MIT"
] | null | null | null | ____notmain:
BeginFunc 0 ;
EndFunc ;
| 9.75 | 14 | 0.717949 |
4b6add180192d528e3ed133e29c757a81886beb8 | 483 | py | Python | NoteBooks/Curso de Python/Python/Paradigmas/Object Oriented Programming/Modelando Objetos_2.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | 1 | 2021-02-26T13:12:22.000Z | 2021-02-26T13:12:22.000Z | NoteBooks/Curso de Python/Python/Paradigmas/Object Oriented Programming/Modelando Objetos_2.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | null | null | null | NoteBooks/Curso de Python/Python/Paradigmas/Object Oriented Programming/Modelando Objetos_2.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | null | null | null | """
Ejercicio para operacin entre currencies
"""
""" Representacin del currency"""
# No me queda muy claro el uso de esta funcin, sirve para mostrar puntualmente qu?
# def __repr__(self):
# info = self.name
# info2 = self.symbol
# return info, info2
euro = Curency("Euro","EU","3.2")... | 17.888889 | 84 | 0.621118 |
4b6b2b2466b7f50264d915b0b9ab9925c879719e | 587 | py | Python | kora/install/blender.py | wannaphong/kora | 8a9034097d07b14094e077769c02a0b4857d179b | [
"MIT"
] | 91 | 2020-05-26T05:54:51.000Z | 2022-03-09T07:33:44.000Z | kora/install/blender.py | wannaphong/kora | 8a9034097d07b14094e077769c02a0b4857d179b | [
"MIT"
] | 12 | 2020-10-03T10:09:11.000Z | 2021-03-06T23:12:21.000Z | kora/install/blender.py | wannaphong/kora | 8a9034097d07b14094e077769c02a0b4857d179b | [
"MIT"
] | 16 | 2020-07-07T18:39:29.000Z | 2021-03-06T03:46:49.000Z | import os
from IPython import get_ipython
# need this fix first
os.environ["LD_PRELOAD"] = ""
os.system("apt remove libtcmalloc-minimal4")
os.system("apt install libtcmalloc-minimal4")
os.environ["LD_PRELOAD"] = "/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.3.0"
os.system("dpkg -L libtcmalloc-minimal4")
# then ... | 36.6875 | 86 | 0.749574 |
4b6cb29835a30f52c4bb14e8a53ca4a8d4a5cdb7 | 2,352 | py | Python | parks/models.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | parks/models.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | parks/models.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | from django.db import models
from django_countries.fields import CountryField
from localflavor.us.models import USStateField
from base.models import EONBaseModel
| 31.36 | 97 | 0.702381 |
4b6d6ef8de7836397b32a70984d9c9488bd0f64f | 3,891 | py | Python | roomfinder_dispo/roomfinder_dispo/dispo.py | GuillaumeMorini/roomfinder | d756bba6e50a7361ecf9cf529af4a1775a0e836b | [
"Apache-2.0"
] | 14 | 2017-01-23T02:58:53.000Z | 2020-12-21T14:05:07.000Z | roomfinder_dispo/roomfinder_dispo/dispo.py | GuillaumeMorini/roomfinder | d756bba6e50a7361ecf9cf529af4a1775a0e836b | [
"Apache-2.0"
] | 2 | 2017-01-23T09:46:54.000Z | 2017-09-11T10:15:07.000Z | roomfinder_dispo/roomfinder_dispo/dispo.py | GuillaumeMorini/roomfinder | d756bba6e50a7361ecf9cf529af4a1775a0e836b | [
"Apache-2.0"
] | 9 | 2017-01-23T02:55:27.000Z | 2020-05-20T18:38:18.000Z | #!/usr/bin/env python2.7
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
from flask import Flask, render_template, request, jsonify
import argparse
import datetime
import os, sys
import requests
from socket import error as SocketError
import errno
import json
import pika
import uuid
app = Flask(__name__)
... | 31.893443 | 138 | 0.627602 |
4b6e6530e3333cd913c07220255b812f35a812cc | 167 | py | Python | Sea/model/components/Component3D.py | FRidh/Sea | b474e93a449570a9ba3b915c4d80f814feee2545 | [
"BSD-3-Clause"
] | 2 | 2015-07-02T13:34:09.000Z | 2015-09-28T09:07:52.000Z | Sea/model/components/Component3D.py | FRidh/Sea | b474e93a449570a9ba3b915c4d80f814feee2545 | [
"BSD-3-Clause"
] | null | null | null | Sea/model/components/Component3D.py | FRidh/Sea | b474e93a449570a9ba3b915c4d80f814feee2545 | [
"BSD-3-Clause"
] | 1 | 2022-01-22T03:01:54.000Z | 2022-01-22T03:01:54.000Z |
import numpy as np
from ComponentStructural import ComponentStructural
from ..subsystems import SubsystemStructural
| 20.875 | 51 | 0.844311 |
4b6f1aec2b3a7aa82fa7792516bb55e9223b7c08 | 1,063 | py | Python | bot.py | federicosapienza/InboxNotionTelegramBot | 031d5e78cd352dfb692b93f3e0b421695f1dc18e | [
"MIT"
] | null | null | null | bot.py | federicosapienza/InboxNotionTelegramBot | 031d5e78cd352dfb692b93f3e0b421695f1dc18e | [
"MIT"
] | null | null | null | bot.py | federicosapienza/InboxNotionTelegramBot | 031d5e78cd352dfb692b93f3e0b421695f1dc18e | [
"MIT"
] | null | null | null | from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, ConversationHandler
import logging
from utils import TELEGRAM_TOKEN
from handlers import start, ask_new_url, get_url, get_description, cancel
from handlers import URL_URL, URL_DESCRIPTION
logging.basicConfig(format='%(levelname)s - %(message)s... | 25.926829 | 94 | 0.739417 |
4b6fc4e98137fcd105847298b470d6ad64f71618 | 841 | py | Python | examples/face.py | birkenfeld/python-gr | 1d6cd36616a73c8e569b8348869e6e30f3830ec4 | [
"RSA-MD"
] | null | null | null | examples/face.py | birkenfeld/python-gr | 1d6cd36616a73c8e569b8348869e6e30f3830ec4 | [
"RSA-MD"
] | null | null | null | examples/face.py | birkenfeld/python-gr | 1d6cd36616a73c8e569b8348869e6e30f3830ec4 | [
"RSA-MD"
] | null | null | null | #!/usr/bin/env python
"""
Simple surface plot example
"""
from gr import *
from math import *
x = [-2 + i * 0.5 for i in range(0, 29)]
y = [-7 + i * 0.5 for i in range(0, 29)]
z = list(range(0, 841))
for i in range(0, 29):
for j in range(0, 29):
r1 = sqrt((x[j] - 5)**2 + y[i]**2)
r2 = sqrt((x[j] + 5)**2 +... | 22.72973 | 64 | 0.567182 |
4b70e648e25de3717c9f7effa2fbe1723459da27 | 344 | py | Python | tests/system/examples/dask/assets/dask_function.py | Hedingber/mlrun | e2269718fcc7caa7e1aa379ac28495830b45f9da | [
"Apache-2.0"
] | 1 | 2021-02-17T08:12:33.000Z | 2021-02-17T08:12:33.000Z | tests/system/examples/dask/assets/dask_function.py | Hedingber/mlrun | e2269718fcc7caa7e1aa379ac28495830b45f9da | [
"Apache-2.0"
] | 1 | 2020-12-31T14:36:29.000Z | 2020-12-31T14:36:29.000Z | tests/system/examples/dask/assets/dask_function.py | Hedingber/mlrun | e2269718fcc7caa7e1aa379ac28495830b45f9da | [
"Apache-2.0"
] | 1 | 2021-08-30T21:43:38.000Z | 2021-08-30T21:43:38.000Z | # function that will be distributed
# wrapper function, uses the dask client object
| 24.571429 | 47 | 0.627907 |
4b714a892a0b336d54d129baf723bfd26bcf8c4a | 1,495 | py | Python | app/core.py | antmicro/raw-image-data-previewer | 1fc14848a27ce628047cf3e473a9f30f83c9892d | [
"Apache-2.0"
] | 5 | 2021-06-08T15:37:23.000Z | 2021-06-10T15:41:21.000Z | app/core.py | antmicro/raw-image-data-previewer | 1fc14848a27ce628047cf3e473a9f30f83c9892d | [
"Apache-2.0"
] | 37 | 2021-03-12T12:48:56.000Z | 2021-12-09T11:41:05.000Z | app/core.py | antmicro/raw-image-data-previewer | 1fc14848a27ce628047cf3e473a9f30f83c9892d | [
"Apache-2.0"
] | 9 | 2021-03-22T14:03:37.000Z | 2021-12-31T07:22:04.000Z | """Main functionalities."""
from .image.image import (Image, RawDataContainer)
from .image.color_format import AVAILABLE_FORMATS
from .parser.factory import ParserFactory
import cv2 as cv
import os
| 26.22807 | 69 | 0.681605 |
4b73785d9dd8a4aaaf6a1aac49dbeb16165c0050 | 1,423 | py | Python | demo/demo/urls.py | AlanCoding/Example-Django-App | 1cca52b720d1b117ccce780618d9af94f584ac2c | [
"MIT"
] | null | null | null | demo/demo/urls.py | AlanCoding/Example-Django-App | 1cca52b720d1b117ccce780618d9af94f584ac2c | [
"MIT"
] | null | null | null | demo/demo/urls.py | AlanCoding/Example-Django-App | 1cca52b720d1b117ccce780618d9af94f584ac2c | [
"MIT"
] | null | null | null | """demo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | 33.093023 | 79 | 0.702741 |
4b7544498643883f50311519a373ed59f4faa469 | 3,478 | py | Python | app/urls.py | etihadprime/etihadwebclass | 3b46d9068afeb0806198ef08fe26849ab9a09bb9 | [
"Apache-2.0"
] | null | null | null | app/urls.py | etihadprime/etihadwebclass | 3b46d9068afeb0806198ef08fe26849ab9a09bb9 | [
"Apache-2.0"
] | 6 | 2021-03-19T03:55:20.000Z | 2021-09-22T19:06:06.000Z | app/urls.py | etihadprime/etihadwebclass | 3b46d9068afeb0806198ef08fe26849ab9a09bb9 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from .views import teacherregister,studentregister,login_view,logout
from . import views
from .views import (
ClassroomCreateView,ClassroomListView,ClassroomDetailView,ClassroomUpdateView,ClassroomDeleteView,
SubjectCreateView,SubjectListView,SubjectDetailView,SubjectUpdateView,SubjectDelet... | 70.979592 | 115 | 0.648074 |
4b76dabace6084b6df07b8d27c9db12c437ca835 | 44,634 | py | Python | qaboard/qa.py | Samsung/qaboard | a2290f33da2bbd87cacf95822e1c85376083dfa1 | [
"Apache-2.0"
] | 51 | 2019-12-02T07:25:58.000Z | 2022-03-23T13:27:11.000Z | qaboard/qa.py | Samsung/qaboard | a2290f33da2bbd87cacf95822e1c85376083dfa1 | [
"Apache-2.0"
] | 25 | 2020-01-20T16:13:49.000Z | 2022-02-19T17:07:38.000Z | qaboard/qa.py | Samsung/qaboard | a2290f33da2bbd87cacf95822e1c85376083dfa1 | [
"Apache-2.0"
] | 15 | 2020-01-17T21:21:17.000Z | 2022-02-23T10:13:48.000Z | #!/usr/bin/env python
"""
CLI tool to runs various tasks related to QA.
"""
import os
import time
from pathlib import Path
import sys
import traceback
import json
import yaml
import uuid
import datetime
import click
from .run import RunContext
from .runners import runners, Job, JobGroup
from .runners.lsf import LsfPr... | 50.720455 | 318 | 0.703992 |
4b77f58f441974f14bdaad4bde4687feee866e3a | 5,838 | py | Python | 20210220_simulation_sample/data_handler.py | 3x3x3/Presentations | 3c31b136ed4d9214bb3730fa41a4a575da38edc9 | [
"MIT"
] | null | null | null | 20210220_simulation_sample/data_handler.py | 3x3x3/Presentations | 3c31b136ed4d9214bb3730fa41a4a575da38edc9 | [
"MIT"
] | null | null | null | 20210220_simulation_sample/data_handler.py | 3x3x3/Presentations | 3c31b136ed4d9214bb3730fa41a4a575da38edc9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import threading
import time
import global_def as gd
from db_reader import DbReaderDef, DbReaer
from queue import Queue, Empty
| 32.797753 | 162 | 0.52381 |
4b786431aa3dbf51672c3a6c4d1ccbdb01c1f809 | 7,865 | py | Python | todo/views.py | Azarn/mytodo | 599b5017b9a952100f05a6180dba5bca0823ad70 | [
"Apache-2.0"
] | null | null | null | todo/views.py | Azarn/mytodo | 599b5017b9a952100f05a6180dba5bca0823ad70 | [
"Apache-2.0"
] | null | null | null | todo/views.py | Azarn/mytodo | 599b5017b9a952100f05a6180dba5bca0823ad70 | [
"Apache-2.0"
] | null | null | null | import logging
from rest_framework import mixins, generics, permissions, exceptions
from django.conf import settings
from django.utils import timezone
from .serializers import CategorySerializer, TagSerializer, TodoSerializer
from .models import Category, Tag, Todo
logger = logging.getLogger(__name__)
| 34.047619 | 105 | 0.628608 |
4b7a04ca06d8701872be7f11c6588abbce31dce4 | 16,294 | py | Python | hypothesis/_settings.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | hypothesis/_settings.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | hypothesis/_settings.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | # coding=utf-8
#
# This file is part of Hypothesis (https://github.com/DRMacIver/hypothesis)
#
# Most of this work is copyright (C) 2013-2015 David R. MacIver
# (david@drmaciver.com), but it contains contributions by others. See
# https://github.com/DRMacIver/hypothesis/blob/master/CONTRIBUTING.rst for a
# full list of... | 31.334615 | 79 | 0.650669 |
4b7b56b22f9f50b0ab5dcb31b7bb4cdc39078ed0 | 2,014 | py | Python | 2_writeups/4_other/pdf/pipeline.py | araujorayza/robot_hacking_manual | d11feecc8931b1449b0ab30a51a55f71f51dd965 | [
"Apache-2.0"
] | 141 | 2021-11-14T15:27:04.000Z | 2022-03-30T00:44:48.000Z | 2_writeups/4_other/pdf/pipeline.py | araujorayza/robot_hacking_manual | d11feecc8931b1449b0ab30a51a55f71f51dd965 | [
"Apache-2.0"
] | 1 | 2021-11-17T06:38:44.000Z | 2021-11-17T06:38:45.000Z | 2_writeups/4_other/pdf/pipeline.py | araujorayza/robot_hacking_manual | d11feecc8931b1449b0ab30a51a55f71f51dd965 | [
"Apache-2.0"
] | 18 | 2021-11-15T09:55:48.000Z | 2022-03-08T10:25:58.000Z | """
Script to generate a security pipeline for PDF files.
It does the following:
- Adds specified meta-data
- Encrypts file
Run:
python3 pipeline.py
"""
from PyPDF2 import PdfFileWriter, PdfFileReader
from PyPDF2.generic import NameObject, createStringObject
if __name__ == '__main__':
# path for the file to ... | 28.366197 | 77 | 0.682224 |
4b7c945d6b1d560f6d85d5ab876aed99787d4072 | 1,989 | py | Python | code/MergeTrack/print_max_reid_distance.py | MTonyM/PReMVOS | 3d01f0c6156628083a4c8441b4b57622c500e04e | [
"MIT"
] | 140 | 2018-10-25T11:58:34.000Z | 2022-01-18T15:29:38.000Z | code/MergeTrack/print_max_reid_distance.py | MTonyM/PReMVOS | 3d01f0c6156628083a4c8441b4b57622c500e04e | [
"MIT"
] | 18 | 2018-11-21T04:48:03.000Z | 2020-09-14T09:30:56.000Z | code/MergeTrack/print_max_reid_distance.py | MTonyM/PReMVOS | 3d01f0c6156628083a4c8441b4b57622c500e04e | [
"MIT"
] | 32 | 2018-10-25T11:58:57.000Z | 2021-12-27T06:13:45.000Z | import glob
from numpy.linalg import norm
import numpy as np
from copy import deepcopy as copy
from MergeTrack.merge_functions import read_ann,read_props
from MergeTrack.ReID_net_functions import ReID_net_init, add_ReID
input_images = "DAVIS/val17/"
input_proposals = "DAVIS/ReID_props/"
first_frame_anns = "DAVIS/val1... | 38.25 | 142 | 0.723479 |
4b7d11da5ac6e1b0ebc4170e7d035cb4092ec2fa | 1,377 | py | Python | algorithms/tests/test_string_matching.py | t3rm1n4l/python-algorithms | 0fbcb38b26d8690028cd5a676743950fdf3a060f | [
"MIT"
] | 1 | 2018-05-02T07:37:43.000Z | 2018-05-02T07:37:43.000Z | algorithms/tests/test_string_matching.py | t3rm1n4l/python-algorithms | 0fbcb38b26d8690028cd5a676743950fdf3a060f | [
"MIT"
] | null | null | null | algorithms/tests/test_string_matching.py | t3rm1n4l/python-algorithms | 0fbcb38b26d8690028cd5a676743950fdf3a060f | [
"MIT"
] | null | null | null | import unittest
import string_matching
if __name__ == '__main__':
unittest.main()
| 33.585366 | 96 | 0.655773 |
4b7d6c918015930582e1fb1d514d24f1d777be05 | 1,411 | py | Python | molecool_test/tests/test_molecule.py | radifar/molecool_test | 9e0027656d6f68d2efd9cdf8f24872b4bcea6cb9 | [
"BSD-3-Clause"
] | null | null | null | molecool_test/tests/test_molecule.py | radifar/molecool_test | 9e0027656d6f68d2efd9cdf8f24872b4bcea6cb9 | [
"BSD-3-Clause"
] | null | null | null | molecool_test/tests/test_molecule.py | radifar/molecool_test | 9e0027656d6f68d2efd9cdf8f24872b4bcea6cb9 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import pytest
import molecool_test
| 21.707692 | 81 | 0.697378 |
4b7e597bab0f3442569b2c0f944ee9a51ebdc5c8 | 5,004 | py | Python | tests/unit/html/test_search_page.py | tttgm/basketball_reference_web_scraper | 2dbd9d7bacbcfee17f08bcf8629bd7d50893761d | [
"MIT"
] | 325 | 2015-10-27T03:15:49.000Z | 2022-03-16T06:49:12.000Z | tests/unit/html/test_search_page.py | tttgm/basketball_reference_web_scraper | 2dbd9d7bacbcfee17f08bcf8629bd7d50893761d | [
"MIT"
] | 173 | 2018-10-16T04:11:05.000Z | 2022-03-29T17:52:08.000Z | tests/unit/html/test_search_page.py | tttgm/basketball_reference_web_scraper | 2dbd9d7bacbcfee17f08bcf8629bd7d50893761d | [
"MIT"
] | 97 | 2016-04-09T19:11:28.000Z | 2022-03-21T09:57:50.000Z | from unittest import TestCase
from unittest.mock import patch, MagicMock, PropertyMock
from basketball_reference_web_scraper.html import SearchPage, PlayerSearchResult
| 42.40678 | 116 | 0.711631 |
4b7fad07fb9954bb150ff9b9a3fc6a0e8f2cf560 | 19,891 | py | Python | cave/com.raytheon.viz.gfe/localization/gfe/userPython/smartTools/WindGustFromAlgorithm.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | cave/com.raytheon.viz.gfe/localization/gfe/userPython/smartTools/WindGustFromAlgorithm.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | cave/com.raytheon.viz.gfe/localization/gfe/userPython/smartTools/WindGustFromAlgorithm.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | 1 | 2021-10-30T00:03:05.000Z | 2021-10-30T00:03:05.000Z | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to ... | 48.045894 | 195 | 0.42934 |
4b7fc93c2e30ca54b02519e2a781a191d7e736a1 | 6,705 | py | Python | pochta/tracking.py | john-phonk/fs-pochta-api | c3b7df4ecdbfc45fb482cedd8ab6c2927e0a1c9d | [
"MIT"
] | 16 | 2019-05-13T01:12:10.000Z | 2022-01-17T06:21:35.000Z | pochta/tracking.py | john-phonk/fs-pochta-api | c3b7df4ecdbfc45fb482cedd8ab6c2927e0a1c9d | [
"MIT"
] | 4 | 2020-03-06T06:46:35.000Z | 2020-11-22T04:24:34.000Z | pochta/tracking.py | john-phonk/fs-pochta-api | c3b7df4ecdbfc45fb482cedd8ab6c2927e0a1c9d | [
"MIT"
] | 6 | 2019-08-10T13:18:21.000Z | 2021-11-25T08:57:30.000Z | from abc import ABC
from typing import List
from zeep import CachingClient, Client, Settings
from .exceptions import APIError
| 40.149701 | 99 | 0.670097 |
4b7fd5f816b4e255d1e40adf591dc8b3e21efaa2 | 2,291 | py | Python | CH04_Iterators_and_Generators/4.4.Implementing_the_iterator_protocol.py | Chang-Liu-TAMU/Python-Cookbook-reading | 7b974c32f77b4b3d7cfeed30d1671081057c566f | [
"MIT"
] | null | null | null | CH04_Iterators_and_Generators/4.4.Implementing_the_iterator_protocol.py | Chang-Liu-TAMU/Python-Cookbook-reading | 7b974c32f77b4b3d7cfeed30d1671081057c566f | [
"MIT"
] | null | null | null | CH04_Iterators_and_Generators/4.4.Implementing_the_iterator_protocol.py | Chang-Liu-TAMU/Python-Cookbook-reading | 7b974c32f77b4b3d7cfeed30d1671081057c566f | [
"MIT"
] | null | null | null | # @Time: 2022/4/12 20:50
# @Author: chang liu
# @Email: chang_liu_tamu@gmail.com
# @File:4.4.Implementing_the_iterator_protocol.py
################ clean version #########################
# class Node:
# def __init__(self, val):
# self._value = val
# self._children = []
#
# def __repr__(self):
... | 22.91 | 70 | 0.572676 |
4b800dc76b871db39c746e292171f32b25ee44ff | 29,762 | py | Python | FGPVAE_model.py | metodj/FGP-VAE | 607559ab465b29878f10a5d95b8e3c6ec8d94e0c | [
"MIT"
] | 3 | 2021-01-27T14:06:01.000Z | 2021-09-09T12:10:34.000Z | FGPVAE_model.py | metodj/FGP-VAE | 607559ab465b29878f10a5d95b8e3c6ec8d94e0c | [
"MIT"
] | null | null | null | FGPVAE_model.py | metodj/FGP-VAE | 607559ab465b29878f10a5d95b8e3c6ec8d94e0c | [
"MIT"
] | null | null | null | import tensorflow as tf
import tensorflow_probability as tfp
import numpy as np
import pickle
import random
from utils import gauss_cross_entropy
tfk = tfp.math.psd_kernels
def forward_pass_FGPVAE_rotated_mnist(data_batch, beta, vae, GP, N_t, clipping_qs,
bayes... | 42.456491 | 123 | 0.556145 |
4b81b5fe4aceb22e7a99ad217502d745e5a0019f | 1,069 | py | Python | spotty/commands/abstract_command.py | Inculus/spotty | 56863012668a6c13ad13c2a04f900047e229fbe6 | [
"MIT"
] | 246 | 2018-09-03T09:09:48.000Z | 2020-07-18T21:07:15.000Z | spotty/commands/abstract_command.py | Inculus/spotty | 56863012668a6c13ad13c2a04f900047e229fbe6 | [
"MIT"
] | 42 | 2018-10-09T19:41:56.000Z | 2020-06-15T22:55:58.000Z | spotty/commands/abstract_command.py | Inculus/spotty | 56863012668a6c13ad13c2a04f900047e229fbe6 | [
"MIT"
] | 27 | 2018-10-09T22:16:40.000Z | 2020-06-08T22:26:00.000Z | from abc import ABC, abstractmethod
from argparse import Namespace, ArgumentParser
from spotty.commands.writers.abstract_output_writrer import AbstractOutputWriter
| 30.542857 | 93 | 0.654818 |
4b849b209996da99ee667a5b45419939d4653d3a | 9,495 | py | Python | tests/test_protocols/test_generator.py | cyenyxe/agents-aea | c2aec9127028ae13def3f69fbc80d35400de1565 | [
"Apache-2.0"
] | null | null | null | tests/test_protocols/test_generator.py | cyenyxe/agents-aea | c2aec9127028ae13def3f69fbc80d35400de1565 | [
"Apache-2.0"
] | 1 | 2020-02-21T14:28:13.000Z | 2020-03-05T14:53:53.000Z | tests/test_protocols/test_generator.py | cyenyxe/agents-aea | c2aec9127028ae13def3f69fbc80d35400de1565 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | 45.214286 | 128 | 0.685519 |
4b86ef7acd08f81f39f9fde4c5d2779a3995da3e | 6,981 | py | Python | tabfkioskgoogledrive/MyGDTest3.py | isalan06/myflaskapiserver | 2922f62c9b9ede2b6cba2db774e924b226a120f7 | [
"MIT"
] | null | null | null | tabfkioskgoogledrive/MyGDTest3.py | isalan06/myflaskapiserver | 2922f62c9b9ede2b6cba2db774e924b226a120f7 | [
"MIT"
] | null | null | null | tabfkioskgoogledrive/MyGDTest3.py | isalan06/myflaskapiserver | 2922f62c9b9ede2b6cba2db774e924b226a120f7 | [
"MIT"
] | null | null | null | import os.path
import os
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from google.oauth2.credentials import Credentials
from datetime import datetime
# If modifying these scopes, delete the file token.json.
SCOPES ... | 37.331551 | 104 | 0.578284 |
4b8822ba30ebfce8e71617e36c3ea7b8cc487de1 | 46 | py | Python | qarithmetic/__init__.py | daniil-lyakhov/QArithmetic | 7a5df9504e17c1979107c119bbaf0c5b2750a619 | [
"Apache-2.0"
] | null | null | null | qarithmetic/__init__.py | daniil-lyakhov/QArithmetic | 7a5df9504e17c1979107c119bbaf0c5b2750a619 | [
"Apache-2.0"
] | null | null | null | qarithmetic/__init__.py | daniil-lyakhov/QArithmetic | 7a5df9504e17c1979107c119bbaf0c5b2750a619 | [
"Apache-2.0"
] | null | null | null | from .QArithmetic import *
from .qft import *
| 15.333333 | 26 | 0.73913 |
4b88bb3938cbed6bd9ddf6e52090c0d588399179 | 2,631 | py | Python | clustering/conditional_probs.py | griffij/QuakeRates | 70069bb271a1987e72fcbdf3aa0c0a8a79591580 | [
"Apache-2.0"
] | null | null | null | clustering/conditional_probs.py | griffij/QuakeRates | 70069bb271a1987e72fcbdf3aa0c0a8a79591580 | [
"Apache-2.0"
] | null | null | null | clustering/conditional_probs.py | griffij/QuakeRates | 70069bb271a1987e72fcbdf3aa0c0a8a79591580 | [
"Apache-2.0"
] | null | null | null | """Calculate conditional probability of a short interevent
time being followed by another short interevent time, compared
with the unconditional probability.
This is used to test whether fault records have memory
"""
import os, sys
from glob import glob
import numpy as np
import matplotlib.pyplot as plt
from QuakeRat... | 36.541667 | 84 | 0.707336 |
4b8d4301cde6fb6de24f8efb96ff5081761e33de | 643 | py | Python | Computer Science/Development/GUI/robo_controls.py | zbendt/ECE-Capstone-Project | 1bafc61f896191ccd5a843980500fb4b8bbeb8bd | [
"MIT"
] | null | null | null | Computer Science/Development/GUI/robo_controls.py | zbendt/ECE-Capstone-Project | 1bafc61f896191ccd5a843980500fb4b8bbeb8bd | [
"MIT"
] | null | null | null | Computer Science/Development/GUI/robo_controls.py | zbendt/ECE-Capstone-Project | 1bafc61f896191ccd5a843980500fb4b8bbeb8bd | [
"MIT"
] | null | null | null | import time
#Controls functions for the delta
sleep_time = 0.5
| 20.09375 | 37 | 0.634526 |
4b8e4f10e68bbf6b6e9801bf943ec3cb8b4d1bf7 | 3,120 | py | Python | src/dynamic_programming/basic_scripts/value_iteration.py | johannesharmse/move_37_course | a2060129cbc6fb651113aa18f1a6ea2673845182 | [
"MIT"
] | 1 | 2019-03-13T06:29:54.000Z | 2019-03-13T06:29:54.000Z | src/dynamic_programming/basic_scripts/value_iteration.py | johannesharmse/move_37_course | a2060129cbc6fb651113aa18f1a6ea2673845182 | [
"MIT"
] | null | null | null | src/dynamic_programming/basic_scripts/value_iteration.py | johannesharmse/move_37_course | a2060129cbc6fb651113aa18f1a6ea2673845182 | [
"MIT"
] | null | null | null | # From The School of AI's Move 37 Course https://www.theschool.ai/courses/move-37-course/
# Coding demo by Colin Skow
# Forked from https://github.com/lazyprogrammer/machine_learning_examples/tree/master/rl
# Credit goes to LazyProgrammer
from __future__ import print_function, division
from builtins import range
# Note... | 31.515152 | 89 | 0.709936 |
4b8f66af4fc844e8c289287b2a2bc4ba119f529e | 19,238 | py | Python | photoplace/addons/CSVImport/GTKcsvimport.py | jriguera/photoplace | 93674ef8531d0e5b8f26de9ba568ed8e115b27e1 | [
"Apache-2.0"
] | 10 | 2015-02-20T19:01:19.000Z | 2021-12-13T23:07:19.000Z | photoplace/addons/CSVImport/GTKcsvimport.py | jriguera/photoplace | 93674ef8531d0e5b8f26de9ba568ed8e115b27e1 | [
"Apache-2.0"
] | 1 | 2020-06-16T13:23:05.000Z | 2021-02-13T14:14:57.000Z | photoplace/addons/CSVImport/GTKcsvimport.py | jriguera/photoplace | 93674ef8531d0e5b8f26de9ba568ed8e115b27e1 | [
"Apache-2.0"
] | 4 | 2017-03-28T23:06:14.000Z | 2019-09-25T07:59:36.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# GTKcsvimport.py
#
# Copyright 2010-2015 Jose Riguera Lopez <jriguera@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... | 39.995842 | 218 | 0.615501 |
4b8fcf8f0fe4212ea52ae11e77f6cd66ebb3437f | 9,024 | py | Python | src/opt_utils.py | mateuszz0000/POSA | 1295065251dd22c89d923fbff7d8bf4c53339d95 | [
"CNRI-Python",
"Xnet",
"Info-ZIP",
"X11"
] | 71 | 2021-05-02T21:40:29.000Z | 2022-03-30T03:52:01.000Z | src/opt_utils.py | mateuszz0000/POSA | 1295065251dd22c89d923fbff7d8bf4c53339d95 | [
"CNRI-Python",
"Xnet",
"Info-ZIP",
"X11"
] | 4 | 2021-06-18T06:31:29.000Z | 2021-12-07T07:29:21.000Z | src/opt_utils.py | mateuszz0000/POSA | 1295065251dd22c89d923fbff7d8bf4c53339d95 | [
"CNRI-Python",
"Xnet",
"Info-ZIP",
"X11"
] | 10 | 2021-05-08T08:16:31.000Z | 2022-02-17T04:40:30.000Z | # -*- coding: utf-8 -*-
# Max-Planck-Gesellschaft zur Frderung der Wissenschaften e.V. (MPG) is
# holder of all proprietary rights on this computer program.
# You can only use this computer program if you have closed
# a license agreement with MPG or you get the right to use the computer
# program from someone who is ... | 47 | 120 | 0.625332 |
4b90f733d945576384389e3af5e8eb7b26b24785 | 137 | py | Python | gan_provider.py | jiameng1010/pointNet | 17d230f46f64136baba2c3d6cb7f05ab4bbb9f31 | [
"MIT"
] | null | null | null | gan_provider.py | jiameng1010/pointNet | 17d230f46f64136baba2c3d6cb7f05ab4bbb9f31 | [
"MIT"
] | null | null | null | gan_provider.py | jiameng1010/pointNet | 17d230f46f64136baba2c3d6cb7f05ab4bbb9f31 | [
"MIT"
] | 1 | 2019-02-03T12:19:36.000Z | 2019-02-03T12:19:36.000Z | from tensorflow.contrib.slim.python.slim.data import data_provider
from tensorflow.contrib.slim.python.slim.data import parallel_reader
| 34.25 | 68 | 0.861314 |
4b91ba97fda9b2ee93796afb30a9ecc697c21159 | 1,205 | py | Python | script.module.placenta/lib/resources/lib/modules/thexem.py | parser4life/tantrumrepo | 3b37145f4772409e538cbddb0b7aa23be525772a | [
"Beerware"
] | 1 | 2021-05-09T19:55:51.000Z | 2021-05-09T19:55:51.000Z | script.module.placenta/lib/resources/lib/modules/thexem.py | parser4life/tantrumrepo | 3b37145f4772409e538cbddb0b7aa23be525772a | [
"Beerware"
] | null | null | null | script.module.placenta/lib/resources/lib/modules/thexem.py | parser4life/tantrumrepo | 3b37145f4772409e538cbddb0b7aa23be525772a | [
"Beerware"
] | 2 | 2020-04-01T22:11:12.000Z | 2020-05-07T23:54:52.000Z | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @tantrumdev wrote this file. As long as you retain this notice you
# can do whatever you want wit... | 36.515152 | 100 | 0.480498 |
4b92d579f1edf869213b966f3c57e11cb659219d | 1,048 | py | Python | Day18/main.py | MHKomeili/100DaysofCode | a5799011a43f777ddc5ac9e649aa27291313b62b | [
"MIT"
] | null | null | null | Day18/main.py | MHKomeili/100DaysofCode | a5799011a43f777ddc5ac9e649aa27291313b62b | [
"MIT"
] | null | null | null | Day18/main.py | MHKomeili/100DaysofCode | a5799011a43f777ddc5ac9e649aa27291313b62b | [
"MIT"
] | null | null | null | # import colorgram
#
# colors = colorgram.extract('image.jpg', 30)
# rgb_colors = []
# for color in colors:
# rgb_colors.append((color.rgb.r, color.rgb.g, color.rgb.b))
#
# print(rgb_colors)
from turtle import Turtle, Screen
import random
color_list = [(238, 251, 245), (250, 228, 15), (213, 12, 8), (199, 11, 36),... | 31.757576 | 119 | 0.540076 |
4b9490ebcc233667c0f331f949a3dfce27be8b1f | 8,723 | py | Python | hirebob/portal/forms.py | shantanub0/hirebob | 5a55e97c6e220059964fbb55439b0189abae1307 | [
"MIT"
] | null | null | null | hirebob/portal/forms.py | shantanub0/hirebob | 5a55e97c6e220059964fbb55439b0189abae1307 | [
"MIT"
] | 1 | 2018-06-23T01:20:26.000Z | 2018-06-25T21:49:17.000Z | hirebob/portal/forms.py | shantanub0/hirebob | 5a55e97c6e220059964fbb55439b0189abae1307 | [
"MIT"
] | 1 | 2018-06-14T12:11:59.000Z | 2018-06-14T12:11:59.000Z | from django import forms
from .models import UserAccount, JobPost, JobPostActivity, UserProfile
| 56.642857 | 129 | 0.458558 |
4b95d82a263834a4e169c435b74dfded71be2e85 | 5,538 | py | Python | siemstress/trigger.py | dogoncouch/siemstress | be7f60bb0228a886d48deb4f46309be7fb8aa0af | [
"MIT"
] | 28 | 2017-08-14T12:41:56.000Z | 2022-02-18T01:18:11.000Z | siemstress/trigger.py | dogoncouch/siemstress | be7f60bb0228a886d48deb4f46309be7fb8aa0af | [
"MIT"
] | 1 | 2017-08-23T10:47:16.000Z | 2017-08-24T18:52:48.000Z | siemstress/trigger.py | dogoncouch/siemstress | be7f60bb0228a886d48deb4f46309be7fb8aa0af | [
"MIT"
] | 6 | 2018-01-07T11:42:18.000Z | 2020-06-08T00:04:57.000Z | #!/usr/bin/env python
#_MIT License
#_
#_Copyright (c) 2017 Dan Persons (dpersonsdev@gmail.com)
#_
#_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 limi... | 34.397516 | 81 | 0.548754 |
4b996a561c6739777af3fa1902cca7e146f0eeaf | 687 | py | Python | TianJiPlanBackend/authentication/migrations/0002_auto_20210912_0929.py | weridolin/tianji-plan | b98a49d92ee2a365095f9e15f4231f5178aca1c0 | [
"Apache-2.0"
] | null | null | null | TianJiPlanBackend/authentication/migrations/0002_auto_20210912_0929.py | weridolin/tianji-plan | b98a49d92ee2a365095f9e15f4231f5178aca1c0 | [
"Apache-2.0"
] | null | null | null | TianJiPlanBackend/authentication/migrations/0002_auto_20210912_0929.py | weridolin/tianji-plan | b98a49d92ee2a365095f9e15f4231f5178aca1c0 | [
"Apache-2.0"
] | 1 | 2021-12-07T11:45:13.000Z | 2021-12-07T11:45:13.000Z | # Generated by Django 3.2.7 on 2021-09-12 01:29
from django.db import migrations, models
| 28.625 | 122 | 0.615721 |
4b9aca9719a2480581a602385b8fda1e00bcfadc | 3,040 | py | Python | ooobuild/lo/util/time_with_timezone.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/util/time_with_timezone.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/util/time_with_timezone.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 30.4 | 190 | 0.650329 |
4b9af91c0efeb81facf6d27474553a4bb9a6505d | 2,025 | py | Python | tests/unit_tests/tasks/fortran/test_fortran_compiler.py | bblay/fab | bbdac7bae20c5b8695a2d56945c9593b4fda9c74 | [
"BSD-3-Clause"
] | null | null | null | tests/unit_tests/tasks/fortran/test_fortran_compiler.py | bblay/fab | bbdac7bae20c5b8695a2d56945c9593b4fda9c74 | [
"BSD-3-Clause"
] | null | null | null | tests/unit_tests/tasks/fortran/test_fortran_compiler.py | bblay/fab | bbdac7bae20c5b8695a2d56945c9593b4fda9c74 | [
"BSD-3-Clause"
] | null | null | null | from pathlib import Path
from unittest import mock
import pytest
from fab.build_config import AddFlags
from fab.dep_tree import AnalysedFile
from fab.steps.compile_fortran import CompileFortran
# todo: we might have liked to reuse this from test_dep_tree
from fab.util import CompiledFile
| 38.942308 | 112 | 0.651852 |