blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
68128ddef976c370dc87279299e61abaac08163a | 3f0410647ec6f7f597bb2adcc169b30c85c154bf | /dataduct/pipeline/default_object.py | 78d7251db70eb9c26c751ed787d2229b1fd9ebf8 | [
"Apache-2.0"
] | permissive | EverFi/dataduct | 5485239cc72a6aee4145634bf95a1dc5e67b28cd | 797cb719e6c2abeda0751ada3339c72bfb19c8f2 | refs/heads/staging | 2023-07-20T14:59:00.342480 | 2023-03-21T21:11:56 | 2023-03-21T21:11:56 | 96,341,718 | 3 | 0 | NOASSERTION | 2023-07-12T20:29:12 | 2017-07-05T16:54:48 | Python | UTF-8 | Python | false | false | 1,403 | py | """
Pipeline object class for default metadata
"""
from ..config import Config
from ..utils import constants as const
from .pipeline_object import PipelineObject
config = Config()
ROLE = config.etl['ROLE']
RESOURCE_ROLE = config.etl['RESOURCE_ROLE']
MAX_ACTIVE_INSTANCES = config.etl.get('MAX_ACTIVE_INSTANCES', const.... | [
"sb2nov@gmail.com"
] | sb2nov@gmail.com |
03e6521dbdeeba4a2d45ddaf701bf0485213ebac | d4df3c14cea021ab95dc208e915e88383f3c7371 | /Payload_Type/poseidon/mythic/agent_functions/jsimport.py | 755a354107c0d6348d572365a4a32d263f0633cf | [] | no_license | a32567901/poseidon | 79537ac7f082698137c7f77c746ecdc42ddc89f9 | 6c7d0bf52b67a952fa35a821d7c2d3e5a35cafd7 | refs/heads/master | 2023-06-18T06:25:17.575943 | 2021-07-12T20:44:03 | 2021-07-12T20:44:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | from mythic_payloadtype_container.MythicCommandBase import *
import base64
import sys
import json
from mythic_payloadtype_container.MythicRPC import *
class JsImportArguments(TaskArguments):
def __init__(self, command_line):
super().__init__(command_line)
self.args = {
"file_id": Comma... | [
"codybthomas@gmail.com"
] | codybthomas@gmail.com |
9ffe4224c93a6d260380414f96e07e3b4b1def64 | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/pygments/lexers/smv.py | a4cbf9455e3d5cfbee0f1fbdae8b7da6a7f39a21 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 2,773 | py | """
pygments.lexers.smv
~~~~~~~~~~~~~~~~~~~
Lexers for the SMV languages.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.lexer import RegexLexer, words
from pygments.token import Comment, Keyword, Name, Number, Operator... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
d6a19c14ed21fd7fff372aff3356a947433b7b86 | f543f74749ff6aa7731438cb1c33f01c7c6296b2 | /ZenPacks/community/zenSiebelCRM/routers.py | 5eda913bc6c7fa4119561975d408e0a962def296 | [
"Apache-2.0"
] | permissive | j053ph4/ZenPacks.community.zenSiebelCRM | 5ff2438cbf778a53b47dcf1d23fd068412232e41 | fcddf900ff0290fa646722060a40e315e857e439 | refs/heads/master | 2021-01-01T16:39:24.706506 | 2015-03-20T16:29:19 | 2015-03-20T16:29:19 | 2,608,202 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from ZenPacks.community.ConstructionKit.ClassHelper import *
class zenSiebelCRMRouter(ClassHelper.zenSiebelCRMRouter):
''''''
| [
"janderson@agero.com"
] | janderson@agero.com |
eca07f6edf533d18f3e673a87f6e9048c8363109 | f39f870107ebd13914220b862a62709f22cd778d | /src/runrex/schema.py | 375806ac12b85718f53d37e288fd3d4851050c2d | [
"MIT"
] | permissive | kpwhri/runrex | 36efd549009d4c3cc77a498934cdcb5f92748d8e | 68f7e67419cd6b87ed86d755a760b6c5fcbfb07d | refs/heads/master | 2023-04-02T07:06:59.226692 | 2023-03-24T18:51:46 | 2023-03-24T18:51:46 | 224,006,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,624 | py | import json
import jsonschema
try:
from ruamel import yaml
except ModuleNotFoundError:
yaml = False
JSON_SCHEMA = {
'type': 'object',
'properties': {
'corpus': {
'type': 'object',
'properties': {
'directory': {'type': 'string'},
'director... | [
"dcronkite@gmail.com"
] | dcronkite@gmail.com |
fae05f2b90f2dbd3d408b281c80207daa203395c | 8ed1430279ae52fd950dd0afe88549a100001e26 | /qa/rpc-tests/test_framework/key.py | a36d6d71e08f3b53918ffad15038dbf82f0d3830 | [
"MIT"
] | permissive | mirzaei-ce/core-najafbit | 9fb70dbd4e17ec1635d7b886db17f8aab3f592bb | 6de34210a9ba9cc3f21fee631bc1a1f4d12d445d | refs/heads/master | 2021-08-11T08:53:58.165742 | 2017-11-13T13:00:14 | 2017-11-13T13:00:14 | 110,548,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,367 | py | # Copyright (c) 2011 Sam Rushing
#
# key.py - OpenSSL wrapper
#
# This file is modified from python-najafbitlib.
#
"""ECC secp256k1 crypto routines
WARNING: This module does not mlock() secrets; your private keys may end up on
disk in swap! Use with caution!
"""
import ctypes
import ctypes.util
import hashlib
import... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
4a8ff182ff64cd8354550c0be5e3c6d332c9e65e | fb5b258968d361e652e31a753b7729acea776470 | /tracker/extensions.py | 32059628cfe55f696c80043be6c0188722f973aa | [] | no_license | OpenDataServices/aid-transparency-tracker | ddbac46406dccd71b5b441e543e67d1819377da3 | d3d12dc3d038c24825374eb7aa74ed6e51266747 | refs/heads/master | 2020-06-14T00:53:28.939473 | 2019-06-30T15:18:55 | 2019-06-30T15:18:55 | 194,842,277 | 1 | 1 | null | 2019-07-02T10:30:35 | 2019-07-02T10:30:34 | null | UTF-8 | Python | false | false | 528 | py | """Extensions module. Each extension is initialized in the app factory located in app.py."""
from flask_caching import Cache
from flask_debugtoolbar import DebugToolbarExtension
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from flask_webpack import Webpack
from flask_wtf.csrf import CSRFPro... | [
"a.lulham@gmail.com"
] | a.lulham@gmail.com |
cd3649ce6be2f14862c05d40998542e059230fe7 | bcf88b912b9443c3326466c226f68a7e7ad5aa9d | /bdbag/fetch/transports/fetch_http.py | f55b0cd33f99c76fdd5b2177276a166c30c9865e | [
"Apache-2.0"
] | permissive | mvdbeek/bdbag | 33bc7e0275c720104af77654b0016024cb6ab012 | fe67b5bffc68b7dac823ce03d450ede3affccbef | refs/heads/master | 2020-03-25T05:17:09.646537 | 2018-07-12T03:58:06 | 2018-07-12T03:58:06 | 143,438,809 | 0 | 0 | null | 2018-08-03T14:42:27 | 2018-08-03T14:42:27 | null | UTF-8 | Python | false | false | 6,656 | py | import os
import datetime
import logging
import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
import certifi
from bdbag import urlsplit, get_typed_exception
import bdbag.fetch.auth.keychain as keychain
logger = logging.getLogger(__name__)
Kilobyte = 1024
Meg... | [
"mikedarcy@users.noreply.github.com"
] | mikedarcy@users.noreply.github.com |
fb95f7509a541b20d0c87ac002317fa791d06f7b | 4c1c2e3a8882f58a895285232eddae337ddc1a3a | /tests/test_general.py | f0721fd9fa1cb43874e25eda16877495aa4b11b9 | [
"MIT"
] | permissive | ArtellaPipe/artellapipe-tools-renamer | b00472d94de48771b3de69d2706f2e37235736d2 | 2456f418e2b4cf853d228fcce27af94b4fe3185a | refs/heads/master | 2020-11-27T15:15:59.673296 | 2020-08-24T18:26:45 | 2020-08-24T18:26:45 | 229,507,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains general tests for artellapipe-tools-renamer
"""
import pytest
from artellapipe.tools.renamer import __version__
def test_version():
assert __version__.get_version()
| [
"tpovedatd@gmail.com"
] | tpovedatd@gmail.com |
54b05755dc514b5b8bb3ffd4c7da7e3f34989eb3 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/l69.py | 920450ca9c83d396aca07b6664717ada6b99d6a4 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 44 | py | ii = [('GellWPT2.py', 1), ('GodwWLN.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
d917ef627509e70c36c83c7acd82f2010593541f | 959da8ee241cf4b525b46a7a75f752fdb588b7a7 | /finegan/model.py | c6e7062dbd63094efa62b5061610ea4f3103f707 | [
"MIT",
"Apache-2.0"
] | permissive | abdelrahmanzied/GSoC-TensorFlow-2020 | b1b2349e24fe3f1249bf79d708c88ba0daee574a | 8e1cb3591dff10a74e2adcf52940be3ed03f9be7 | refs/heads/master | 2023-02-05T09:00:57.889824 | 2020-12-29T07:24:37 | 2020-12-29T07:24:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,773 | py | # Copyright 2020 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... | [
"vishal114186@gmail.com"
] | vishal114186@gmail.com |
2ccbe098d647f4aa3758b9746cb05213b6096eb2 | ee53b0262007b2f0db0fe15b2ad85f65fafa4e25 | /Leetcode/2545. Sort the Students by Their Kth Score.py | 1938cef18d0c6419bf112383400d38432dc59634 | [] | no_license | xiaohuanlin/Algorithms | bd48caacb08295fc5756acdac609be78e143a760 | 157cbaeeff74130e5105e58a6b4cdf66403a8a6f | refs/heads/master | 2023-08-09T05:18:06.221485 | 2023-08-08T11:53:15 | 2023-08-08T11:53:15 | 131,491,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | '''
There is a class with m students and n exams. You are given a 0-indexed m x n integer matrix score, where each row represents one student and score[i][j] denotes the score the ith student got in the jth exam. The matrix score contains distinct integers only.
You are also given an integer k. Sort the students (i.e.... | [
"xiaohuanlin1993@gmail.com"
] | xiaohuanlin1993@gmail.com |
20742f51da8d73b241b268b3e8ad34a2a7ec71a6 | e8215b98dcf46417e720cc6ef4a0329474ae9b82 | /PHYS304/Transcendental.py | f3540b28e7fbf87080a8c19cdb8799a835c8501e | [] | no_license | rgkaufmann/PythonCodes | 2d47bab84ec851fc962598f613b1e666a14c8efd | a5d5cd993beabdb79897a05b35420ad82f438f51 | refs/heads/master | 2021-06-13T23:19:09.109162 | 2021-03-03T06:00:04 | 2021-03-03T06:00:04 | 162,771,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | import numpy as np
import matplotlib.pyplot as plt
def tangent(z):
return np.tan(z)
def transient(z):
return np.sqrt((8/z)**2-1)
zVals = np.linspace(np.pi, 8, 1000)
tanVals = tangent(zVals)
tranVals = transient(zVals)
zTransients = [4.16483091, 6.83067433]
tanTransients = tangent(zTransients)
plt.plot(zVals... | [
"ryankaufmannprof@gmail.com"
] | ryankaufmannprof@gmail.com |
817f9f6f9798e25518e5c410d73fac5f146c2faa | 84e4149b3571ff4abe5c27a66ecbde03c5afec3c | /chapter_09/section_3_3/test.py | 8de472d0bbe2646b49941b995e27abd2d498cb45 | [] | no_license | zhanlu-wm/Python-Crash-Course | 6efa04bd5c03e37394b3602d20e7ae57688836e7 | 043fe97b4acdf0008351fd0fdb045888e9bdd44d | refs/heads/master | 2021-07-18T18:34:32.435763 | 2017-10-23T15:27:17 | 2017-10-23T15:27:17 | 103,259,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from chapter_09.section_3_3.electric_car import ElectricCar
my_tesla = ElectricCar('tesla', 'model s', 2016)
print(my_tesla.get_descriptive_name())
my_tesla.describe_battery() | [
"ncu09wangming@163.com"
] | ncu09wangming@163.com |
c35ed578aa88d6f303bd3df648ce69e2bf6172a4 | a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c | /venv/Lib/site-packages/pandas/tests/frame/methods/test_nlargest.py | 7f9912e61e6e168237191bd9c0e95df2fc24b6ce | [] | no_license | mylonabusiness28/Final-Year-Project- | e4b79ccce6c19a371cac63c7a4ff431d6e26e38f | 68455795be7902b4032ee1f145258232212cc639 | refs/heads/main | 2023-07-08T21:43:49.300370 | 2021-06-05T12:34:16 | 2021-06-05T12:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ad76d46aae04dbd1db10b0a2b2882fd55b14de9a1307caf45c549f0b3d316f1a
size 6942
| [
"chuksajeh1@gmail.com"
] | chuksajeh1@gmail.com |
271db093eab9eef6514cf71cd5cdc33b0ebbebbe | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/PostProcessing/Effects/__init__.py | 4712566578e17fcdf1f5316527e1b33ae470f9e3 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,600 | py | # 2016.11.19 19:54:27 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/PostProcessing/Effects/__init__.py
"""PostProcessing.Effects python module
This module imports all Effects for ease-of-use by script programmers.
"""
s_effectFactories = {}
class implementEffectFactory:
def __init__(self, name, ... | [
"info@webium.sk"
] | info@webium.sk |
e7e338dfe35947ecf54e68e2c21b2af79339e7a0 | ac64fda7f1bfc92f7897efd60b8f3f0aeb22b4d7 | /syntactic_mutations/mnist/mutants/mutant28.py | 8c15391a262bd2fab6f30bcef4af3ed76cab9317 | [] | no_license | dlfaults/mutation_operators_evaluation | ea7f33459ba7bcf7d70092d9db8b40f9b338d516 | 7d1ff30e901931a46bf8908e9bb05cae3daa5f0f | refs/heads/master | 2020-12-27T15:45:07.262012 | 2020-02-03T12:22:01 | 2020-02-03T12:22:01 | 237,955,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
from keras import backend as K
batch_size = 128
num_classes = 10
epochs = 12
(img_rows, img_cols) = (28, 28)
def train(x_train, y_train, x_te... | [
"gunel71@gmail.com"
] | gunel71@gmail.com |
3f2754e1b1a8db1b55c2e9557da13f86471dabad | a7ab35ff204d7c4679ce8b1bf7da8fa363a7a708 | /algo_problems/q861-880/q873.py | 1015c2b49ca79f3a6b3e6bba1765132f41499876 | [] | no_license | lin13k/practice | c68e7270be2694cb9737c35af8beb19db7e30d65 | c3efe1a5839c3ff1c320c0fcfc7b65a9462f7b52 | refs/heads/master | 2021-01-19T11:05:43.521468 | 2018-11-12T09:42:29 | 2018-11-12T09:42:29 | 87,928,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | import collections
class Solution:
def lenLongestFibSubseq(self, A):
"""
:type A: List[int]
:rtype: int
"""
table = collections.defaultdict(lambda: 2)
indexDict = {v: k for k, v in enumerate(A)}
result = 0
for i, v in enumerate(A):
for j ... | [
"lin.13k@gmail.com"
] | lin.13k@gmail.com |
55054610ae4183039b1acb0e4e418f03195a81c4 | 9d862dd68f8b4ea4e7de9397fef8592824c77449 | /app/top/api/rest/DeliveryTemplateDeleteRequest.py | b9f87c34c48381a9fc9ce9798903f521d14d4bb9 | [] | no_license | hi-noikiy/tmall-sku-outer_id | ffaca630dfb288ca33d962b8a050932d1047b9c8 | 1bcf29386a513bcb210bf5d91016e0dcb1ebc1ad | refs/heads/master | 2021-05-09T18:20:27.150316 | 2017-03-08T06:43:57 | 2017-03-08T06:43:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | '''
Created by auto_sdk on 2016.04.11
'''
from app.top.api.base import RestApi
class DeliveryTemplateDeleteRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.template_id = None
def getapiname(self):
return 'taobao.delivery.template.delete'
| [
"1037096435@qq.com"
] | 1037096435@qq.com |
dfbc3f3b2c03f19ca6779867eebebe3f141653c2 | 5a7b15eb2a3453475ee70bb56e19a7bb2751db89 | /code/create_models/np/yWithMorphologySequentialStreamDropoutDev_BaselineLanguage_Fast_SaveLast_NoFinePOS_OnlyWordForms_BoundedVocab_NP.py | 29ffb30c71fa5bba15f2d545cf4370749b87e909 | [] | no_license | m-hahn/memory-surprisal | 8db19bc86ada9c352feb66859f718749623700b6 | 1b3d680836ba87fb9186741a8d4f184fda35b122 | refs/heads/master | 2022-04-30T16:01:39.323884 | 2022-03-25T04:10:12 | 2022-03-25T04:10:12 | 156,466,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,261 | py | import random
import sys
objectiveName = "LM"
language = sys.argv[1]
languageCode = sys.argv[2]
dropout_rate = float(sys.argv[3]) if len(sys.argv) > 3 else 0.33
emb_dim = int(sys.argv[4]) if len(sys.argv) > 4 else 100
rnn_dim = int(sys.argv[5]) if len(sys.argv) > 5 else 512
rnn_layers = int(sys.argv[6]) if len(sys.ar... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
81db18bcfb68e90a27adf52c75673c14410207b8 | b5f4dad59698f3f311a98db7932fddab2c3d0957 | /tests/extension/thread_/stream_constant/test_thread_stream_constant.py | c1daa3cb7d8af2ec8e38cb7787fdf122b830739f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | charudatta10/veriloggen | 84f5cd27d996ddf48750914e3bd4e74f7b4c9df7 | dd0d029f323a6510c07392e00ca6ba270bd407d2 | refs/heads/master | 2021-04-26T14:43:02.549058 | 2018-02-11T03:14:40 | 2018-02-11T03:14:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89,069 | py | from __future__ import absolute_import
from __future__ import print_function
import veriloggen
import thread_stream_constant
expected_verilog = """
module test;
reg CLK;
reg RST;
wire [32-1:0] myaxi_awaddr;
wire [8-1:0] myaxi_awlen;
wire myaxi_awvalid;
reg myaxi_awready;
wire [32-1:0] myaxi_wdata;
wir... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
7aa16390fac2a04b1be129c306ea0507fc300de1 | 6f0ceee714bccf2a89c34a06aabd3bcb781a2fa4 | /tests/python/gpu/test_numpy_fallback.py | dc367b03139c0fcb872418d3db2dada7314dd41b | [
"Apache-2.0",
"MIT",
"Unlicense",
"BSL-1.0",
"NCSA",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"OFL-1.0",
"BSD-2-Clause-Views",
"Zlib"
] | permissive | yajiedesign/mxnet | 5a495fd06dd1730c17d2d27d7e46c8a770847f17 | 8e5a16cf673db5aceb48d2cf7a0fc1abd0ee5e51 | refs/heads/master | 2021-03-30T22:37:18.603396 | 2020-10-23T06:40:17 | 2020-10-23T06:40:17 | 43,763,550 | 214 | 59 | Apache-2.0 | 2020-06-01T23:31:15 | 2015-10-06T16:36:40 | C++ | UTF-8 | Python | false | false | 4,728 | py | # 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 u... | [
"noreply@github.com"
] | yajiedesign.noreply@github.com |
6c72aa4b88d463eb65057a9ae6b0380975d34e05 | 5a169ab7b1a9eb419a0f46a2fbdc169b0dac8ecb | /cdhweb/blog/apps.py | f751cb8f1fd4d700d8c238e70a78c5f09a78ce3e | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | Princeton-CDH/cdh-web | b1db47f7c11c6eced71aaee8ddf078eeb84a19d8 | b065d69644147c5b88d7dafb3d7180c3da3ef45f | refs/heads/main | 2023-09-01T09:17:17.336396 | 2023-08-03T20:31:05 | 2023-08-03T20:31:05 | 71,808,328 | 1 | 5 | Apache-2.0 | 2023-09-14T14:04:47 | 2016-10-24T16:23:57 | Python | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class BlogConfig(AppConfig):
name = "cdhweb.blog"
| [
"rebecca.s.koeser@princeton.edu"
] | rebecca.s.koeser@princeton.edu |
4bf22539537a8f1f789ed31e664cd633e8de6836 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02897/s654715745.py | abe3e4e772cdeb9a4c7fc71fa90cc9c995ff8bf6 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | n=float(input())
if int(n)%2==0:
print(1/2)
else:
print(float(((n+1)/(2*n)))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4d30ab38156924fdc3bad48d9760d204c8fdebdc | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/bugs/core_4165_test.py | d2422778b5f53e4956446b0f1a4dd1f69a715d89 | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 1,993 | py | #coding:utf-8
"""
ID: issue-4492
ISSUE: 4492
TITLE: Replace the hierarchical union execution with the plain one
DESCRIPTION:
JIRA: CORE-4165
FBTEST: bugs.core_4165
"""
import pytest
from firebird.qa import *
init_script = """
recreate table t1(id int);
recreate table t2(id in... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
5d25234ef3941728dcf320cbda2aeea1d13e6d35 | a672ac356faa8743a78703812ce41eb48fc0f99f | /tests/contrib/falcon/test_middleware.py | 68a9614099575934169190628353ac591579082e | [] | permissive | dailymotion/dd-trace-py | 2dd0b23aac89b60d7b40a74692e210a9b8778e94 | 47ecf1d805bbdff3579a7d644595ac083af04c70 | refs/heads/master | 2023-04-13T19:56:00.888553 | 2018-12-05T21:27:46 | 2018-12-05T21:27:46 | 84,096,497 | 0 | 1 | BSD-3-Clause | 2023-04-07T00:17:31 | 2017-03-06T16:38:57 | Python | UTF-8 | Python | false | false | 543 | py | from falcon import testing
from tests.test_tracer import get_dummy_tracer
from .app import get_app
from .test_suite import FalconTestCase
class MiddlewareTestCase(testing.TestCase, FalconTestCase):
"""Executes tests using the manual instrumentation so a middleware
is explicitly added.
"""
def setUp(s... | [
"emanuele.palazzetti@datadoghq.com"
] | emanuele.palazzetti@datadoghq.com |
e614b59b4db80db0b7fa97d34be01f68a4243409 | d4fa331d7d8a00865f99ee2c05ec8efc0468fb63 | /alg/unique_path.py | b28469b75a95f6b64b6d410929fd04451d54d2e0 | [] | no_license | nyannko/leetcode-python | 5342620c789a02c7ae3478d7ecf149b640779932 | f234bd7b62cb7bc2150faa764bf05a9095e19192 | refs/heads/master | 2021-08-11T04:11:00.715244 | 2019-02-05T15:26:43 | 2019-02-05T15:26:43 | 145,757,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | class Solution(object):
def uniquePaths(self, m, n):
"""
:type m: int
:type n: int
:rtype: int
"""
table = [[-1] * n for _ in range(m)]
table[0][0] = 1
def dfs(m, n):
if m < 0 or n < 0:
return 0
if m == 0 and n ... | [
"9638293+nyannko@users.noreply.github.com"
] | 9638293+nyannko@users.noreply.github.com |
4e3b0e3d395a1dc1c02f2d1d43fa390d3354c17a | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/pandas/core/arrays/period.py | fe78481d99d30290ce2cd487ce98a865332146dd | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 32,396 | py | from datetime import timedelta
import operator
from typing import Any, Callable, List, Optional, Sequence, Type, Union
import numpy as np
from pandas._libs.tslibs import (
BaseOffset,
NaT,
NaTType,
Timedelta,
delta_to_nanoseconds,
dt64arr_to_periodarr as c_dt64arr_to_periodarr,
iNaT,
p... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
1bd9fba50c8d65cd8d1f749fbeb322b3d5990748 | 12a21462d6cdb37ff7336d498a75f578a8ec7959 | /lib/public/load_cases.py | 15ebcfc8940fd78877551e1317ae4af284186e82 | [
"MIT",
"Python-2.0"
] | permissive | bushidosds/MeteorTears | b1c23331aed6158662e6d544dbf71df2b10ef78d | cde3151b42e9ccae3c58e45233b637808c152571 | refs/heads/master | 2020-05-25T02:16:25.171245 | 2019-05-17T10:32:17 | 2019-05-17T10:32:17 | 187,575,106 | 1 | 0 | MIT | 2019-05-20T05:47:01 | 2019-05-20T05:47:01 | null | UTF-8 | Python | false | false | 1,611 | py | # -*- coding:utf-8 -*-
import yaml
from lib.utils import fp
from lib.public import logger
from lib.utils import exceptions
class LoadCase(object):
def __init__(self, path: str = None):
self.path = path
def get_all_files(self) -> list:
"""
返回文件目录路径下全部文件列表
:Usage:
... | [
"546464268@qq.com"
] | 546464268@qq.com |
fa21ef31448dccd7a96df6c42c7e27d93203474f | 9da8754002fa402ad8e6f25659978bd269bbcec8 | /src/426A/cdf_426A.py | acb2d5c61e1ef8068bbd8310cc8e909a4c400db3 | [
"MIT"
] | permissive | kopok2/CodeforcesSolutionsPython | a00f706dbf368ba0846c8ae86d4145b5dd3e1613 | 35bec0dbcff47765b123b5fe60476014376153df | refs/heads/master | 2023-02-02T03:08:22.097651 | 2020-12-17T22:00:50 | 2020-12-17T22:00:50 | 196,035,812 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | class CodeforcesTask426ASolution:
def __init__(self):
self.result = ''
self.n_s = []
self.mugs = []
def read_input(self):
self.n_s = [int(x) for x in input().split(" ")]
self.mugs = [int(x) for x in input().split(" ")]
def process_task(self):
self.mugs.sort(... | [
"oleszek.karol@gmail.com"
] | oleszek.karol@gmail.com |
95d20cf93f789370811e7bf8b5254408503d39e9 | d95cfcee3fc5825d10d9c930baac94ebe7b9fa13 | /tests/test_pysubstringsearch.py | ece0467bba081ffd33ddde85efc22cb0720d05f8 | [
"MIT"
] | permissive | Intsights/PySubstringSearch | 191723bcd3ed699fe91f552d75f52a3a24f7a61f | 1f027986472c5b3e5d1d0e12e0cf7259def8df9a | refs/heads/master | 2023-01-22T12:18:29.351840 | 2023-01-10T06:41:03 | 2023-01-10T06:41:03 | 231,457,596 | 34 | 3 | MIT | 2023-01-10T06:41:05 | 2020-01-02T20:51:12 | C | UTF-8 | Python | false | false | 8,338 | py | import os
import tempfile
import unittest
import pysubstringsearch
class PySubstringSearchTestCase(
unittest.TestCase,
):
def assert_substring_search(
self,
strings,
substring,
expected_results,
):
try:
with tempfile.TemporaryDirectory() as tmp_director... | [
"gal@intsights.com"
] | gal@intsights.com |
633e92496b35946000f6bd921841af0b78776164 | 0e8b6f94467c25dd2440f7e2ea1519244e689620 | /MokkaJobs/MokkaGridJobs.py | b46bd21da2de9d0ba74c112d8fce0236cb7084ce | [] | no_license | StevenGreen1/HighEnergyPhotonAnalysis | 97a661eaca2efd00472f1969855c724c9d505369 | 8a82ac57f56aad5bdbe99d4a5afb771592bc1725 | refs/heads/master | 2021-01-10T14:08:50.550184 | 2015-10-12T12:43:47 | 2015-10-12T12:43:47 | 43,491,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | # Submit Mokka jobs to the grid: MokkaGridJobs.py
import re
import os
import sys
### ----------------------------------------------------------------------------------------------------
def setGearFile(mokkaSteeringTemplate,gearFile):
mokkaSteeringTemplate = re.sub('GEAR_FILE_XXXX',gearFile,mokkaSteeringTemplate... | [
"sg1sg2sg3@hotmail.co.uk"
] | sg1sg2sg3@hotmail.co.uk |
ad1d6246f54fb89f7cf4d0bd153800016048e5b1 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/devices/v20170701/list_iot_hub_resource_keys.py | a406e6b6c9a9cbd4caa7847dbb84ed9eee6cb173 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 2,753 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
bd0f247b7986d7d12e7110d7fe7257f8dc06b819 | faabe34af6297530617395bcc6811350765da847 | /platforms/leetcode/DeleteNodesAndReturnForest.py | 4c40784b5befdda322e99dfa179d34fc32592d04 | [] | no_license | pqnguyen/CompetitiveProgramming | 44a542aea299bd553dd022a9e737e087285b8b6d | 27330e7ff79c4ac883d7e1fcdf2f0d30939c3f78 | refs/heads/master | 2021-07-21T12:15:47.366599 | 2021-06-27T14:58:48 | 2021-06-27T14:58:48 | 132,837,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def delNodes(self, root: TreeNode, to_delete: List[int]) -> List[TreeNode]:
to_delete = set(to_delete)
roots = []
... | [
"pqnguyen1996@gmail.com"
] | pqnguyen1996@gmail.com |
c8b141e64d1719e48b961907b0984796c4450614 | 4ace4d5a94ab0db79562f1b23edd6011a89148c6 | /src/airflow-stubs/contrib/hooks/dingding_hook.pyi | dab4dfa1201d2ddd2dda0f3a426571174e3d6bae | [
"MIT"
] | permissive | viewthespace/mypy-stubs | 9abebc2eab2b46b2230842f06114673e1a4de052 | 182fa275c4a7011eb5345694b88229adbddcc999 | refs/heads/master | 2023-06-07T18:52:46.739560 | 2023-06-01T22:05:27 | 2023-06-01T22:05:45 | 236,780,299 | 0 | 0 | MIT | 2022-01-11T20:53:55 | 2020-01-28T16:23:07 | Python | UTF-8 | Python | false | false | 532 | pyi | from airflow import AirflowException as AirflowException
from airflow.hooks.http_hook import HttpHook as HttpHook
from typing import Any
class DingdingHook(HttpHook):
message_type: Any
message: Any
at_mobiles: Any
at_all: Any
def __init__(self, dingding_conn_id: str = ..., message_type: str = ..., ... | [
"andrew.marshall@vts.com"
] | andrew.marshall@vts.com |
7919332572d3089ed39adfdcfd8799e6e725cb1d | 9b8ca63a377e6f94cc6a970cc97a6f7f50932811 | /nomitang_affpart/main.py | 3c8900c633842101ee3c2057923d4f1ddb4697b7 | [
"Apache-2.0"
] | permissive | lester-lees/extra_addons_sz | 9b6d2400abe4707b7b18d9e2e9caf2fb366cf3a6 | cddaf972cf4ea64c553bcff0006eb006a115d5ee | refs/heads/master | 2021-01-06T20:43:28.782147 | 2017-08-07T06:51:45 | 2017-08-07T06:51:45 | 99,545,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # -*- coding: utf-8 -*-
from openerp import http
from openerp.http import request
from openerp.addons.website.models.website import slug
class website_offlinestore(http.Controller):
@http.route(['/thanks',], type='http', auth="public", website=True)
def thanks(self, **post):
return request.website.... | [
"346994202@qq.com"
] | 346994202@qq.com |
7bb418e716f8d3155d546be5ac11af34f04a71ef | b9b7853bd32e6aa6f17b56befd36181e2349a4bd | /venv/Scripts/pip3-script.py | 1226a1d3d2367a0e0ba8a7b05a6a47ff5ae80feb | [] | no_license | bazhenov4job/Grokking_algorithms | e6eb2c0401b3f836d6907f6d95cd0f85399aa33e | 590347467b7183669e96b6c5f77e89f643118703 | refs/heads/master | 2020-12-28T18:40:10.654108 | 2020-02-12T07:52:40 | 2020-02-12T07:52:40 | 238,443,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!"D:\Programming\Grokking Algorithms\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"bazhenov4job@gmail.com"
] | bazhenov4job@gmail.com |
6c54c77da5bee9778fd95a7b143658328e2d1e93 | f9b919ee04754978f739c5516434c581a47c5eec | /music/migrations/0001_initial.py | ac5da28c56ca2e8706d5e74ff2e9a56684a4e237 | [
"MIT"
] | permissive | Hadryan/Music-Genre-Classification-5 | 7f50b9ef6778f96751c4f68391b730603f39a4bc | f67316b0710b2e5ca52e924e7f8254aa7897751b | refs/heads/master | 2022-11-05T12:33:52.208512 | 2020-06-20T14:23:04 | 2020-06-20T14:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | # Generated by Django 3.0.4 on 2020-05-06 09:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"noreply@github.com"
] | Hadryan.noreply@github.com |
56defed19b3fac8299dfa81f38dd0acfcfe3c66f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03131/s164720294.py | c6dae1c13c3e44a1cdba7b1c447617b939afe4a9 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | K,A,B=map(int,input().split())
q,r=divmod(K-A+1,2)
print(max(A+q*(B-A)+r,K+1)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d44c6a98ce3c3643012d4716f2421c191aced214 | 3d61905cb470e4918027d2b6d995246d60aab2b4 | /python/brenpysandbox/fbx/icons/icons.py | 4c4886a31942461edadeecb6010a77a12914b1c2 | [] | no_license | brenainnJordan/brenpy-sandbox | 6e36cfba617c4c9c8989bb36b78c3780b9d0959c | 6dd20d8b7722719742613d2efec2c2992fcfdd9a | refs/heads/master | 2020-08-28T17:16:24.041945 | 2020-06-21T19:58:15 | 2020-06-21T19:58:15 | 217,766,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,821 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: Sat 9. Jun 20:37:12 2018
# by: The Resource Compiler for PySide (Qt v4.8.7)
#
# WARNING! All changes made in this file will be lost!
try:
from PySide import QtCore
except ImportError:
from PySide2 import QtCore
qt_resource_data = "\x00\x00\x05\... | [
"brenainnjordan@googlemail.com"
] | brenainnjordan@googlemail.com |
a5ff6eb348ef84d8446262dfaac54d71e4608979 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2345/60708/256477.py | 3cb0de279548277ee58180dc06b8c2254444f0e3 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | N=eval(input())
for n in range(0,N):
l=eval(input())
listwrong=input().split(" ")
listresult=[]
listright=[]
for i in range(0,l):
listright.append(str(i+1))
for i in range(0,l-1):
if listwrong[i]==listwrong[i+1]:
listresult.append(listwrong[i])
break
i... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
578200ca81aacd2162a3509662c44dda5f63f3d6 | 33a50bb13812090a36257078522b798762978c66 | /top/api/rest/LogisticsAddressAddRequest.py | 7d798e9cee0dfaf1051e7c34d3b596dd71dc72e3 | [] | no_license | aa3632840/quanlin | 52ac862073608cd5b977769c14a7f6dcfb556678 | 2890d35fa87367d77e295009f2d911d4b9b56761 | refs/heads/master | 2021-01-10T22:05:14.076949 | 2014-10-25T02:28:15 | 2014-10-25T02:28:15 | 23,178,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | '''
Created by auto_sdk on 2014-09-08 16:48:02
'''
from top.api.base import RestApi
class LogisticsAddressAddRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.addr = None
self.cancel_def = None
self.city = None
self.contact_name = None
self.co... | [
"262708239@qq.com"
] | 262708239@qq.com |
6a9939922082aade9970368ecb9bd35d3ca06246 | 1297634c6641ec62c31cf30b8fabe1886aa8d9ea | /products_and_services_client/models/loan_interest_rate.py | afbcd7cfed79b47a5e2af0d0a10ef1bcfc3bb79d | [
"MIT"
] | permissive | pitzer42/opbk-br-quickstart | d77f19743fcc264bed7af28a3d956dbc2d20ac1a | b3f86b2e5f82a6090aaefb563614e174a452383c | refs/heads/main | 2023-03-04T13:06:34.205003 | 2021-02-21T23:41:56 | 2021-02-21T23:41:56 | 336,898,721 | 2 | 0 | MIT | 2021-02-07T22:03:15 | 2021-02-07T21:57:06 | null | UTF-8 | Python | false | false | 7,178 | py | # coding: utf-8
"""
API's OpenData do Open Banking Brasil
As API's descritas neste documento são referentes as API's da fase OpenData do Open Banking Brasil. # noqa: E501
OpenAPI spec version: 1.0.0-rc5.2
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.gi... | [
"arthurpitzer@id.uff.br"
] | arthurpitzer@id.uff.br |
3a877527b811e3300cf094da3d9842cd84d9119f | 629606ef6e0ce252f74729ac60f57ca8805c3c78 | /hw_001_Django/hw_009_test1/venv/bin/pip | 35101f0af30f654e8feaaf103ad4040a374ec8aa | [] | no_license | LeeXyan/lxgzhw006 | cc31024874725f60b766c9d5d24c2dafc66b8de3 | 621a73544262df7e104806579242deeaa8dbe2c2 | refs/heads/master | 2021-10-10T17:41:52.381843 | 2019-01-15T00:25:08 | 2019-01-15T00:25:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | #!/home/lxgzhw/PythonWork/hw_001_Django/hw_009_test1/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar... | [
"1156956636@qq.com"
] | 1156956636@qq.com | |
0d21f18658bf890b75fc662137cf8b561bcd829b | 059e13f143a56ffe091c3181000c6928a14e2931 | /gen_of_passwords/asgi.py | 4bfcef1cf41b7ba7a6afb7dd84b04e0bb3c4f9e2 | [] | no_license | bhobbs20/Password-Generator | 5b4fea8720c4b3f36bb129e87e3a0312247d17ea | 043be29289e9c217a9c2db2dacfd219f8bed11fc | refs/heads/master | 2022-12-29T05:18:45.905247 | 2020-10-13T19:21:27 | 2020-10-13T19:21:27 | 303,807,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for gen_of_passwords project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJA... | [
"brianhobbs216@gmail.com"
] | brianhobbs216@gmail.com |
dcb68361f62778ad7774c7e26665ce66d6246006 | 0378a2f1adad86f439ce214ebfe2a904cda6eb41 | /badball/migrations/0059_auto_20181203_0912.py | f113b7a5add80e8fe4053ec5329a7e873956d941 | [] | no_license | jeremyjbowers/badball | 2035902b5f8d2bc05219af887bd3e1bfcb45192b | 323289ec871e0e7e98e397c9d528d83773c86f85 | refs/heads/master | 2020-12-20T22:08:53.083230 | 2020-01-25T23:09:11 | 2020-01-25T23:09:11 | 236,222,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | # Generated by Django 2.0.8 on 2018-12-03 09:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('badball', '0058_team_championships'),
]
operations = [
migrations.AlterField(
model_name='tradereceipt',
name='picks... | [
"jeremyjbowers@gmail.com"
] | jeremyjbowers@gmail.com |
c33cd22e723b9f23db21dcc4d74c7254b66bddb4 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Programming_for_Computations/osc_odespy.py | 738ce8a9cd8f905bd423e40bb2c2d69a7eacb3ec | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 2,100 | py | """Use odespy to solve undamped oscillation ODEs."""
import odespy
from matplotlib.pyplot import \
plot, savefig, legend, xlabel, figure, title, hold, axis, show
def f(u, t, omega=2):
v, u = u
return [-omega**2*u, v]
def compare(odespy_methods,
omega,
X_0,
number_of_peri... | [
"bb@b.om"
] | bb@b.om |
82905322ff92eb35452700ad5dc945091769f7b8 | 64182f24837437f00d2676d0b88f385bff29ecdd | /skflow/ops/__init__.py | bfe55da03ec838382cf75e837869c94b5f529222 | [
"Apache-2.0"
] | permissive | riyazbhat/skflow | b413fb13027074c7bfcb426e401b07e50e04aa28 | e82fccc9cc27b535a60b4e13a0b4251269c858cc | refs/heads/master | 2020-12-29T00:56:39.206565 | 2015-12-06T02:43:41 | 2015-12-06T02:43:41 | 47,548,464 | 2 | 0 | null | 2015-12-07T11:36:47 | 2015-12-07T11:36:46 | null | UTF-8 | Python | false | false | 704 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"ilblackdragon@gmail.com"
] | ilblackdragon@gmail.com |
6566b8387a6df52a45b46c0e1a4d58d513a0c009 | f9a2e67dd2f40b37d8ff81bf6cdce47c38d2dee4 | /.c9/metadata/environment/fb_post_learning/fb_post_v2/tests/storages/test_reply_to_comment_post.py | d4c7d3954ef46369b70fa8885366f43143a54278 | [] | no_license | mohan277/backend_repo | 4eae065cf0fffa29866a2b549028cb8df4c97643 | 25dbb4d0f1c174b6da95f4c73737e49db9978429 | refs/heads/master | 2022-11-13T00:08:37.600743 | 2020-07-09T04:36:44 | 2020-07-09T04:36:44 | 278,259,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | {"filter":false,"title":"test_reply_to_comment_post.py","tooltip":"/fb_post_learning/fb_post_v2/tests/storages/test_reply_to_comment_post.py","undoManager":{"mark":0,"position":0,"stack":[[{"start":{"row":0,"column":0},"end":{"row":0,"column":2},"action":"insert","lines":["# "],"id":2},{"start":{"row":1,"column":0},"en... | [
"senammohanakrishna@gmail.com"
] | senammohanakrishna@gmail.com |
82e1ac853cc31945253c155f19edfcdbcc2ff2ce | 71e8bdddd84338bbb2d77934351d76251c2fd77d | /best-time-to-buy-and-sell-stock-iv.py | d811820af9e000057e587a39aa06076967a8a1a7 | [] | no_license | onestarshang/leetcode | 3da20fbec1b42d3565eb95a64ea3f30c29f1e1eb | 0a7aa09a2b95e4caca5b5123fb735ceb5c01e992 | refs/heads/master | 2021-01-09T06:00:06.018037 | 2016-12-17T16:17:49 | 2016-12-17T16:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | '''
https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most k transactions.
Note:
You may not engage in multiple transactions at the same time (ie... | [
"irachex@gmail.com"
] | irachex@gmail.com |
80593f47310c42501c062cf336ec8a03b7cc05fb | 4d6975caece0acdc793a41e8bc6d700d8c2fec9a | /leetcode/1576.reorder-routes-to-make-all-paths-lead-to-the-city-zero/1576.reorder-routes-to-make-all-paths-lead-to-the-city-zero.py | 0b9722ea1630b49eec25f9439a0d93b492c11a58 | [] | no_license | guiconti/workout | 36a3923f2381d6e7023e127100409b3a2e7e4ccb | 5162d14cd64b720351eb30161283e8727cfcf376 | refs/heads/master | 2021-08-03T10:32:02.108714 | 2021-07-26T04:38:14 | 2021-07-26T04:38:14 | 221,025,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | class Solution:
def minReorder(self, n: int, connections: List[List[int]]) -> int:
| [
"guibasconti@gmail.com"
] | guibasconti@gmail.com |
c87a4af03eb9fa29c6d0bbf0cbccdba9ae574442 | c4d9bdeb5353c6dd014f7c3f8d1f6380a76402af | /pylibviso2/node.py | 322165a8990a261c071e8120c8f71250ff8322d9 | [] | no_license | AtlasBuggy/libviso2-python | 28f390b7f516d7abe5c3acfdff5544d47788f726 | 5ae736a2e7f2bbe362e839c8d1c9dd2340245909 | refs/heads/master | 2021-03-22T01:09:12.302707 | 2017-10-26T06:37:22 | 2017-10-26T06:37:22 | 108,196,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | import time
from atlasbuggy.opencv import OpenCVPipeline
from .viso2 import Viso2Mono
class Viso2MonoPipeline(OpenCVPipeline):
def __init__(self, f, cu, cv, width=None, height=None, enabled=True, logger=None):
# self.set_logger(level=20)
super(Viso2MonoPipeline, self).__init__(enabled, logger=log... | [
"woz4tetra@gmail.com"
] | woz4tetra@gmail.com |
878f42c1659a8c2669d666f0fb1f88e53d6df1ec | 894b8a99a3e05dda63ff156d9a2f3ce81f25c3ba | /imix/evaluation/evaluator_imix.py | dda4bcbfe99888f98db7687b73393101f01022ce | [
"Apache-2.0"
] | permissive | jjInsper/iMIX | e5e46c580e2925fb94a2571c25777ce504ffab14 | 99898de97ef8b45462ca1d6bf2542e423a73d769 | refs/heads/master | 2023-08-08T01:24:47.161948 | 2021-09-16T09:35:35 | 2021-09-16T09:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,846 | py | import itertools
import json
import logging
import os
import pickle as pkl
from abc import ABCMeta, abstractmethod
from contextlib import contextmanager
from typing import Dict, Optional
import torch
from ..utils import distributed_info as comm
from ..utils.registry import Registry, build_from_cfg
METRICS = Registry... | [
"hsslab.inspur@gmail.com"
] | hsslab.inspur@gmail.com |
9ee34a36c6cbeac87b5646c5dbbb11eab6be70e7 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/xia2/Wrappers/XDS/XDSIdxrefHelpers.py | 1ece3814e6d03fb1f8d8c1c98da05f3ab386cc0f | [
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 4,598 | py | #!/usr/bin/env python
from __future__ import absolute_import, division, print_function
from xia2.Experts.LatticeExpert import ApplyLattice
def _parse_idxref_lp_distance_etc(lp_file_lines):
"""Parse the LP file for refined distance, beam centre and so on..."""
beam = None
diatance = None
i = 0
... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
154c06a1de6e9daa5b49b9d632fe6d9e1f3aca12 | f549367629d0a7cb04a7b39e5e1231a0cb9facd1 | /meter_mount/cnc/drill.py | a8ccf00b40ca4744656a641e5fdee5ffc29b43f0 | [] | no_license | iorodeo/lasercutter | 9d0a64e549a688eb7efa93d765dab5ed1b753110 | f99dddd183bdd200b2367ef11b4b72fefe82bbbe | refs/heads/master | 2022-11-05T06:59:56.153523 | 2016-01-17T02:25:38 | 2016-01-17T02:25:38 | 273,791,961 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | from __future__ import print_function
import os
import sys
from py2gcode import gcode_cmd
from py2gcode import cnc_dxf
feedrate = 50.0
fileName = 'meter_mount.dxf'
stockThickness = 0.25
drillMargin = 0.125
startZ = 0.0
stopZ = -(stockThickness + drillMargin)
safeZ = 0.3
stepZ = 0.05
startDwell = 0.5
prog = gcode_cm... | [
"will@iorodeo.com"
] | will@iorodeo.com |
d6e362aeef9e06deff41345d07bc7e077179895f | c6ed09339ff21fa70f154f34328e869f0dd8e394 | /python/PIL/img_resize.py | df58e1a603cfe03dbd1eaf110ceb6417453cdd19 | [] | no_license | fits/try_samples | f9b15b309a67f7274b505669db4486b17bd1678b | 0986e22d78f35d57fe1dd94673b68a4723cb3177 | refs/heads/master | 2023-08-22T14:35:40.838419 | 2023-08-07T12:25:07 | 2023-08-07T12:25:07 | 642,078 | 30 | 19 | null | 2022-12-28T06:31:24 | 2010-05-02T02:23:55 | Java | UTF-8 | Python | false | false | 177 | py |
import sys
from PIL import Image
img_file = sys.argv[1]
w = int(sys.argv[2])
h = int(sys.argv[3])
dest_file = sys.argv[4]
Image.open(img_file).resize((w, h)).save(dest_file)
| [
"wadays_wozx@nifty.com"
] | wadays_wozx@nifty.com |
bb624387b9809c5be48f30160e3823420ebc7d8c | 11763b1150a3a05db89c13dcd6152f8fcca87eaa | /designs/nonlinear/permutation/multipermutation.py | 4eadfbacef2804804aa094c272ce232c834a6bb7 | [] | no_license | acad2/crypto | 343c32fa25aaec73e169290579fc3d02c4b226f6 | cb283df4101fcd618a0478a0018273f00d0734ae | refs/heads/master | 2021-08-19T06:36:26.068033 | 2017-11-25T00:41:03 | 2017-11-25T00:41:03 | 113,048,326 | 2 | 0 | null | 2017-12-04T13:49:02 | 2017-12-04T13:49:01 | null | UTF-8 | Python | false | false | 1,866 | py | from crypto.utilities import random_bytes
WORD_SIZE_BITS = 32
MASK64 = (2 ** WORD_SIZE_BITS) - 1
STATE_LENGTH = 8
def generate_state(length=STATE_LENGTH):
return range(length)
def generate_key(length=STATE_LENGTH, mask=MASK64):
key_m = [(item & mask) | 1 for item in bytearray(random_bytes(l... | [
"python_pride@protonmail.com"
] | python_pride@protonmail.com |
07f4280c356519b82898efa367c3a2e25905248c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03033/s453850284.py | f13a451bed63db4a6bf67d8ade18d71786d676fd | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | def main():
n,q = map(int, input().split())
tl = []
que = []
d = dict()
for _ in range(n):
s,t,x = map(int, input().split())
tl.append((s-x,1,x))
tl.append((t-x,0,x))
for _ in range(q):
t = int(input())
tl.append((t,2))
tl.sort()
wor = set()
wc... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
78ece2afb6dc8d9e7775dd7cae8618c12045b454 | 49e1b436eaeb7064b674d611aa33d70ed8138cb5 | /examples/composing_pdf.py | e06a4c6f02e07f766bbd9ac4cf061e11f0852073 | [
"BSD-3-Clause"
] | permissive | aburke1605/zfit | ee810cf786b5121eee3cc2770d0d1b3c02ff86ac | d49fb5513b61b653cf0ca5b5720d4210862b2a70 | refs/heads/master | 2023-09-05T05:08:59.214839 | 2021-09-20T11:16:42 | 2021-09-20T11:16:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # Copyright (c) 2020 zfit
import zfit
# create space
obs = zfit.Space("x", limits=(-10, 10))
# parameters
mu = zfit.Parameter("mu", 1., -4, 6)
sigma = zfit.Parameter("sigma", 1., 0.1, 10)
lambd = zfit.Parameter("lambda", -1., -5., 0)
frac = zfit.Parameter("fraction", 0.5, 0., 1.)
# pdf creation
gauss = zfit.pdf.Ga... | [
"mayou36@jonas.eschle.com"
] | mayou36@jonas.eschle.com |
ffb5aae78efbd94d9112b4913b0759fb644ffd30 | d50bf972c9e4321eb77aad8a0126b27d70432779 | /apps/person/api/attribute/views.py | e350811058631c777e41b4a0d4984b9b8ffe0072 | [] | no_license | PUYUP/kawalmedia | 1778b3473220ff64e2f5c998649fc0f637787976 | ffff74b94f111bb17d7a290ba57a13c63e32e5fa | refs/heads/master | 2022-10-20T19:36:45.413061 | 2019-11-07T08:02:31 | 2019-11-07T08:02:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,487 | py | from uuid import UUID
from itertools import chain
from django.db.models import F, Subquery, OuterRef
from django.db import transaction
from django.utils.translation import ugettext_lazy as _
from django.utils.decorators import method_decorator
from django.core.exceptions import ObjectDoesNotExist
from django.views.dec... | [
"hellopuyup@gmail.com"
] | hellopuyup@gmail.com |
ff7c7cba1e29a444a9f3768a79707a6dc595f9e4 | d8b08995348ca42e1e748d8ca94cbf5a04912049 | /DataFetch-by-Python.py | 93bf77ab06b7c1b172ab67ae9c122b2c66be1ff9 | [] | no_license | sonkrsh/excelDataFetch | 8b9d375d3d660995fff0ad32065e07254baf2ad7 | 787db09349c483747d14933e3b8ebdd518117e69 | refs/heads/main | 2023-03-19T00:57:54.579518 | 2021-03-12T19:33:54 | 2021-03-12T19:33:54 | 347,176,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,203 | py | from calendar import monthrange
import pandas as pds
import openpyxl
from openpyxl.styles import PatternFill
# check = monthrange(2021, 3)
excelName = "reporddst.xlsx"
wb = openpyxl.load_workbook("C:\\Users\\S.S\\PycharmProjects\\locationData\\test.xlsx")
sh1 = wb["Sheet1"]
newData = pds.read_excel(r'C:\Users\S.S\Py... | [
"you@example.com"
] | you@example.com |
b7270e1e061dbd90bf3c7a6898118fd3d3223cfd | 222dbb2f43dccbd4538ef76798a26457edffe07c | /utils/plot_utils.py | 87ac03b4a10ee2e0494afbd36ccfe9a6ea1c7221 | [] | no_license | MJHutchinson/PytorchBayes | 9699351822416deeb61e95a34653580fdfbbb5ae | e95a9bd308c595b9603bdfb799288a0ed50cc7c6 | refs/heads/master | 2020-04-09T18:39:57.643468 | 2019-01-15T16:06:05 | 2019-01-15T16:06:05 | 160,519,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,693 | py | import matplotlib.pyplot as plt
import matplotlib
import numpy as np
# plt.style.use('ggplot')
# matplotlib.rcParams['text.usetex'] = True
def plot_training_curves(input, val = 'accuracies', legend=None):
_, ax = plt.subplots(1, 1)
ax.set_xlabel('Epoch')
ax.set_ylabel(val)
ax.set_title(val)
if leg... | [
"hutchinson.michael.john@gmail.com"
] | hutchinson.michael.john@gmail.com |
6da560cb7e9b94ac74c6ccaf666967b5c0da89c0 | 3d7dece5254e42059e8a2cb1e72b295460284983 | /components/py_engine/adapter/haas/fs/lib/qmi8610/qmi8610.py | 862159bccd9490abc5a0760baebe0603c505929c | [
"Apache-2.0"
] | permissive | windowxia/AliOS-Things | 172639d6e0d2b2e2e816bce757cf95e89187c132 | a99f20706f9c666903a12a205edce13263b1fadb | refs/heads/master | 2023-09-01T06:03:57.853390 | 2023-07-04T05:51:52 | 2023-07-04T06:49:36 | 149,751,180 | 0 | 0 | Apache-2.0 | 2018-09-21T10:56:09 | 2018-09-21T10:56:08 | null | UTF-8 | Python | false | false | 25,897 | py | """
Copyright (C) 2015-2021 Alibaba Group Holding Limited
MicroPython's driver for QMI8610
Author: HaaS
Date: 2021/09/14
"""
from micropython import const
from driver import I2C
from utime import sleep_ms
import math
M_PI = (3.14159265358979323846)
ONE_G = (9.80665)
FISIMU_STATUS1_CMD_DONE = cons... | [
"yilu.myl@alibaba-inc.com"
] | yilu.myl@alibaba-inc.com |
f0541ee8e9970bfd430b5485a39c0009a9631e76 | 72d010d00355fc977a291c29eb18aeb385b8a9b0 | /pushbase/user_component.py | 4dbab9d5ed556ff989cde117595a4b3af7d19a17 | [] | no_license | maratbakirov/AbletonLive10_MIDIRemoteScripts | bf0749c5c4cce8e83b23f14f671e52752702539d | ed1174d9959b20ed05fb099f0461bbc006bfbb79 | refs/heads/master | 2021-06-16T19:58:34.038163 | 2021-05-09T11:46:46 | 2021-05-09T11:46:46 | 203,174,328 | 0 | 0 | null | 2019-08-19T13:04:23 | 2019-08-19T13:04:22 | null | UTF-8 | Python | false | false | 2,340 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/pushbase/user_component.py
# Compiled at: 2018-04-23 20:27:04
from __future__ import absolute_import, print_function, unicode_literals
from ableton.v2.base import listens, task
from ableton.v2.control_sur... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
70b37329ad3c3cce6622f4f307c71cffaad6359f | ab19b1e637109f6a6f32e99714ea1c7cbe1d5ec0 | /month/migrations/0003_theme_slug.py | 1fbf6c4bf241ba87a30afe5e9f364aafa2a4cbf7 | [] | no_license | devonwarren/totemag | daf05876cfe636c4dcfe83b764900a0bc4c9c29d | 304ab0e2f72b926e63de706a6e3dc0b043db36fd | refs/heads/master | 2021-01-17T20:48:48.671352 | 2016-06-02T00:57:11 | 2016-06-02T00:57:11 | 58,146,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-31 19:21
from __future__ import unicode_literals
import autoslug.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('month', '0002_auto_20160218_1741'),
]
operations = [
migratio... | [
"devon.warren@gmail.com"
] | devon.warren@gmail.com |
7dce2e412e685f782d213ae6b57619108af2a154 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ksZrMdraPqHjvbaE6_21.py | 62dd6e59f1ddb1b33b29e51991bece4db558cf38 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py |
def largest_even(lst):
try: return list(set(i for i in lst if i%2==0))[-1]
except: return -1
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fcac3eef07e02c904d9de6b2316190c32ac0beb8 | 6550cc368f029b3955261085eebbddcfee0547e1 | /第6部分-Django(哪吒,肖锋)/django-2-进阶-肖锋/day69/day69/about_middleware/app01/views.py | 5de771df74370c060b8d9679eadaa846206f9934 | [] | no_license | vividyellow/oldboyeduPython14qi | d00c8f45326e16464c3d4e8df200d93779f68bd3 | de1e9f6efafa2846c068b3fe5ad6e1ca19f74a11 | refs/heads/master | 2022-09-17T21:03:17.898472 | 2020-01-31T10:55:01 | 2020-01-31T10:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from django.shortcuts import render, HttpResponse
def index(request,num):
# print(id(request))
print('这是index函数')
print(num)
# int('xxxx')
ret = HttpResponse('ok')
def xxxx():
print('这是index中的xxxx')
return HttpResponse('这是index中的xxxx')
ret.render = xxxx
print(id(r... | [
"524991368@qq.com"
] | 524991368@qq.com |
ba7f3cbbdd32ee244a8efb114ad65a1eb459ec44 | 49812e663d0033700af72c4f451581d1f05791ef | /scons/scons-local-3.0.1/SCons/Tool/GettextCommon.py | 65bcab474f5520609b22b109e130e8f6ada59217 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | faustus123/JANA | 1d9f6af0976b45eb9ceade584f3c0faeacf19b2c | 38ca14e79deeb4c13042c60d948356ab8e98cf0c | refs/heads/master | 2023-01-09T04:18:06.795419 | 2020-11-14T16:00:10 | 2020-11-14T16:00:10 | 103,759,870 | 0 | 2 | Apache-2.0 | 2020-11-14T15:57:50 | 2017-09-16T14:50:58 | Python | UTF-8 | Python | false | false | 18,282 | py | """SCons.Tool.GettextCommon module
Used by several tools of `gettext` toolset.
"""
# Copyright (c) 2001 - 2017 The SCons Foundation
#
# 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 withou... | [
"davidl@jlab.org"
] | davidl@jlab.org |
e7a09ab9ec31c89c57ed38ea021b3bf04496abf5 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/recoveryservices/v20210801/protected_item.py | a2f146601d0a8d02bd34288bd91194fa26b3ab31 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,641 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
e7f5999714364ca89bfd6d481fb3df9478301b51 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_fondue.py | 40fa3e508406b5f07e49c5433e9cbb0992d0ff0d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py |
#calss header
class _FONDUE():
def __init__(self,):
self.name = "FONDUE"
self.definitions = [u'a hot dish prepared by keeping a container of either hot oil or melted cheese over a flame at the table and putting pieces of meat in the oil to be cooked or pieces of bread into the cheese: ']
self.parents = []
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
cbf38e40373cc0ba6702a4cd35e5d42ac32433e4 | 2f989d067213e7a1e19904d482a8f9c15590804c | /lib/python3.4/site-packages/allauth/socialaccount/app_settings.py | feffe48c9996e4b546c0e9e2cfdecc3b368227bf | [
"MIT"
] | permissive | levabd/smart4-portal | beb1cf8847134fdf169ab01c38eed7e874c66473 | 2c18ba593ce7e9a1e17c3559e6343a14a13ab88c | refs/heads/master | 2023-02-18T05:49:40.612697 | 2022-08-02T09:35:34 | 2022-08-02T09:35:34 | 116,001,098 | 0 | 1 | MIT | 2023-02-15T21:34:01 | 2018-01-02T10:00:07 | Roff | UTF-8 | Python | false | false | 2,466 | py | class AppSettings(object):
def __init__(self, prefix):
self.prefix = prefix
def _setting(self, name, dflt):
from django.conf import settings
getter = getattr(settings,
'ALLAUTH_SETTING_GETTER',
lambda name, dflt: getattr(settings, name,... | [
"levabd@gmail.com"
] | levabd@gmail.com |
d04dd1eb86c2d5be15f8e8890339a17b61609cdb | 60b48df762a515a734cfbedd7ca101df43f04824 | /python/ray/tune/callback.py | 1782127612853015a8431a862aee2d96d2901aad | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | LuBingtan/ray | a02b13c4dceab2b0d54870fd3abae5c11bae916e | 298742d7241681ee1f307ec0dd3cd7e9713a3c7d | refs/heads/master | 2023-03-05T16:32:35.596725 | 2022-06-05T23:21:53 | 2022-06-05T23:21:53 | 223,334,544 | 0 | 1 | Apache-2.0 | 2023-03-04T08:56:53 | 2019-11-22T06:01:51 | Python | UTF-8 | Python | false | false | 10,687 | py | from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple
from abc import ABCMeta
import warnings
from ray.tune.checkpoint_manager import _TuneCheckpoint
from ray.util.annotations import PublicAPI, DeveloperAPI
if TYPE_CHECKING:
from ray.tune.trial import Trial
from ray.tune.stopper import Stopper
... | [
"noreply@github.com"
] | LuBingtan.noreply@github.com |
43e93fad15954e6b80db34598f7a446137cb7af2 | f1614f3531701a29a33d90c31ab9dd6211c60c6b | /alembic/versions/a27b6e57783e_add_price_field_into_product.py | abe46cef631b593c42bf69355694e6b56fccead4 | [] | no_license | pfpacheco/menu-sun-api | 8a1e11543b65db91d606b2f3098847e3cc5f2092 | 9bf2885f219b8f75d39e26fd61bebcaddcd2528b | refs/heads/master | 2022-12-29T13:59:11.644409 | 2020-10-16T03:41:54 | 2020-10-16T03:41:54 | 304,511,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | """add_price_field_into_product
Revision ID: a27b6e57783e
Revises: 7bbdc8a9d923
Create Date: 2020-05-15 16:10:48.441492
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = 'a27b6e57783e'
down_revision = '7bbdc8a9d923'
branch_lab... | [
"pfpacheco@gmail.com"
] | pfpacheco@gmail.com |
0e9112638e0087b9dbc8196f6bbc82002dfc1c6f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_104/257.py | 07a54af8721054894995ab319662d0fe7ec4ce8d | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | #!/usr/bin/env python
import sys
import multiprocessing
import itertools
log = sys.stderr
def doit(line):
n = [int(i) for i in line.split()]
n = n[1:n[0]+1]
log.write("Case: {0}\n".format(n))
for c in sorted([c for c in itertools.combinations(range(1, len(n)), 2)], key = lambda x: sum(x)):
lo... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a6028b97150017982a67e819999bbc0d43e86378 | 61d248b587c6a89f30caa8bc92daeda4d30cbcd2 | /Crawler/tools/convert.py | cd292c49afd90d4afe1a0b67b660424dedb0e5b6 | [] | no_license | luckyyd/hackathon-ocw | 0f6aab5899c628246a6391fd94116245bc4505e4 | b03fbbe7cad9456c84093b00cb946f2d14de50c5 | refs/heads/master | 2021-01-17T10:26:05.793986 | 2016-04-27T05:47:42 | 2016-04-27T05:47:42 | 52,526,118 | 0 | 1 | null | 2016-04-27T05:47:43 | 2016-02-25T13:26:36 | Python | UTF-8 | Python | false | false | 1,458 | py | # 把爬下内容融合到items.json中
import json
import codecs
import io
from pprint import pprint
def get_duration(olist, url):
for item in olist:
if (item['courselink']) == url: return item['duration']
return ''
#input_file = open(r'C:\Users\foamliu.FAREAST\Documents\GitHub\hackathon-ocw\FeedAPI\app\assets\jsons\i... | [
"foamliu@yeah.net"
] | foamliu@yeah.net |
112ef319e46a7d047de72eaa19d85ade85d1b4c9 | f807e5aecbe175e493ea1c47304ceca2817e6083 | /logging_exam/bar_logging.py | 53b4272d799d6cd9d906feec5f680ea020fd6675 | [] | no_license | jbking/logging-custom-for-json | d2a22745488d44fd667cb59a011c0232f531550c | 28613ef67fb0d1a4f7a440dcd838638ef8f9ee78 | refs/heads/master | 2023-03-24T03:47:12.295311 | 2021-03-18T04:44:10 | 2021-03-18T04:53:33 | 348,305,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | import logging
from loguru import logger
_logger = logging.getLogger(__name__)
def log_out(msg, additional_context=None):
if additional_context is None:
logger.info("logging out")
_logger.info("logging.logger out")
else:
with logger.contextualize(**additional_context):
l... | [
"yusuke@jbking.org"
] | yusuke@jbking.org |
8e10ece00228060d469cc533d663c551c8f60b8d | 5942e3e75ef7dc22a67b04fb1f12e14658a2093d | /documentation_files/findertools.py | f6431928c62051fbea22ed0766b2c89ba6574eb3 | [] | no_license | the-factory/kdevelop-python | 9e94d2a4d4906a31a4d2a8a08300766e02d41a59 | 1e91f2cb4c94d9455a2ee22fef13df680aeed1ab | refs/heads/master | 2021-01-18T08:57:16.707711 | 2012-04-09T22:37:47 | 2012-04-09T22:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
""":platform: Mac
:synopsis: Wrappers around the finder's Apple Events interface.
"""
def launch(file):
"""
Tell the finder to launch *file*. What launching means depends on the file:
applications are started, folders are opened and documents are opened in the
corr... | [
"svenbrauch@googlemail.com"
] | svenbrauch@googlemail.com |
48dd64e2d631e341b37a0b429a13766f9a0eb08a | 02fd239748a57ddd163ab411ce28a2b34e0182a9 | /homeassistant/components/bluetooth/__init__.py | f175b01b7980a21a213332fe499cdc9880fb8249 | [
"Apache-2.0"
] | permissive | fredrike/home-assistant | 77d05be0d2fd35dd862c56c7fb1ddde46d61ed05 | e852c9b012f2f949cc08e9498b8a051f362669e9 | refs/heads/dev | 2023-03-05T12:38:26.034307 | 2022-10-13T15:34:45 | 2022-10-13T15:34:45 | 107,095,841 | 2 | 0 | Apache-2.0 | 2023-02-22T06:14:52 | 2017-10-16T07:55:03 | Python | UTF-8 | Python | false | false | 14,372 | py | """The bluetooth integration."""
from __future__ import annotations
from asyncio import Future
from collections.abc import Callable, Iterable
import logging
import platform
from typing import TYPE_CHECKING, cast
import async_timeout
from awesomeversion import AwesomeVersion
from homeassistant.components import usb
f... | [
"noreply@github.com"
] | fredrike.noreply@github.com |
ad3e0221462b158b16454706a9dd1f8ccf500736 | 7a649b4969eecc48a13924c610409f32502e945f | /workspace_tools/data/support.py | d46c99ee9bc24d6d2c330faaf52eccb1eb69432c | [
"Apache-2.0"
] | permissive | giapdangle/mbed | 3434cfa485220a3997653742e85a020ab6eb488a | 4a6e8aa5f6f6ee6749dbf7ff4dade7501f73c996 | refs/heads/master | 2020-12-29T02:07:13.522820 | 2013-04-11T16:45:02 | 2013-04-11T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | DEFAULT_SUPPORT = {
"LPC1768" : ["ARM", "GCC_ARM", "GCC_CS", "GCC_CR", "IAR"],
"LPC11U24": ["ARM", "uARM"],
"LPC2368" : ["ARM"],
"KL25Z" : ["ARM", "GCC_CW"],
"LPC812" : ["uARM"],
}
CORTEX_ARM_SUPPORT = {
"LPC1768" : ["ARM"],
"LPC11U24": ["ARM", "uARM"],
"KL25Z" : ["ARM"],
"LPC81... | [
"emilmont@gmail.com"
] | emilmont@gmail.com |
5c1c5c7f5bf537882d403059f0342a0d9cb50424 | b8b26feac86b66b0b534996cf9c3fbf7ec660240 | /aoc/2017/p3-2.py | b3003e4e3d06cb26545a197036c34205d9cd62a1 | [
"MIT"
] | permissive | neizod/problems | 775fffe32166c5b124d0e4c973b8d0aba7f3900b | 180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a | refs/heads/master | 2021-07-08T12:30:31.100320 | 2021-05-26T09:34:19 | 2021-05-26T09:34:19 | 6,245,523 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | #!/usr/bin/env python3
grid = [[1]]
def iter_ring(size):
x = size - 1
y = size - 2
while y > 0:
yield x, y
y -= 1
while x > 0:
yield x, y
x -= 1
while y < size - 1:
yield x, y
y += 1
while x < size - 1:
yield x, y
x += 1
yiel... | [
"neizod@gmail.com"
] | neizod@gmail.com |
93bf28364394d57d3c7f4a0af0218e1624b63385 | 429d5ec5f3d4941391807f2a46582938698f82dc | /doc/Homeworks/Solutions/CodesPart2firstmidterm.py | 536c95a48aeffc6437934bd27ab13e3e29d4e9e0 | [
"CC0-1.0"
] | permissive | mhjensen/Physics321 | b24548bbe69633b4618f39ed0b0cf2eb94f10266 | 91970ed5502de694e4812dc77d886c02701f300e | refs/heads/master | 2023-08-04T06:29:22.148776 | 2023-07-24T20:38:14 | 2023-07-24T20:38:14 | 190,315,277 | 30 | 42 | CC0-1.0 | 2021-07-13T17:34:44 | 2019-06-05T02:52:53 | HTML | UTF-8 | Python | false | false | 1,248 | py | import numpy as np
from math import *
import matplotlib.pyplot as plt
# The acceleration a = F/m with F = -dV/dx
def acceleration(x):
return (-1/m)*((10/(x**2)) + (-2*3/(x**3)) + 1)
def potential_energy(x):
return -10.0/x +3.0/(x**2) + 1.0*x
# initial time
t0 = 0
#final time
tf = 10.0
dt = 0.00001
# set up a... | [
"morten.hjorth-jensen@fys.uio.no"
] | morten.hjorth-jensen@fys.uio.no |
2bf0f812aba10ee36b3e812498abf89e69bdafa1 | 3b4e8cc46c1373d36150ad839d2f6539ea8f92b3 | /qmcpy/accumulate_data/_accumulate_data.py | 9b04e7fbd1ad2b0356f426d5bc5ce79ae29a46f9 | [
"Apache-2.0"
] | permissive | kachiann/QMCSoftware | a244efb085c95924ee80a5aa8b8480ea4a9f8e72 | 0ed9da2f10b9ac0004c993c01392b4c86002954c | refs/heads/master | 2023-01-11T12:01:19.527177 | 2020-10-29T03:49:47 | 2020-10-29T03:49:47 | 313,940,226 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | from ..true_measure._true_measure import TrueMeasure
from ..util import ParameterError, MethodImplementationError, _univ_repr, DimensionError
class AccumulateData(object):
""" Accumulated Data abstract class. DO NOT INSTANTIATE. """
def __init__(self):
""" Initialize data instance """
prefix =... | [
"agsorokin3@gmail.com"
] | agsorokin3@gmail.com |
9dc8c6f47259ee29a2b53f1fabf5e6d90e53eb36 | ea8a9889534df7323b3d159ff4ba9563191b8eba | /phantomcli/scripts/util.py | 1dfa842bb230f1dcc79c38592d4b01c65ae2acaa | [
"MIT"
] | permissive | the16thpythonist/phantom-cli | 946b7fb69fd4917ba10f46fe2ecbd3884ee49513 | 921588dda66bf84bf79569493f4e4312b59cd56d | refs/heads/master | 2023-01-11T21:22:28.962704 | 2020-01-15T10:07:16 | 2020-01-15T10:07:16 | 171,679,615 | 2 | 2 | null | 2022-12-26T20:47:38 | 2019-02-20T13:37:21 | Python | UTF-8 | Python | false | false | 3,142 | py | # standard library imports
import logging
from collections import defaultdict
# local imports
from phantomcli.network import PhantomSocket
# ##############
# LOGGING CONFIG
# ##############
# This will be the translation table, which will be used to return the appropriate constant for defining the logging
# level ... | [
"jonseb1998@gmail.com"
] | jonseb1998@gmail.com |
578c8787ceceb57fd6f1b00ccf5a18c45bce3112 | d62863d049c0206bfa744ca4c9e886030bfce1ab | /core/sw_content/api/urls.py | bb16923771941697e7d045724f76f110488d8588 | [] | no_license | jurgeon018/box | 51738b99e640202936ed72357d3c67d2517e589b | 50b84a0afa73fab85a00eef54194f3c126d15397 | refs/heads/master | 2021-07-17T13:37:08.665292 | 2020-10-15T09:50:33 | 2020-10-15T09:50:33 | 232,013,297 | 0 | 1 | null | 2020-03-27T02:16:44 | 2020-01-06T03:01:34 | Python | UTF-8 | Python | false | false | 159 | py | from django.urls import path, include
from .views import *
urlpatterns = [
path('contents/', contents_list),
path('contents/<code>/', content),
]
| [
"jurgeon018@gmail.com"
] | jurgeon018@gmail.com |
fe51faa3136ef571cd703ca4d4e1d4e76927e009 | 3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1 | /pytools/map_partitioning/bin/logfile_utils/show_trajectory.py | d9f9db720d302afbb88b0a3504799fb9d6148ab7 | [] | no_license | stefie10/slu_hri | a76f79094bd1740676fec5d889411ba3b1d9dc26 | 50753379953e1ff822162eeab094cffe4a30f3e1 | refs/heads/master | 2022-12-14T01:07:51.522258 | 2020-08-31T00:50:12 | 2020-08-31T00:50:12 | 291,386,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | from pyTklib import tklib_log_gridmap
import carmen_maptools
from sys import argv
from pylab import *
def load_logfile(filename):
filein = open(filename, 'r')
C =[]
X = []
Y = []
for line in filein:
c, x, y = line.split()
C.append(float(c))
X.append(float(x))
Y.appen... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
0725144ab0336ebe177e178f18b16ccb28c97f24 | ea5b878376318675931f21ffda41c5914ad0e382 | /keras/optimizers/optimizer_experimental/rmsprop.py | f0ae4683563940c788925ed6817093352ec74525 | [
"Apache-2.0"
] | permissive | Wajih-O/keras | 44089847c6f284b2c2150da8530c5fe05c2a8bb5 | 9628af85a0a2cb04cf433b1ad991017b70ae2005 | refs/heads/master | 2022-03-03T15:20:18.045765 | 2022-02-19T00:16:17 | 2022-02-19T00:16:55 | 125,854,516 | 0 | 0 | null | 2018-03-19T12:32:07 | 2018-03-19T12:32:07 | null | UTF-8 | Python | false | false | 7,968 | py | # Copyright 2021 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
862419c52e382090fdc0f8bc88d9d9b50545d941 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /PwGFjiSG3kXzp8rjw_0.py | 2c3f3f4190281dfb4dc976c0f2a808f87fb5bbdb | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | """
Write a function that returns the number of users in a chatroom based on the
following rules:
1. If there is no one, return `"no one online"`.
2. If there is 1 person, return `"user1 online"`.
3. If there are 2 people, return `user1 and user2 online"`.
4. If there are `n>2` people, return the first two na... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7826493709d5a6a51af0f7209ab65ba1793cbebc | dde0d75db42c19390f2625a7888586e4d2a14fd7 | /devel/lib/python2.7/dist-packages/cob_object_detection_msgs/msg/_AcquireObjectImageActionFeedback.py | d03d53c76fce7f6174de8350f9d81778cbd1ce33 | [] | no_license | dhemp09/uml-robotics | 16460efe8195a3f9a6a8296047f4fd4d9df0de80 | 862132e00e221b0a86bc283e7568efa984be673f | refs/heads/master | 2020-03-26T09:44:04.033762 | 2018-08-15T18:11:18 | 2018-08-15T18:11:18 | 144,762,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | /home/dan/dan_ws/devel/.private/cob_object_detection_msgs/lib/python2.7/dist-packages/cob_object_detection_msgs/msg/_AcquireObjectImageActionFeedback.py | [
"dhemp09@gmail.com"
] | dhemp09@gmail.com |
56701fd811a38660046b136f603979a0cef5719a | 964f2882117ff656d7a2757c233c6dd88226d975 | /services/catalog/src/simcore_service_catalog/core/application.py | 9738689b9d5b75e0d9567c716f0419f4c9c74665 | [
"MIT"
] | permissive | ignapas/osparc-simcore | a002dd47d7689af9c1c650eea33e31add2b182c1 | cb62e56b194265a907f260f3071c55a65f569823 | refs/heads/master | 2023-01-22T08:55:32.580775 | 2022-12-09T15:57:36 | 2022-12-09T15:57:36 | 170,852,656 | 0 | 0 | MIT | 2023-01-09T05:03:04 | 2019-02-15T11:12:34 | Python | UTF-8 | Python | false | false | 3,437 | py | import logging
import time
from typing import Callable, Optional
from fastapi import FastAPI, Request
from fastapi.exceptions import RequestValidationError
from fastapi.middleware.gzip import GZipMiddleware
from servicelib.fastapi.openapi import override_fastapi_openapi_method
from starlette import status
from starlet... | [
"noreply@github.com"
] | ignapas.noreply@github.com |
b413251bf658c5caebaf53a11df9e546d7b74c8d | fb6037de54380ef9776fa18b099df03129cef27b | /config.py | 0f52e7589bdb34f27ca16a8992c3e2cb5ee0941f | [] | no_license | webclinic017/newmainbucketssurver | 1385dffe0ea573bb9cb81a4eeb5ddd341aabe88c | 71f86ec7d52b7d68960ecd2fed6b11713b11622e | refs/heads/main | 2023-07-08T10:03:02.915075 | 2021-08-05T13:25:13 | 2021-08-05T13:25:13 | 395,801,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | from flask_restful import Api
from flask import Flask
from flask_cors import CORS
from flask_mail import Mail
from dotenv import load_dotenv
from cryptography.fernet import Fernet
from flask_jwt_extended import JWTManager
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.jobstores.mongo... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
7f54b92aa08f3953e791158a06be7ed846bbe676 | 2029785d79244b601c978deb2617e88cc658dc9e | /config.py | f2cfc36ddde563db0c6ade78c57a0b1148b0b1fc | [] | no_license | JalexDooo/Pytorch_Learning | 025bcf422c5fb39b03a2a6521fc69502d899c37e | 622cddff30359763270fffa0b52dca79b02164bb | refs/heads/master | 2020-04-03T02:06:36.248827 | 2018-11-01T03:33:45 | 2018-11-01T03:33:45 | 154,947,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import torch as t
import warnings
class DefaultConfig(object):
"""docstring for DefaultConfig"""
env = 'default' # visdom
vis_port = 8097
model = 'AlexNet'
train_data_root = './data/train/'
test_data_root = './data/test'
load_model_path = None
batch_size = 32
use_gpu = True
num_workers = 4 # how many worke... | [
"393351322@qq.com"
] | 393351322@qq.com |
9da4f23ce929496941a6e018e60fc0d53ce7f602 | d4f9a423353fe79cf8824a8407690655fc1379fe | /django/virtualenv/django/lib/python2.7/site-packages/ansible-2.2.0-py2.7.egg/ansible/modules/extras/system/modprobe.py | 94c1a70437b97af6e6cb0e52a67fbc5c237d1106 | [] | no_license | 007root/python | 9ab62d433d17c8bb57622fd1d24a3b17cb3d13ad | 16bf729e5824555eab0c9de61ce6b8b055551bd1 | refs/heads/master | 2020-06-23T09:43:05.308328 | 2020-06-09T08:31:20 | 2020-06-09T08:31:20 | 74,656,519 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,607 | py | #!/usr/bin/python
#coding: utf-8 -*-
# (c) 2013, David Stygstra <david.stygstra@gmail.com>
#
# This file is part of Ansible
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of ... | [
"wangzhishuai@gstianfu.com"
] | wangzhishuai@gstianfu.com |
680104933550f68f797b59cca2f9483dcc428cf3 | 7d8e040cb703e6f6e2d55b5dc64fc9124d85dde8 | /skl2onnx/algebra/onnx_ops.py | b7e0a2b62582c6dce562bb0d6f48ac7c95de2feb | [
"MIT"
] | permissive | Global-localhost/sklearn-onnx | fc44aa481a91482f187cfd2307df6061b77742af | a8267e7ba946d8b0596951060e5dca39fec47439 | refs/heads/master | 2023-03-23T00:19:31.474251 | 2021-03-03T19:17:12 | 2021-03-03T19:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,316 | py | """
Place holder for all ONNX operators.
"""
import sys
import numpy as np
import onnx
from .automation import get_rst_doc
def ClassFactory(class_name, op_name, inputs, outputs,
input_range, output_range,
domain, attr_names, doc,
deprecated, since_version,
... | [
"noreply@github.com"
] | Global-localhost.noreply@github.com |
c6e6f419fb3b519d47880163dc872c60998281b1 | 845058c3434ff43c5f9bd48df13818bef74f04e3 | /tyler/cs301/spring19/materials/code/lec-08/sec3/battleship.py | d2e064aef38d1dee1842b8a4e1b5a7e87db4a51a | [] | no_license | tylerharter/caraza-harter-com | ad7d7f76a382dfd1d4ff4c05922ea57425d1be2b | 70b983a28d94d744b92c9f00dfb8ec6ca20e080d | refs/heads/master | 2023-08-18T23:16:21.588376 | 2023-08-09T17:03:18 | 2023-08-09T17:03:18 | 142,339,324 | 19 | 114 | null | 2023-02-21T18:28:00 | 2018-07-25T18:35:07 | HTML | UTF-8 | Python | false | false | 685 | py | def draw_map(x, y, character):
width = 10
height = 10
print(('.' * width + "\n") * y, end="")
print("." * x + character + "." * (width - (x + 1)))
print(('.' * width + "\n") * (height - (y + 1)))
def ship1_hit(x, y):
ship1_x = 5
ship1_y = 4
return (x == ship1_x and y == ship1_y)
de... | [
"tylerharter@gmail.com"
] | tylerharter@gmail.com |
2b00016707f4dff6df93aa5b50870a5ba7828138 | a47f76fafa48d5bc8888659f855f518b5369e47a | /Week2/Mathematics/Learn/nthTerm(GP).py | ac1ecc9079d6441dd278a38f76df3b825d515421 | [] | no_license | psycho-pomp/DSA-Workshop | 49fce46c3abd7f6a08f065cf61c217a429d4193c | d71bc6d796bb099b85bfc735ca0f1af2a3ac69fc | refs/heads/main | 2023-04-28T22:09:21.466000 | 2021-05-06T18:55:06 | 2021-05-06T18:55:06 | 316,889,663 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | # Abhishek Anand
# Geometric Progression
a,r,n=map(int,input().split())
nthTerm=a*r**(n-1)
print(nthTerm)
| [
"noreply@github.com"
] | psycho-pomp.noreply@github.com |
170b36e7ee43850c846de900bb40777b8a51c861 | c1eec99e798d71878b341cb016c4b1be193d5a68 | /tests/test_inplayserviceresources.py | 0ae060ae2704306a437f141d4dc57bad9881653c | [
"MIT"
] | permissive | KelvinVail/betfairlightweight | 7f7dc14ae80dc1778f8819d3990a5fe2f4d0703b | 3bcad61b2319e40c02fd41cd5179838e53e995ad | refs/heads/master | 2021-01-15T20:03:19.918425 | 2017-08-09T17:55:32 | 2017-08-09T17:55:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from __future__ import print_function
import unittest
import datetime
from betfairlightweight import resources
from tests.tools import create_mock_json
class InPlayServiceTest(unittest.TestCase):
def test_scores(self):
mock_response = create_mock_json('tests/resources/scores.json')
resource = ... | [
"paulingliam@gmail.com"
] | paulingliam@gmail.com |
720f9ff24ca6f6b8bfcb316886af1ead65756ab9 | a2d13658503b9b921e27994152ab6adb554725bc | /store/migrations/0065_auto_20210205_1244.py | 4faf2433a9c2ce5bd22224da671c9cd04cea01fd | [] | no_license | avishkakavindu/sushi-chef-django | 40a1d7916d7f8c37ba1290cb717af517d2bce265 | 4c112d806720d903877822baaa26159c32704901 | refs/heads/master | 2023-03-18T11:12:41.721554 | 2021-03-11T08:22:52 | 2021-03-11T08:22:52 | 303,053,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Generated by Django 3.1.5 on 2021-02-05 07:14
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0064_auto_20210205_1227'),
]
operations = [
migrations.AlterField(
model_name='coupon',
nam... | [
"avishkakavindud@gmail.com"
] | avishkakavindud@gmail.com |
7254d4913dabf70b27f3b77a544a4b9cbf1d9990 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008-EOL/programming/libs/indilib/actions.py | 6bc591a0b0b40e7bbf3c3b128c1d8577fa1bfce1 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDi... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
a20349f17c7be0c3eb620b4d2bc9924a7c4380e4 | ac9c04d564d781eab3a5a0e2d7fce8377047a6d5 | /obsoper/test/test_coordinates.py | 510fa864ce079dfd46ddaaecde821ccc965c12dc | [
"BSD-3-Clause"
] | permissive | met-office-ocean/obsoper | ee57fb4bc0f5f06e9126bbb161223aca4d535e45 | 15030dedc3cbdeb67407b940b4f923b054520fc3 | refs/heads/master | 2021-01-11T01:36:07.516059 | 2019-02-01T12:15:54 | 2019-02-01T12:15:54 | 70,684,510 | 0 | 0 | null | 2017-02-06T16:40:37 | 2016-10-12T09:28:36 | Python | UTF-8 | Python | false | false | 1,393 | py | # pylint: disable=missing-docstring, invalid-name
import unittest
import numpy as np
import obsoper
class TestCartesian(unittest.TestCase):
def test_cartesian_given_lists_returns_arrays(self):
x, y, z = obsoper.cartesian([], [])
self.assertIsInstance(x, np.ndarray)
self.assertIsInstance(y,... | [
"andrew.ryan@metoffice.gov.uk"
] | andrew.ryan@metoffice.gov.uk |
cf7d79495cf0d5ed570d0a3b691e1abfc9c4f004 | 00af09f4ac6f98203910d86c3791c152184ace9a | /Lib/quopri.py | f0fe0bb0b515f03975ed67085bd7b4e0fae36cb1 | [] | no_license | orf53975/CarnosOS | 621d641df02d742a2452fde2f28a28c74b32695a | d06849064e4e9f30ef901ad8cf90960e1bec0805 | refs/heads/master | 2023-03-24T08:06:48.274566 | 2017-01-05T16:41:01 | 2017-01-05T16:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,890 | py | <<<<<<< HEAD
<<<<<<< HEAD
#! /usr/bin/env python3
"""Conversions to/from quoted-printable transport encoding as per RFC 1521."""
# (Dec 1991 version).
__all__ = ["encode", "decode", "encodestring", "decodestring"]
ESCAPE = b'='
MAXLINESIZE = 76
HEX = b'0123456789ABCDEF'
EMPTYSTRING = b''
try:
from binascii imp... | [
"Weldon@athletech.org"
] | Weldon@athletech.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.