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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d73d98f06edb94e50dab034f62e6b8cc1236312e | 561b2f8eace9e706cd441194e317faf816805475 | /devel/lib/python2.7/dist-packages/spot_msgs/msg/_SystemFaultState.py | cef3e5a5213ed9e8ff136ac8f7083ddf26a8f180 | [] | no_license | mis0butter/towr_dog | 99e0ae387e3c92cf1ba11bb922290ce5d6ed5b2a | 3add1e4279886a11901e965f558620d5a18a441e | refs/heads/master | 2023-04-03T13:16:31.359730 | 2021-04-13T13:47:43 | 2021-04-13T13:47:43 | 357,432,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,376 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from spot_msgs/SystemFaultState.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import genpy
import spot_msgs.msg
import std_msgs.msg
class SystemFaultState... | [
"junetter@gmail.com"
] | junetter@gmail.com |
2dc15ac461648afed2aea078eb28f6d87a1d201b | 98f113c2b2bf5c6f491b33d535d2b0ef04ab9d5f | /settings.py | d9fe4d7d09939ae2f29fbbcb0ed6d6152faf7f4a | [] | no_license | suyash248/persistent-zeromq | 218dfa93e0f88e8230e7f3e8659b4e11e3568dce | fd80ab416b8031385d24c18ccebe81f22affb36b | refs/heads/master | 2023-04-05T12:59:48.250566 | 2019-08-23T14:52:46 | 2019-08-23T14:52:46 | 133,035,239 | 1 | 1 | null | 2023-03-31T14:34:33 | 2018-05-11T12:10:48 | Python | UTF-8 | Python | false | false | 126 | py | GLOBAL_TOPICS = ["GLOBAL","GENERAL"]
REDIS_CONF = {
'REDIS_HOST': '127.0.0.1',
'REDIS_PORT': 6379,
'REDIS_DB': 0
} | [
"suyash.soni248@gmail.com"
] | suyash.soni248@gmail.com |
5aee51921fb4287de85ea092307a4dda446e53cc | e12edf6cde9670eb3d4f1596cd648fddefaf480f | /codeforces/april_fools_2022/b.py | 6e3092c6046169c1ddaf51819a02897c3faf1506 | [] | no_license | VitamintK/AlgorithmProblems | 7a7786a0377a236f5cc82ae3b623ecad7f0eb025 | 34da53e2e7d3b5964bafd1f3edb2e00dea9a729d | refs/heads/master | 2023-06-29T00:56:53.360829 | 2023-06-14T16:33:14 | 2023-06-14T16:33:14 | 25,510,479 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | n = int(input())
print(3000-n + 2999) | [
"kevinwang@kevinwang.us"
] | kevinwang@kevinwang.us |
20029e273f5f644ad9b198738011d31bd8507fcb | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_11_01/aio/_container_service_client.py | 1190b7ffc4cdfd6ba9dbcfbe25621adfcf0e85c7 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 6,238 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
e03c70c06c4207e25e1de4aac4b78111417b2402 | eefe5d24d491b377cf800a364513d42b54b82ac6 | /q2_mlab/db/cli.py | c0d2ae86f64437aa9d97307dab0e0581e5c1d362 | [
"BSD-3-Clause"
] | permissive | knightlab-analyses/regression-benchmarking | bd13863467508a53a0aa279352645217852918b1 | 90a9dd1f4196d76145d17d733dffc13830fd95fa | refs/heads/master | 2021-12-24T20:53:55.133543 | 2021-05-28T00:08:17 | 2021-05-28T00:08:17 | 189,495,382 | 0 | 4 | BSD-3-Clause | 2022-08-22T23:00:09 | 2019-05-30T23:25:10 | Python | UTF-8 | Python | false | false | 1,933 | py | import click
import json
from qiime2 import Artifact
from q2_mlab.db.maint import (
create as db_create,
add_from_qza
)
@click.group()
def mlab_db():
pass
@mlab_db.command()
@click.option(
'--db',
help='Path to SQLite database file.',
type=click.Path(exists=False),
)
@click.option(
'--ec... | [
"garmstrong@colgate.edu"
] | garmstrong@colgate.edu |
ec4a0125630f647be15c733ba44b40cdb74e7bd9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_pakistanis.py | 9db240f265727093e054ad951fb7e2e89bf3f2b9 | [
"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 | 259 | py |
from xai.brain.wordbase.nouns._pakistani import _PAKISTANI
#calss header
class _PAKISTANIS(_PAKISTANI, ):
def __init__(self,):
_PAKISTANI.__init__(self)
self.name = "PAKISTANIS"
self.specie = 'nouns'
self.basic = "pakistani"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
209c544571eca341ce639686cb4c59a4cf46fee1 | 3f7203b42fcdcb804f6cd24375c03d422b52ede1 | /rephile/db.py | 04e6675617b09cc9ecb8773689b9b140083fca8b | [] | no_license | brettviren/rephile | e0097eafeedc8ae3ff5e93e17af8f5ae43ae3be7 | 55d9d27bd96904f73be54c416014f27fd276d245 | refs/heads/master | 2023-06-19T19:46:38.847872 | 2021-07-10T17:12:12 | 2021-07-10T17:12:12 | 324,655,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | #!/usr/bin/env python3
'''Functions that operate on the cache db.'''
import os
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from rephile.types import Base
def engine(url):
'Get db engine'
if url is None:
raise ValueError("no db url given, set REPHILE_CACHE?")
if ":"... | [
"brett.viren@gmail.com"
] | brett.viren@gmail.com |
98e4d378dc1203c0f9004e68afe1062cbca34fa0 | 171a89102edf10901e18a2c0f41c3313608d2324 | /src/rogerthat/capi/location.py | de49bbe02c88f0b6acb91ef0dfd23d8bfb86a0c2 | [
"Apache-2.0"
] | permissive | gitter-badger/rogerthat-backend | 7e9c12cdd236ef59c76a62ac644fcd0a7a712baf | ab92dc9334c24d1b166972b55f1c3a88abe2f00b | refs/heads/master | 2021-01-18T06:08:11.435313 | 2016-05-11T08:50:20 | 2016-05-11T08:50:20 | 58,615,985 | 0 | 0 | null | 2016-05-12T06:54:07 | 2016-05-12T06:54:07 | null | UTF-8 | Python | false | false | 1,928 | py | # -*- coding: utf-8 -*-
# Copyright 2016 Mobicage NV
#
# 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... | [
"bart@mobicage.com"
] | bart@mobicage.com |
5c70aaeaee6a1e8f55abddf9d91e1cb597f15482 | 1f263c319b48e65502054bd60d2a9c24b43ffb0d | /SConstruct | faf09c80173d76752163193c509a09154511e950 | [] | no_license | cr1901/pcbios | 9df5f1f4d675ee5068cdb3c59f0c3fce76be57e7 | f4d7c9d90f3146cd4d6a662cfa3c493f2a85729a | refs/heads/master | 2020-12-24T17:36:32.968187 | 2015-03-15T05:38:06 | 2015-03-15T05:38:06 | 30,989,952 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | #===============================================================================
#Initial Checks and Imports
#===============================================================================
EnsurePythonVersion(2, 7)
EnsureSConsVersion(2, 2)
#Todo- create COM environment
#Create bin environment as well
#When ready to ... | [
"thor0505@comcast.net"
] | thor0505@comcast.net | |
34eb77045acd3bb7d42ac799140d26024f415fe9 | 2a6412a9359a1df5f8f12e319e73b9e4e46fd64c | /code/PythonINIAD/birthday.py | 7da22a5ef52d672de1863d432d4ddf428a27bee3 | [] | no_license | danganhvu1998/myINIAD | 504d1147a02f12e593f30e369daf82f85aa01bfd | 01547673dd3065efb6c7cc8db77ec93a5a4f5d98 | refs/heads/master | 2022-03-17T12:58:34.647229 | 2022-02-08T06:34:19 | 2022-02-08T06:34:19 | 143,675,719 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | birthday = int(input("Your birthday:"))
result = ['Whatever your birthday is, it will not effect your life!','Whatever your birthday is, it will not effect your life!','Whatever your birthday is, it will not effect your life!','Whatever your birthday is, it will not effect your life!','Whatever your birthday is, it wil... | [
"danganhvu1998@gmail.com"
] | danganhvu1998@gmail.com |
a72e473ed67a621bb2018856fa87c31054c01594 | 57240c6d3ab2949eb464080859665fa65ec2d86e | /Cogent/reconstruct_contig.py | 70d5359582630852af3193b9e4f8e2b97e361b8d | [] | no_license | 52teth/Cogent | 05bb1665f20a4d9458d545ae2d9c2394d9d03708 | 5ecb61b7a812f5baa7a0242996c20ddb3be1cfa9 | refs/heads/master | 2020-05-27T21:18:51.957098 | 2017-02-23T21:15:29 | 2017-02-23T21:15:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,642 | py | __author__ = 'etseng@pacb.com'
import os
import sys
import time
import logging
from Bio import SeqIO
import networkx as nx
from Cogent.__init__ import get_version
from Cogent import settings as cc_settings
from Cogent import sanity_checks, splice_cycle
from Cogent import splice_graph as sp
from Cogent.Utils import tr... | [
"magdoll@gmail.com"
] | magdoll@gmail.com |
b281976e851b991f8042e97b8a2909040514b581 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2588/58547/256572.py | 2ec120fa35b0064910b3e819520d179b88b22ac1 | [] | 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 | 2,010 | py | import math
prime_lib = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 31... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
896f9b6ec4126ab4ba111f4cc2e724f58bbf1510 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2576/60738/300462.py | 03d8fde9474baaea3f8036a084d1eb8ed644f6f6 | [] | 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 | 115 | py | arr=eval(input())
target=int(input())
if target//len(arr)<=min(arr):
print(target//len(arr))
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
ad57376dc09271f8b513613e2bc039d5477c1650 | d7641647d67d110e08997767e85bbea081c2537b | /bitmovin_api_sdk/models/s3_role_based_input.py | a88e094a7586003c685071603a44248c337d287e | [
"MIT"
] | permissive | aachenmax/bitmovin-api-sdk-python | d3ded77c459852cbea4927ff28c2a4ad39e6026a | 931bcd8c4695a7eb224a7f4aa5a189ba2430e639 | refs/heads/master | 2022-11-16T08:59:06.830567 | 2020-07-06T07:16:51 | 2020-07-06T07:16:51 | 267,538,689 | 0 | 1 | MIT | 2020-07-06T07:16:52 | 2020-05-28T08:44:44 | Python | UTF-8 | Python | false | false | 12,823 | py | # coding: utf-8
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
from bitmovin_api_sdk.models.aws_cloud_region import AwsCloudRegion
from bitmovin_api_sdk.models.input import Input
import pprint
import six
class S3RoleBasedInput(Input):
@po... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
12b574ded5a3509f6cd4b5248dbb65e290627675 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_4_neat/16_0_4_RoyPortgas_Fractals.py | ca1e818b1b5eb3648aec9e979782f33c4f4c9623 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 5,443 | py |
# Original sequence GLLL: GGGG GLLL GLLL GLLL
# Original sequence LGLL: LGLL GGGG LGLL LGLL
# Original sequence LLGL: LLGL LLGL GGGG LLGL
# Original sequence LLLG: LLLG LLLG LLLG GGGG
# X X
# X X
#Notice, Nothing with at least 1 G can have LL at 2,12
#... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
e10912e191bf9924856b5fe4b2644fcfc9de9a33 | 3cd9578f7572f7d68a71cebddf5797046041d832 | /bin/pildriver.py | c12c2d01d84a83376bc2618964cd88080be89c9f | [] | no_license | kijames7/DjangoBlog2.0 | e05cb6b71f60228f9d51b5051d478c694201690a | 7737dcb502942d2335edf1d93fca7899a5acb93f | refs/heads/master | 2021-01-10T08:22:52.017364 | 2016-04-11T05:14:05 | 2016-04-11T05:14:05 | 55,369,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,610 | py | #!/Users/james/Desktop/django/DjangoBlog2.0/bin/python
"""PILdriver, an image-processing calculator using PIL.
An instance of class PILDriver is essentially a software stack machine
(Polish-notation interpreter) for sequencing PIL image
transformations. The state of the instance is the interpreter stack.
The only me... | [
"james@Jamess-MacBook-Pro.local"
] | james@Jamess-MacBook-Pro.local |
0096abbd5dbd5533669f51a86e51d8286f7f2fc6 | 5f1881006aaf4f3c2515f375ad29c15fd6612de2 | /poset_decoding/traversal_path_prediction/MatchZoo-py/matchzoo/models/anmm.py | abb0ee0b2c8e205436372172a8fb026815bbba29 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | microsoft/ContextualSP | 4edb598d40f683f9a1143b92a9d24e1066d51ec4 | 4198ebce942f4afe7ddca6a96ab6f4464ade4518 | refs/heads/master | 2023-08-02T22:08:40.503853 | 2023-07-14T07:22:50 | 2023-07-14T07:22:50 | 255,534,819 | 332 | 70 | MIT | 2023-07-25T19:23:48 | 2020-04-14T07:01:54 | Python | UTF-8 | Python | false | false | 5,268 | py | """An implementation of aNMM Model."""
import typing
import torch
import torch.nn as nn
from matchzoo.dataloader import callbacks
from matchzoo.engine import hyper_spaces
from matchzoo.engine.base_model import BaseModel
from matchzoo.engine.param import Param
from matchzoo.engine.param_table import ParamTable
from ma... | [
"qian.liu@buaa.edu.cn"
] | qian.liu@buaa.edu.cn |
0f9c454947a958eb86e8d2e94e14bec64f3d2bfc | 6af81c1e3853255f064ce58e848b34211decdd23 | /test/top/api/rest/FenxiaoProductcatUpdateRequest.py | bbec6ba8bf66ad3eee723d14b87017fa33a77bde | [] | no_license | dacy413/TBAutoTool | d472445f54f0841f2cd461d48ec6181ae2182d92 | ca7da4638d38dd58e38c680ee03aaccf575bce7b | refs/heads/master | 2016-09-06T16:13:01.633177 | 2015-02-01T00:04:50 | 2015-02-01T00:04:50 | 29,625,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | '''
Created by auto_sdk on 2015-01-20 12:36:26
'''
from top.api.base import RestApi
class FenxiaoProductcatUpdateRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.agent_cost_percent = None
self.dealer_cost_percent = None
self.name = None
... | [
"1656505353@qq.com"
] | 1656505353@qq.com |
11a79f2794f2303f980aa223864be4422b8e662f | da44f6c5b37a96744ae480a06bb223511fad8858 | /server1_film/build/lib/doubiyang/settings.py | 7e86444cbc86ca4bafbfa24e108d1c182cec2f6f | [] | no_license | lezhangjian/scrapy | b46e0f036c1609e74b2ec675ac2c576e744b9aad | c479e9d3ce93064342c654c5396c3a9471290d26 | refs/heads/master | 2020-07-23T04:39:53.323131 | 2019-09-10T02:29:54 | 2019-09-10T02:29:54 | 207,447,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | # -*- coding: utf-8 -*-
# Scrapy settings for doubiyang project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/top... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
eed8c8f2e90a2a2fa9fa3f23da9442e57cae5eb4 | 60375e35068724b53e201fa9a5e86ebdabeac560 | /gtutorial/messaging/http.py | 7ed6f67d9acb7a9ee53418d2451fddc26374aa31 | [] | no_license | rayleyva/ginkgotutorial | ab3d2bf6ab68fc72f6ab5d60910e6b9922c191ac | 12e9c77840c61ef8530600379d195d75863a7cc8 | refs/heads/master | 2021-01-21T00:12:05.080757 | 2012-03-08T01:23:24 | 2012-03-08T01:23:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,638 | py | import random
import socket
import json
import socket
import collections
import logging
import gevent.pywsgi
import gevent.queue
import webob
from gservice.core import Service, autospawn
from gservice.config import Setting
logger = logging.getLogger(__name__)
class HttpStreamer(Service):
address = Setting('pubs... | [
"progrium@gmail.com"
] | progrium@gmail.com |
77bc3c00f2dabfe001c8f386edaf652c846faa18 | 696799b824503429a3ac65ebdc28890bfbcaebe0 | /plugins/com.astra.ses.spell.gui.cots_4.0.2.201806070922/win32/spell/spell/lib/hifly/task.py | 17d71c291a684d746fce4dd6b2901b78fe3376ea | [] | no_license | CalypsoCubesat/SPELL_GUI_4.0.2_win32_x86 | a176886b48873b090ab270c189113a8b2c261a06 | 9275ecfff2195ca4d4c297f894d80c1bcfa609e3 | refs/heads/master | 2021-08-03T08:04:25.821703 | 2019-10-28T04:53:50 | 2019-10-28T04:53:50 | 217,968,357 | 0 | 0 | null | 2021-08-02T17:03:44 | 2019-10-28T04:50:59 | Python | UTF-8 | Python | false | false | 10,351 | py | ################################################################################
"""
(c) SES-ASTRA 2008
PACKAGE
spell.lib.hifly.task
FILE
task.py
DESCRIPTION
hifly Task management interface
COPYRIGHT
This software is the copyrighted work of SES ASTRA S.A.
All rights reserved.
PROJECT
... | [
"matthew.travis@aresinstitute.org"
] | matthew.travis@aresinstitute.org |
06326f59dfc1d10275dc9ed9dd1a8aad2fbba715 | d5850f9a45098f635ddacba9e9ecb6dc1ee733e1 | /{{cookiecutter.project_slug}}/backend/app/app/crud/utils.py | 3d7863466219ddd3ac9bffdec3df51d4558a65b9 | [
"MIT"
] | permissive | tiangolo/full-stack-flask-couchbase | d4df2ad5e560d4bb210599123912f18085b8d77e | 4b74f124394cf658d4a51c277919e81dea7f999e | refs/heads/master | 2022-11-21T07:37:32.176877 | 2022-11-14T16:15:27 | 2022-11-14T16:15:27 | 154,149,461 | 57 | 13 | MIT | 2020-02-07T18:48:50 | 2018-10-22T13:31:32 | Python | UTF-8 | Python | false | false | 5,472 | py | import uuid
from enum import Enum
from typing import List, Sequence, Type, Union
from couchbase.bucket import Bucket
from couchbase.fulltext import MatchAllQuery, QueryStringQuery
from couchbase.n1ql import CONSISTENCY_REQUEST, N1QLQuery
from pydantic import BaseModel
from pydantic.fields import Field, Shape
from app... | [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
ec9b9e73b0bf55b677a011a8775120d5c90fb9d0 | 758ac6a75ca021d8595975be0d41fa50c7bfdf88 | /phantomjs/screen_capture_400.py | 19cabecd0b218e482bc55898fb979d4cdfb12855 | [] | no_license | Henry2012/recipes | 5a04197a41e94a638c20350b3e0ec6d23702808d | fe61d1bd57f922a41a816939e5ef2e9abd7eb6e9 | refs/heads/master | 2020-04-21T14:16:51.034571 | 2014-07-01T08:09:35 | 2014-07-01T08:09:35 | 18,829,830 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | #! /usr/bin/python
#-*- coding:utf-8 -*-
"""
Author(s): Qiqun Han
Company: EverString Technology Ltd.
File: phantomjs.screen_capture.py
Description: this program
Creation: 2013-11-26
Revision: 2013-11-26
Copyright (c) All Right Reserved, EverString Technology Ltd., http://www.everstring.com
"""
import subprocess
impo... | [
"qiqun.h@everstring.net"
] | qiqun.h@everstring.net |
7c2a327ae906b406e7ec005850cf0abc14844476 | 6f0a897e79e5c9210a3568b6a4ed09ffff3d9e3a | /info_collector/migrations/0002_info_status.py | 9a6d71abbc6b8c1e509dd60675589ed6400d4dc0 | [] | no_license | fruitschen/fruits_learning | 3e215d891c094afccdbd465402540678c7a4656e | d9108961ea3aef507f61e056ee6d4b2cf43a1f55 | refs/heads/master | 2023-07-06T11:56:46.367259 | 2021-10-06T15:01:13 | 2021-10-06T15:01:13 | 82,281,023 | 1 | 2 | null | 2023-09-05T22:56:29 | 2017-02-17T09:35:08 | JavaScript | UTF-8 | Python | false | false | 469 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 06:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('info_collector', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='info',
... | [
"fruitschen@gmail.com"
] | fruitschen@gmail.com |
fdf8e072b41723a47a73441b964e90af1d2e0505 | c734bedf8f6ada2e4ced225e84cefe867d6407fe | /t5/data/cache_tasks_test.py | 8041ab02c6762ba9d9fa03e58ec0ec5a36a949c0 | [
"Apache-2.0"
] | permissive | cybersnus/text-to-text-transfer-transformer | 7ba30f99b580bfbd8f07f405f359c7d0ab6fdcb0 | 9deeeac0cf49988339579186e829a891d8343ec6 | refs/heads/master | 2022-12-16T05:16:58.000310 | 2020-09-16T10:06:09 | 2020-09-16T10:06:09 | 284,441,794 | 0 | 0 | Apache-2.0 | 2020-08-02T10:46:36 | 2020-08-02T10:46:35 | null | UTF-8 | Python | false | false | 4,350 | py | # Copyright 2020 The T5 Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"t5-copybara@google.com"
] | t5-copybara@google.com |
65dc401c56fe35a8ca98d490a66322f070da3df1 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/merraRF882/297-tideGauge.py | b9e87aff0da5c4c52a907e62c3cd4a73baf3c1f7 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,456 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
This program is designed to validate a Random Forest
model by using the KFOLD method
@author: Michael Tadesse
"""
#import packages
import os
import glob
import numpy as np
import pandas as pd
from sklearn import metrics
from scipy import stats
import se... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
a3633887c80abbb00aa6d765bce2e8388f0bda2e | 4cada642a3c4419977dc642847c689464c2f0fb7 | /skeleton_scripts/google_scores.py | 5d3a3f61ee9705bae00a2a4e55c5b08e60b84509 | [] | no_license | constantinpape/block_experiments | 615f3050e9e3af79cfa2379e011129d34e57de32 | ed0f0c9039adb3085ae45e0047d8a3abb3251344 | refs/heads/master | 2021-04-08T21:36:49.241426 | 2018-05-28T20:41:18 | 2018-05-28T20:41:18 | 125,417,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | import os
import json
from cremi_tools.skeletons import build_skeleton_metrics
# TODO add run-length computation
def compute_google_scores(block_id, seg_key, skeleton_postfix):
path = '/nrs/saalfeld/lauritzen/0%i/workspace.n5' % block_id
label_file = os.path.join(path, 'raw', 'segmentations', 'results', seg_k... | [
"constantin.pape@iwr.uni-heidelberg.de"
] | constantin.pape@iwr.uni-heidelberg.de |
c5ce1e03a6a9727a31f56a9ca538539b045469d7 | 8371e55cd5dc529611fd705c62476728e7b7e529 | /kornia/enhance/histogram.py | f71ef9c89f7f1d80f649b6d8f7720bf60c9f6349 | [
"Apache-2.0"
] | permissive | timgates42/kornia | 3436515991f8799027766beef767c05ba3796cb0 | 03ab49feb075149c0df65d47cdb91d563b8980e2 | refs/heads/master | 2023-03-20T21:22:22.836296 | 2022-07-03T08:56:33 | 2022-07-03T08:56:33 | 236,164,451 | 0 | 0 | null | 2020-01-25T12:01:24 | 2020-01-25T12:01:23 | null | UTF-8 | Python | false | false | 9,850 | py | from typing import Optional, Tuple
import torch
def marginal_pdf(
values: torch.Tensor, bins: torch.Tensor, sigma: torch.Tensor, epsilon: float = 1e-10
) -> Tuple[torch.Tensor, torch.Tensor]:
"""Calculate the marginal probability distribution function of the input tensor based on the number of
histogram ... | [
"noreply@github.com"
] | timgates42.noreply@github.com |
11d6d67d95986b5e69a7acfbc62647f523c38ad1 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/WMO_Blender/wow_custom_ui.py | 7b11d49bc471b6b14ddce9475c6d2fa81d7a4646 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,193 | py |
import bpy
import bpy.utils
import bpy.types
###############################
## Material
###############################
class WowMaterialPanel(bpy.types.Panel):
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "material"
bl_label = "Wow material"
bl_options = {'DEFAULT_CLOSED... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
3a08168808f5319cb3f8626227b8eaee17987b64 | d30788b3a12a2a5406228db4a32a68667f069660 | /speakers/models.py | 39e28a541d48008ced64740ef80b252c2e6c26d5 | [] | no_license | sembug/pywatch.com.br | 8543204c1410b22e5e748b0f474d6b608fdb8872 | 0e9894261b19fb4e4b43463e60807c24dc78c2f8 | refs/heads/master | 2021-01-18T01:59:03.955138 | 2015-09-01T00:00:22 | 2015-09-01T00:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | # -*- coding:utf-8 -*-
# Core Django imports
from django.db import models
from django.utils.translation import ugettext as _
from django.core.urlresolvers import reverse
from django.contrib.auth.models import AbstractUser
from django.views.generic.edit import CreateView
# Realative imports of the 'app-name' package
f... | [
"lucassrod@gmail.com"
] | lucassrod@gmail.com |
10594e3c8d085af15c8254970f8baa20650f0538 | d786fe979eef20b0538f3e9fecedc8d021b55a17 | /session10/exercises/inlist.py | 1f5d730947be16fe23ecc8bcdd08a5e0fe01bdb2 | [] | no_license | Waylonryan/mis3640 | 962ae36080de08d3ada9971c4529808cb718c072 | 5182a8fbe12a2e0116f61d9e541311537909ed07 | refs/heads/master | 2020-04-04T06:57:10.342733 | 2018-10-30T21:19:56 | 2018-10-30T21:19:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | def make_word_list():
"""Reads lines from a file and builds a list using append.
returns: list of strings
"""
word_list = []
fin = open('words.txt')
for line in fin:
word = line.strip()
word_list.append(word)
return word_list
def in_bisect(word_list, word):
"""Checks w... | [
"zli@babson.edu"
] | zli@babson.edu |
f9393e7e1ba89b3ce0d39c77af65e8b05f2072c3 | ecb14510d79a1fc4d7f9c0e71b2f9a5afe89bd1c | /tmuxp/window.py | c856f1d9ca0057f2a4a5a97c37bf74ab8175ab7d | [
"BSD-3-Clause"
] | permissive | roxit/tmuxp | c640bacb576aeee23932b8719347ab23ad0a5024 | 20029dc7bb88dc404be0c84d31842b0393a30bb4 | refs/heads/master | 2021-01-15T10:43:05.149042 | 2014-01-09T06:24:18 | 2014-01-09T06:24:18 | 15,756,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,584 | py | # -*- coding: utf8 - *-
"""Pythonization of the :term:`tmux(1)` window.
tmuxp.window
~~~~~~~~~~~~
"""
from __future__ import absolute_import, division, print_function, \
with_statement, unicode_literals
import pipes
import logging
from . import util, formats, exc
from .pane import Pane
logger = logging.getLogg... | [
"tony@git-pull.com"
] | tony@git-pull.com |
b4237134fa7abaf290826451765066d47f25b152 | c16841e3b90e7be26868d5581299119df4006b7b | /all_tests/ut34.py | 1398406096f8210470437378b798001411cd06a2 | [
"Apache-2.0"
] | permissive | shushantkumar/ci_edit_final | 49e32871c796ef5353877da13cbd0e63db60037e | 3b13c7a39b2112ed8daaa70bc4f0f50d67909494 | refs/heads/master | 2020-08-28T04:51:08.905537 | 2019-11-03T08:19:47 | 2019-11-03T08:19:47 | 217,596,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import curses
import os
import sys
from all_tests.curses_util import *
import all_tests.ci_program
import all_tests.fake_curses_testing
kTestFile = u'#all_testslication_test_file_with_unlikely_file_name~'
c... | [
"shushantkmr2@gmail.com"
] | shushantkmr2@gmail.com |
27268378530fedbbb74425e945e7a8af81544980 | a49bf2214bafeceaf37d005d0ae2d9b63ac8c304 | /500/arrays/12.py | 5c4812e7a2cca279032489329b3bc9fa77326bad | [] | no_license | aishwat/missionPeace | aea0e4cb0ba483581b0c01980b2cefb5b5b7394f | 8c2accdc98c04ad1ba3a0f8c789a0261fc03e385 | refs/heads/master | 2023-03-19T09:20:36.920890 | 2023-03-07T14:01:05 | 2023-03-07T14:01:05 | 221,540,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | # Find index of 0 to replaced to get maximum length sequence of continuous ones
# 2 solutions, 1st is very tricky, need to maintain left pointer and coumnt
# 2nd one here, kinda hack
def getIndex(a):
n = len(a)
for i in range(1, n):
if a[i] == 1:
a[i] += a[i - 1]
print(a)
i = n - 1... | [
"aishwat.singh@target.com"
] | aishwat.singh@target.com |
a9193e799a4ae85ef9653d64978abbc1ecdeaf2d | d9a469bc9cff39d89e7cb04e4fc537763aee9aca | /binance_chain/ledger/client.py | 2fd0e8ad6b265cb1d2e6b01d93733b0d390b6c80 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | sammchardy/python-binance-chain | d017c0f1e6bd84d28017f87e2d229b21a2ee8b8a | 19d7d639cc912a27ec86831338c2a2dc96289d50 | refs/heads/master | 2023-05-11T19:15:44.912507 | 2021-06-01T03:14:25 | 2021-06-01T03:14:25 | 172,324,144 | 310 | 111 | MIT | 2022-06-30T10:55:19 | 2019-02-24T10:29:29 | Python | UTF-8 | Python | false | false | 5,468 | py | import re
import binascii
from typing import Optional
from btchip.btchip import writeUint32LE, BTChipException
from binance_chain.environment import BinanceEnvironment
from binance_chain.ledger.exceptions import LedgerRequestException
class LedgerApp:
BNC_CLA = 0xbc
BNC_INS_GET_VERSION = 0x00
BNC_INS_P... | [
"hello@sammchardy.net"
] | hello@sammchardy.net |
3b7ec4896cfb192db129eabe747182e8a69d940a | 622f97befe3e569290a021bacfdfd88dfe925f16 | /upload2.py | 67aaf0018326124b2d79defce661a8805e841fd4 | [] | no_license | Sapphirine/visualization_user_movement_social_networks | 0f8cc25abd2c6db09ddf995048bf16e257f70ecd | 8ccb51a6371705037b7f46619c9d60e6dcdeb40c | refs/heads/master | 2021-01-12T05:44:44.689886 | 2016-12-23T03:57:59 | 2016-12-23T03:57:59 | 77,187,129 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | import mysql.connector
f = open('./loc-gowalla_edges.txt', 'rb')
cnx = mysql.connector.connect(user='final', host= 'check-in.cm2toc8pkwqx.us-east-1.rds.amazonaws.com',
password= 'final123', database='final')
cursor = cnx.cursor()
data = f.read()
add_column = ("INSERT INTO edge "
"(Person1, Person2) "
... | [
"noreply@github.com"
] | Sapphirine.noreply@github.com |
ecc87bce910e84e12e547826c2d132f32f7b53f6 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_15415.py | 114ba7410d7ecd9c0854fdf84f969acafca67608 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | # Unable to connect to database : Pyodbc
username = "domain\\user"
connection_string = "DRIVER={FreeTDS};SERVER=xxxx;PORT=xx;DATABASE=xxxx;UID=%s;PWD=xxx;CHARSET=UTF8;TDS_Version=8.0" % username
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
5f89cc50e9bfea5efa839427f4be19da8f99dc6d | 21605e9ded0f40e1fdc0caaa984b94b0dec288c3 | /specialMajor/3-8/list/firstapp/migrations/0014_comment_belong_to.py | 9610d2b51178ada5f3470dfe1f617a6e318e3e2b | [] | no_license | Devinwon/webprj | a09c84a23a2935a9fdb8dc25880d2ba023d9c390 | 96a5c952f00a89ce9fa97c114048d2e6f5c59f1d | refs/heads/master | 2021-09-17T07:57:37.652959 | 2018-06-29T08:19:16 | 2018-06-29T08:19:16 | 115,863,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-11 09:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('firstapp', '0013_auto_20170611_1733'),
]
operation... | [
"reaptem@gmail.com"
] | reaptem@gmail.com |
82f03086e25c7dedfb439caa033146501795a685 | 8d06a98ad1535e309424c612b573cbce3468fbe1 | /Examples/IPlugChunks/scripts/update_installer_version.py | 9eb51f3f81e1b3147bfa22f67a4bf93329675f65 | [
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | olilarkin/iPlug2 | 96c8214eaa41bb4f6feefceb16e85fce92ef5aab | 4fb57035338be0ec51a7c024162bdbc5a4058a07 | refs/heads/master | 2021-06-27T11:26:24.558679 | 2021-05-11T22:36:14 | 2021-05-11T22:36:14 | 243,630,155 | 3 | 1 | NOASSERTION | 2020-02-27T22:31:21 | 2020-02-27T22:31:20 | null | UTF-8 | Python | false | false | 3,020 | py | #!/usr/bin/python
# this script will update the versions in packages and innosetup installer files to match that in config.h
import plistlib, os, datetime, fileinput, glob, sys, string
scriptpath = os.path.dirname(os.path.realpath(__file__))
projectpath = os.path.abspath(os.path.join(scriptpath, os.pardir))
IPLUG2_R... | [
"olilarkin@googlemail.com"
] | olilarkin@googlemail.com |
84148f1f40ab72d3f9655a960548891494baf3b7 | 2dd5ae0e7bc431c25f4d933288ab2169bdca24f5 | /apps/trade/migrations/0006_auto_20190902_1510.py | 9146366c6032bb2af78e83aaac2385977a7273e3 | [] | no_license | luoshanya/mxshop | 8725bfb0526fa992faf9474991157dbcaeb4d77c | d77c00082e54a4d4bf3f4cfdf14581fb78dafeb6 | refs/heads/master | 2020-07-29T08:50:16.809593 | 2019-09-09T13:24:57 | 2019-09-09T13:24:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # Generated by Django 2.1.4 on 2019-09-02 15:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('trade', '0005_auto_20190901_1028'),
]
operations = [
migrations.RenameField(
model_name='order',
old_name='mount',
... | [
"onerf@sina.com"
] | onerf@sina.com |
62ee44e246c13963dc9b3995e720778d3a415695 | fd8fe6ccc691cb41fa4a03cd4a93b4c45f90f712 | /tests/test_streams.py | 566deb2db6e5aebd542cec892cc4110f39b95797 | [
"BSD-3-Clause"
] | permissive | noajshu/websockets | eb93b913afd05badaa70db84b2dbdbf2bf474882 | 16a3bc72252e52c2b0ef6272fd2fef60381ba5c8 | refs/heads/main | 2023-05-05T03:53:37.678224 | 2021-05-19T14:33:54 | 2021-05-19T14:33:54 | 368,693,948 | 0 | 0 | BSD-3-Clause | 2021-05-18T23:45:38 | 2021-05-18T23:45:38 | null | UTF-8 | Python | false | false | 4,640 | py | from websockets.streams import StreamReader
from .utils import GeneratorTestCase
class StreamReaderTests(GeneratorTestCase):
def setUp(self):
self.reader = StreamReader()
def test_read_line(self):
self.reader.feed_data(b"spam\neggs\n")
gen = self.reader.read_line()
line = se... | [
"aymeric.augustin@m4x.org"
] | aymeric.augustin@m4x.org |
f684231548d45af23ec40f94d6a747e07a2dee12 | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0701-Insert-into-a-Binary-Search-Tree/soln.py | dd1ec33d6f3ad524606065e2cc336022b99d0bb2 | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 554 | 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 insertIntoBST(self, root, val):
"""
:type root: TreeNode
:type val: int
:rtype: TreeNode
"""
... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
1b997251b12c0dbd616315e2a006444d85f6b7e7 | 7f92c2fc131ca637d8b7c2a4dbba4b974884e786 | /lab4/collectionScripts/calibrate2.py | 6f7813ebcc10a2a24d4c390208f5488396793085 | [] | no_license | byronwasti/CircuitsLabs | 2c5694f07a59adedddde361d0a85a690a83e096b | be1227c504ed1a2b81b6d670cbaa45d4b8be8e17 | refs/heads/master | 2020-05-23T11:15:14.853587 | 2017-09-03T18:53:50 | 2017-09-03T18:53:50 | 80,369,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | import numpy as np
import smu
s = smu.smu()
s.set_current(1, 10e-6)
try:
while True:
s.get_current(
pass
except KeyboardInterrupt:
s.set_voltage(1, 0.)
| [
"byron.wasti@gmail.com"
] | byron.wasti@gmail.com |
3a79bcb8799279807c9d2647ea2988ec223d8300 | 72a58c62d62210e853ef09fdee65bf6ffb8972bd | /src/lib/gcloud/datastore/demo/__init__.py | d65cb0f0913b1b7fb7dd164e5ca9761224e0dda2 | [
"MIT"
] | permissive | thonkify/thonkify | 93ade2489f20fb80c5e8e27fe67b9b231ada62bd | 2cb4493d796746cb46c8519a100ef3ef128a761a | refs/heads/master | 2023-09-01T00:03:10.398583 | 2018-03-16T09:18:24 | 2018-03-16T09:18:24 | 99,354,595 | 17 | 3 | MIT | 2023-09-05T02:27:42 | 2017-08-04T15:10:50 | Python | UTF-8 | Python | false | false | 722 | py | # Copyright 2014 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 or a... | [
"david.dellsperger@gmail.com"
] | david.dellsperger@gmail.com |
7561724614ef493e41240f16f1cf144b64966ad4 | 257cd01623a49e5967457bb89ef676f17484480e | /minimal-code-examples/minimal-hydropt-dashboard6.py | 56f04dc6fd761551de663bbb0d314a1e4cfd6b3b | [] | no_license | aleksProsk/HydroOpt2.0 | 5347a4b5eb07d8d1847436f7c079db6a081bfb49 | 8d260d83c61483d4a88f3d81929cac34a75d9288 | refs/heads/master | 2020-03-22T07:33:44.178545 | 2018-08-14T13:21:45 | 2018-08-14T13:21:45 | 139,708,093 | 0 | 1 | null | 2018-07-04T11:49:57 | 2018-07-04T10:38:23 | Python | UTF-8 | Python | false | false | 11,330 | py | # start in linux via
# export FLASK_APP=filename.py
# flask run
# start in windows via
# set FLASK_APP=filename.py
# flask run
print("imports...")
import inspect, os
#os.environ["FLASK_APP"] = inspect.getfile(inspect.currentframe())
os.environ["OCTAVE_EXECUTABLE"] = "C:\\Octave\\Octave-4.2.2\\bin\\octave-cli.exe"
imp... | [
"alexandriksasha@mail.ru"
] | alexandriksasha@mail.ru |
9d68e4c5e8b101aa913d6ec7022cf2a6fe8d2182 | 76dd191c092c836f0f72a364bda133bdb37c5cbc | /system/djangoapp/migrations/0015_auto_20200725_0910.py | 322436192768b90a31cfb1171d18e9e93c50c40d | [] | no_license | PreritBhandari/Django-Assignment-II- | 36619b337c5f6454e8729cb1ae3df2bfa400c243 | 808e9d47bbc7f78f81577a45356cb34839713ccb | refs/heads/master | 2022-11-25T09:07:07.423648 | 2020-07-29T11:47:12 | 2020-07-29T11:47:12 | 283,487,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | # Generated by Django 2.1 on 2020-07-25 09:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoapp', '0014_auto_20200725_0909'),
]
operations = [
migrations.AlterModelOptions(
name='user',
options={},
),
... | [
"patrioticprerit@gmail.com"
] | patrioticprerit@gmail.com |
951174456b18d825e0041d87b0e6782a8e07de13 | a8750439f200e4efc11715df797489f30e9828c6 | /codechef/SNCK1A19_TYPING.py | d85a7b4db7830f9affdd61d6b5b411194a6bad21 | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py |
# -*- coding: utf-8 -*-
# @Date : 2018-10-20 07:38:09
# @Author : raj lath (oorja.halt@gmail.com)
# @Link : link
# @Version : 1.0.0
from sys import stdin
max_val=int(10e12)
min_val=int(-10e12)
def read_int() : return int(stdin.readline())
def read_ints() : return [int(x) for x in stdin.readline().spli... | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
a5090ef8b972197df38807878a71895e8cb1500d | 8e8aee7b8f6a42281f86d50539eb7e672d1465d7 | /env/lib/python3.8/site-packages/pip/_vendor/distlib/util.py | 7247e844971655b9fccd1208f1f9e588b3ae26d0 | [] | no_license | samirpatil2000/BlogApp | d0ab72962e55df6c6cabe1fc10fe6a691ffbe226 | 93c2dcf2e03549627ae14f19b861f47cef613331 | refs/heads/master | 2023-05-02T10:31:47.245886 | 2021-05-25T12:32:19 | 2021-05-25T12:32:19 | 311,449,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59,846 | py | #
# Copyright (C) 2012-2017 The Python Software Foundation.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
import codecs
from collections import deque
import contextlib
import csv
from glob import iglob as std_iglob
import io
import json
import logging
import os
import py_compile
import re
import socket
try:
import ssl
... | [
"samirspatil742099@gmail.com"
] | samirspatil742099@gmail.com |
5c15b8d0d3b5775eb90194cb46819e7c1d7a629d | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-7117.py | fde25b3a8bb0037054221c5079d21d79f5c1964d | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,745 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
eb053aaa45f6554ef5dbd55703e0106b0ec03102 | 5ca38ff27b75900bdadde2b8541b69a70050ca9c | /test/event/__init__.py | 90ce66a1ec0e36eee1ef4503a41dea76ed6879d2 | [
"MIT"
] | permissive | OlegKlimenko/py-enarksh | cf780a2b5cc17c32d7fe7ac32b8f6830fda8b2f7 | e890534a2f71cab4d9914c3b68fd9b3ef716c5df | refs/heads/master | 2021-01-09T07:59:11.174183 | 2016-11-04T13:43:55 | 2016-11-04T13:43:55 | 64,314,331 | 1 | 0 | null | 2016-11-04T13:43:56 | 2016-07-27T14:15:47 | Python | UTF-8 | Python | false | false | 3,303 | py | import os
import sys
# ----------------------------------------------------------------------------------------------------------------------
HOME = os.path.realpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
CONTROLLER_PULL_END_POINT = 'tcp://127.0.0.1:7771'
CONTROLLER_LOCKSTEP_END_POINT = '... | [
"p.r.water@setbased.nl"
] | p.r.water@setbased.nl |
524342d53614f27ca46f76560a2d4e7b52a91f28 | 60b1f668808de2b82c2fcb62b07b45bb165219f2 | /test/test_conflict.py | adb33a6405ca743a85d7fbe030f3af107a283375 | [] | no_license | andersonmiguel/Egoi | 6d37bf7a3a7555e764f7a6e792b3ef1c68fe8e20 | b5f59f9b33ea94e170f4e7e26c6a37a78d2874c2 | refs/heads/master | 2022-06-21T07:18:44.920786 | 2020-05-04T17:29:02 | 2020-05-04T17:29:02 | 261,250,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,271 | py | # coding: utf-8
"""
APIv3 (Beta)
# Introduction Just a quick peek!!! This is our new version of API. Remember, it is not stable yet!!! But we invite you play with it and give us your feedback ;) # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We'v... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
378feea6c31bd2289a6701871fd39fcd6b14850d | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/yuyu2172_chainer-cv/chainer-cv-master/chainer_cv/extensions/embed_images.py | 876b43532df1274ce9227e0c404ac94fb0c45b87 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,336 | py | import copy
import numpy as np
import os.path as osp
import chainer
from chainer.dataset import convert
from chainer.utils import type_check
from chainer_cv.extensions.utils import check_type
from chainer_cv.extensions.utils import forward
class EmbedImages(chainer.training.extension.Extension):
"""An extension... | [
"659338505@qq.com"
] | 659338505@qq.com |
6f8d03635435ee47b27a0e203c3a3db6c8479232 | 0e647273cffc1fb6cbd589fa3c7c277b221ba247 | /configs/hpt-pretrain/chexpert/moco_v2_800ep_basetrain/003lr5000bn-iters.py | 68c77b7b21bc9de8abf90d5de8282309d39fd201 | [
"Apache-2.0"
] | permissive | Berkeley-Data/OpenSelfSup | e9976bf011b69ebf918506ba184f464b1073ec13 | 221191b88d891de57725b149caf237ffef72e529 | refs/heads/master | 2023-05-12T07:34:52.268476 | 2021-04-08T00:58:37 | 2021-04-08T00:58:37 | 343,654,823 | 0 | 1 | Apache-2.0 | 2021-04-08T00:58:37 | 2021-03-02T05:20:27 | Python | UTF-8 | Python | false | false | 426 | py | _base_="../base-chexpert-config.py"
# this will merge with the parent
model=dict(pretrained='data/basetrain_chkpts/moco_v2_800ep.pth')
# epoch related
total_iters=5000
checkpoint_config = dict(interval=total_iters)
model = dict(
pretrained='data/basetrain_chkpts/moco_v2_800ep.pth',
backbone=dict(
norm_train=... | [
"taeil.goh@gmail.com"
] | taeil.goh@gmail.com |
b6c2144eff19b6c939b9785aa66d33f078255a56 | 4f6fdd0effc474226b75ccc5d247509121b90fdf | /recursion/Find the Fibonacci Series Using Recursion.py | a28c87e343615ba6d66a7e66ffdf0695eb0208d8 | [] | no_license | tuhiniris/Python-ShortCodes-Applications | 1580785a6922c70df3b7375cb81e98f4a684d86f | f3fe7ac1c11a631fcd05b9d19b25b1a841d94550 | refs/heads/main | 2023-04-07T21:42:21.094545 | 2021-04-21T07:47:46 | 2021-04-21T07:47:46 | 358,605,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | '''
Problem Description
-------------------
The program takes the number
of terms and determines the
fibonacci series using recursion
upto that term.
'''
print(__doc__)
def fibonacci(n):
if(n <= 1):
return n
else:
return(fibonacci(n-1) + fibonacci(n-2))
print('-'*25)
n = int(i... | [
"noreply@github.com"
] | tuhiniris.noreply@github.com |
3c62c779f0be40f0a6a73b877542b3e1f1da52cf | 48d820d4bd6a433c2b0fdb0dcb7657b62db050bf | /Training_Work/ODOO13_WORKSPACE/odoo13_env/bin/easy_install | 840dd7f61e075ce0eed4b6ebe9001961f4670e17 | [] | no_license | dhruv-aktiv/training_task_data | 1a30580a512aa4831fb547b250faffff11f7e008 | 3d8b25ca812e876a484d387fc57272257322c85f | refs/heads/master | 2023-06-07T07:06:04.193576 | 2021-07-01T04:37:13 | 2021-07-01T04:37:13 | 381,908,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | #!/home/admin123/Documents/ODOO13_WORKSPACE/odoo13_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dhruv.s@icreativetechnolabs.com"
] | dhruv.s@icreativetechnolabs.com | |
7b6ae7c68f493b2df146545ace56ad1a481d1556 | 174ad2b84041ee9dface6f822737cd30e39aa04d | /toRRentSeaRcher/Enviroments/Scripts/pip-script.py | 31f86fb157c72a40b1dcdb1ed2cf690cc91eb071 | [] | no_license | duk1edev/projects | 88f26830ac16f0fc889cace8ffab756788ee0b24 | 74bdea8b56bee9e1c0d8a78405ad0ca7bad38543 | refs/heads/master | 2020-06-24T17:15:17.891008 | 2019-11-29T17:23:54 | 2019-11-29T17:23:54 | 199,027,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!C:\Users\duk1e\Desktop\toRRentSeaRcher\Enviroments\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__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... | [
"duk1e.ptc.ua@yandex.ru"
] | duk1e.ptc.ua@yandex.ru |
5f20a96210c75eddc5863be7ba685c241a95bb55 | 8b470bfdc8ab9f180844a4438863b1283aff860a | /frost/primitives.py | e0bd52ec4fefcb5aa79507673fea4e7e5cdc58fe | [] | no_license | benmoran56/frost | be06d18ba79fbc84794eca2d7bdac4b53c814288 | 938aff52c9b5e6c956c457cd85552a85f3760a7c | refs/heads/master | 2022-11-13T11:09:04.047662 | 2022-11-03T14:11:36 | 2022-11-03T14:11:36 | 238,115,011 | 7 | 0 | null | 2022-11-03T14:11:38 | 2020-02-04T03:29:30 | Python | UTF-8 | Python | false | false | 4,636 | py | from functools import lru_cache as _lru_cache
# Helper functions for creating verts and colors:
@_lru_cache()
def _create_left(x, y, width, height, color1, color2):
one = x, y
two = x, y + height
three = x + width, y + height - width
four = x + width, y + width
verts = one + two + three + three +... | [
"benmoran@protonmail.com"
] | benmoran@protonmail.com |
7f04fcb0d7cbc4a6acf037c945b32892b382bfca | 80121fe706db89ff5c8ce13e46fe9472d79a3347 | /wheelcms_users/tests/test_userconfig.py | f02d5c5c193dc4dd3d5e810c8beed52916d71d56 | [
"BSD-2-Clause"
] | permissive | wheelcms/wheelcms_users | e3dd5a20f1fcdb350984d4f41e803f461e4be715 | 90ee35ffab4366f6c4e4dbad88c53ea89cf53e86 | refs/heads/master | 2021-01-19T06:12:40.406825 | 2015-04-04T16:55:36 | 2015-04-04T16:55:36 | 17,834,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,520 | py | import pytest
import json
from wheelcms_axle.configuration import ConfigurationHandler
from wheelcms_users.models import ConfigurationHandler as UserConfigurationHandler
from django.contrib.auth.models import User
import mock
from twotest.fixtures import client, django_client
@pytest.fixture
def handler():
pat... | [
"github@in.m3r.nl"
] | github@in.m3r.nl |
5515ac701f0f1a2155496308a20bd5d554b1fee0 | 7e729ea05a6a4e297bb832b77720a18cd0227805 | /Projects/Online Workouts/w3resource/Basic - Part-I/program-43.py | 29e8d8468ceccddec273188daa51536d2af30ad6 | [
"MIT"
] | permissive | ivenpoker/Python-Projects | 943d127ae900df52b43aac07c395e9d717196115 | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | refs/heads/master | 2022-12-18T16:36:37.954835 | 2020-09-14T19:42:46 | 2020-09-14T19:43:09 | 180,323,469 | 1 | 0 | MIT | 2022-12-08T01:05:35 | 2019-04-09T08:42:40 | Python | UTF-8 | Python | false | false | 836 | py | # !/usr/bin/env python3
#####################################################################################
# #
# Program purpose: Get OS name, platform and release information. #
# Program Author : Happi Yvan ... | [
"nwaforhappiyvan@gmail.com"
] | nwaforhappiyvan@gmail.com |
1718fa9b3a27b42e3756d2e6f1669f42cab56b95 | e14233e1c0bba51f23a09a9bcfbc22b622387da1 | /app/MyModule/GetDeviceInfo.py | 2aa37ea19e3373154d8547cf7f2dfa309445030f | [] | no_license | KoiosChen/OLT-REGISTER | def159ea755046ba666cc5ee0477401eaedf52af | 87e62547b2632cff154826817e8a81b893976917 | refs/heads/master | 2021-05-07T02:10:41.923088 | 2019-06-27T04:09:11 | 2019-06-27T04:09:11 | 110,499,539 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from ..models import Device
from .. import logger
def get_device_info(machine_room_id):
"""
:param machine_room_id:
:return:
"""
device_info = Device.query.filter_by(machine_room_id=machine_room_id, status=1).all()
logger.debug('device list: {} '.format(device_info))
return device_info if ... | [
"chjz1226@gmail.com"
] | chjz1226@gmail.com |
d37f122795dc6e1276b390b8c058fbf7bd7763e1 | b0f1acbe5cd30c2ade801465924c12403ab7e585 | /Corda_Api_Library/test/test_net_corda_core_node_services_vault_column_predicate.py | 824037d4e8878e9c5765a4b1860a7f021bfd9ef8 | [] | no_license | TanzimAzadNishan/Blockchain-Based-Online-Ticketing-Platform | 94ea0f06a7761f9033f7a1dc61548ade6f6ff499 | d04a2696cab4c41743c7c5999c623002d0e57f80 | refs/heads/main | 2023-03-09T14:34:27.148340 | 2021-02-24T11:49:26 | 2021-02-24T11:49:26 | 338,845,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | """
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import openapi_client
from openapi_client.model.net_corda_c... | [
"64527153+TanzimAzadNishan@users.noreply.github.com"
] | 64527153+TanzimAzadNishan@users.noreply.github.com |
e2de561f2847ad26fe4047d0adae9293ba781d3e | b428e9e4a5b3ec87a38e5451b8a03f4ecfac9366 | /dcolumn/dcolumns/forms.py | 32d6c2dfe5b14a1b39e61da822a4b770f848ef11 | [
"MIT"
] | permissive | casualuser/dcolumn | b9844ebe29ae460fad1805fdfa516d2fb6bfe3d8 | 229f58844213a5453fc4dbe555eb5f12a2cd6766 | refs/heads/master | 2022-11-18T05:12:34.259099 | 2018-04-29T03:26:32 | 2018-04-29T03:26:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,519 | py | # -*- coding: utf-8 -*-
#
# dcolumn/dcolumns/forms.py
#
"""
Dynamic Column forms.
"""
__docformat__ = "restructuredtext en"
import logging
import datetime
import dateutil
from django import forms
from django.core.exceptions import ValidationError
from django.utils import six
from django.utils.translation import uget... | [
"carl.nobile@gmail.com"
] | carl.nobile@gmail.com |
ea851bf95c28add8737afef31989a400e5009032 | 1f9dac86268798b219b2c0773768f993ccf7f741 | /torch_geometric/nn/conv/rgcn_conv.py | c412037b7c7938b133bf6f0231d4fed475589596 | [
"MIT"
] | permissive | n-kats/pytorch_geometric | b1184a96cc093f6d1291d16fcc4f89f966d2125a | 9ef6ad5501d4f2439ae608ad0d197500a8acc2d8 | refs/heads/master | 2020-04-18T19:43:32.966343 | 2019-01-25T13:32:07 | 2019-01-25T13:32:07 | 167,719,285 | 0 | 0 | MIT | 2019-01-26T17:45:29 | 2019-01-26T17:45:29 | null | UTF-8 | Python | false | false | 3,446 | py | import torch
from torch.nn import Parameter as Param
from torch_geometric.nn.conv import MessagePassing
from ..inits import uniform
class RGCNConv(MessagePassing):
r"""The relational graph convolutional operator from the `"Modeling
Relational Data with Graph Convolutional Networks"
<https://arxiv.org/abs... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
4ee0fecf4c7fc65467d85595945ceb268b845c9c | d629301e2c41fc5d1c7f1a6ca4688117bbd93117 | /data/genData.py | 8ae6ece800df505d025a9eccd21c7f20fe071144 | [] | no_license | mrenoon/datafreezethaw | db1dd377e9bf8c6fe22c442128e6d1eda1a3bb13 | c2ce2e78bd98236618c99fe3453fc24389d48ead | refs/heads/master | 2021-01-19T01:13:18.384209 | 2017-04-05T04:32:26 | 2017-04-05T04:32:26 | 87,232,729 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | import os
import cPickle
import pprint
import numpy as np
pp = pprint.PrettyPrinter(indent=4)
ORIGINAL_DATA_PATH = "cifar-10-py-colmajor"
OUTPUT_DATA_PATH = "vu-cifar-10"
def pickle(filename, data):
with open(filename, "w") as fo:
cPickle.dump(data, fo, protocol=cPickle.HIGHEST_PROTOCOL)
def unpickle(fil... | [
"vunguyenvyvp@gmail.com"
] | vunguyenvyvp@gmail.com |
e7a375404a3d5f292c3ab63022576d083208ee39 | 33e4aaa1a31363336db230eba9a4a65cebc49491 | /figure-2.py | dd89d011c68b381d0acea7fd402cb9c6e86f15ae | [
"BSD-3-Clause"
] | permissive | chonlei/neural-ode-ion-channels | 06ecb6d72b90704a8d6171573d7b067a28ec8595 | 10235c162a5e569ab0b3e48c933bf46359319afb | refs/heads/main | 2023-04-12T01:27:50.049286 | 2021-08-04T06:21:44 | 2021-08-04T06:21:44 | 360,855,175 | 4 | 2 | BSD-3-Clause | 2021-07-07T10:09:43 | 2021-04-23T11:02:55 | Python | UTF-8 | Python | false | false | 32,913 | py | #!/usr/bin/env python3
import sys
import os
import argparse
import time
import numpy as np
from scipy.interpolate import interp1d
import matplotlib
#matplotlib.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_theme()
from matplotlib.path import Path
from matplotlib.patches import PathPatch
imp... | [
"chonloklei@gmail.com"
] | chonloklei@gmail.com |
d1a16c2b31ade74a3be54487d152bf65785a1c97 | 4d7e1b959194e7ca7d99c0b5926622f37959cd02 | /search/admin.py | 2d1428f733386aa0b0eee37c50efa9685f15abf8 | [] | no_license | KamilBienias/my-first-blog | ce1ff6ff8912c30014a219a7059037a62a4f48d0 | 2c138991c3e53f3b3bc7b4e6d76c20d62a9a126a | refs/heads/master | 2020-12-19T07:35:58.750570 | 2020-08-23T16:15:46 | 2020-08-23T16:15:46 | 235,664,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from django.contrib import admin
from .models import Search
from .models import Searchtext
admin.site.register(Search)
admin.site.register(Searchtext)
| [
"kamil.bienias.math@gmail.com"
] | kamil.bienias.math@gmail.com |
9570d739d27fc157f272c31b89994bc3673bfcec | 5f1dee64fd88bd2237ef95ee894a37d8ddcdeb4e | /python/learning/neural_nets/rfnet-init.py | 340fe8b9cacb86449548f7b47055b884a2b97d5e | [] | no_license | constantinpape/stuff_master | c893ae0c763801210db06bad548784c4b20d6680 | 68d80bd45a140cb0d30abf32a04365ca37c9694c | refs/heads/master | 2021-01-22T09:50:38.795259 | 2017-03-07T18:25:45 | 2017-03-07T18:25:45 | 33,936,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | from __future__ import division
import caffe
import numpy as np
from pdb import set_trace
# init
caffe.set_mode_cpu()
rf_model = 'rfnet.prototxt'
rf_weights = 'rfnet.caffemodel' # where result is going to go
rf_net = caffe.Net(rf_model, caffe.TRAIN)
#rf_net.params["fc1"][0].data[...] =
#bias
#rf_net.params["fc1"]... | [
"constantin.pape@iwr.uni-heidelberg.de"
] | constantin.pape@iwr.uni-heidelberg.de |
24245d89ce0927849f9fa746fab7129ce8a8b07f | 0fa00ecf2dd671515dc001d4b14049ec6a0c1f1c | /custom_components/spook/ectoplasms/homeassistant/services/add_entity_to_area.py | 6aa0de0b888cb902e23fd3260b66cedb44e9128d | [
"Unlicense"
] | permissive | bacco007/HomeAssistantConfig | d91a5368344f50abbea881bd1e6dfc57a0e456ca | 8548d9999ddd54f13d6a307e013abcb8c897a74e | refs/heads/master | 2023-08-30T07:07:33.571959 | 2023-08-29T20:00:00 | 2023-08-29T20:00:00 | 230,585,631 | 98 | 16 | Unlicense | 2023-09-09T08:28:39 | 2019-12-28T09:05:02 | Python | UTF-8 | Python | false | false | 1,342 | py | """Spook - Not your homie."""
from __future__ import annotations
from typing import TYPE_CHECKING
import voluptuous as vol
from homeassistant.components.homeassistant import DOMAIN
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import (
area_registry as ar,
config_validati... | [
"thomas@thomasbaxter.info"
] | thomas@thomasbaxter.info |
5f321e463576b9de6994a5ec7e7ca4d9299ef468 | f2591da693e5e79751690bfe08158effc69a0b16 | /test/expression/test_expression.py | ea407838375135a9a82c82d1882a0b2c8a69be3c | [
"MIT"
] | permissive | BeyondTheClouds/rome | 96d4a1b82a4ec9b617185b2720cc8ce05d033bd1 | f7ce85fe9d5e8cd85eaadf790923b1da87919b4a | refs/heads/master | 2021-07-09T04:49:24.285956 | 2016-06-10T15:12:56 | 2016-06-10T15:12:56 | 32,364,216 | 5 | 4 | MIT | 2020-07-22T20:14:00 | 2015-03-17T01:36:48 | Python | UTF-8 | Python | false | false | 9,688 | py | import unittest
from sqlalchemy.ext.declarative import declarative_base
import test.nova._fixtures as models
from sqlalchemy.util._collections import KeyedTuple
from lib.rome.core.orm.query import or_
from lib.rome.core.orm.query import and_
BASE = declarative_base()
from lib.rome.core.expression.expression import B... | [
"jonathan.pastor@me.com"
] | jonathan.pastor@me.com |
ba68dbcbc0d4f7e3bf93ea92a2518d25b788b357 | f8f2536fa873afa43dafe0217faa9134e57c8a1e | /aliyun-python-sdk-ros/aliyunsdkros/request/v20190910/ListTagResourcesRequest.py | 80e9023661821842346ba34dd09b33428473595b | [
"Apache-2.0"
] | permissive | Sunnywillow/aliyun-openapi-python-sdk | 40b1b17ca39467e9f8405cb2ca08a85b9befd533 | 6855864a1d46f818d73f5870da0efec2b820baf5 | refs/heads/master | 2022-12-04T02:22:27.550198 | 2020-08-20T04:11:34 | 2020-08-20T04:11:34 | 288,944,896 | 1 | 0 | NOASSERTION | 2020-08-20T08:04:01 | 2020-08-20T08:04:01 | null | UTF-8 | Python | false | false | 2,312 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
5afd9e6bd922bd413908a68ca82400f0832b4152 | 612325535126eaddebc230d8c27af095c8e5cc2f | /src/build/rm.py | 108af6929a04efc6447c7a8ad52e7408642e1469 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | #!/usr/bin/env python
# Copyright (c) 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Delete a file.
This module works much like the rm posix command.
"""
import argparse
import os
import sys
def... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
0d0a2ad26ef6895a977e3cd825f3b71bf11527e8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02719/s256037224.py | bdfe9f18607c96eb495e8cecf12214b9e139ce7b | [] | 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 | 63 | py | N,K=map(int,input().split())
a=N%K
b=abs(N%K-K)
print(min(a,b)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6fc052f9f64c0dd9b597daa61ef1095673cc12b8 | c581dd48195f851cbd9711b1f40bb9f3666017ca | /gromacs_wrapper/mdrun.py | 0e6d5bbe30b3e3a4359d3c57f410b89307c789f8 | [
"Apache-2.0"
] | permissive | bioexcel/pymdsetup | 358135527a3f07ebfca6f0f05de3312b5cd926d0 | ef5fff7cf490c3258f1d39a47e2d4b10119d8970 | refs/heads/master | 2020-11-28T13:45:39.471737 | 2019-01-16T12:06:21 | 2019-01-16T12:06:21 | 65,997,948 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,621 | py | #!/usr/bin/env python
"""Python wrapper for the GROMACS mdrun module
"""
import sys
import json
import configuration.settings as settings
from command_wrapper import cmd_wrapper
from tools import file_utils as fu
class Mdrun(object):
"""Wrapper for the 5.1.2 version of the mdrun module
Args:
input_tpr... | [
"andriopau@gmail.com"
] | andriopau@gmail.com |
8bbdd221ea408a1e52be4b20dc820c53d725feb8 | 4c67693e0a256ff9e2fc37153f0b0ac0a39a7ec3 | /pywick/optimizers/ralamb.py | 9bee5707107c7dbfc8f5eb126d9908089ac95c06 | [
"MIT"
] | permissive | liuzhidemaomao/pywick | 666276fdb7a5ee8168fab3f7c234c0af03f0225c | c42ee9728b8f85decc5b46b090524623d12b0580 | refs/heads/master | 2023-04-30T09:40:51.329833 | 2021-05-17T15:46:51 | 2021-05-17T15:46:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,068 | py | # Source: https://gist.github.com/redknightlois/c4023d393eb8f92bb44b2ab582d7ec20
from torch.optim.optimizer import Optimizer
import torch
import math
class Ralamb(Optimizer):
def __init__(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=1e-4):
defaults = dict(lr=lr, betas=betas, eps=eps... | [
"Alexei.Samoylov@digikey.com"
] | Alexei.Samoylov@digikey.com |
5bbf7153782b5f13dd4d92110db05095c9658754 | de171291254d5717ab82602001dbab004ab34382 | /primero.py | 2f8a997d94abbeee0ffd03cb51d21a75e738ddf1 | [] | no_license | Mike-droid/EjerciciosCursoPython | 3637ae18640a8c3cad8d15e5cbee06d3cf306bf7 | 7ca87bfeb6e7faff84819667cd9f249071e16ed3 | refs/heads/master | 2022-12-04T02:35:40.314752 | 2020-08-18T16:25:07 | 2020-08-18T16:25:07 | 288,506,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | import turtle
window = turtle.Screen()
tortuga = turtle.Turtle()
tortuga.forward(50)
tortuga.left(90)
tortuga.forward(50)
tortuga.left(90)
tortuga.forward(50)
tortuga.left(90)
tortuga.forward(50)
tortuga.left(90)
turtle.mainloop() | [
"miguelreyesmoreno@hotmail.com"
] | miguelreyesmoreno@hotmail.com |
751a5c0436822ab014dffd8f9922621ae1fbb1b6 | f3e0cc142e77445b286234fc751ecae219b75458 | /pyPico/2.传感器实验/1.温度传感器DS18B20/main.py | 34e22ca2f918576e4d633e0f43e532347cdcff47 | [
"MIT"
] | permissive | zhangweiIOT/MicroPython_Examples | 9389528b9dd6c8cd8c4f8932b95252a23de684ae | f06a1bee398674ceafebed2aac88d8413cc8abad | refs/heads/master | 2023-08-25T13:45:36.924345 | 2021-10-26T06:49:41 | 2021-10-26T06:49:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | '''
实验名称:温度传感器DS18B20
版本:v1.0
日期:2021.1
作者:01Studio
说明:通过编程采集温度数据,并在OLED上显示。。
'''
#引用相关模块
from machine import Pin,SoftI2C
from ssd1306 import SSD1306_I2C
from onewire import OneWire
from ds18x20 import DS18X20
import time
#初始化oled
i2c = SoftI2C(scl=Pin(10), sda=Pin(11)) #pyBoard I2C初始化:scl--> 10, sda --> 11
oled = ... | [
"237827161@qq.com"
] | 237827161@qq.com |
9400cbdca3871b0715a74d4571b9f4216f4c178f | 9c968f7cdf390f8417912519b53f1b7f6ea8b7e8 | /HJ_AL/190328TST/퍼킷.py | d3561c6e13659579a19ff382ee3cac79758d59f9 | [] | no_license | hhongjoon/TIL | aa33ce2973552a0baa0e0da5bd7d20824fd2e322 | a33b20af15d3f671ea7c7b2855291e50a9036c1c | refs/heads/master | 2021-08-07T17:33:39.722880 | 2020-04-25T08:11:02 | 2020-04-25T08:11:02 | 162,099,245 | 4 | 0 | null | 2019-10-30T09:06:21 | 2018-12-17T08:34:07 | Jupyter Notebook | UTF-8 | Python | false | false | 479 | py |
def powerset(n,k,s,b):
global minmat
if minmat ==0:
return
if b!=0:
if minmat > abs(s-b):
minmat = abs(s-b)
if n ==k:
return
else:
A[k] = 1
plus = datas[k]
powerset(n,k+1,s*plus[0], b+plus[1])
A[k] = 0
powerset(n,k+1,s,b)... | [
"sungsung129@gmail.com"
] | sungsung129@gmail.com |
9bb6bd6c1f3d690231c270a9aac3c8964ac67c4d | a928a2b688d9f244f24654be3854910182dc6e48 | /odps/df/backends/odpssql/types.py | 8fd356b2502b5e31de243a0b1baced18226dd8b3 | [
"Apache-2.0"
] | permissive | tradaniel/aliyun-odps-python-sdk | 42d0953f3709d98d54417fc8b8d0bd5d0461782e | 55af9fadd356cdd7e696802b67104aa59af92c9d | refs/heads/master | 2021-01-17T18:34:26.413993 | 2016-04-21T08:47:05 | 2016-04-21T08:47:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 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... | [
"xuye.qin@alibaba-inc.com"
] | xuye.qin@alibaba-inc.com |
511503be96b56da54a9c3a7c2e849355d05d2fb4 | a8cd6177f5bb0b03c37f5ff1982ed2f16e9c90b3 | /00-ToDoApp/migrations/versions/be573c3ed0e9_.py | 7074ae2bba0d67a14b3d33e8dd3c7bdce29986c7 | [] | no_license | hmisonne/UdacityWebDev | 763456a6b9431d0568e73adcc27b46dbf82d816c | 4a6b0b4457db0d5f1638e4a044a76307bc2b40a5 | refs/heads/master | 2023-01-23T07:10:16.560677 | 2020-09-29T17:31:40 | 2020-09-29T17:31:40 | 244,783,817 | 1 | 2 | null | 2023-01-07T16:01:31 | 2020-03-04T01:52:39 | Python | UTF-8 | Python | false | false | 992 | py | """empty message
Revision ID: be573c3ed0e9
Revises: 9855ea9bd1a3
Create Date: 2020-03-04 16:55:22.255663
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'be573c3ed0e9'
down_revision = '9855ea9bd1a3'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"helene.misonne@gmail.com"
] | helene.misonne@gmail.com |
ad7a42cc95078db942c1467f244d09c8330fe4f4 | 32dd8407439c4ea33fd16e96401daf8135c39c56 | /Models/Attention/attn_model.py | 9794a200c017b782ee466ba2bed963e3d749179b | [
"Apache-2.0"
] | permissive | spilehchiha/Kylearn | 47739268a587fe3844ab2a6241d25d3e48a727ae | 6a77341248bc23e684fffdfacda1ab552043e471 | refs/heads/master | 2020-06-23T16:04:10.262908 | 2019-07-24T16:33:59 | 2019-07-24T16:33:59 | 195,618,759 | 0 | 0 | null | 2019-07-07T06:37:52 | 2019-07-07T06:37:52 | null | UTF-8 | Python | false | false | 28,997 | py | import numpy as np
import tensorflow as tf
from utils import utils
from framework.model import Model
import collections
class Attn_model_1d(Model):
def __init__(self, ckpt_path, tsboard_path, network, input_shape, num_classes, feature_num, dev_num,
batch_size, lr, regression=False, threshold=0.9... | [
"sjc951213@gmail.com"
] | sjc951213@gmail.com |
9414408ba98654cd32a124ab0b97ee59d76f1036 | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /PySvn_examples/commits__draw_plot__by_single_author.py | ca0edb58ab6d8db1eb8d8b6a4848e5ae972bb93a | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 1,109 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import os
from datetime import datetime
import pandas as pd
import matplotlib.pyplot as plt
import config
from common import get_log_list_by_author
AUTHOR = 'ipetrash'
author_by_log = get_log_list_by_author(config.SVN_FILE_NAME)
# Сбор комм... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
820934b622bf33ad5525080f4a85c6452564970d | ed269e9a4d9d6bfbb833381b7aef65a23f391fe2 | /皮皮OJ/最小k公倍数.py | 81321fedf30252b4d45453b4fa05d3f03525a2e7 | [] | no_license | Comyn-Echo/leeCode | fcff0d4c4c10209a47bd7c3204e3f64565674c91 | 67e9daecb7ffd8f7bcb2f120ad892498b1219327 | refs/heads/master | 2023-04-28T17:35:52.963069 | 2021-05-19T01:52:16 | 2021-05-19T01:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # 5 3
# 1 2 3 4 5
while True:
s = input()
if s == '':
break
n, k = s.split(' ')
n = int(n)
k = int(k)
nums = input().split(' ')
list = [int(i) for i in nums]
start = min(list)
def judge(num, nums, k):
count = 0
for i in nums:
if num % i ==0:
... | [
"2892211452aa@gmail.com"
] | 2892211452aa@gmail.com |
829ed806e3bdc1dcdede46d00e31d7400dd26840 | 3b1efdd0aacc98738f3b8b9ee09c6ff59cccc14e | /ietf/name/models.py | 453b7042e55e0c1e2ae5cf7b46742823577d5f2b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | unofficial-mirror/ietfdb | 15beb6bf17b1d4abb257ee656ac6b7488339d331 | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | refs/heads/master | 2020-08-06T17:24:13.966746 | 2019-10-04T20:54:05 | 2019-10-04T20:54:05 | 213,088,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,546 | py | # Copyright The IETF Trust 2010-2019, All Rights Reserved
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from ietf.utils.models import ForeignKey
@python_2_unicode_compatible... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
5a8d1c17ee4ef081a9b014452304567f2fdea3eb | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/TauES_test/nom/emb/DoubleMuParked/StoreResults-Run2012B_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V5_16_0_1374658143/HTT_24Jul_newTES_manzoni_Nom_Jobs/Job_57/run_cfg.py | e9137df6d4b96d67b340fbebf0ad4dafaaa86dc2 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,052 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/TauES_test/nom/emb/DoubleMuParked/StoreResults-Run2012B_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_C... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
96eeaff2c5b64227eceff5b2bb4a9159e1a2099e | 6bd9d7679011042f46104d97080786423ae58879 | /1618/d/d.py | 202f579bf283040f7256b3fdf8ca3acc6af03a7f | [
"CC-BY-4.0"
] | permissive | lucifer1004/codeforces | 20b77bdd707a1e04bc5b1230f5feb4452d5f4c78 | d1fe331d98d6d379723939db287a499dff24c519 | refs/heads/master | 2023-04-28T16:00:37.673566 | 2023-04-17T03:40:27 | 2023-04-17T03:40:27 | 212,258,015 | 3 | 1 | null | 2020-10-27T06:54:02 | 2019-10-02T04:53:36 | C++ | UTF-8 | Python | false | false | 411 | py | from sys import stdin
from collections import Counter
def read_int():
return int(stdin.readline())
def read_ints():
return map(int, stdin.readline().split(' '))
t = read_int()
for case_num in range(t):
n, k = read_ints()
a = list(read_ints())
a.sort()
ans = sum(a[:n - 2 * k])
for i in ... | [
"qqbbnease1004@126.com"
] | qqbbnease1004@126.com |
757069eebb905d399afe8f77d80660a78a94f3cc | a8b2219c7be9d2b844788eff9a82f26c44d2a498 | /attributes/models/__init__.py | 3cc2ccb08b6a5e24c6138d442905e7d2770c7ec7 | [
"ISC"
] | permissive | pmaigutyak/mp-attributes | 689cbd1a27fdfcae25604cbb4138fe3f19250b1e | 486e24c17757e618bf521709d3ea1d02788a7a25 | refs/heads/master | 2022-09-20T13:30:16.765746 | 2022-09-18T09:52:04 | 2022-09-18T09:52:04 | 249,807,531 | 1 | 0 | ISC | 2021-11-16T11:47:00 | 2020-03-24T20:11:23 | Python | UTF-8 | Python | false | false | 189 | py |
from attributes.models.attribute import Attribute
from attributes.models.attribute_option import AttributeOption
from attributes.models.attribute_value import AttributeValue, VALUE_FIELDS
| [
"pmaigutyak@gmail.com"
] | pmaigutyak@gmail.com |
9e081e2fa19d3bc77ffe2f687b3b412db7012630 | bdbc9cd8c64cfa92efffb9e138cb282d36f69b0a | /addons/lunch/tests/__init__.py | a8c3c003c5428bf28cddb9777babd7c9707569d6 | [] | no_license | clebaresu/impra-adns | d330cece1b710643625627bfd7ed66bac7d233ef | 8b9889d86c6ea194cfb7b0db8bdc3284635cc081 | refs/heads/master | 2020-05-02T16:51:41.798969 | 2019-03-27T22:03:32 | 2019-03-27T22:03:32 | 178,080,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2012-TODAY OpenERP S.A. <http://openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the te... | [
"clebaresu@gmail.com"
] | clebaresu@gmail.com |
62326287f0bfdf88dc0444b9dbb60d8638eb8778 | ca66a4283c5137f835377c3ed9a37128fcaed037 | /Lib/site-packages/pandas/tests/plotting/test_hist_method.py | c1806219fa7cbbf2fe412621c0b3a7f29ad819a1 | [] | no_license | NamithaKonda09/majorProject | f377f7a77d40939a659a3e59f5f1b771d88889ad | 4eff4ff18fa828c6278b00244ff2e66522e0cd51 | refs/heads/master | 2023-06-04T20:25:38.450271 | 2021-06-24T19:03:46 | 2021-06-24T19:03:46 | 370,240,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,251 | py | # coding: utf-8
""" Test cases for .hist method """
import numpy as np
from numpy.random import randn
import pytest
import pandas.util._test_decorators as td
from pandas import DataFrame, Series
from pandas.tests.plotting.common import TestPlotBase, _check_plot_works
import pandas.util.testing as tm
... | [
"namithakonda09@gmail.com"
] | namithakonda09@gmail.com |
76353eb6bc34c292829a3adfb82d0d2c5f5f1af4 | 52b0aefb5b163528b07b5f288fe5f84e29d87134 | /rest_client/SpecieRest.py | 96ac83e723aa4cbdfc84e9a23038fe6858aa34fe | [
"MIT"
] | permissive | diogo1790/inphinity | 4ef12440a78beca60349c1119f8d6f98083bb908 | 862eb85746e8a3a9bbc0d6aef9abbd5eebe9765f | refs/heads/master | 2020-04-01T01:47:50.655419 | 2019-09-18T11:56:37 | 2019-09-18T11:56:37 | 152,752,756 | 1 | 6 | MIT | 2019-07-10T09:29:15 | 2018-10-12T13:13:33 | Python | UTF-8 | Python | false | false | 1,566 | py | import json
from rest_client.GetRest import GetRest
from rest_client.PostRest import PostRest
class SpecieAPI(object):
"""
This class manage the requests for the specie objects into the restAPI
:param function: the name of the function to access in the rest API
:type function: string
"""
de... | [
"diogo1790@hotmail.com"
] | diogo1790@hotmail.com |
79934af2eb8209fedc5f7dfe342cb8d19fc12c35 | d503b835ab6ea370b762edd63090e63f1f57d81f | /sapt5-9/Repositories/repository.py | de8b41cc96ec5560c9525f91cf84f31448d9507c | [] | no_license | SuciuPatrick/FP---Python-projects | c2b458d641f6a8b59155ad36ecff51371f2aa060 | ca8e998a4913f80ae11bc9ba45e64d640ed3ea77 | refs/heads/master | 2020-04-24T20:25:55.124065 | 2019-02-23T17:35:31 | 2019-02-23T17:35:31 | 172,243,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | from Domain.Client import *
from Domain.Movie import *
class Repository:
def __init__(self):
self._list = []
def add(self, newObject):
ok = 0
if len(self._list) > 0:
if newObject.id < self._list[0].id:
self._list.insert(0, newObject)
ok = 1
for i in range(0, len(self._list) - 1):
if self._lis... | [
"patrick.suciu97@gmail.com"
] | patrick.suciu97@gmail.com |
73b7d4d70f941408996459b15d72b112c2b78d42 | 34f1ba5d471c906cb3005ad4a6cf8dcf8828f22f | /test/test_api_list_network_server_response.py | 98eab42955673ee7d165b5a956705fa07d51c124 | [] | no_license | yuregir/Lora-AppServer-API | 9c7e81dd57f13b3f0350022098c332a2db4af195 | 5159de92b27e3d4342a60fe69f169510eeb0e889 | refs/heads/master | 2020-07-12T12:38:21.760887 | 2020-01-03T13:30:33 | 2020-01-03T13:30:33 | 204,821,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | # coding: utf-8
"""
LoRa App Server REST API
For more information about the usage of the LoRa App Server (REST) API, see [https://docs.loraserver.io/lora-app-server/api/](https://docs.loraserver.io/lora-app-server/api/). # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.co... | [
"yuregir@me.com"
] | yuregir@me.com |
3928f358337728b3966b5bc1c3b06b3cb3d4cad0 | 9833ccdadb60ce80dac3a027611c3dea2e0dd647 | /CleanCode/Chapter05/decorator_class_2.py | 67279972535240f10834930de5bfd4a09f8a486f | [] | no_license | nhutphong/python3 | cc2bf0881c9828de5bd474946cd6c7b0f11a894f | beb19c46cefc2296d08a790aeab9293dcb2f5039 | refs/heads/main | 2022-11-08T14:05:03.187915 | 2022-11-06T04:55:13 | 2022-11-06T04:55:13 | 247,219,711 | 1 | 0 | null | 2022-09-28T05:41:16 | 2020-03-14T05:47:02 | Jupyter Notebook | UTF-8 | Python | false | false | 3,673 | py | """Clean Code in Python - Chapter 5: Decorators
Class decorators.
Reimplement the serialization of the events by applying a class decorator.
"""
import unittest
from datetime import datetime
def hide_field(field) -> str:
return "**redacted**"
def format_time(field_timestamp: datetime) -> str:
return field... | [
"nhutphong@outlook.com"
] | nhutphong@outlook.com |
9d87cc5bf0ad10ead38e45abbf5ad0b15685e2a8 | a8cfc855223bdcd2f78cdc877e928102f54711b0 | /py/test.py | 97e288e96456625bc0189b2638dba36b7b3ef603 | [
"MIT"
] | permissive | rodluger/exoq | c10a62c47e749300864494f46770d46414e6e435 | 9436457ebfa0f4bc253a094950a50b648b71562a | refs/heads/master | 2021-05-16T04:23:08.902178 | 2018-04-09T21:17:38 | 2018-04-09T21:17:38 | 105,944,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,466 | py | """Test STAN."""
from utils import StanFit
from simulate import generate
import matplotlib.pyplot as pl
import numpy as np
np.random.seed(1234)
# The STAN code
stan_code = """
functions {
// A trivial diff eq controlling the "tidal" evolution
real[] tidal(real t, real[] y, real[] params, real[] x_r, int[] x_i... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
d8c686bbba61cb1be4f4d4db3dc342dd776fe82f | bebad22c3736c533a755616d61f5bda5ed51b109 | /ui_b2b/pages/session.py | 58c416aad478585f6451de97324125599f6101cf | [] | no_license | pkuptcov/pet | cb10334b630419bac9ef8ac46540231749a8aa83 | 58b069e8eb58b1c27d0b44071e6b7a8d3ebc77a7 | refs/heads/master | 2021-07-21T16:58:40.139866 | 2018-11-14T12:02:31 | 2018-11-14T12:02:31 | 103,900,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | from ui_b2b.pages.base import BasePage
from ui_b2b.locators.auth_form import AuthorizationControls
from ui_b2b.locators.left_menu import LeftMenuControls
class Session(BasePage):
auth_controls = AuthorizationControls
menu_controls = LeftMenuControls
def login(self, username, password):
# Автори... | [
"pavel.kuptcov@gmail.com"
] | pavel.kuptcov@gmail.com |
df015bd670c7a8fbe9e5337e4f54ddcf7b10dfa6 | 63dd919e1551fbabdad3f311b96040742e4ecb53 | /discpy/types/message.py | 50f2abedd2066cf3f8be0058b20b7dafe5f87e08 | [
"MIT"
] | permissive | AryamanSrii/DiscPy | 4d45d2f52c21b31bb84a17dd95af421c9d563bd6 | 0ba89da9ca184f0dfaebeedd4e9b7bc3099a0353 | refs/heads/main | 2023-08-17T14:42:45.936056 | 2021-10-01T15:12:17 | 2021-10-01T15:12:17 | 414,887,513 | 0 | 0 | MIT | 2021-10-08T07:24:33 | 2021-10-08T07:24:32 | null | UTF-8 | Python | false | false | 3,688 | py | """
The MIT License (MIT)
Copyright (c) 2021 The DiscPy Developers
Copyright (c) 2015-2021 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation... | [
"sn1f3rt@outlook.com"
] | sn1f3rt@outlook.com |
ba80a90b6764ac088815f76681164455644bccdc | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/response/KoubeiAdvertDeliveryItemApplyResponse.py | 756da60555246c548963c2d074596d90259eb8fa | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class KoubeiAdvertDeliveryItemApplyResponse(AlipayResponse):
def __init__(self):
super(KoubeiAdvertDeliveryItemApplyResponse, self).__init__()
self._benefit_detail = None
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
1b3bdeb1d6c1961934a6e2dfb61f939b8acabbee | ad4c2aa0398406ccb7e70562560e75fa283ffa1a | /container-with-most-water/container-with-most-water.py | 7259b6b8190e442fbf9108cb0739b77e8bfbb6d5 | [
"Apache-2.0"
] | permissive | kmgowda/kmg-leetcode-python | 427d58f1750735618dfd51936d33240df5ba9ace | 4d32e110ac33563a8bde3fd3200d5804db354d95 | refs/heads/main | 2023-08-22T06:59:43.141131 | 2021-10-16T14:04:32 | 2021-10-16T14:04:32 | 417,841,590 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | // https://leetcode.com/problems/container-with-most-water
class Solution(object):
def maxArea1(self, height):
"""
:type height: List[int]
:rtype: int
"""
mp = 0
for i in range(1, len(height)):
for j in range(0, i):
m = min(height[j] ,... | [
"keshava.gowda@gmail.com"
] | keshava.gowda@gmail.com |
5bd7aa12dc42b4e40efc0af27fb88a4ee001396f | 08da9d69a3b36900df24110730ff93d0731ea129 | /scripts/bulk_queue_cupt_check.py | 685ef4a29151f438db80db309f3768bad0d3edec | [] | no_license | zkan/admapp | 7603f33e653f5a093d4790b5b245a5d213715d0e | 7d07804f7f5b0bd25515da1aad452e1fd64a09ee | refs/heads/master | 2021-01-13T23:29:18.369041 | 2020-02-25T17:05:32 | 2020-02-25T17:05:32 | 242,528,103 | 0 | 0 | null | 2020-02-23T14:07:30 | 2020-02-23T14:07:29 | null | UTF-8 | Python | false | false | 764 | py | from django_bootstrap import bootstrap
bootstrap()
import sys
import csv
from datetime import datetime
from regis.models import Applicant, LogItem
from appl.models import AdmissionProject, AdmissionResult, AdmissionRound, ProjectApplication
from regis.models import CuptConfirmation, CuptRequestQueueItem
def main():
... | [
"jittat@gmail.com"
] | jittat@gmail.com |
544bb04898849f3e7ee43d5abd38a600153595e9 | 780c5bf48098e2ecabdc8a131f47f6d3da0d3a85 | /cc_vs_hd_j2/create_table.py | a1132b13fd7d99d626ba73859bd243b1980d8202 | [] | no_license | artfin/KazakovEquations | 9566a716371e1aafed8b1d0ad6321208589f9838 | 8230584dd50ce01832d1ad32723ce3671178eb73 | refs/heads/master | 2021-10-23T05:38:27.558530 | 2019-03-15T08:09:07 | 2019-03-15T08:09:07 | 154,733,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | from operator import itemgetter
from pprint import pprint
def read_file(filename):
with open(filename, mode = 'r') as inp:
text = inp.readlines()
return text
def parse_cs( text ):
levels = []
parity = None
for line in text:
if "ODD" in line:
parity = "ODD"
if ... | [
"artfin@mail.ru"
] | artfin@mail.ru |
b09c19af0a7b913d4058ba6ce32c469d70812157 | f28f4f060aa782fcbd15fbf52025f89fec73a677 | /src/network.py | 3305094494ba011608d55c30397a4a91d7c748f7 | [
"MIT"
] | permissive | vmayoral/NAF-tensorflow | 9a270e800339de45aa0733e48b462ee5d0e7261f | 69ef481314077c1f931ad13afa25f53a5bf58b2f | refs/heads/master | 2021-03-27T20:23:39.515879 | 2017-12-19T17:05:39 | 2017-12-19T17:05:39 | 114,790,833 | 0 | 1 | null | 2017-12-19T17:05:01 | 2017-12-19T17:05:01 | null | UTF-8 | Python | false | false | 4,856 | py | from logging import getLogger
logger = getLogger(__name__)
import tensorflow as tf
from tensorflow.contrib.framework import get_variables
from .ops import *
class Network:
def __init__(self, sess, input_shape, action_size, hidden_dims,
use_batch_norm, use_seperate_networks,
hidden_w, ... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.