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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3540dfbcdedda9bb8b66e444ddf8e9f925b5eb30 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Tensorflow_LightGBM_Scipy_nightly/source/numpy/distutils/ccompiler.py | b03fb96b28519ed7c2f2a0b827651c40c399f598 | [
"GPL-3.0-or-later",
"BSD-3-Clause",
"Python-2.0",
"GCC-exception-3.1",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-only",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause-Open-MPI",
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 28,548 | py | from __future__ import division, absolute_import, print_function
import os
import re
import sys
import types
import shlex
import time
from copy import copy
from distutils import ccompiler
from distutils.ccompiler import *
from distutils.errors import DistutilsExecError, DistutilsModuleError, \
... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
d1bc5e61fa3c11ca862dc136ea3dbb0de9ae534f | bf049dd5150794070fb816b665e626559b29d5ed | /code/docmodel/metadata_parser.py | 4cce43ffcdfd329bfbd82d879b8e3eeb39fa42ed | [] | no_license | mnscholz/ttk | af8cbaeb7e7a15e00757a1e65c4d8e36402fd372 | 07291e45512ad9a819016f8891a3bfa6f462eef0 | refs/heads/master | 2021-01-18T06:22:46.658707 | 2016-05-16T18:35:43 | 2016-05-16T18:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,675 | py | """Metadata Parsers.
This module contains metadata parsers, that is, parsers that pull out the
metadata and add it to a TarsqiDocument. The only requirements on each parser is
that it defines an __init__() method that takes a dictionary of options and a
parse() method that takes a TarsqiDocument instance.
Current par... | [
"marc@cs.brandeis.edu"
] | marc@cs.brandeis.edu |
8f2dd07fdb0e0134084b3f4071f28442126b838a | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/TauES_test/nom/emb/DoubleMu/StoreResults-Run2012A_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/PAT_CMG_V5_16_0_1374658146/HTT_24Jul_newTES_manzoni_Nom_Jobs/Job_20/run_cfg.py | 7235989e5727134dd60b495ee3459b3b573b074b | [] | 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,005 | 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/DoubleMu/StoreResults-Run2012A_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/PAT_CMG_V5_16_0_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
6438a7be02ad5b060376ea2c06ab0e060842b15f | e00fe1e065b448f6f8c0472ed2b8a39991fa7b1b | /Fuzzy_clustering/version3/project_manager/Projects_Train_Manager.py | fe9014b867bf397065759370221daa970b2b14aa | [
"Apache-2.0"
] | permissive | joesider9/forecasting_library | 1a4ded5b09fc603f91fa1c075e79fc2ed06c08a8 | db07ff8f0f2693983058d49004f2fc6f8849d197 | refs/heads/master | 2023-03-29T12:18:22.261488 | 2021-04-01T08:57:08 | 2021-04-01T08:57:08 | 319,906,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,506 | py | import sys
import os
import pandas as pd
import numpy as np
import logging, shutil, glob, json
import copy, joblib
from Fuzzy_clustering.version3.project_manager.ModelManager.Models_train_manager import ModelTrainManager
from Fuzzy_clustering.version3.project_manager.ModelManager.Models_predict_manager import ModelPre... | [
"joesider9@gmail.com"
] | joesider9@gmail.com |
0147192e5e7915f56773a85531b0aa0143af88c2 | 8d6ae21b78b3b40382e21198c571a7957e055be5 | /Aug20/projectEuler/utilities/numeric.py | 8c0bf7fb94084c1085ac1ceaf2dfa7ca1596a545 | [] | no_license | vj-reddy/PythonBatch1 | 6c1a429e0ac57ea1db7b04af18187e84cd52f2d5 | b86a5a16b1004d1e4f855a57b019704c71425bbf | refs/heads/master | 2023-03-16T06:05:48.104363 | 2020-10-16T13:55:03 | 2020-10-16T13:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | def is_divisible_by(number, factor):
"""
This method will return true if the number is divisible by factor
:param number: number
:param factor: factor
:return: true if divisible false other wise
"""
return number % factor == 0
def is_prime(number):
"""
This method will be used to d... | [
"qtdevops@gmail.com"
] | qtdevops@gmail.com |
75f825c43426ee4c037bbc78f9ee08315259bbd0 | 2afb1095de2b03b05c8b96f98f38ddeca889fbff | /web_scrapping/try_beautifulSoup.py | c821555604b1369258a76b38f3042aaacfd6ecbb | [] | no_license | draganmoo/trypython | 187316f8823296b12e1df60ef92c54b7a04aa3e7 | 90cb0fc8626e333c6ea430e32aa21af7d189d975 | refs/heads/master | 2023-09-03T16:24:33.548172 | 2021-11-04T21:21:12 | 2021-11-04T21:21:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # import requests
# from bs4 import BeautifulSoup
#
# url = "https://www.bilibili.com/video/av28951415?from=search&seid=12506065350425881349"
#
# r = requests.get(url)
# r_text = r.text
#
# soup = BeautifulSoup(r_text, "html.parser")
# ##查看第一个a标签
# a = soup.a
# print (a)
##查询a标签在bs4中的对象种类(tag,navigable ... | [
"13701304462@163.com"
] | 13701304462@163.com |
ee554ca6e66e18bfa4501978070d9dc44a2deb22 | 28f088b5356e66780c4bad204564bff92f910f02 | /src/python/pants/backend/awslambda/python/target_types_test.py | 446131aa8fa84fc5d0d5626d1eb5fac0367b19c9 | [
"Apache-2.0"
] | permissive | wonlay/pants | 57dcd99f82cdb2e37fcb7c563ec2bccf797ee7b7 | 53c66503b6898e83c9c9596e56cde5ad9ed6a0d3 | refs/heads/master | 2023-03-06T03:23:08.602817 | 2022-05-05T23:41:32 | 2022-05-05T23:41:32 | 24,695,709 | 0 | 0 | Apache-2.0 | 2023-03-01T11:59:58 | 2014-10-01T21:15:29 | Python | UTF-8 | Python | false | false | 11,377 | py | # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import re
from textwrap import dedent
from typing import List, Optional
import pytest
from pants.backend.awslambda.python.target_types import (
InjectPythonLambdaHandlerDependency,
... | [
"noreply@github.com"
] | wonlay.noreply@github.com |
6af7ce031ab72dbf0aff50709a14055d44efc7f8 | 6206ad73052b5ff1b6690c225f000f9c31aa4ff7 | /Code/Optimal Account Balancing.py | 1e1d342648e9e3f972af5beca08a82012254c012 | [] | no_license | mws19901118/Leetcode | 7f9e3694cb8f0937d82b6e1e12127ce5073f4df0 | 752ac00bea40be1e3794d80aa7b2be58c0a548f6 | refs/heads/master | 2023-09-01T10:35:52.389899 | 2023-09-01T03:37:22 | 2023-09-01T03:37:22 | 21,467,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | class Solution:
def minTransfers(self, transactions: List[List[int]]) -> int:
balance = collections.defaultdict(int) #Initialize final balances for each person.
for x, y, amount in transactions: #Traverse transcations and upd... | [
"noreply@github.com"
] | mws19901118.noreply@github.com |
8a03520a85137791b333c28877f03c52c71b60c5 | 9b2e4652ae8c1f3e49bb0d3e678e92d4a0645f13 | /tests/adapters/test_redirects.py | 574b6dc531f7e24a4bdf3fe25cbb526a76d61202 | [
"BSD-3-Clause"
] | permissive | realsby/httpcore | b2d9b220995a2aa191639e01b637c7fe59c13e3d | 8a227c1f2bd9b409602f5ed4e8ccd4c20245ad6a | refs/heads/master | 2020-05-18T20:21:29.837515 | 2019-05-02T11:11:05 | 2019-05-02T11:11:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,832 | py | import json
from urllib.parse import parse_qs
import pytest
from httpcore import (
URL,
Adapter,
RedirectAdapter,
RedirectBodyUnavailable,
RedirectLoop,
Request,
Response,
TooManyRedirects,
codes,
)
class MockDispatch(Adapter):
def prepare_request(self, request: Request) -> N... | [
"tom@tomchristie.com"
] | tom@tomchristie.com |
7ab3beaed3f6386264eb6ef9b7bfcc566325c83f | eef64f44003dff45287b487bc7a8da589d85d9cc | /chatbot/twitter_qa.py | 1ba8c671b2a055f4723ba61405dd3e29f7cbe936 | [
"Apache-2.0"
] | permissive | k8tems/TwitterQA | 387462c8e47e4c3dadeb9861e4009837e8b22f6b | 938fc29a050ab736d88446e9d794e2047850b4df | refs/heads/master | 2020-06-14T10:40:19.616309 | 2016-11-30T08:09:13 | 2016-11-30T08:09:13 | 75,195,384 | 0 | 1 | null | 2016-11-30T14:36:54 | 2016-11-30T14:36:53 | null | UTF-8 | Python | false | false | 3,924 | py | import json
import os
import re
import itertools
from TwitterAPI import TwitterAPI
with open("chatbot/credentials.json") as f:
credentials = json.load(f)
api = TwitterAPI(**credentials)
def get_tweets(screen_name, max_tweets=None):
show = api.request("users/show", {"screen_name": screen_name}).json()
m... | [
"kootenpv@gmail.com"
] | kootenpv@gmail.com |
edeff8f4740317cae44fe79e7ea6e421a6b1a75a | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/runtime/models/composite_entity_model_py3.py | 45ac985fffc41176922ca0c663519fdecff97333 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,607 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
679b965482332ab123db5c021f5f98ac1c527663 | bbc972524d9f0ccf95fbac30de2f7a7c0a1badf2 | /doc/tutorials/pymunk_platformer/pymunk_demo_platformer_12.py | 2002801e290e61fed6eb1ae237dd36e203f5baa6 | [
"MIT"
] | permissive | JFincher42/arcade | e0049b84b0317a0fd9eee3702e4e6e843cc2ebac | f9eebfc4c6989e0e99d7b6dfe0409f248bfd5a44 | refs/heads/master | 2021-06-29T20:41:31.850895 | 2021-03-18T14:43:01 | 2021-03-18T14:43:01 | 226,012,595 | 0 | 0 | NOASSERTION | 2021-03-18T14:45:09 | 2019-12-05T04:00:26 | Python | UTF-8 | Python | false | false | 21,621 | py | """
Example of Pymunk Physics Engine Platformer
"""
import math
from typing import Optional
import arcade
SCREEN_TITLE = "PyMunk Platformer"
# How big are our image tiles?
SPRITE_IMAGE_SIZE = 128
# Scale sprites up or down
SPRITE_SCALING_PLAYER = 0.5
SPRITE_SCALING_TILES = 0.5
# Scaled sprite size for tiles
SPRITE_... | [
"jfincher42@gmail.com"
] | jfincher42@gmail.com |
3593906c7a346a04d30bc4f47ee8e891762d98c1 | 5e01b849530ceac9f62ef2fb85497792bbe4c15a | /Jan10/naver_top10.py | dd1cf2fe92f9dd24cc756974a264eb7c6063d04f | [] | no_license | cheesecat47/ML_DL_Jan2020 | 2206599c0eb20eebdd152d1e3b27e72ffa2c6900 | 15bffd8c9c19d9ff2871aa7afe95607f95e491fe | refs/heads/master | 2021-07-16T18:10:20.609018 | 2021-01-19T00:48:01 | 2021-01-19T00:48:01 | 232,076,415 | 0 | 0 | null | 2020-01-28T04:58:03 | 2020-01-06T10:23:19 | Python | UTF-8 | Python | false | false | 478 | py | if __name__ == "__main__":
import requests
from bs4 import BeautifulSoup
url = 'https://www.naver.com/'
keyword = 'span.ah_k'
source = requests.get(url).text
# print('source -> ', source)
soup = BeautifulSoup(source, 'html.parser')
hotkeys = soup.select(keyword)
# print('hotkeys -... | [
"cheesecat47@gmail.com"
] | cheesecat47@gmail.com |
89cfad90c8c829befcf8ed40a0e51857fee6b9fd | 794f225c248e84b29f03e5ae472bd995b8dd86a4 | /mossbauer/line_shape/02-15-Na4FeCN6-4.py | 5f3a05d48508b29c46b40f7c6fc791c0b557f4b9 | [] | no_license | yuyichao/jlab2s13 | 1113a537bf9f1d44ff96324f290a16abf265fb20 | 9b09c3af9f4d3311633996635ccf75f04a97c117 | refs/heads/master | 2023-02-21T18:08:12.739055 | 2013-09-14T03:52:57 | 2013-09-14T03:52:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | ../all_data/02-15-Na4FeCN6-4.py | [
"yyc1992@gmail.com"
] | yyc1992@gmail.com |
824b3247e9500207e27b7026be68e30c9b0945f5 | bbe7d6d59ef6d7364ff06377df9658367a19c425 | /minigame/ClerkPurchase.py | 11eb86228f3c0a79bcb7b11df4bc25c5c43d2f20 | [
"Apache-2.0"
] | permissive | DedMemez/ODS-August-2017 | 1b45c912ad52ba81419c1596644d8db2a879bd9b | 5d6214732e3245f63bfa250e3e9c881cc2dc28ad | refs/heads/master | 2021-01-22T18:37:51.626942 | 2017-08-19T02:04:51 | 2017-08-19T02:04:51 | 100,762,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,295 | py | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.minigame.ClerkPurchase
from PurchaseBase import *
from toontown.toonbase import ToontownTimer
COUNT_UP_RATE = 0.15
DELAY_BEFORE_COUNT_UP = 1.25
DELAY_AFTER_COUNT_UP = 1.75
COUNT_DOWN_RATE = 0.075
DELAY_AFTER_COUNT_DOWN = 0.0
DELAY_AFTER_CELEBRA... | [
"noreply@github.com"
] | DedMemez.noreply@github.com |
bf71278902d24a993bdc103a887f085dbdb8912a | 2729fff7cb053d2577985d38c8962043ee9f853d | /bokeh/models/scales.py | 0a037eca1337cf7ff71966fd9f2667aba5e93bf4 | [
"BSD-3-Clause"
] | permissive | modster/bokeh | 2c78c5051fa9cac48c8c2ae7345eafc54b426fbd | 60fce9003aaa618751c9b8a3133c95688073ea0b | refs/heads/master | 2020-03-29T01:13:35.740491 | 2018-09-18T06:08:59 | 2018-09-18T06:08:59 | 149,377,781 | 1 | 0 | BSD-3-Clause | 2018-09-19T02:02:49 | 2018-09-19T02:02:49 | null | UTF-8 | Python | false | false | 923 | py | '''
'''
from __future__ import absolute_import
from ..core.has_props import abstract
from .transforms import Transform
@abstract
class Scale(Transform):
''' Base class for ``Scale`` models that represent an invertible
computation to be carried out on the client-side.
JavaScript implementations should im... | [
"noreply@github.com"
] | modster.noreply@github.com |
25c6321f32ecd55981098fa2638aa02c4977a194 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/ae37519b7fd0b4361acf63a040329b1ef9200f17-<get_symbol>-bug.py | ecd07ea2a9e15c3c4a911abc5f699d4508e5a9c2 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | def get_symbol(num_classes=1000, **kwargs):
data = mx.symbol.Variable(name='data')
conv1a_3_3 = ConvFactory(data=data, num_filter=32, kernel=(3, 3), stride=(2, 2))
conv2a_3_3 = ConvFactory(conv1a_3_3, 32, (3, 3))
conv2b_3_3 = ConvFactory(conv2a_3_3, 64, (3, 3), pad=(1, 1))
maxpool3a_3_3 = mx.symbol.... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c966e69945ab0e2351d0e63be5dcf607c2581dbe | 3b93fc92d4d95dab66438ebf221f6cb4745aac5f | /src/content/serializers.py | 5d6310607bff4b88a555a6a08f16a50ae05b552f | [
"MIT"
] | permissive | vollov/django-restful | f20fb1236e2c4d16c62f7f7a6318e842dac0b6ce | ee796ded68470fd1609a9313fbf21e89481bccce | refs/heads/master | 2021-01-10T01:32:42.643182 | 2016-02-23T15:18:44 | 2016-02-23T15:18:44 | 46,464,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.contrib.auth.models import User, Group
from rest_framework import serializers
class PageSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Page
fields = ('url', 'title', 'created_at')
| [
"dike.zhang@gmail.com"
] | dike.zhang@gmail.com |
e29f67bd34420ecb4d41e6b4df9f51e438faa20f | ca17bd80ac1d02c711423ac4093330172002a513 | /goodyhandy/SubsetII.py | a0dcac809e84135cf1f348571b84dae783ec73ff | [] | no_license | Omega094/lc_practice | 64046dea8bbdaee99d767b70002a2b5b56313112 | e61776bcfd5d93c663b247d71e00f1b298683714 | refs/heads/master | 2020-03-12T13:45:13.988645 | 2018-04-23T06:28:32 | 2018-04-23T06:28:32 | 130,649,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | class Solution(object):
def subsetHelper(self, currentLst, remainLst, k,solution):
if len(currentLst) == k:
solution.append(currentLst)
return
prev = None
for i in xrange(0, len(remainLst)):
if remainLst[i] == prev: continue
prev = remainLst[i... | [
"zhao_j1@denison.edu"
] | zhao_j1@denison.edu |
10460c5c619b4240ff0b99f145ead047cb018d65 | 4c601eaa346e660c296e270cc2d79aea9a3721fe | /homeassistant/components/nexia/entity.py | 33962bb11c09d49123998860af8903052ae16907 | [
"Apache-2.0"
] | permissive | basnijholt/home-assistant | f55110af9ff602274c0a929c7298ef97a0ef282f | ba55b4b8338a2dc0ba3f1d750efea49d86571291 | refs/heads/dev | 2023-01-21T11:53:52.621353 | 2020-08-08T15:03:06 | 2020-08-08T15:03:06 | 220,313,680 | 5 | 1 | Apache-2.0 | 2023-01-13T06:04:49 | 2019-11-07T19:29:54 | Python | UTF-8 | Python | false | false | 3,620 | py | """The nexia integration base entity."""
from homeassistant.const import ATTR_ATTRIBUTION
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity import Entity
from .const import (
ATTRIBUTION,
DOMAIN,
MANUFACTURER,
SIGNAL_THERMOSTAT_UPDATE,
SIGNAL_Z... | [
"noreply@github.com"
] | basnijholt.noreply@github.com |
da425728c015d049bacf282add75708ba0065c04 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02552/s287816980.py | bb5d69ee25ca2f4ab1965855322a65093f5f88bf | [] | 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 | 39 | py | x = int(input())
print(0 if x else 1)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5ce9615a4c88d5518f60ae94f94389d009de2e7d | ad6f20ca36dc65e34b43c69db66f383554718fed | /matrix/MaximumSizeSquareSubMatrixWithAll1s.py | e71c6b396ccd19a920cd3ae3144e2eadfef0eb5e | [] | no_license | atulanandnitt/questionsBank | 3df734c7389959801ab6447c0959c85f1013dfb8 | 477accc02366b5c4507e14d2d54850a56947c91b | refs/heads/master | 2021-06-11T21:39:24.682159 | 2021-05-06T17:54:18 | 2021-05-06T17:54:18 | 175,861,522 | 0 | 1 | null | 2020-05-02T09:26:25 | 2019-03-15T17:10:06 | Python | UTF-8 | Python | false | false | 983 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 26 19:29:19 2018
@author: Atul Anand
"""
def MaximumSizeSquareSubMatrixWithAll1s(mat):
print(mat)
solMat=[[0 for j in range(len(mat[0]))] for i in range(len(mat))]
print(len(mat), len(mat[0]))
print(len(solMat), len(solMat[0]))
... | [
"atul.anand.nitt@gmail.com"
] | atul.anand.nitt@gmail.com |
a7cd0fc7c724c7705a289d6cdd963479b3160bdf | 358519772669c73092f625f630722c38e1d33783 | /DatabaseTopology/Force/AbstractAngle.py | c9c4fb2ea68e3a0faa2f0df8796e1238f9370815 | [] | no_license | minghao2016/mmtools | e7e61aca084498408ceae965dd6c9450ad89eafa | 3ade988afb51cd54ee5a4067d8deaad88afbb0fe | refs/heads/master | 2021-09-21T01:02:22.522187 | 2014-09-19T03:40:03 | 2014-09-19T03:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | class AbstractAngle(object):
def __init__(self, atom1, atom2, atom3):
self.atom1 = atom1
self.atom2 = atom2
self.atom3 = atom3
def __eq__(self, object):
if ((self.atom1 == object.atom1
and self.atom2 == object.atom2
and self.atom3 == object.atom3... | [
"choderaj@mskcc.org"
] | choderaj@mskcc.org |
314741efab3731b5875ac8b4f6eb9a3c6dfd630c | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5765824346324992_0/Python/xldrx/b_small.py | 602f0976eae08d0b2671638f6d4a89b2f1cbb49a | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | #! /usr/bin/env python -u
# coding=utf-8
import sys
__author__ = 'xl'
def find_n(m_time):
global M
ans = 0
for m in M:
ans += m_time / m
return ans
def find_next_time(m_time):
global M
ans = 1e6
for i, m in enumerate(M):
ans = min((m - m_time % m) % m, ans)
return a... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
2f2653ba38a9974a5cb6175428c4f23170ab8e86 | c2ee9d6d84e2270ba4c9d6062460a2be0ff5f19c | /205. Isomorphic Strings.py | 771d7e09dcbe8419877d10b7e415c0b9bf96c449 | [] | no_license | Peiyu-Rang/LeetCode | 0dd915638e8c41c560952d86b4047c85b599d630 | f79886ed3022664c3291e4e78129bd8d855cf929 | refs/heads/master | 2021-11-27T23:48:39.946840 | 2021-11-09T12:47:48 | 2021-11-09T12:47:48 | 157,296,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 16 17:43:45 2020
@author: Caven
"""
class Solution:
def isIsomorphic(self, s: str, t: str) -> bool:
seen = {}
for ss, tt in zip(s,t):
if ss in seen:
if seen[ss] == tt:
continue
else:
... | [
"prang3@gatech.edu"
] | prang3@gatech.edu |
7f429adacf2c1c7bbf71a839e4fb77302477a243 | aa265e03e73f718d4008cfe30ada7ee32c852eec | /ABC_C/ABC195_C.py | 2c195025d72f69ce4a0f715bd0d10c3639be8ffd | [
"MIT"
] | permissive | ryosuke0825/atcoder_python | 4fb9de9733cd9ef41c2ad9ad38b3f190f49d3ad5 | 52d037d0bc9ef2c721bf2958c1c2ead558cb0cf5 | refs/heads/master | 2023-03-11T22:47:56.963089 | 2023-03-05T01:21:06 | 2023-03-05T01:21:06 | 181,768,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | N = int(input())
ans = 0
for i in range(3, 16, 3):
A = 10**i
if N >= A:
ans += N-(A-1)
print(ans)
| [
"ayakobon@gmail.com"
] | ayakobon@gmail.com |
32d2f686c52afd000a755700d21c23ebcfedfdd7 | d8cf93900e6d86240ceb7643fd78bd2841b38152 | /test/str_mainpulation_test/test_Unicode_bytes_bytearray.py | 874ebae0cd1e269f91aee5e9a376b059d0e359db | [] | no_license | Onebigbera/Daily_Practice | 165cee0ee7883b90bcf126b23ff993fed0ceffef | 8f1018a9c1e17c958bce91cbecae88b0bb3c946b | refs/heads/master | 2020-04-09T01:20:48.857114 | 2019-01-03T03:24:59 | 2019-01-03T03:24:59 | 159,900,636 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,129 | py | # -*-coding:utf-8 -*-
# File :test_Unicode_bytes_bytearray.py
# Author:George
# Date : 2019/1/3
# motto: Someone always give up while someone always try!
# Python字符串使用Unicode编码来表示文本,大致而言,每个Unicode字符都用一个码点(code point)表示,而
# 码点是Unicode标准给每个字符指定的数字。这让你能够以任何现
# 代软件都能识别的方式表示129个文字系统中的12万个以上的字
# 符。当然,鉴于计算机键盘不可能包含几十万个键,因... | [
"2578288992@qq.com"
] | 2578288992@qq.com |
f897cb71f4618b8576015ce323dfbf1a9d1943b8 | 14252ea933a08056363230c6df89223b996a0da2 | /app/users/models.py | 4f39bdd9a656c75d57734bd0ce1fd9a66d26467e | [
"MIT"
] | permissive | S3Infosoft/mvr-insights | eeb02aa2e6767e6a23818d4e09f7be7ce29f80cb | ac73feff03c1592d5efd8e0b82f72dd4dbd3e921 | refs/heads/master | 2020-05-29T14:08:11.070784 | 2020-04-23T19:46:57 | 2020-04-23T19:46:57 | 189,184,619 | 0 | 1 | MIT | 2020-04-23T19:46:58 | 2019-05-29T08:35:56 | CSS | UTF-8 | Python | false | false | 6,123 | py | from django.db import models
from django.urls import reverse
from django.contrib.auth import base_user, models as auth_models
from django.utils.timezone import now
from django.utils.translation import ugettext_lazy as _
from django.core.files.base import ContentFile
from django.db.models.signals import post_save
from ... | [
"abhie.lp@gmail.com"
] | abhie.lp@gmail.com |
67bf7155188ac9ad6196f709cc8f1055cfa2148c | 4cbc8b81d197bc392d1b57856254300331b9738f | /python/tutorial_env/bin/virtualenv | 73d447dc889101d6aedde9c0a52c9b20a8ff657c | [
"MIT"
] | permissive | vcatafesta/chili | 87b9606f17cda645ba44cbf2bb4cc4637e18d211 | 5c734ac88454db76eb2f4e92c13364a5bbc7a93a | refs/heads/main | 2023-09-01T01:39:09.457448 | 2023-08-29T21:23:28 | 2023-08-29T21:23:28 | 171,972,556 | 2 | 2 | null | 2019-02-22T01:38:49 | 2019-02-22T01:26:46 | null | UTF-8 | Python | false | false | 267 | #!/github/chili/python/tutorial_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from virtualenv.__main__ import run_with_catch
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_with_catch())
| [
"vcatafesta@gmail.com"
] | vcatafesta@gmail.com | |
b35fca13f4a26f547668416fc0650b4da2010002 | 07e6fc323f657d1fbfc24f861a278ab57338b80a | /python/pySimE/space/exp/OrbitalTransferOpt/OrbOpt_Cos/OrbitalOptCos_profile.py | 9e3b7306b0af6b7d12671d76c2f1f9c87fc2bfa2 | [
"MIT"
] | permissive | ProkopHapala/SimpleSimulationEngine | 99cf2532501698ee8a03b2e40d1e4bedd9a12609 | 47543f24f106419697e82771289172d7773c7810 | refs/heads/master | 2022-09-05T01:02:42.820199 | 2022-08-28T10:22:41 | 2022-08-28T10:22:41 | 40,007,027 | 35 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,048 | py | #!/usr/bin/env python
from pylab import *
from basiset import *
from Simplex_optimization import Simplex
from Random_optimization import MCBias_Run,MCBias2_Run
nnodes = 8
nsamp = 64
Gen = [0.0]*2*nnodes
def R2omega(R):
return sqrt(1.0/R**3)
T = 2.0; R0 = 1.0; R1 = 0.2... | [
"ProkopHapala@gmail.com"
] | ProkopHapala@gmail.com |
f85334f39cfa415b73ca89a1cfa22453ea4916e7 | 2ad9a73cb3e2da46fb15ae56a6dee11407fe8845 | /ports/kodi/addons/plugin.video.transistortv/scrapers/local_scraper.py | 06c7ae7a3925f2c85a4975534ba43cc2f04195b2 | [] | no_license | hpduong/retropie_configs | cde596b35897a3faeedefabd742fc15820d58255 | ed4e39146e5bebc0212dcef91108541a128d9325 | refs/heads/master | 2021-07-12T15:46:17.589357 | 2018-11-11T19:10:54 | 2018-11-11T19:10:54 | 157,111,040 | 1 | 2 | null | 2020-07-24T03:43:29 | 2018-11-11T18:59:52 | Python | UTF-8 | Python | false | false | 7,649 | py | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
This program 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 the License, or
(at your option) any later version.
T... | [
"henryduong@gmail.com"
] | henryduong@gmail.com |
14f5e4b6406aa2e955eeec030b5a49af05d538a6 | 380a47268c5975473a2e7c38c747bc3bdbd981b1 | /benchmark/third_party/DeepSpeed/deepspeed/ops/transformer/inference/diffusers_attention.py | 45a206a0a94ea5620ca300dafd47b0e16fad537b | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | FMInference/FlexGen | 07aa9b1918c19b02077e13ad07e76840843810dd | d34f7b4b43ed87a374f394b0535ed685af66197b | refs/heads/main | 2023-07-24T02:29:51.179817 | 2023-07-21T22:38:31 | 2023-07-21T22:38:31 | 602,270,517 | 6,821 | 411 | Apache-2.0 | 2023-07-07T22:59:24 | 2023-02-15T21:18:53 | Python | UTF-8 | Python | false | false | 11,039 | py | '''
Copyright 2022 The Microsoft DeepSpeed Team
'''
import math
import torch
from torch.autograd import Function
from ... import op_builder
import torch.nn as nn
from packaging import version as pkg_version
from deepspeed.utils.logging import log_dist
# Cuda modules will be imported if needed
inference_cuda_module = No... | [
"sqy1415@gmail.com"
] | sqy1415@gmail.com |
e3ef3305915ba7db4c208240f59f5157b65fa40e | e629c850bd473f0a8f17a569bbd51584f67a33e6 | /blog/views.py | c8f7bbe14984c2abde28bbd92a20072811eec802 | [] | no_license | buxizhizhoum/django_web | d2047c2375d508dd5a6fe47d5191cac4862911f3 | f94174ac63c8af84627891c9d6b1836ff5f4e850 | refs/heads/master | 2021-01-12T04:04:55.999433 | 2017-02-18T07:03:25 | 2017-02-18T07:03:25 | 77,494,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,702 | py | # coding: utf-8
from django.shortcuts import render
from django.shortcuts import HttpResponse
from django.shortcuts import render_to_response
from django.shortcuts import redirect
from django.contrib.auth.decorators import login_required
import datetime
import Queue
import time
from blog import forms
import json
from b... | [
"mapeaks@126.com"
] | mapeaks@126.com |
dce5fda1a159a2df6e4b0f055c71dcd1dcc4353e | 3801829d505d9fe2ba56d59eeeb601d2a6a918b2 | /tencentcloud/gse/v20191112/gse_client.py | d7bb3fa9d01c6445b0ef2e96f9c0628b7c045e49 | [
"Apache-2.0"
] | permissive | leolu8/tencentcloud-sdk-python | 5f02dc2fb93d5f32e3a37dbe121e33f1ec6ac95c | 7f14e67a6ce94050916b7cdb5bd284d6aaf7f2ac | refs/heads/master | 2022-12-22T09:10:07.158810 | 2020-09-29T00:31:05 | 2020-09-29T00:31:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,020 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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... | [
"tencentcloudapi@tenent.com"
] | tencentcloudapi@tenent.com |
71c6c990cb067a053461d52af67c6a7f6bfa3c21 | 075c07c4e6efebbcdec670c07712281ed7ba659e | /traceback_format.py | fd82ab2d76aa08c4033e50b691553f48e7a1258d | [] | no_license | crystalDf/Automate-the-Boring-Stuff-with-Python-Chapter-10-Debugging | 86380e0e4a71656bd7638255252d470fe27b35e1 | 75dfc3bb0272fc799f6c618a7ccdef6820702bb0 | refs/heads/master | 2021-01-20T19:39:16.394050 | 2016-07-27T15:30:22 | 2016-07-27T15:30:22 | 63,609,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import traceback
try:
raise Exception('This is the error message.')
except:
error_file = open('errorInfo.txt', 'w')
print(error_file.write(traceback.format_exc()))
error_file.close()
print('The traceback info was written to errorInfo.txt.')
| [
"chendong333@gmail.com"
] | chendong333@gmail.com |
b76a62675bc28f59873d2f2c5a1d84bcb2675553 | 58e09fac582a76428819e167e42e60765d11bb11 | /space/lib/python3.7/io.py | a9f5be7852a0d74823a1951ad571ddbbe08fb411 | [] | no_license | shanthimadugundi/DB_Project | 25eb2a0e7504f81484ad11c0fa9e902b038c85b4 | b5ba55af1bcddde164cecc60d331d615dd477165 | refs/heads/master | 2020-04-27T05:14:56.107466 | 2019-03-06T05:31:23 | 2019-03-06T05:31:23 | 174,075,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | /Users/shanthimadugundi/anaconda3/lib/python3.7/io.py | [
"shanthimadugundi@Shanthis-MacBook-Pro.local"
] | shanthimadugundi@Shanthis-MacBook-Pro.local |
f562169114f72ae7fd9906281c117a34e96029bb | f7a20374403b55189cc5db6e8fa34d0ba290387c | /modules/smm_marketing/__openerp__.py | 407d9650426c5d52c098a18e603a7044ae1b3ba3 | [] | no_license | dark-ice/upink_modules | 1a7b5a165cc5e05396c62cf33c261b907c23e33c | c497bf87a39796f1df3877542359b1927bec3a76 | refs/heads/master | 2021-05-01T04:40:16.436666 | 2014-04-12T15:09:31 | 2014-04-12T15:09:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
#... | [
"karbanovich.andrey@gmail.com"
] | karbanovich.andrey@gmail.com |
fa237d48bc666c059cf88d567f64c6ae48cb8b0d | 271dbb5f0c23ae40f19a8df7dd3f15a44fbe5ae1 | /EdmureBlog/EdmureBlog/settings.py | 65db68c5b7535414c71de5b01c5cb3823e4aa1fa | [] | no_license | obligate/python3-king | a4d1c5c145c3b1c42efe059cf2bbd797d0b3c528 | 2b31400468c7a2621f29f24f82e682eb07c0e17d | refs/heads/master | 2020-05-02T11:45:16.218771 | 2019-03-27T08:05:39 | 2019-03-27T08:05:39 | 177,938,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,756 | py | """
Django settings for EdmureBlog project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import o... | [
"peter@tidebuy.net"
] | peter@tidebuy.net |
eeb786c8a7d518628fe96db228bbf2089d27276b | 0a48086ea4dd24cf696aab16fc3969c5980f1442 | /gcpdjango/apps/users/utils.py | c34df67721671cfd06d7fcd7d74ca1fa7676693e | [
"MIT"
] | permissive | stanford-rc/gcp-django-stanford | 67b7b0b532b3c4b7236ec80ad66892e979b52dda | a8d72130e03f96c7d9636b951b780e478594309d | refs/heads/master | 2022-11-21T03:25:03.980764 | 2020-07-31T18:40:56 | 2020-07-31T18:40:56 | 282,962,179 | 2 | 0 | MIT | 2020-07-31T18:40:58 | 2020-07-27T17:03:03 | HTML | UTF-8 | Python | false | false | 3,245 | py | import string
import random
from gcpdjango.settings import SENDGRID_API_KEY, SENDGRID_SENDER_EMAIL
from django.contrib import messages
from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import (
Mail,
Email,
To,
Content,
Attachment,
FileContent,
FileName,
FileType,
D... | [
"vsochat@stanford.edu"
] | vsochat@stanford.edu |
9c10f9833c7b2a77775984733c373b5641329b23 | 23556b966ee6a3abbe42ee5b66e13af3dce0cf71 | /u24_lymphocyte/third_party/treeano/nodes/tests/composite_test.py | eccc06bc2a77e4301650a679bfcae56d78ee2209 | [
"BSD-3-Clause"
] | permissive | SBU-BMI/quip_classification | 74dbf6d41e579755a952ba475f8a89bd82ac8530 | be61e5f047093243404f6f2dc8e837e27e8e1eb3 | refs/heads/master | 2022-07-30T20:29:48.459298 | 2022-07-17T16:59:15 | 2022-07-17T16:59:15 | 162,736,219 | 5 | 14 | BSD-3-Clause | 2022-02-11T02:53:02 | 2018-12-21T16:36:39 | Python | UTF-8 | Python | false | false | 5,315 | py | import nose.tools as nt
import numpy as np
import theano
import theano.tensor as T
import treeano
import treeano.nodes as tn
fX = theano.config.floatX
def test_dense_node_serialization():
tn.check_serialization(tn.DenseNode("a"))
tn.check_serialization(tn.DenseNode("a", num_units=100))
def test_dense_comb... | [
"sabousamra@cs.stonybrook.edu"
] | sabousamra@cs.stonybrook.edu |
55ff4fe9356b729e0c86ab973ecb0755cbe6c0bf | 6418b2bca8c9d95a69109e2fe4b0a827f9a87ddd | /cloudmesh/pi/board/led.py | b6abe06d0b12d0aae28eb57e5922230ca9ef7ccd | [
"Apache-2.0",
"Python-2.0"
] | permissive | nitesh-jaswal/cloudmesh-pi-cluster | 49d31baecd08eef3e8fc355fbf72fbcd655ebd35 | 804a7f0f93fb06161bccb4c9ff0fcecc93854747 | refs/heads/master | 2022-11-26T12:52:20.313904 | 2020-08-04T21:52:11 | 2020-08-04T21:52:11 | 273,601,432 | 0 | 0 | NOASSERTION | 2020-08-04T21:52:12 | 2020-06-19T23:02:02 | Python | UTF-8 | Python | false | false | 7,945 | py | import os
import time
from pprint import pprint
from cloudmesh.common.Host import Host
from cloudmesh.common.Tabulate import Printer
from cloudmesh.common.parameter import Parameter
"""
From: https://www.raspberrypi.org/forums/viewtopic.php?t=12530
If you want the LED to go back to its default function:
echo mmc0 ... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
178ebe48b20de522d522befa1f047f91edf82428 | 4289fcc440e0cf3d2ecaca03bd2cb1a40933f8fc | /dtformats/recycler.py | 7c2f3c368d1e9f32eebd78e298c581e9be311590 | [
"Apache-2.0"
] | permissive | ydkhatri/dtformats | 4251563ad8a42dbfb8f293890ed844e29b2c856a | 692d53616f7c89e5ff4d6950778c46d3b94a0130 | refs/heads/master | 2020-04-20T23:41:11.816017 | 2019-02-03T12:40:55 | 2019-02-03T14:32:54 | 169,174,860 | 2 | 0 | Apache-2.0 | 2019-02-05T01:16:42 | 2019-02-05T01:16:41 | null | UTF-8 | Python | false | false | 4,752 | py | # -*- coding: utf-8 -*-
"""Windows Recycler INFO2 files."""
from __future__ import unicode_literals
from dtformats import data_format
from dtformats import errors
class RecyclerInfo2File(data_format.BinaryDataFile):
"""Windows Recycler INFO2 file."""
_DEFINITION_FILE = 'recycler.yaml'
_DEBUG_INFO_FILE_ENTRY... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
8d35fadf93c1e4e0d7f0a894831ab7b3ad385070 | 2194b6c17f3153c5976d6ac4a9ab78211027adab | /otoroshi_admin_api_client/models/otoroshimodels_infra_provider_match_type.py | 94a545a8ff9ec8adb0fa47d5f3f07861625e89b3 | [] | no_license | krezreb/otoroshi-admin-api-client | 7fab5e873c9c5950d77fffce6bcf80d3fdf4c319 | 9b3156c11eac227024cfe4a26c0129618deb2c4d | refs/heads/master | 2023-05-08T08:32:00.982987 | 2021-05-27T09:55:00 | 2021-05-27T09:55:00 | 371,324,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | from enum import Enum
class OtoroshimodelsInfraProviderMatchType(str, Enum):
ALWAYSMATCH = "AlwaysMatch"
NETWORKLOCATIONMATCH = "NetworkLocationMatch"
GEOLOCATIONMATCH = "GeolocationMatch"
def __str__(self) -> str:
return str(self.value)
| [
"josephbeeson@gmail.com"
] | josephbeeson@gmail.com |
1a3371799d39e8df80c7bf8ff391b29ea564c666 | 482ca5a05c3e34eb0c5b9eb239b86288fa3ea5be | /lilac2/const.py | 5d623e05a3db8e66eda7abb6976aecbbc8e377b5 | [] | no_license | renyuneyun/lilac | de8462deb6275f8ea8e540ad71de10313d976250 | c224a65ac810a8aaba05c410c5b07683a5055868 | refs/heads/master | 2020-03-14T04:23:42.518149 | 2019-10-28T16:20:10 | 2019-10-28T16:21:17 | 131,441,132 | 1 | 0 | null | 2018-04-28T20:15:02 | 2018-04-28T20:15:02 | null | UTF-8 | Python | false | false | 335 | py | from pathlib import Path
import types
mydir = Path('~/.lilac').expanduser()
AUR_REPO_DIR = mydir / 'aur'
AUR_REPO_DIR.mkdir(parents=True, exist_ok=True)
SPECIAL_FILES = ('package.list', 'lilac.py', 'lilac.yaml', '.gitignore')
_G = types.SimpleNamespace()
# repo: Repo
# mod: LilacMod
# pkgver: Optional[str]
# pkgrel:... | [
"lilydjwg@gmail.com"
] | lilydjwg@gmail.com |
6ed4c3efbfd2ae0af22e5a4be77058890cced371 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-facebody/aliyunsdkfacebody/request/v20191230/MonitorExaminationRequest.py | 91ad61a32de73924cfe85364b9c031859e147480 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 1,621 | 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 |
c3ee35fe9436a493ef738377774073c953dba7cc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /n4JA3je7FEFfZKaWp_11.py | 7b07527a21b2f44574d4b5255563e5c16f1eaaeb | [] | 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,465 | py | """
You landed your dream job. They pay in geometric progression (see resources).
In your first month of work, you will get your first paycheck `first_month`.
For every month after, your paycheck will be `multiplier` times bigger than
the previous paycheck.
Create a function that takes the `first_month`'s paycheck ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
33f6368a00941a84a7f75fc5b8debc37bf78b59e | 3d626f6034eddda6122feb81a5c98c8a3dab9d20 | /08-def-type-hints/messages/no_hints/messages.py | df037e7fa4ee7666a450ae417e60e5916bf32bae | [
"MIT"
] | permissive | eliaskousk/example-code-2e | b8d4f9ce86a55c2e7b905d2d1f94a5c867485fa2 | 28d6d033156831a77b700064997c05a40a83805f | refs/heads/master | 2022-07-13T19:12:57.425453 | 2022-04-24T20:41:30 | 2022-04-24T20:41:30 | 216,843,265 | 2 | 0 | MIT | 2019-10-22T15:09:18 | 2019-10-22T15:09:17 | null | UTF-8 | Python | false | false | 371 | py | """
# tag::SHOW_COUNT_DOCTEST[]
>>> show_count(99, 'bird')
'99 birds'
>>> show_count(1, 'bird')
'1 bird'
>>> show_count(0, 'bird')
'no birds'
# end::SHOW_COUNT_DOCTEST[]
"""
# tag::SHOW_COUNT[]
def show_count(count, word):
if count == 1:
return f'1 {word}'
count_str = str(count) if count else 'no'
... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
526677bfe45d954fc32b6679c20729126f9eda0a | 14ddda0c376f984d2a3f7dcd0ca7aebb7c49648d | /bnn_mcmc_examples/examples/mlp/penguins/hmc/pilot_run.py | 97dd6cec9d34ff10a9f74c188fb2a7a85f034672 | [
"MIT"
] | permissive | papamarkou/bnn_mcmc_examples | 62dcd9cc0cf57cda39aa46c2f2f237bbcd2d35bb | 7bb4ecfb33db4c30a8e61e31f528bda0efb24e3d | refs/heads/main | 2023-07-12T20:51:28.302981 | 2021-08-22T13:06:17 | 2021-08-22T13:06:17 | 316,554,634 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # %% Import packages
from datetime import timedelta
from timeit import default_timer as timer
from bnn_mcmc_examples.examples.mlp.penguins.constants import num_burnin_epochs, num_epochs, verbose, verbose_step
from bnn_mcmc_examples.examples.mlp.penguins.hmc.constants import sampler_output_pilot_path
from bnn_mcmc_exa... | [
"theodore.papamarkou@gmail.com"
] | theodore.papamarkou@gmail.com |
adabad459eeb610321cf8aca55eaa46f883670a0 | 209aae9f40657d48461bed5e081c4f235f86090a | /2019/day23-1.py | 84c2010cfdb302f687417c5081575342cd025e26 | [] | no_license | scheidguy/Advent_of_Code | 6e791132157179928e1415f49467ad221ef1e258 | fbc09e4d26502b9a77e0c8d2840b11ec85a3c478 | refs/heads/main | 2023-03-05T12:34:15.343642 | 2021-02-20T00:27:58 | 2021-02-20T00:27:58 | 329,106,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,618 | py |
from copy import deepcopy
# import numpy as np
f = open('day23-1_input.txt')
# f = open('day23-1_debug.txt')
text = f.readlines()
f.close()
program = [int(i) for i in text[0].strip().split(',')]
program.extend([0 for _ in range(10**4)])
NIC = [deepcopy(program)for computer in range(50)]
inputs = [[network_address]... | [
"scheidguy@gmail.com"
] | scheidguy@gmail.com |
2f7bc0bae1d87b15295111cba5e7d06c0d38d474 | 80b7f2a10506f70477d8720e229d7530da2eff5d | /uhd_restpy/testplatform/sessions/ixnetwork/quicktest/learnframes_eb6bce41bb67df974840a112bf5ea44c.py | 3999e3bab765dea389e502027ec0ca16e8789c74 | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 24,837 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
aa1107a2f5107739a1951e5cb4948883dd283ca3 | 1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc | /venv/lib/python2.7/site-packages/ansible/module_utils/network/checkpoint/checkpoint.py | 7545ebfe34554f4f7f9eeede21eb5bc3b8718fe6 | [
"MIT"
] | permissive | otus-devops-2019-02/devopscourses_infra | 1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c | e42e5deafce395af869084ede245fc6cff6d0b2c | refs/heads/master | 2020-04-29T02:41:49.985889 | 2019-05-21T06:35:19 | 2019-05-21T06:35:19 | 175,780,457 | 0 | 1 | MIT | 2019-05-21T06:35:20 | 2019-03-15T08:35:54 | HCL | UTF-8 | Python | false | false | 2,516 | py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | [
"skydevapp@gmail.com"
] | skydevapp@gmail.com |
c21fe724fc485be315124ec386b0530e099af7b8 | 5c58587ebfbf56192b3dc6ed6f43bc002c8e2cff | /core/migrations/0032_market.py | cf05224f92656563bdf5d67622b60b565cf3d04c | [] | no_license | hossamelneily/nexchange | fb9a812cfc72ac00b90cf64d6669a8129c2d2d4b | 6d69274cd3808989abe2f5276feb772d1f0fa8b4 | refs/heads/release | 2022-12-13T09:20:47.297943 | 2019-02-12T08:20:34 | 2019-02-12T08:20:34 | 210,064,740 | 1 | 2 | null | 2022-12-09T00:54:01 | 2019-09-21T23:19:34 | Python | UTF-8 | Python | false | false | 963 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-09-27 13:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0031_merge_20170921_1946'),
]
operations = [
migrations.CreateModel... | [
"noreply@github.com"
] | hossamelneily.noreply@github.com |
9344fa509479d8e7ecc91673c3b50f17ddea5d7d | df4fd380b3e1720a970573c4692eb0a32faf8f47 | /string_matching/rabin_karp.py | a335b90d14aa9c110503ed37eb35d99914e008e6 | [] | no_license | Taeheon-Lee/Algorithm | 99dd21e1e0ddba31190a16d6c9646a9f393f4c4b | 64ebacf24dfdf25194b5bce39f4ce43c4bc87141 | refs/heads/master | 2023-07-10T20:26:10.121214 | 2021-08-07T17:26:26 | 2021-08-07T17:26:26 | 383,803,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | "Rabin-Karp 라빈-카프 알고리즘"
# 패턴의 해시값과 본문 안에 있는 하위 문자열의 해시값만을 비교하여 탐색
# 즉 문자열 패턴을 수치로 바꾸어 문자열의 비교를 수치 비교로 전환해 매칭하는 방법
# 해싱은 인덱스만 계산하면 바로 값을 참조할 수 있기 떄문에 연산 속도가 O(1)로 매우 빠름
# 해싱 값은 문자열이 달라도 같을 수 있기 때문에 해싱 값이 같을 경우, 단순 비교를 시작
# 따라서 최악의 경우, 해싱이 모두 같고 매칭이 다른 경우가 발생할 수 있어 시간 복잡도가 O(mn)
# 평균적인 시간 복잡도는 선형에 가까운 O(m+n)으로 매우 빠름
de... | [
"taeheon714@gmail.com"
] | taeheon714@gmail.com |
5fd492e636197ff8865032922e0ce3ac8d9b7f52 | 8d213a21ac532d6713f1239449ffc08497a77476 | /drf_api/wsgi.py | d73b8908123d55b0bf0f1c22f994774fe1a86fe5 | [] | no_license | anykate/drf_api | 3453c2a27a3d7ab8e1560848d84dd6f7b985d5ec | 7fe9c7c2950ae0a84f6a9f9d33a9f2dccd723560 | refs/heads/master | 2020-09-04T03:32:44.440439 | 2019-11-05T03:22:08 | 2019-11-05T03:22:08 | 219,648,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for drf_api project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"aryamane.aniket@gmail.com"
] | aryamane.aniket@gmail.com |
6fb44519ef839fdb96140c65a58683b9d72f9322 | 9b7291d81a416bde2ec181229601eb2e33c7b8b2 | /monophoton/configs/TagAndProbe2016/trigger.py | b9028479a55860739488b7b49c1131b654df69a0 | [] | no_license | MiT-HEP/MonoX | ab1528e72dad2590a0ae64f1a1d47195139e1749 | 224ee01107a94cedf8563c497edb2f326b99d9b1 | refs/heads/master | 2021-01-24T06:04:16.645559 | 2019-11-15T09:18:40 | 2019-11-15T09:18:40 | 41,823,403 | 1 | 9 | null | 2018-07-19T17:05:30 | 2015-09-02T19:33:33 | Python | UTF-8 | Python | false | false | 7,143 | py | import ROOT
ROOT.gSystem.Load('libPandaTreeObjects.so')
e = ROOT.panda.Event
ROOT.gROOT.ProcessLine('int val;')
def getEnum(cls, name):
ROOT.gROOT.ProcessLine('val = panda::' + cls + '::TriggerObject::' + name + ';')
return ROOT.val
measurements = {
('photon', 'sel'): ('sel-16b-m', 'tpegLowPt', 'probes.m... | [
"yiiyama@mit.edu"
] | yiiyama@mit.edu |
6627c39817bf5dff8482e5da4e684c51071c774c | 80e36c723d26fef80892a684a5987295e1dbd48c | /library/forms.py | 6e5c194fa078d5e8c738dff33f835dd95c7f4495 | [
"LicenseRef-scancode-public-domain"
] | permissive | xritzx/WordFruit | 9f4ef8b6fe4774d3ca4e9ea2ceff83ece99c6f3b | 04dd9539c5c7fb57a40ceb5d02b76f8f95c52ae6 | refs/heads/master | 2022-12-13T16:03:51.388925 | 2019-06-06T06:15:22 | 2019-06-06T06:15:22 | 168,710,999 | 4 | 3 | null | 2022-12-08T01:34:48 | 2019-02-01T14:39:55 | CSS | UTF-8 | Python | false | false | 189 | py | from django.forms import ModelForm
from .models import Book
class BookAddForm(ModelForm):
class Meta:
model = Book
exclude = ['contributor', 'date', 'read', 'likes']
| [
"ritankarpaul47@gmail.com"
] | ritankarpaul47@gmail.com |
52d0ac2b85718c3c146720e8f651230dfff0cc2c | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /NhPYFqfQcFXWvdH8t_6.py | d9f026bff80b989b0ba365c2911524b73da7508c | [] | 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,766 | py | """
A positive integer multiplied times its inverse is always equal to 1:
`17*(1/17)==1`. Modular arithmetic has a similar inverse function, although,
for modulus `m`, we are confined to integers from 0 to m-1. The modular
multiplicative inverse of 3 modulus 5 is equal to 2 because `(3*2)%5==1`.
Another example: the... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b77eadfb20bc641f8047bfe61ca0392ebcd0f42d | f439d2e77582a747957df6ff6e102df91b8a16d3 | /examples/nlp/lstm_generator_textfile.py | 0c0399ed1f4628d5d8524f0a780eba7e0bb936c8 | [
"MIT"
] | permissive | NLPDev/tflearn | 6bba8a0e811d465c008511ef2946d183c996d0bf | 77436978c62124bd91ef739dc77c9ea58277c779 | refs/heads/master | 2020-04-09T13:20:36.113533 | 2018-12-07T15:46:33 | 2018-12-07T15:46:33 | 160,370,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | from __future__ import absolute_import, division, print_function
import os, sys, argparse
import urllib
import tflearn
from tflearn.data_utils import *
parser = argparse.ArgumentParser(description=
'Pass a text file to generate LSTM output')
parser.add_argument('filename')
parser.add_argument('-t','--temp', hel... | [
"vasile123andronic@gmail.com"
] | vasile123andronic@gmail.com |
44e793c1248ef2e36ba33257f2adbf511b590309 | 37d8802ecca37cc003053c2175f945a501822c82 | /09-动态规划/0062-不同路径-2.py | 7c1a0f8ea366b820befe2445e2814772c7343155 | [
"Apache-2.0"
] | permissive | Sytx74/LeetCode-Solution-Python | cc0f51e31a58d605fe65b88583eedfcfd7461658 | b484ae4c4e9f9186232e31f2de11720aebb42968 | refs/heads/master | 2020-07-04T18:17:24.781640 | 2019-07-30T03:34:19 | 2019-07-30T03:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | class Solution:
def uniquePaths(self, m, n):
"""
:type m: int
:type n: int
:rtype: int
"""
dp = [1] * n
for i in range(1, m):
for j in range(1, n): # 从索引 2 开始走就行了
dp[j] = dp[j] + dp[j - 1]
return dp[-1]
if __name__ == '_... | [
"121088825@qq.com"
] | 121088825@qq.com |
431bc242a4cad6bd666fd73d507d2df2e74fb34f | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/z3c.form-2.4.3-py2.7.egg/z3c/form/adding.py | 5cee0932d4335930114a159e520d1c93762c90c9 | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | ##############################################################################
#
# Copyright (c) 2007 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
8c9bec14ad6067364063355bda91fc6dd73ef21e | 82d6b24fb786143b07e897d4bbe70f2c1d5fc481 | /hsvTrackbarColorDetection.py | a44002da3b1ae0702e5c89290e7119015a5ecbf1 | [] | no_license | Pritam055/image_opencv | cded3eff39d4ef2006bef7b4a05a38a86700da2b | 63c19bb4b30e6db76b3e1d90697409acebb3ec3e | refs/heads/master | 2021-03-19T00:12:05.157661 | 2020-07-01T16:21:32 | 2020-07-01T16:21:32 | 247,113,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | import cv2
import numpy as np
frameWidth = 640
frameHeight = 480
cap = cv2.VideoCapture(0)
cap.set(3, frameWidth)
cap.set(4, frameHeight)
frameCounter = 0
def empty(a):
pass
cv2.namedWindow("HSV")
cv2.resizeWindow("HSV", 640, 240)
cv2.createTrackbar("HUE Min", "HSV", 0, 179, empty)
cv2.createTrackbar("HUE Max"... | [
"admin@gmail.com"
] | admin@gmail.com |
688026b78ebdbea1dfe19763a0be7da433cd1384 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano404.py | 51f5c83a2ddb0a57f1128950bb4aba9a8dd8f246 | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
7b181c3b3d9e7fab86725dd12b5b8595e930051d | ecebefec65cc55b305419a689660eb8e2ea04fef | /release/virtual_player/simulation.py | 41fe28c584133cc4bcb995c6df09b94e2150affb | [] | no_license | generlist/ABRTuner | 4ab1d6d5e5201a7953d4565ca4574307a35513c3 | baea8fab155a71c185e74121a8f014e6ad889308 | refs/heads/master | 2020-05-26T01:09:29.712879 | 2018-08-03T23:40:01 | 2018-08-03T23:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,782 | py | # SIMULATION 1.0
import math
import sys
import os
import collections
from config import *
from helpers import *
from chunkMap import *
from performance_vector import *
from algorithms import *
from simulation_performance_vector import *
import numpy as np
from collections import deque
import time
from vplayer_state imp... | [
"zahaib.akhtar@gmail.com"
] | zahaib.akhtar@gmail.com |
e3d448b0d378e6af706c92e929117378513523f0 | 70cfe888ffd5c71262769d568224d7da45ad6f25 | /tensorflow/contrib/cudnn_rnn/python/kernel_tests/cudnn_rnn_test.py | 6fb56b0858786662546ecab425b1a2564fbd9a64 | [
"Apache-2.0"
] | permissive | limitime/tensorflow | 57c13eaa5bc6a27754688da900a090392f623d25 | a2607aaba0b8bd364204a58425c464746c5697a8 | refs/heads/master | 2020-03-11T11:58:57.063430 | 2018-04-18T00:54:57 | 2018-04-18T00:54:57 | 129,984,353 | 1 | 0 | Apache-2.0 | 2018-04-18T01:14:49 | 2018-04-18T01:14:49 | null | UTF-8 | Python | false | false | 56,782 | py | # Copyright 2016 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 |
d82b95343bfad8ecb00fb1488a773f0a45b56461 | c9f67529e10eb85195126cfa9ada2e80a834d373 | /lib/python3.5/site-packages/torch/legacy/nn/MSECriterion.py | a93d045d898a3dc9560df362a1571c9a4ec7de11 | [
"Apache-2.0"
] | permissive | chilung/dllab-5-1-ngraph | 10d6df73ea421bfaf998e73e514972d0cbe5be13 | 2af28db42d9dc2586396b6f38d02977cac0902a6 | refs/heads/master | 2022-12-17T19:14:46.848661 | 2019-01-14T12:27:07 | 2019-01-14T12:27:07 | 165,513,937 | 0 | 1 | Apache-2.0 | 2022-12-08T04:59:31 | 2019-01-13T14:19:16 | Python | UTF-8 | Python | false | false | 1,082 | py | import torch
from .Criterion import Criterion
class MSECriterion(Criterion):
def __init__(self, sizeAverage=True):
super(MSECriterion, self).__init__()
self.sizeAverage = sizeAverage
self.output_tensor = None
def updateOutput(self, input, target):
if self.output_tensor is Non... | [
"chilung.cs06g@nctu.edu.tw"
] | chilung.cs06g@nctu.edu.tw |
dfcf03607d0d721031a3b8bef63a7511114a9ca0 | 836f2095d5ac8a200fc4b19c2644c8f693612d23 | /src/preprocess.py | 25f880dacaaeded768f7cc037a5e26423e60fa4b | [] | no_license | peternara/VL-T5-embeding-image-to-text-mulit-modal | bf62e910dcc8d89606099a8b15065def917e9349 | 1902413ade01fb6f032c1cdbec65aaa41313277a | refs/heads/main | 2023-05-01T21:45:10.682026 | 2021-05-25T15:49:57 | 2021-05-25T15:49:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,560 | py | import torch
import numpy as np
import random
from copy import deepcopy
def corrupt_spans(text, mask_ratio=0.15, prefix=None):
"""Masked Language Modeling with corrupted span prediction
Args:
text
Returns:
source_text (masked_text)
target_text
Ex) (in vocab ids... | [
"heythisischo@gmail.com"
] | heythisischo@gmail.com |
bdc874a8f0c2d822cf43731e1ed0437f025b91f7 | 16385e10f6ad05b8147517daf2f40dbdda02617c | /site-packages/cs.metrics-15.4.0.2-py2.7.egg/cs/metrics/updates/v15_2_0_15/__init__.py | 3fe53ff954cbc858516882f09d4b8a7e3f041ebb | [] | no_license | prachipainuly-rbei/devops-poc | 308d6cab02c14ffd23a0998ff88d9ed0420f513a | 6bc932c67bc8d93b873838ae6d9fb8d33c72234d | refs/heads/master | 2020-04-18T01:26:10.152844 | 2019-02-01T12:25:19 | 2019-02-01T12:25:19 | 167,118,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,759 | py | #!/usr/bin/env powerscript
# -*- mode: python; coding: iso-8859-1 -*-
#
# Copyright (C) 1990 - 2014 CONTACT Software GmbH
# All rights reserved.
# http://www.contact.de/
#
from __future__ import unicode_literals
__revision__ = "$Id: __init__.py 154332 2017-02-21 14:43:33Z khi $"
class AddServiceUsers(object):
"""... | [
"PPR4COB@rbeigcn.com"
] | PPR4COB@rbeigcn.com |
01bb186bb65ce9f242c8fbdbaa54f37358929af9 | 69e318f2b60175108bc74ee669bfe16287a71cb6 | /plugins/modules/fortios_dlp_sensor.py | ef1a1661c8017f9c5ec6f59b63cdeb8688fb9e92 | [] | no_license | chillancezen/ansible-galaxy-fortios-collection | 5268a5fd97fb4594772349b8d89cb818ec54b3bd | 66a331cd4493d1b0f49798d5c2cd6ef5aeba84d3 | refs/heads/master | 2022-04-09T19:20:59.073193 | 2020-03-26T07:17:09 | 2020-03-26T07:17:09 | 250,185,374 | 0 | 0 | null | 2020-03-26T07:06:16 | 2020-03-26T07:06:16 | null | UTF-8 | Python | false | false | 22,093 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# This program 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 the Lic... | [
"fshen01@fortinet.com"
] | fshen01@fortinet.com |
96284c764d1e8cc52522bb858550adedcdd6e277 | 47b4a652bf47afbff07a7148c3b4a94b86f85bb2 | /swap_start/torch_train/1_torch/AIPlayer.py | fbeea3485720c25f45be34eccfce6f0b9b2912a7 | [
"MIT"
] | permissive | yudongqiu/gomoku | 3423253dcac52c0b738249900f1e86b31ca99524 | 4a95f2a5008f31fed5cb92c6bd6d55f9669ddd06 | refs/heads/master | 2022-10-28T09:16:38.939698 | 2021-01-30T21:01:48 | 2021-01-30T21:01:48 | 84,468,572 | 3 | 1 | MIT | 2022-09-30T09:03:45 | 2017-03-09T17:12:22 | Python | UTF-8 | Python | false | false | 33,993 | py | #!/usr/bin/env python
from __future__ import print_function, division
import itertools, time, copy
import collections, random
import os, pickle
import numba
from numba import cuda
import numpy as np
board_size = 15
show_q = False
class AIPlayer:
def __init__(self, name, model=None, level=0):
self.name = ... | [
"saviorbruce@gmail.com"
] | saviorbruce@gmail.com |
197cc624f47f8f44191b93e8603750c75b54ad13 | 6f2ae51bfa26f58cf0eccad67a563dc91f87e0ac | /oop18 (quick tips).py | 62cd87d8ff9bd42976ba810c827c9dfcd799132c | [
"MIT"
] | permissive | nicholaskarlson/Object-Oriented-Programming-in-Python | c830e9dc86df72ee6fbfd017cf05198e4664e2b6 | 9a51892a99f9920c20c3abf8342a060af94305e6 | refs/heads/master | 2022-12-03T03:27:12.282726 | 2020-08-22T12:17:27 | 2020-08-22T12:17:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | # OOP quick tips
# Tip 1
# printing the children classes of Parent class.
# Parent classes
class Father:
def __init__(self):
value=0
def update(self):
value+=1
def renew(self):
value=0
def show(self):
print(value)
class Mother:
def __init__(self):
value=1... | [
"ahammadshawki8@gmail.com"
] | ahammadshawki8@gmail.com |
b5aecc91b76a83f848608b2e1b3114abc8dd616c | b5921afe6ea5cd8b3dcfc83147ab5893134a93d0 | /tl/utils/lockmanager.py | 1fa59de415bd6e96b46201e2b870ea969f38ebeb | [
"LicenseRef-scancode-other-permissive"
] | permissive | techdragon/tl | aaeb46e18849c04ad436e0e786401621a4be82ee | 6aba8aeafbc92cabdfd7bec11964f7c3f9cb835d | refs/heads/master | 2021-01-17T16:13:18.636457 | 2012-11-02T10:08:10 | 2012-11-02T10:08:10 | 9,296,808 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | # tl/utils/lockmanager.py
#
#
""" manages locks """
## basic imports
import _thread
import threading
import logging
## LockManager class
class LockManager(object):
""" place to hold locks """
def __init__(self):
self.locks = {}
def allocate(self, name):
""" allocate a new lock """
... | [
"feedbackflow@gmail.com"
] | feedbackflow@gmail.com |
ba2789e49303e6988343f44d5c915447e9d9121e | 8e70df9b2363fd525691096d950fb72d9b33bdd4 | /test/test_user_signin_link_creation.py | 0e10dea654d63f48024f450e3e85c44942c86468 | [
"Apache-2.0"
] | permissive | FlatIO/api-client-python | d275b5905fdcf6c3b160f990dc08aa55d55be28f | 225c2cceaff762c88efd5cf0e64737df82ec6b27 | refs/heads/master | 2023-07-28T08:34:53.364428 | 2023-06-05T17:17:53 | 2023-06-05T17:17:53 | 87,713,658 | 8 | 2 | Apache-2.0 | 2023-08-23T20:23:09 | 2017-04-09T14:17:48 | Python | UTF-8 | Python | false | false | 2,421 | py | """
Flat API
The Flat API allows you to easily extend the abilities of the [Flat Platform](https://flat.io), with a wide range of use cases including the following: * Creating and importing new music scores using MusicXML, MIDI, Guitar Pro (GP3, GP4, GP5, GPX, GP), PowerTab, TuxGuitar and MuseScore files * Br... | [
"vincent@giersch.fr"
] | vincent@giersch.fr |
fc19c5d307befafb06976f57b6ef089143644929 | 749bd7db8d1902274a47bb7d98b9d6ced3ef6b68 | /S-NET/nmt_snet_ans_syn/nmt/train.py | 1e6f3611588973d6649eda58278c7d78dcbeced2 | [
"Apache-2.0"
] | permissive | burglarhobbit/machine-reading-comprehension | 37582e0fdca4690bd55accf33987b5fce1f663ea | 04729af3d934a7696938f4079089b9b014c986aa | refs/heads/master | 2023-02-08T10:39:19.262900 | 2020-01-11T04:08:30 | 2020-01-11T04:08:30 | 114,113,176 | 29 | 15 | null | 2023-02-02T02:32:54 | 2017-12-13T11:34:36 | Python | UTF-8 | Python | false | false | 25,370 | py | # Copyright 2017 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... | [
"bhavyapatwa007@gmail.com"
] | bhavyapatwa007@gmail.com |
4fd7d2bf8eaab733ceafeabe6a8c3ece9b28126e | e641bd95bff4a447e25235c265a58df8e7e57c84 | /third_party/blink/renderer/modules/webcodecs/DEPS | f79eda8dda151643478fa884e467ea8d8ff57eff | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | zaourzag/chromium | e50cb6553b4f30e42f452e666885d511f53604da | 2370de33e232b282bd45faa084e5a8660cb396ed | refs/heads/master | 2023-01-02T08:48:14.707555 | 2020-11-13T13:47:30 | 2020-11-13T13:47:30 | 312,600,463 | 0 | 0 | BSD-3-Clause | 2022-12-23T17:01:30 | 2020-11-13T14:39:10 | null | UTF-8 | Python | false | false | 942 | include_rules = [
"+base/threading/thread_task_runner_handle.h",
"+components/viz/common/gpu/raster_context_provider.h",
"+components/viz/common/resources/single_release_callback.h",
"+gpu/command_buffer/client/shared_image_interface.h",
"+media/base",
"+media/filters",
"+media/formats/mp... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
c0a00ebc3b8a77426bb463375c0e5a7233203829 | 4ac23b2633321df48a896180e6205dfc17ad5746 | /scratch09/ex04.py | b5ece5306f502f6fa8319f3759496fd815d500bf | [] | no_license | lee-saint/lab-python | f051a544ed97956f9725bb6f4a080bdc65c7e1ad | a425c173c379dda0de21eec538195ded17d31697 | refs/heads/master | 2020-11-30T12:24:12.614119 | 2019-12-27T07:35:50 | 2019-12-27T07:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | """
pandas 패키지를 사용한 csv 파일 읽기
"""
import os
import pandas as pd
import matplotlib.pyplot as plt
file_path = os.path.join('..', 'scratch08', 'mpg.csv')
df = pd.read_csv(file_path)
print(df.head()) # 데이터프레임의 앞의 일부분 데이터 출력
print('shape:', df.shape) # 관측값 234, 변수 11
print('dtypes:', df.dtypes)
# DataFrame.dtypes: 각 컬럼(변... | [
"plutorian131@gmail.com"
] | plutorian131@gmail.com |
9e8e3a770c962073cf83f0c6dfa97a5803dfcdfe | 90f2cbe1c940a20dcc893837b6033a51d3233931 | /Learn_Flas/flask_study/lab-4-movie/app/home/forms.py | e82f1fe123a80255955704bfb4bcbf1116930796 | [] | no_license | MaxNcu/Learn_Python | 71501f38f6442f3ff2a1de1ff685b8975e50af20 | 5a1c6edf353ed7447b2ffd4126ad7668d8c5a407 | refs/heads/master | 2022-01-15T18:56:04.814476 | 2019-07-20T03:02:02 | 2019-07-20T03:02:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | # -*- coding: utf-8 -*-
# @Time : 2018/8/15 0015 13:48
# @Author : Langzi
# @Blog : www.langzi.fun
# @File : forms.py
# @Software: PyCharm
import sys
reload(sys)
sys.setdefaultencoding('utf-8') | [
"982722261@qq.com"
] | 982722261@qq.com |
5c55b42e4c4e1fb43abd86684c0665b0d4446b63 | d3d53fd1fb10e3895495066c3cc7b5529dfb2e27 | /main/migrations/0007_partenaire.py | 4e88e863572660060118dbc8e3e939a601dac5f3 | [] | no_license | miyou995/msenergy | c517b05cb3b28e9bbe3a5e668990ea96951f3fb7 | 8f635d1e19f8d91bffe7490cc88e25aa9b65e410 | refs/heads/master | 2023-01-13T06:50:10.379344 | 2020-10-20T10:41:05 | 2020-10-20T10:41:05 | 299,890,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | # Generated by Django 3.0.7 on 2020-07-27 09:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0006_contactform_date_added'),
]
operations = [
migrations.CreateModel(
name='Partenaire',
fields=[
... | [
"inter.taki@gmail.com"
] | inter.taki@gmail.com |
7ea82c6443323fd95423f77eaa3d686341b30664 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /KQe5w8AdSLbweW8ck_5.py | e974521972362f31814cf4c82cbb398519e4a242 | [] | 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,010 | py | """
Create a function that returns the characters from a list or string `r` on odd
or even positions, depending on the specifier `s`. The specifier will be
**"odd"** for items on _odd positions_ (1, 3, 5, ...) and **"even"** for items
on _even positions_ (2, 4, 6, ...).
### Examples
char_at_pos([2, 4, 6, 8, 10... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
51d3c030d8d2022184af7c47d538156b2dbd5e13 | 738ac84e16f206e417399e96702b04433b2f286f | /setup.py | 1713fc06cbf62f9b132418e455eae59f547c13d0 | [] | no_license | belonesox/pg2bcolz | d732f7575c061f82b0097487bce29ec0ec8d89ae | 56964fca6256a9afa3051782fadea8708a56cce4 | refs/heads/master | 2020-07-05T05:17:33.306526 | 2019-08-15T12:11:03 | 2019-08-15T12:11:03 | 202,534,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of pg2bcolz.
# https://github.com/belonesox/pg2bcolz
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT-license
# Copyright (c) 2018, Stas Fomin <stas-fomin@yandex.ru>
from setuptools import setup, find_packages
from pg2bcolz i... | [
"stas-fomin@yandex.ru"
] | stas-fomin@yandex.ru |
053a6f94449e06bd7c27c4b37e61028d442c5162 | 837b411d23a63771ed9eac61671e7967b5026c05 | /run.py | ba02ccaa81f5aa89c9d91a7a8808134d3ca14866 | [] | no_license | stsh1119/Request_trap_app | fd17cb688d0346e84f670bfcf32a03f724f20e04 | bdb2bfd36dcabf700d87988412d3468135abcfbb | refs/heads/main | 2023-03-12T01:10:48.536099 | 2021-03-01T19:27:02 | 2021-03-01T19:27:02 | 331,733,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | from request_trap import app
if __name__ == '__main__':
app.run()
| [
"stshlaptop@gmail.com"
] | stshlaptop@gmail.com |
40c82ae4f2841d3d7fe415a716b29527eac584bb | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /accounts/migrations/0015_auto_20190527_1010.py | 7e0ed91e427e416ba95a9cf189e3a066bef8f203 | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # Generated by Django 2.2 on 2019-05-27 08:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0014_user_phone_cache'),
]
operations = [
migrations.RenameField(
model_name='rgpdconsent',
old_name='allo... | [
"norman@xael.org"
] | norman@xael.org |
427d19c541374cbceef49ce9c683561c00b10ed6 | d05a59feee839a4af352b7ed2fd6cf10a288a3cb | /xlsxwriter/test/worksheet/test_write_filter.py | cf9f4989a1a59d294da00df1dafaf3b81e3ff4fb | [
"BSD-2-Clause-Views"
] | permissive | elessarelfstone/XlsxWriter | 0d958afd593643f990373bd4d8a32bafc0966534 | bb7b7881c7a93c89d6eaac25f12dda08d58d3046 | refs/heads/master | 2020-09-24T06:17:20.840848 | 2019-11-24T23:43:01 | 2019-11-24T23:43:01 | 225,685,272 | 1 | 0 | NOASSERTION | 2019-12-03T18:09:06 | 2019-12-03T18:09:05 | null | UTF-8 | Python | false | false | 743 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...worksheet import Worksheet
class TestWriteFilter(unittest.TestCase):
"""
Te... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
2591a5d573367c1b0e87394c9bd88b7c4525efbb | 292cec77b5003a2f80360d0aee77556d12d990f7 | /src/bentoml_cli/worker/http_dev_api_server.py | 669023f72a5ef4abf765eec7ab835a72487e137f | [
"Apache-2.0"
] | permissive | yubozhao/BentoML | 194a6ec804cc1c6dbe7930c49948b6707cbc3c5f | d4bb5cbb90f9a8ad162a417103433b9c33b39c84 | refs/heads/master | 2022-12-17T00:18:55.555897 | 2022-12-06T00:11:39 | 2022-12-06T00:11:39 | 178,978,385 | 3 | 0 | Apache-2.0 | 2020-12-01T18:17:15 | 2019-04-02T01:53:53 | Python | UTF-8 | Python | false | false | 3,932 | py | from __future__ import annotations
import socket
import click
@click.command()
@click.argument("bento_identifier", type=click.STRING, required=False, default=".")
@click.option("--fd", type=click.INT, required=True)
@click.option("--working-dir", required=False, type=click.Path(), default=None)
@click.option("--bac... | [
"noreply@github.com"
] | yubozhao.noreply@github.com |
d7ad5a84b638fc0540e7f580dc4f50df4fde635c | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/surface/iam/service_accounts/sign_blob.py | e33878bf514e44c4212e0e1d81cd6185617a051e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 2,830 | 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 or ag... | [
"toork@uw.edu"
] | toork@uw.edu |
66cc401c0e1112684bdbcf769d7b8f85b3ad00b6 | 916480ae24345193efa95df013f637e0a115653b | /web/transiq/driver/migrations/0022_driver_pan.py | ee0c60713f9da7066133b323920f9e578f38b391 | [
"Apache-2.0"
] | permissive | manibhushan05/tms | 50e289c670e1615a067c61a051c498cdc54958df | 763fafb271ce07d13ac8ce575f2fee653cf39343 | refs/heads/master | 2022-12-11T07:59:30.297259 | 2021-09-08T03:24:59 | 2021-09-08T03:24:59 | 210,017,184 | 0 | 0 | Apache-2.0 | 2022-12-08T02:35:01 | 2019-09-21T16:23:57 | Python | UTF-8 | Python | false | false | 403 | py | # Generated by Django 2.0.5 on 2018-08-28 16:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('driver', '0021_auto_20180702_1554'),
]
operations = [
migrations.AddField(
model_name='driver',
name='pan',
... | [
"mani@myhost.local"
] | mani@myhost.local |
0891b4eb3464f0cd9a8d15ce215aa9850f292e7a | f0a4708890bcd40171b6b884970b7e9fa349c213 | /tasks/TaskComparison.py | 3e9b0bf7ea45971d3cf8ef708661368549aaf021 | [
"MIT"
] | permissive | kosmitive/qlearn | 257c07c6eb37368f7f7a73d7cd56c54517823b53 | a15180267a88e32fac7d944940caf79c5bdec536 | refs/heads/master | 2021-09-06T05:55:02.791505 | 2018-02-02T22:58:55 | 2018-02-02T22:58:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,129 | py | import os
import matplotlib
matplotlib.use("Agg")
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
import time
from agents.QLearningAgent import QLearningAgent
from collection.ColorCollection import ColorCollection
from collection.PolicyCollection import PolicyCollection
from environments.Gri... | [
"m.semmler.94@googlemail.com"
] | m.semmler.94@googlemail.com |
863992dedce0ea6eb717daa4383103ec807197fe | 732d62bb15200a8977874c36e0c2624ea45f8a90 | /parser/graph_outputs.py | dedf80165e5544877ee864968672e42d771fcceb | [
"Apache-2.0"
] | permissive | maltintas45/Second_Order_SDP | 16e73d52c4e1d7d030e200eaa34a5c2b9b14b422 | d8e90aef1ff9bade86d602790adf08e37ed4c746 | refs/heads/master | 2022-11-09T01:52:39.787996 | 2020-06-29T14:02:54 | 2020-06-29T14:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,396 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright 2017 Timothy Dozat
#
# 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 ... | [
"wangxy1@shanghaitech.edu.cn"
] | wangxy1@shanghaitech.edu.cn |
ccf31740e2e3925f9c02344a9356aa29e35987da | bbe447a740929eaee1955bd9c1517cf760dd5cb9 | /keygrabber/adwords/adwords_api_python_14.2.1/build/lib.linux-x86_64-2.7/adspygoogle/adwords/zsi/v201101/AdGroupCriterionService_services_types.py | 38d1e18fac7bc8783b52434f5ad41e6b4ac4852e | [
"Apache-2.0"
] | permissive | MujaahidSalie/aranciulla | f3d32e7dd68ecfca620fe4d3bf22ecb4762f5893 | 34197dfbdb01479f288611a0cb700e925c4e56ce | refs/heads/master | 2020-09-07T02:16:25.261598 | 2011-11-01T21:20:46 | 2011-11-01T21:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132,423 | py | ##################################################
# AdGroupCriterionService_services_types.py
# generated by ZSI.generate.wsdl2python
##################################################
import ZSI
import ZSI.TCcompound
from ZSI.schema import LocalElementDeclaration, ElementDeclaration, TypeDefinition, GTD, GED
###... | [
"vincenzo.ampolo@gmail.com"
] | vincenzo.ampolo@gmail.com |
61b0ab1ae3ca11fcf2581a67933b5271749e9756 | ef0f2c4557db4388f6ddf46c94abb0ef9c78813d | /main/uppath.py | 725351ab623335d2d4ee859971f2f16eed7c820a | [] | no_license | baopingli/HAttMatting | c3382ccbdcb77419cdfc615eb7380a5388c09419 | 851aba6d1acbcf41749508b8c9cb7d007e4837c2 | refs/heads/main | 2023-02-18T04:10:57.184518 | 2021-01-11T02:51:20 | 2021-01-11T02:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | import math
import cv2
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import pytorch_lightning as pl
from .conv_batchnorm_relu import ConvBatchNormRelu
class UpPath(pl.LightningModule):
def __init__(self, *args, **kwargs):
super(UpPath, self).__init__()
sel... | [
"vietnamican@gmail.com"
] | vietnamican@gmail.com |
cc454eceed7f736e10e8d949d9ebe9daf2909b01 | f5f62ed1f738f1f7a863468c7d6c0cf20af490f3 | /Vorlesung/src/Basic/date_class.py | 665b8a0a90ebb42f77ecf18b59b03b61caceeea7 | [] | no_license | AndrejLehmann/my_pfn_2019 | e0ceb7e0b999abb978c10bc15c7e05f31739b8ca | fe4d4ddb7192ecd2c0e0dbe043d72485c5ed9810 | refs/heads/master | 2020-08-31T01:53:37.486097 | 2020-04-20T20:48:08 | 2020-04-20T20:48:08 | 218,550,745 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python3
import sys, re, argparse
def is_leap_year(year):
return year % 400 == 0 or (year % 4 == 0 and year % 100 != 0)
class Date:
daysinmonth = {1: 31, 2: 28, 3: 31, 4: 30, 5: 31, 6:30,
7: 31, 8: 31, 9: 30, 10: 31, 11: 30, 12:31}
def __init__(self,dstring):
mo = re.searc... | [
"alehmann@physnet.uni-hamburg.de"
] | alehmann@physnet.uni-hamburg.de |
69f61deaa21aac62110923ba4cf7ab0bb97e8230 | 8f8e378c0ce4224244582c506c268edda3cc3b30 | /Common/DL/Day2/New/regression3.py | 3d37f5c556a00de3cebaf683e24d265254ed448a | [] | no_license | srsapireddy/Diploma-in-AI_NIELIT_Files | 223318319b2d4b8647d77b99d1ba03f0d6e15cf6 | 9e2ed78fbe03369ebef1aa81f3417fc21bdd4107 | refs/heads/master | 2021-05-17T14:28:00.059617 | 2020-03-29T09:28:04 | 2020-03-29T09:28:04 | 250,820,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | # mlp for regression with mse loss function
from sklearn.datasets import make_regression
from sklearn.preprocessing import StandardScaler
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import SGD
from matplotlib import pyplot
# generate regression dataset
X, y = make_regression... | [
"sapireddyrahul@gmail.com"
] | sapireddyrahul@gmail.com |
029528a291961da7c442a5c7e15d8be06bc73bb3 | ddbb2bab9c96705c4ceb9e0d92e285d24d6acc0e | /Basic/chap08.py | 1b344e337ba1816ff33cd4ccd0aff94e429ba1e1 | [] | no_license | louisuss/CrawlingStudy | e25ca256be7c3c0bda026f1d404a9d91c36f9dd7 | 78f33939865bb8eba5adc042d63fe3def67382f2 | refs/heads/master | 2022-12-15T17:54:44.209175 | 2020-08-23T12:27:06 | 2020-08-23T12:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | # 다음 주식 정보 가져오기
import json
import urllib.request as req
from fake_useragent import UserAgent
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
# Fake Header 정보 (가상으로 UserAgent 생성)
ua = UserAgent()
# print(ua.chrome)
# print(ua.safari)
# print(ua.random)
# 헤더 정보
headers = {
'User-age... | [
"dobi1115@gmail.com"
] | dobi1115@gmail.com |
edd2294d74c818df111097d4dda5b7c88d015b4f | 0410c8e7db491283fe1383731aa2f130fccfaff1 | /main.py | 1d2b7f0dbb572a7087c63387a33e8b920811d516 | [] | no_license | simplifies/PassGetter | e1af86cfed2012cbea76c90c3c4a0b0ac9b7a4fa | d4ded9b966f18c6f7d3fe5718662ea02b2e1e3b3 | refs/heads/master | 2022-12-08T23:30:18.342699 | 2020-09-16T15:20:28 | 2020-09-16T15:20:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,687 | py | import os
import sys
import xml.etree.ElementTree as ET
import time
import sockets.client as client
import glob
from platform import system
system = system()
if system == "Windows":
import win32com.shell.shell as shell
else:
pass
def admin():
if system == "Windows":
if sys.argv[-1] != 'asadmin':
... | [
"noreply@github.com"
] | simplifies.noreply@github.com |
44018e28e2d265972adab72159e70fac25faa7de | 4786216d2a8e9221cc3624366152f47ae513e5c7 | /宁波.py | ff724a08671aa54838c2f79d8e16fb9c9f4ede8f | [] | no_license | injuredangel/- | b6a2502ee026320b96947d41c223edebe3ec65cc | 7988c6aa5e825504ff59b006c37d4383b3bb1da8 | refs/heads/master | 2020-05-25T02:21:15.654253 | 2019-05-20T06:27:42 | 2019-05-20T06:27:42 | 187,575,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,300 | py | import urllib.request
import re
import csv
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.26 Safari/537.36 Core/1.63.6756.400 QQBrowser/10.3.2545.400',
'Connection':'keep-alive',
'Accept':'text/html,application/xhtml+xml,application/xml... | [
"you@example.com"
] | you@example.com |
1fc6b77c43cbb4d11e20de82d9d104daac283aeb | f43d3731a21ee5df09298f5541b52484f408e010 | /spider/news/MongoPipeline.py | 687daf1f028f475fc148563dcbcad22e96ec0d0c | [] | no_license | cash2one/wechat_admin | 2ba8c35deffff37c263b7091229ba2d86f2aaeaf | af0712fdad867d76dcee2092abcf32cada49d075 | refs/heads/master | 2021-05-04T22:22:53.514787 | 2017-09-25T10:03:07 | 2017-09-25T10:03:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | import json
from spider.loggers.log import crawler
from spider.news.Pipeline import Pipeline
from spider.util.MongoUtil import MongoUtil
class MongoPipeline(Pipeline):
def __init__(self, collection):
self.collection = collection
def put(self, item):
json_obj = item.to_dict()
MongoUti... | [
"“545314690@qq.com”"
] | “545314690@qq.com” |
6c6da653ecf4ee54417895649167041626d316a4 | 5ad9f0e5602c9986c190215c0e5957a35d1a43cb | /venv/Lib/site-packages/nltk/sem/linearlogic.py | 38457a72187cd70e2365263f952bf2f4e4a5eeb4 | [
"MIT"
] | permissive | wlsl4239/Tacotron-Wavenet-Vocoder | cef6606a113add0391f467e102b4a6736d94e2fd | afc60aac989f1fed827e9cf8f7df0c0c05c67885 | refs/heads/master | 2020-07-17T10:18:03.653974 | 2019-11-20T12:40:43 | 2019-11-20T12:40:43 | 205,998,408 | 2 | 0 | MIT | 2019-09-03T05:47:35 | 2019-09-03T05:47:35 | null | UTF-8 | Python | false | false | 16,633 | py | # Natural Language Toolkit: Linear Logic
#
# Author: Dan Garrette <dhgarrette@gmail.com>
#
# Copyright (C) 2001-2017 NLTK Project
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
from __future__ import print_function, unicode_literals
from six import string_types
from nltk.internals import Counter... | [
"wlsl4239@naver.com"
] | wlsl4239@naver.com |
c503f0ccea6b194021cfd21c8b840271f6821aaa | 6faedd57c152156ca508be06b15bcd04e27e974b | /peeringdb_server/management/commands/pdb_org_cleanup.py | ad73a8fda226376e7b8a26fe16491ec0c89c9c71 | [
"BSD-2-Clause"
] | permissive | grizz/peeringdb | 1dca75ac7cbb357ff6166285fb89de07a0a1ed5d | 355fff42924a62b1920bd1f263d83e696e96b74b | refs/heads/master | 2023-01-06T14:07:13.176255 | 2022-11-15T18:34:50 | 2022-11-15T18:34:50 | 164,004,395 | 0 | 0 | NOASSERTION | 2019-01-03T17:41:55 | 2019-01-03T17:41:54 | null | UTF-8 | Python | false | false | 1,617 | py | from django.core.management.base import BaseCommand
from peeringdb_server.models import Organization
class Command(BaseCommand):
help = "Cleanup deleted Organization objects"
def add_arguments(self, parser):
parser.add_argument(
"--commit",
action="store_true",
h... | [
"noreply@github.com"
] | grizz.noreply@github.com |
96fda186839f0a1f402245e72b52cf206fc61584 | 112882b8d6c5071e7d2610c595bfca9210c79a0a | /tools/leetcode.066.Plus One/leetcode.066.Plus One.submission7.py | f1fb451aca083ed7e1b363869a2b2d3005f58d12 | [
"MIT"
] | permissive | tedye/leetcode | 193b1900d98e35d5c402013cbe3bc993d0235da2 | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | refs/heads/master | 2021-01-01T19:06:06.408135 | 2015-10-24T06:44:40 | 2015-10-24T06:44:40 | 41,804,923 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | class Solution:
# @param digits, a list of integer digits
# @return a list of integer digits
def plusOne(self, digits):
if digits[-1] < 9:
digits[-1] += 1
return digits
pos = len(digits) - 1
overflow = False
while digits[pos] == 9:
digits[p... | [
"tedye@bu.edu"
] | tedye@bu.edu |
aaebaa9fae2392777c866f60bc43f48468fef328 | cd4eb25911d3e3b092aa97aaa7b8fbba6c3a0704 | /lang/python/gevent/testSigQuit.py | 266a8c3f7e07ad1e923b90327d24877fd4efdf12 | [
"MIT"
] | permissive | liuyang1/test | 29bb142982d2ef0d79b71e8fe5f5e0d51ec5258e | 9a154e0161a1a33baad53f7223ee72e702532001 | refs/heads/master | 2023-08-05T08:56:50.526414 | 2023-07-21T05:49:53 | 2023-07-21T11:16:09 | 26,949,326 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | import gevent
import signal
def run_forever():
gevent.sleep(100)
if __name__ == "__main__":
gevent.signal(signal.SIGQUIT, gevent.shutdown)
thread = gevent.spawn(run_forever)
thread.join()
| [
"liuyang1@mail.ustc.edu.cn"
] | liuyang1@mail.ustc.edu.cn |
d6e5f838cf0ff1735ab58b6a342ba0064ed99f4a | b31f44faa4ff1b462585130aff31de959a3e1623 | /Python/Data Structure/Linear List/Sort Array By Parity II.py | 969ae2d0c825bea00b3571a4ee45cadff6fd370b | [] | no_license | fagan2888/Coding-Interview | ac66b1fc33aecdbc2f1e1ec66491561c424e3024 | fe7afbead2f1e252f4bc5692e0f94a6ce32f3c44 | refs/heads/master | 2021-04-21T05:16:34.002298 | 2020-02-02T15:41:05 | 2020-02-02T15:41:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | class Solution:
def sortArrayByParityII(self, A: List[int]) -> List[int]:
# two pointers
j = 1
for i in range(0, len(A), 2): #even
if A[i] % 2:
while A[j] % 2:
j += 2
A[i], A[j] = A[j], A[i]
return A | [
"LIUXinhe@outlook.com"
] | LIUXinhe@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.