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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00ae17b2c630ccf0d4036a300ee15ed0a9356121 | 4e3c976773526fd610d64ffb83589bccfaee5e68 | /sponge-app/sponge-app-demo-service/sponge/sponge_demo_depending.py | ff40131a936612f5da6d6cd33534a1a8234f44d8 | [
"Apache-2.0"
] | permissive | softelnet/sponge | 2313d2328953fcff49a002e727bb803757870627 | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | refs/heads/master | 2022-10-28T16:19:55.619882 | 2021-09-16T19:50:08 | 2021-09-16T19:50:08 | 95,256,030 | 10 | 2 | Apache-2.0 | 2022-10-04T23:55:09 | 2017-06-23T20:58:49 | Java | UTF-8 | Python | false | false | 2,884 | py | """
Sponge Knowledge Base
Demo
"""
class DependingArgumentsAction(Action):
def onConfigure(self):
self.withLabel("Depending arguments")
self.withArgs([
StringType("continent").withLabel("Continent").withProvided(ProvidedMeta().withValueSet()),
StringType("country").withLabel... | [
"[email protected]"
] | |
b55fd799bada92e8f1cd6d17a26da62618bdf02a | f6a8d93c0b764f84b9e90eaf4415ab09d8060ec8 | /Lists Advanced/the_office.py | de39a3b8b66d23417344eae1ded709f3c883b3b7 | [] | no_license | DimoDimchev/SoftUni-Python-Fundamentals | 90c92f6e8128b62954c4f9c32b01ff4fbb405a02 | 970360dd6ffd54b852946a37d81b5b16248871ec | refs/heads/main | 2023-03-18T17:44:11.856197 | 2021-03-06T12:00:32 | 2021-03-06T12:00:32 | 329,729,960 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | employees_list = [int(x) for x in (input().split(" "))]
HIF = int(input()) # happiness improvement factor
happy_count = 0
increased_happiness_list = list(map(lambda employee: employee * HIF, employees_list))
average_happiness = sum(increased_happiness_list) / len(increased_happiness_list)
happy_list = list(filter(lam... | [
"[email protected]"
] | |
8bc823c166c4a65c4048e30e2d7438e795a32306 | 018d804d6b53cc544e0adf8c38656bf27152706c | /ucsd_catalog_order.py | ed744750f3c2affb71f43eccdfbf1a19bb0c13f8 | [] | no_license | luisroco/cisco_cloud | c664520eb1021c7b36577a08d23dbf1b8dd7bd75 | 6bbf7c4f0c0af47860170835cfebc924f1b4c867 | refs/heads/master | 2021-01-09T20:11:19.048918 | 2017-02-07T19:06:58 | 2017-02-07T19:06:58 | 81,242,442 | 0 | 0 | null | 2017-02-07T18:53:53 | 2017-02-07T18:53:53 | null | UTF-8 | Python | false | false | 3,208 | py | #! /usr/bin/env python
'''
Command Line Utility to order a Catalog option
'''
import requests
import json
from ucsd_library import catalog_order
if __name__ == '__main__':
import sys
from pprint import pprint
from argparse import ArgumentParser, FileType
p = ArgumentParser()
p.add_argument... | [
"[email protected]"
] | |
362cdc331020a5268fd371e1eac03259c7a14bba | f3d01659c2a4465cdf7a5903d18058da008f1aac | /src/sentry/models/groupbookmark.py | f6cee4369c180e59d520ca7fe8093daee2869739 | [
"BSD-2-Clause"
] | permissive | Mattlk13/sentry-1 | f81a1e5dc5d02a07e5c6bbcdb5e1ce53f24f53c1 | 19b0870916b80250f3cb69277641bfdd03320415 | refs/heads/master | 2023-08-30T21:49:49.319791 | 2019-07-30T19:23:07 | 2019-07-30T19:23:07 | 81,418,058 | 0 | 1 | BSD-3-Clause | 2023-04-04T00:22:49 | 2017-02-09T06:36:41 | Python | UTF-8 | Python | false | false | 1,064 | py | from __future__ import absolute_import
from django.conf import settings
from django.db import models
from django.utils import timezone
from sentry.db.models import FlexibleForeignKey, Model, BaseManager, sane_repr
class GroupBookmark(Model):
"""
Identifies a bookmark relationship between a user and an
a... | [
"[email protected]"
] | |
7c25ff18b341cd872a8a25f0dcfbf1023a780010 | 48ca6f9f041a1e9f563500c8a7fa04dbb18fa949 | /pygears/typing/qround.py | ea79fe0998313278f899a4b014df440c38f3cbb8 | [
"MIT"
] | permissive | bogdanvuk/pygears | 71404e53d4689ec9cdd9db546bfc0f229a7e02da | 705b11ab6de79868b25753fa9d0ce7128791b346 | refs/heads/master | 2023-07-08T11:38:54.625172 | 2022-03-07T12:29:00 | 2022-03-07T12:29:00 | 124,890,922 | 146 | 16 | MIT | 2022-08-15T07:57:08 | 2018-03-12T13:10:06 | Python | UTF-8 | Python | false | false | 1,286 | py | from .cast import value_cast, type_cast
from .fixp import Fixp, Ufixp
from .uint import Uint, Bool, Int, code
def get_out_type(val_type, fract):
if get_cut_bits(val_type, fract) <= 0:
raise TypeError(
f'Cannot qround type "{val_type}" with "{val_type.fract}" '
f'fractional bits, to... | [
"[email protected]"
] | |
673ab9861bcae85a1a55c3ed742550710ec90195 | 99d7a6448a15e7770e3b6f3859da043300097136 | /src/hardware/core/i_core_device.py | 653c0e71ab0666d2da9b754da7fe944a400daac1 | [] | no_license | softtrainee/arlab | 125c5943f83b37bc7431ae985ac7b936e08a8fe4 | b691b6be8214dcb56921c55daed4d009b0b62027 | refs/heads/master | 2020-12-31T07:54:48.447800 | 2013-05-06T02:49:12 | 2013-05-06T02:49:12 | 53,566,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | #===============================================================================
# Copyright 2011 Jake Ross
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/license... | [
"jirhiker@localhost"
] | jirhiker@localhost |
1e8c67d8c6ce32961276b4ea876788f030175bf7 | d9b2805a8b39f147bd77e35c8e96e0cbd5eaa726 | /flask공부/flaskTest/bin/pip | 7eb65fc06f5c5c461cfe88d74e5a3c61d6549aab | [] | no_license | LeeInHaeng/Study | ca8e3e2d4111dc3f742eefea541a67739d729e75 | 96bdb1d224702cebb8a6de6bbd596b075ee33f7b | refs/heads/master | 2020-03-28T11:03:03.848316 | 2019-04-20T08:33:26 | 2019-04-20T08:33:26 | 148,172,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | #!/home/lih/pythonTest/flaskTest/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
2f1f274dd1ad0310608a42872e14fff7fbf05b1f | c65dfb808e23263b8f3f703a4f31ea7e153b4efd | /tockstats.py | 62fa54d729eb6e180e8686f52ea5921fa2030dd9 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | 18F/quick-stats | 68fcd3bc9fde390f1a74a370f232dd8086865b07 | 400b48bcebea242ac574dd30f870ed1687c3b863 | refs/heads/master | 2021-01-17T06:08:00.304550 | 2016-07-27T16:09:22 | 2016-07-27T16:09:22 | 64,323,703 | 0 | 2 | null | 2016-08-08T15:25:00 | 2016-07-27T16:15:43 | Python | UTF-8 | Python | false | false | 1,030 | py | """Hours statistics from Tock exports"""
from collections import Counter
from csv import DictReader
import sys
def file_to_counter(filename):
"""Read CSV, convert it to a counter of hours by project"""
counter = Counter()
with open(filename) as csvfile:
reader = DictReader(csvfile)
for row... | [
"[email protected]"
] | |
ba92d4f9f437fcf74daf2e0b5f28089408f310c4 | aaa06c63f0fba6c5aad5121d83715d0be828ce4e | /OpenStreetMap/models.py | 6746038957e195d82202ad40ba008a0f5667564b | [] | no_license | scotm/Comrade | b023b338f0daf5d083ae37e2e3a73d3d424f8a7c | c7186f00cd20916a78cc2282ea201f440102ebb7 | refs/heads/master | 2020-05-18T06:49:01.411310 | 2014-07-25T08:13:10 | 2014-07-25T08:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,658 | py | from django.contrib.gis.db import models
class BaseOsmModel(models.Model):
access = models.TextField(blank=True)
addr_housename = models.TextField(db_column='addr:housename', blank=True)
addr_housenumber = models.TextField(db_column='addr:housenumber', blank=True)
addr_interpolation = models.TextField... | [
"[email protected]"
] | |
97fe4b22a0d5bd7822f3f5e943e4fad93fc6b66d | 9de9e636cf845c681fdbf1c6c058cc69d5d05da5 | /IO/Writer.py | 5ed136de1753e4ebcc60d562cf59aef0e316b217 | [] | no_license | dxcv/Portfolio-Management-1 | 4278eebb5c91a3a02ea76398b681ef9dc5beeb1f | 9f188aeab3177d0a13bae32e3a318a4f18642a3c | refs/heads/master | 2020-12-05T21:48:37.690004 | 2019-01-03T01:34:41 | 2019-01-03T01:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,408 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 15 12:51:44 2018
Write to excel function
@author: ACM05
"""
import pandas as pd
import IO.IO_Tools_Func as IO_TF
class Writer():
def __init__( self,
f_name ):
""" Writer object for
defined format
"""
... | [
"[email protected]"
] | |
d0fd9ae97dd8894464641a2387bc5db31a6ea3a3 | 04bd3387ed96a9856c14f76e3022171305203a72 | /GetPopuler.py | 348fc46c31c5691ec2af8fdeaedfdaec2f02e79d | [] | no_license | Yashwant94308/ATG-Selenium | bb3fff41b642951db3b5ab605d524ddcee4794f1 | 39424bee93e49f752105dd35311c2569e1a2de43 | refs/heads/master | 2023-05-26T04:36:58.998935 | 2021-05-29T08:34:26 | 2021-05-29T08:34:26 | 371,921,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | import requests, json
response = requests.get(
'https://www.flickr.com/services/rest/?method=flickr.photos.getPopular&api_key=22a1377a56b4c384b61b723a80a73492'
'&user_id=193065083%40N04&format=json&nojsoncallback=1')
print(response.json())
| [
"[email protected]"
] | |
5ddbda28127ab2fb18249701f06df9c1649219a4 | 8fe781f8ac5b1c1d5214ac5a87c5ad855f791a6d | /src/clean_data.py | 90720e0134fea7776aa816fbd08598bb52e51b1b | [] | no_license | ternaus/kaggle_ultrasound | fabf45b89f5ab0888bb22e9b5205d90b14ce8f06 | 2d688d0cea8e2b1651980e972b1d6400b797c70b | refs/heads/master | 2021-01-11T15:48:19.835115 | 2016-08-20T01:47:37 | 2016-08-20T01:47:37 | 64,818,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | from __future__ import division
"""
This script makes train data less noisy in a way:
Finds similar images assigns to these clusters of images max mask
"""
import networkx as nx
import os
import pandas as pd
from tqdm import tqdm
from PIL import Image
import glob
import pandas as pd
import cv2
import os
import numpy... | [
"[email protected]"
] | |
ac8bb2b49f625d413a32f8fef679bc03ce802ab6 | ade22d64b99e7306eaeaf06684cc9c4f2d539881 | /oscquintette/tests/v1/test_plugin.py | 36de987851507a942e89237853e783acf38e25f1 | [
"Apache-2.0"
] | permissive | dtroyer/osc-quintette | 59204e4ad2e25be237fb3ec13cbb5087518197d6 | e37585936b1db9e87ab52e11e714afaf167a0039 | refs/heads/master | 2020-04-04T22:57:54.745055 | 2015-01-15T06:42:16 | 2015-01-15T06:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,266 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distrib... | [
"[email protected]"
] | |
13cd0c8c3642448ab20d30e377b9836c2e2b3b0f | 7a4ed01a40e8d79126b26f5e8fca43c8e61e78fd | /Python Built-in Modules/Python Itertools Module/1.Infinite Iterators/1.3.repeat()/1.Example_Of_repeat.py | b1c087d52f7e27726d3536cbc8a9c1f00b84432f | [] | no_license | satyam-seth-learnings/python_learning | 5a7f75bb613dcd7fedc31a1567a434039b9417f8 | 7e76c03e94f5c314dcf1bfae6f26b4a8a6e658da | refs/heads/main | 2023-08-25T14:08:11.423875 | 2021-10-09T13:00:49 | 2021-10-09T13:00:49 | 333,840,032 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from itertools import repeat
print ("Printing the numbers repeatedly : ")
print (list(repeat(25, 4))) | [
"[email protected]"
] | |
dd84a0764d1cd38b85cddd32caf67859a5427497 | 4ac77337083c7fdb28a901831003cfd0e0ef7bf1 | /any_urlfield/models/fields.py | 2d6a67b84cb2f887d661bd1a22600a432304957f | [
"Apache-2.0"
] | permissive | borgstrom/django-any-urlfield | deb6a10b87c26f53bb3ca5085d486238ab6c2a6c | 3f97bfd628a5770268b715ee8f796aaab89cf841 | refs/heads/master | 2020-12-11T02:13:14.725873 | 2013-12-12T21:55:12 | 2013-12-12T21:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,655 | py | """
Custom model fields to link to CMS content.
"""
from django.core.exceptions import ValidationError
from django.core.validators import URLValidator
from django.db import models
from any_urlfield.models.values import AnyUrlValue
from any_urlfield.registry import UrlTypeRegistry
class AnyUrlField(models.CharField):
... | [
"[email protected]"
] | |
b5ffffc779bb9a663018d7d61a89415f02b6c32a | 3f9163cc45befbc20b19a19bf1fd875b483c2965 | /python/paddle/distributed/passes/auto_parallel_gradient_merge.py | bc40dad8ac0d9a69f37ef6d6704bd644b87522cc | [
"Apache-2.0"
] | permissive | forschumi/Paddle | 27926b1ddb76be08dc3f768df787fc9a4078f8e4 | 58d2949d6d2a1689e17527fb501d69c3501adf9f | refs/heads/develop | 2022-07-04T03:07:52.446858 | 2022-06-05T11:44:04 | 2022-06-05T11:44:04 | 83,878,029 | 0 | 0 | null | 2017-03-04T08:11:50 | 2017-03-04T08:11:49 | null | UTF-8 | Python | false | false | 14,250 | py | # Copyright (c) 2021 PaddlePaddle 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 appli... | [
"[email protected]"
] | |
40a3d067d1e3b7a8dc8e422b14866b6111bd77a8 | 3e9ac661325657664f3f7fa26ff2edf5310a8341 | /python/demo100/15.py | 82e514ce0d7a6957012d7aafb52d784906df006e | [] | no_license | JollenWang/study | 47d1c22a6e15cb82d0ecfc6f43e32e3c61fbad36 | 660a47fd60dd1415f71da362232d710b322b932f | refs/heads/master | 2020-06-15T23:53:37.625988 | 2017-04-21T11:18:20 | 2017-04-21T11:18:20 | 75,257,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
#author : Jollen Wang
#date : 2016/05/10
#version: 1.0
'''
题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。
'''
def main():
score = int(raw_input("$>Enter the score:"))
print "grade=",
if score >= 90:
print "A"
elif score >= 60:
pri... | [
"[email protected]"
] | |
f502a1ab4fbd3fb3c402deb9bcb0a91171c04ca9 | 3ea75e35408de10bba250f52120b5424bd50fdd9 | /py/plotSigzFunc.py | 21812552da7cc7dfcdf7898e0e091f012d051cf2 | [] | no_license | jobovy/segue-maps | 9848fe59ee24a11a751df4f8855c40f2480aef23 | ed20b1058a98618700a20da5aa9b5ebd2ea7719b | refs/heads/main | 2022-11-30T15:27:08.079999 | 2016-12-20T04:28:26 | 2016-12-20T04:28:26 | 40,663,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,199 | py | import os, os.path
import math
import numpy
import cPickle as pickle
from matplotlib import pyplot
from optparse import OptionParser
from scipy import optimize, special
from galpy.util import bovy_coords, bovy_plot
def plotSigzFunc(parser):
(options,args)= parser.parse_args()
if len(args) == 0:
parser.p... | [
"[email protected]"
] | |
28bf8e32b2fc71691571cc473c7d4d6c7cefcf3a | fe98f7502a5724be0ec7ec3ae73ff4703d299d6e | /Neural Tree/data.py | 1b85e274b45f66319d308125e39f23e90bf4375f | [] | no_license | SoumitraAgarwal/BTP | 92ab095aacf3dd374148f40b9e777bb49c4253f1 | 07df960ad7e8680680a9d3494c8a860b394867d1 | refs/heads/master | 2020-03-16T12:39:13.548988 | 2018-05-09T06:09:11 | 2018-05-09T06:09:11 | 132,671,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | import random
import math
import pandas as pd
import numpy as np
from sklearn import preprocessing
import matplotlib.pyplot as plt
from matplotlib import cm
from mpl_toolkits.mplot3d import axes3d, Axes3D
plt.switch_backend('agg')
random.seed(311)
def generate(radius, centre):
alpha = 2 * math.pi * random.random()... | [
"[email protected]"
] | |
ef3d990361a736c2c8243ef71653066e995e9f04 | a1c7b21d96d6326790831b2b3115fcd2563655a4 | /pylidc/__init__.py | 95c187456f43a5b9aafdc6d2673def316432c058 | [
"MIT"
] | permissive | jovsa/pylidc | 3837b17fbe02bc60817081a349681612f24b2f81 | bd378a60a4b0e6dfb569afb25c3dfcbbcd169550 | refs/heads/master | 2021-06-13T02:45:41.359793 | 2017-03-10T23:14:57 | 2017-03-10T23:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | """
--------------------------------------------------------
Author: Matt Hancock, [email protected]
--------------------------------------------------------
This python module implements an (ORM) object relational mapping
to an sqlite database containing the annotation information from
the XML files provid... | [
"[email protected]"
] | |
8c4a5643db05aa582d6890691f9259ba39448975 | 455ce0c304e4a9f080862cb8459066ac741f3d38 | /day06/funcAsVar.py | abdfe02a2e1454e4e58302d9b697a4725542a345 | [] | no_license | venkatram64/python3_work | 23a835b0f8f690ca167e74bbbe94f46e3bd8c99f | 754f42f6fa2be4446264a8e2532abd55213af4df | refs/heads/master | 2021-06-15T22:41:31.031925 | 2021-02-16T04:56:50 | 2021-02-16T04:56:50 | 153,217,220 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | def square(num):
return num * num
s = square # function is assigned to a variable, and later can be excuted
print(s(5)) | [
"[email protected]"
] | |
d476c12d19016fedb10bf55bbe245feb207b93ac | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_Lag1Trend_NoCycle_NoAR.py | ff7ef11eee723d83fe871324617d9665f298f2bc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 154 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Quantization'] , ['Lag1Trend'] , ['NoCycle'] , ['NoAR'] ); | [
"[email protected]"
] | |
5be51dbb88aa58f10058062d78de161544e789e6 | cc2fcc1a0c5ea9789f98ec97614d7b25b03ba101 | /st2common/tests/unit/test_configs_registrar.py | e23dfe74262ed4c55b95ba299c1a0f50fbeb08c9 | [
"Apache-2.0"
] | permissive | Junsheng-Wu/st2 | 6451808da7de84798641882ca202c3d1688f8ba8 | c3cdf657f7008095f3c68b4132b9fe76d2f52d81 | refs/heads/master | 2022-04-30T21:32:44.039258 | 2020-03-03T07:03:57 | 2020-03-03T07:03:57 | 244,301,363 | 0 | 0 | Apache-2.0 | 2022-03-29T22:04:26 | 2020-03-02T06:53:58 | Python | UTF-8 | Python | false | false | 4,577 | py | # Licensed to the StackStorm, Inc ('StackStorm') 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 use th... | [
"[email protected]"
] | |
196964f8812712d14c761353096cc995312f630d | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/containsDuplicate_20200907093833.py | a13711fe822495f778880bcdac9e84cd2d398e7d | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | def duplicate(nums,k,t):
number = None
for i in range(len(nums)):
for j in range(i+1,len(nums)):
if nu
| [
"[email protected]"
] | |
286901b3a6a7ec15eaad0c29b53851f0e00a3e81 | 599db5e2e3c4d6c296de25a8ef8e95a862df032b | /OpenAI Gym/(clear)breakout-ramdeterministic-v4/model6/14000epi/modelPlay.py | 7e5537269ecb2dd11378115b992616635625fad7 | [] | no_license | wantyouring/ML-practice-code | bb7577e99f22587c7ca016c1c4d067175e5ce9d9 | a3efbb4d252bacc831c5d7a01daf6476e7a755e4 | refs/heads/master | 2020-05-14T17:45:17.735081 | 2019-06-30T14:43:25 | 2019-06-30T14:43:25 | 181,898,074 | 0 | 1 | null | 2019-06-15T05:52:44 | 2019-04-17T13:31:24 | Python | UTF-8 | Python | false | false | 3,233 | py | # 학습모델 play. random action과 학습model 비교.
import gym
import pylab
import numpy as np
import gym.wrappers as wrappers
from doubleDQN2 import DoubleDQNAgent
EPISODES = 1 # 처음은 random으로 수행, 나중에는 학습model로 수행
global_step = 0
def change_action(action):
if action == 0:
return 0
elif action == 1:
retu... | [
"[email protected]"
] | |
4a18ef0719c0058c463c0200d66e76acbe62ccfd | e49b654d3db99773390c5b9686df9c99fbf92b2a | /linked_lists/is_palindrome.py | 703a4960dc6cfbe7e741efde1dd056a7ede1b2cc | [] | no_license | hao89/diary_of_programming_puzzles | 467e8264d0ad38768ba5ac3cfb45301293d79943 | 0e05d3716f28075f99bbd7b433d16a383209e57c | refs/heads/master | 2021-01-16T00:49:38.956102 | 2015-08-25T13:44:53 | 2015-08-25T13:44:53 | 41,692,587 | 1 | 0 | null | 2015-08-31T18:20:38 | 2015-08-31T18:20:36 | Python | UTF-8 | Python | false | false | 831 | py | """
Implement a function to check if a linked list is a palindrome
"""
import random
from linked_list import LinkedListNode
def is_palindrome1(linked_list):
# reverse and compare
pass
def build_palindrome_list():
root = LinkedListNode(5)
previous_node = root
for i in range(0, 2):
new_node ... | [
"[email protected]"
] | |
07f54965bf19a638d7de2870978fd0fccb3c3b59 | 635670997e25d7fd578701995fe0422dd5671528 | /src/models_VAE/best_models/vae/encoder.py | 48db109dad68d468093e78e6d9e4cbd35e10fc19 | [] | no_license | QuangNamVu/thesis | 5126c0281d93e7a5c2c3a5784363d7f6c6baadfd | 01a404de2dfb70f13f3e61a9a8f3b73c88d93502 | refs/heads/master | 2022-12-24T10:08:33.472729 | 2019-12-21T16:27:07 | 2019-12-21T16:27:07 | 174,741,015 | 0 | 3 | null | 2022-12-14T06:56:36 | 2019-03-09T20:09:03 | Jupyter Notebook | UTF-8 | Python | false | false | 1,892 | py | import tensorflow as tf
from tensorpack import *
from tf_utils.ar_layers import *
from tf_utils.common import *
def encoder(self, x):
is_training = get_current_tower_context().is_training
# [M, T, D] => [M, T, f0]
fc_l1 = gaussian_dense(name='encode_l1', inputs=x, out_C=self.hps.f[0])
activate_l1 = ... | [
"[email protected]"
] | |
9a985c189a5328bcc149258b1faf5e97c967615f | ab66cdd15bb1ad964e21ce236e3e524b1eebb58a | /build/toolchain/win/setup_toolchain.py | 66e840bb9bee4e29ff2d61f9afdf05d8d839e3f3 | [
"BSD-3-Clause"
] | permissive | tainyiPeter/build-gn | 729659f3af90318d8ca80caa0a2f72d9bbfc595e | 59376ea32237f28525173e25fe1ce4a5c19ad659 | refs/heads/master | 2020-04-19T09:52:23.499802 | 2018-12-18T10:43:26 | 2018-12-18T10:56:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,687 | py | # Copyright (c) 2013 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.
#
# Copies the given "win tool" (which the toolchain uses to wrap compiler
# invocations) and the environment blocks for the 32-bit and 64-bit builds on
#... | [
"[email protected]"
] | |
a96bac8257857719d4e612c36e2dc88f720a5690 | ad212b92beac17c4d061848c1dcd443d02a168c8 | /monthly_challenge/202008/19_goat_latin.py | e866084a3ba4569f5efdb64fd6aa23d3416e864d | [] | no_license | 21eleven/leetcode-solutions | 5ec97e4391c8ebaa77f4404a1155f3ef464953b3 | 35c91e6f5f5ed348186b8641e6fc49c825322d32 | refs/heads/master | 2023-03-03T10:22:41.726612 | 2021-02-13T21:02:13 | 2021-02-13T21:02:13 | 260,374,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | """
A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only.
We would like to convert the sentence to "Goat Latin" (a made-up language similar to Pig Latin.)
The rules of Goat Latin are as follows:
If a word begins with a vowel (a, e, i, o, or u), ... | [
"[email protected]"
] | |
2caa36497292851a2824c6d22461f476df9e29db | 8d113f0a487dab55c733ff63da5bba9e20f69b69 | /config/settings.py | bca76446204a4d8a3e3373d62517eb9c85a8dc70 | [
"MIT"
] | permissive | AktanKasymaliev/django-video-hosting | c33d341a7709a21869c44a15eb6a3b6e9a783f54 | b201ed3421025da22b43405452bde617ea26a90f | refs/heads/main | 2023-07-18T08:10:00.289537 | 2021-09-02T20:15:41 | 2021-09-02T20:15:41 | 387,730,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,039 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
fro... | [
"[email protected]"
] | |
b5915b18fbbba281d99d4d188ad3de150336d99e | dbaad22aa8aa6f0ebdeacfbe9588b281e4e2a106 | /0423 Pandas/1-複習-pandas/Pandas1_csv_-plot1.py | 58fb6438f52cd86d1347b1d57e7b87de2c826879 | [
"MIT"
] | permissive | ccrain78990s/Python-Exercise | b4ecec6a653afd90de855a64fbf587032705fa8f | a9d09d5f3484efc2b9d9a53b71307257a51be160 | refs/heads/main | 2023-07-18T08:31:39.557299 | 2021-09-06T15:26:19 | 2021-09-06T15:26:19 | 357,761,471 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
__author__ = "Chen"
# 0423 練習
"""
資料出處:
公開發行公司股票發行概況統計表_New
https://data.gov.tw/dataset/103533
主要欄位說明:
年月、上市家數、上市資本額_十億元、上市成長率、上市面值_十億元、上市市值_十億元、
上櫃家數、上櫃資本額_十億元、上櫃成長率、上櫃面值_十億元、上櫃市值_十億元、
未上市上櫃家數、未上市上櫃資本額_十億元、公告日期
"""
import pandas as pd
df = pd.read_csv('每月_公開發行公司股票發行概況統計表.... | [
"[email protected]"
] | |
473edc044398c5b3eca2579faca5a7c518d2a277 | 10e5b1b2e42a2ff6ec998ed900071e8b5da2e74e | /array/0509_fibonacci_number/0509_fibonacci_number.py | 5d815145881d946e9ff8a001d2a66e9ff2dcd44e | [] | no_license | zdyxry/LeetCode | 1f71092d687316de1901156b74fbc03588f0b0a5 | b149d1e8a83b0dfc724bd9dc129a1cad407dd91f | refs/heads/master | 2023-01-29T11:59:14.162531 | 2023-01-26T03:20:23 | 2023-01-26T03:20:23 | 178,754,208 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # -*- coding: utf-8 -*-
class Solution(object):
def fib(self, N):
if N <= 1:
return N
return self.fib(N - 1) + self.fib(N - 2)
def fib2(self, N):
array = [i for i in xrange(N)]
for i in xrange(2, N+1):
array[i] = array[i-1] + array[i-2]
return ... | [
"[email protected]"
] | |
0a6f99febf158ce23215714249263dc107358160 | 2724412db1fc69b67b74a7d1c4ca4731962908d3 | /tests/test_streams.py | fd7c66a0bdc95eac88148387db0573a5c90b4496 | [
"BSD-3-Clause"
] | permissive | Tijani-Dia/websockets | a981267685e681df822307bce4ec7eb781e9927d | ed9a7b446c7147f6f88dbeb1d86546ad754e435e | refs/heads/main | 2023-08-23T13:10:16.030126 | 2021-10-08T20:18:24 | 2021-10-28T20:17:30 | 425,114,573 | 1 | 0 | BSD-3-Clause | 2021-11-05T23:56:39 | 2021-11-05T23:56:39 | null | UTF-8 | Python | false | false | 6,055 | 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(32)
line = ... | [
"[email protected]"
] | |
4b14a84a25716004baaf55a0e43796fab1a29293 | a137466dbaa5d704cd5a15ab9dfd17907b24be04 | /algo2/mrdqn/agent.py | 21a44e7aca50bb7bc677d14406d87263a932f502 | [
"Apache-2.0"
] | permissive | xlnwel/g2rl | 92c15b8b9d0cd75b6d2dc8df20e6717e1a621ff6 | e1261fdd2ce70724a99ddd174616cf013917b241 | refs/heads/master | 2023-08-30T10:29:44.169523 | 2021-11-08T07:50:43 | 2021-11-08T07:50:43 | 422,582,891 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,158 | py | import tensorflow as tf
from utility.tf_utils import softmax, log_softmax, explained_variance
from utility.rl_utils import *
from utility.rl_loss import retrace
from core.decorator import override
from algo.mrdqn.base import RDQNBase, get_data_format, collect
class Agent(RDQNBase):
""" MRDQN methods """
@tf.... | [
"[email protected]"
] | |
b77ad5adbfe3bdc3c5a57d4185371cc854289ac2 | a07124716edd86159dff277010132ba9c5cd0f75 | /Text-Based Browser/task/tests.py | 3ca883bce21f71b1767281f280b941e8d1d999d1 | [
"MIT"
] | permissive | drtierney/hyperskill-TextBasedBrowser-Python | 27a15fa0bd44a927a9552d4815a0b4ab69375710 | a4f2ac60643559e580b75a02078a679e5f1f0a2c | refs/heads/main | 2023-08-28T04:24:51.693648 | 2021-10-25T17:34:58 | 2021-10-25T17:34:58 | 415,304,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,637 | py | from hstest.stage_test import StageTest
from hstest.test_case import TestCase
from hstest.check_result import CheckResult
import os
import shutil
import sys
if sys.platform.startswith("win"):
import _locale
# pylint: disable=protected-access
_locale._getdefaultlocale = (lambda *args: ['en_US', 'utf8'])
C... | [
"[email protected]"
] | |
4918810498af75369329a2204c7cccbe0e40efb1 | 40dd8330e5f78c4348bbddc2c5acfd59d793dd51 | /tools/model_converters/twins2mmseg.py | 647d41784aa07468be4b3f2e183064ad55266ad1 | [
"Apache-2.0"
] | permissive | open-mmlab/mmsegmentation | 0d12092312e2c465ede1fd7dd9847b6f2b37049c | 30a3f94f3e2916e27fa38c67cc3b8c69c1893fe8 | refs/heads/main | 2023-09-04T10:54:52.299711 | 2023-07-24T07:28:21 | 2023-07-24T07:28:21 | 272,133,018 | 6,534 | 2,375 | Apache-2.0 | 2023-09-14T01:22:32 | 2020-06-14T04:32:33 | Python | UTF-8 | Python | false | false | 2,764 | py | # Copyright (c) OpenMMLab. All rights reserved.
import argparse
import os.path as osp
from collections import OrderedDict
import mmengine
import torch
from mmengine.runner import CheckpointLoader
def convert_twins(args, ckpt):
new_ckpt = OrderedDict()
for k, v in list(ckpt.items()):
new_v = v
... | [
"[email protected]"
] | |
c436a852bf1b29fdd43c22fec676f7de2348174a | da7a165522daea7c346693c5f32850017c482967 | /abc51-100/abc066/c.py | 09ed9795009df321637516a4eee2dcfb604ef0b8 | [] | no_license | SShayashi/ABC | 19f8750919208c5ff8935638dbaab941c255f914 | 3cbfee0c5251c1bb0df6306166d8d4b33bf7bb2c | refs/heads/master | 2021-05-04T21:06:10.720367 | 2020-07-11T13:59:16 | 2020-07-11T13:59:29 | 119,886,572 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | def main():
n = int(input())
a = list(map(int, input().split()))
even = a[1::2]
odd = a[::2]
ans = []
if n % 2 == 0:
even.reverse()
ans = even + odd
else:
odd.reverse()
ans = odd + even
to_str = map(str, ans)
return " ".join(to_str)
print(main()) | [
"[email protected]"
] | |
16f56f1f208c469a2d92b843ac849f98a7111d08 | 7087a5dd1772c9456f098bc024a894dcaeef5432 | /backup/build/new-calkube/kubernetes-6.0.0_snapshot-py2.7.egg/kubernetes/client/models/v1_delete_options.py | 575bcf443ee81e1402ef6bba7a8c440f8590df0a | [] | no_license | santhoshchami/kubecctl-python | 5be7a5a17cc6f08ec717b3eb1c11719ef7653aba | cd45af465e25b0799d65c573e841e2acb983ee68 | refs/heads/master | 2021-06-23T11:00:43.615062 | 2019-07-10T16:57:06 | 2019-07-10T16:57:06 | 145,669,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,530 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"[email protected]"
] | |
5a1800a557704e33d4f51badeae781b4ae00bcca | c3a01f8bcece48f94a347b92694f90227708f507 | /pyvisa/testsuite/test_constants.py | 8c5add8034b3b0c9c0686b60af1742adea537ea8 | [
"MIT"
] | permissive | panlun/pyvisa | e16a6cdaae47bc69d932538f14c62015d17be7ab | 124c46bd2ad89e49031339d6181255c2808fecbc | refs/heads/master | 2022-11-21T13:07:29.280849 | 2020-06-24T22:23:27 | 2020-06-24T22:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # -*- coding: utf-8 -*-
"""Test objects from constants.
This file is part of PyVISA.
:copyright: 2019-2020 by PyVISA Authors, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
from pyvisa.constants import DataWidth
from . import BaseTestCase
class TestDataWidth(BaseTestCase):
def ... | [
"[email protected]"
] | |
8dcbda8c71b778dae427d765d9b4621c3b6fc340 | 00af09f4ac6f98203910d86c3791c152184ace9a | /Lib/ctypes/test/test_arrays.py | ad3451f5cf9457610f9655188ac524bc3ba9104d | [] | no_license | orf53975/CarnosOS | 621d641df02d742a2452fde2f28a28c74b32695a | d06849064e4e9f30ef901ad8cf90960e1bec0805 | refs/heads/master | 2023-03-24T08:06:48.274566 | 2017-01-05T16:41:01 | 2017-01-05T16:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,024 | py | <<<<<<< HEAD
<<<<<<< HEAD
import unittest
from ctypes import *
from ctypes.test import need_symbol
formats = "bBhHiIlLqQfd"
formats = c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, \
c_long, c_ulonglong, c_float, c_double, c_longdouble
class ArrayTestCase(unittest.TestCase):
def test_simple(self):... | [
"[email protected]"
] | |
ccc0c33067aa23f9329f7727f8ce57f7f5cf29b1 | fff24c6c6123e5e90ac2fae26536150449140c6d | /setup.py | 0b74facb61fe0ac8600893175528a1d17392e7ab | [
"ISC"
] | permissive | binaryf/demosys-py | 83da9f9ddd8d1672413f89153012ab6bb7fae6ab | f11b09cb6502adfaa437c8cbe780039c49b72524 | refs/heads/master | 2020-03-22T16:30:16.767030 | 2018-07-24T11:19:22 | 2018-07-24T11:19:22 | 140,331,208 | 1 | 0 | null | 2018-07-09T19:12:49 | 2018-07-09T19:12:48 | null | UTF-8 | Python | false | false | 1,375 | py | from setuptools import setup
setup(
name="demosys-py",
version="1.0.4",
description="Modern OpenGL 3.3+ Framework inspired by Django",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url="https://github.com/Contraz/demosys-py",
author="Einar Forselv... | [
"[email protected]"
] | |
dfc119e744be40778ca5cd17e33454a7d7001076 | fd18ce27b66746f932a65488aad04494202e2e0d | /day34/farms/categories/categories/categories/pipelines.py | dba029c921f259cfcbba84dba0b24d192b7fa697 | [] | no_license | daofeng123/ClassCodes | 1acbd843836e550c9cebf67ef21dfca9f6b9fc87 | fbcd1f24d79b8bb56ad0669b07ad118064609612 | refs/heads/master | 2020-06-24T12:34:28.148197 | 2019-08-15T03:56:40 | 2019-08-15T03:56:40 | 198,963,469 | 3 | 0 | null | 2019-07-26T06:53:45 | 2019-07-26T06:53:44 | null | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
import json
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from categories.dbs.redismq import RedisMQ
class CategoriesPipeline(object):
redis_mq = RedisMQ()
def p... | [
"[email protected]"
] | |
f7b22c64ab658985f221cf7076cee8fc91505b98 | a360a22af5e0b385db438b1324564ef317ff2f38 | /idex_module/views.py | a846edfb5592c73af23acdf636aeb55d68b6c4af | [] | no_license | ogglin/exchange_comparison | 3eb2d849e731f94e67509e4ce9130e33bb37bbaf | f3feae64aff26b574f7ecd24e6f7aff7bb95ec65 | refs/heads/master | 2023-04-26T07:45:06.229584 | 2021-05-31T18:52:29 | 2021-05-31T18:52:29 | 287,036,194 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from rest_framework.response import Response
from rest_framework.views import APIView
from .functions import idex_profits
# Create your views here.
class idex(APIView):
def get(self, request):
# hotbit_result = hotbit_profits()
idex_result = idex_profits()
results = []
# idex_i... | [
"[email protected]"
] | |
8a6af64bda1660fee7c263541b1c3e8425df645e | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayOpenMiniInstantiateQueryRequest.py | 2e24f412ecf6d93999b8fecab84c0b693832af9e | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,979 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayOpenMiniInstantiateQueryModel import AlipayOpenMiniInstantiateQueryModel
class AlipayOpenMiniInstantiateQueryRequest(object):
... | [
"[email protected]"
] | |
7fa407813dc0e9f4324ea6fa68186ad55071a769 | fda201d7cca34e216a17d97665c8457c72e66cb2 | /register/tests/test_center_csv.py | 5106fe3734607be0a86be712d190cf444751a602 | [
"Apache-2.0"
] | permissive | SmartElect/SmartElect | 94ab192beb32320e9ae8ae222f90ee531037c1c6 | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | refs/heads/develop | 2020-12-26T04:04:42.753741 | 2019-07-17T17:08:25 | 2019-07-17T17:08:25 | 44,687,036 | 24 | 12 | Apache-2.0 | 2020-06-06T07:16:48 | 2015-10-21T15:47:07 | Python | UTF-8 | Python | false | false | 28,774 | py | import os
import shutil
import tempfile
from django.test import TestCase
from django.urls import reverse
from ..models import RegistrationCenter, Office, Constituency, SubConstituency
from .. import utils
from .factories import OfficeFactory, ConstituencyFactory, SubConstituencyFactory, \
RegistrationCenterFactor... | [
"[email protected]"
] | |
33f88b3804973bb17c410c2bdf24456d89324c34 | 9bcfbdf23c9ac156e0cdf5b5b5e06f18a1ad6fae | /pre_code/stock/xueqiuPawer.py | 1a9ff34bb4d43402fbd96230452d2828ff831e48 | [] | no_license | haoson888/vnpy_future | a7576513b7ecf50c36d730c647263c6d1e44f3a6 | 89df2d5079a2e6d3782531369675248e38b2ff00 | refs/heads/origin | 2020-09-04T15:04:55.368725 | 2017-12-10T10:37:47 | 2017-12-10T10:37:47 | 219,762,816 | 0 | 1 | null | 2019-11-05T15:12:32 | 2019-11-05T14:18:18 | null | UTF-8 | Python | false | false | 6,873 | py | #coding: utf-8
from selenium import webdriver
import re
from urllib import request as urllib2
import sys
import os
from datetime import datetime
from datetime import timedelta
from datetime import date
import xlrd
from xlrd import open_workbook
from xlutils.copy import copy
#import nltk
import time
description_i... | [
"[email protected]"
] | |
291f1107e0a99ce49de7bd1a42bab6e7fa9b9073 | ffae55f50f9eb0ae028d9f46cebea565f3700585 | /18/VAJets/PKUTreeMaker/test/CrabJobsSrc/MC/crab3_analysisWZ_v1.py | 7d3a2cd976ff0802af00a8aafe4ae252256a8d2a | [] | no_license | JINGFFF/test | 57a92eb2c3143bcfa5776fc87d3ff16ff7cdc04b | d48c2be6387dfaff3eb37e28ff116c91c3eaf67e | refs/heads/master | 2021-02-06T21:00:52.184508 | 2020-04-26T04:35:04 | 2020-04-26T04:35:04 | 243,942,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'WZ_v1_2'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.maxMemoryMB = 3000
config.JobType.inputFiles = ['Summer16_07Au... | [
"[email protected]"
] | |
5396d59485edcffb1060921d5fc348209d891fe0 | b13a326c8aac68f72c71169187a4aa8d4fe1438f | /environment/envs/icra.py | eaa3aafeecc909022ff8d9a459423e63e37e2866 | [] | no_license | zy10zm/Pulsar | 9f1d9abdf90d94e80c6dba2a02630bfe4b4e2115 | 714ee2d78577e59077af7c0f890e639879490eb8 | refs/heads/master | 2023-02-22T20:26:42.995175 | 2021-01-23T04:35:38 | 2021-01-23T04:35:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,882 | py | import os, sys
import numpy as np
import logging
from copy import deepcopy
from mujoco_worldgen import Floor
from mujoco_worldgen import ObjFromXML
from mujoco_worldgen.util.sim_funcs import qpos_idxs_from_joint_prefix, qvel_idxs_from_joint_prefix
from environment.worldgen.battlefield import Battlefield
from environm... | [
"[email protected]"
] | |
38cce542df0415d2d792a37b8355ec7ce0f789d3 | 9e2d467de2d665f41dc94799f0acb98479571922 | /_error.py | cf399a395d6e832d683a0de18251cbd067d4a2f6 | [] | no_license | pytsite/plugin-geo_ip | c63ecd12c95004c05fdae76b20a9343b52fb923f | db71e67651eb57b6ca76136d0014eaadf2cb6ffb | refs/heads/master | 2021-10-23T09:29:32.580289 | 2019-03-16T22:04:28 | 2019-03-16T22:04:28 | 112,030,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | """PytSite GeoIP Errors.
"""
__author__ = 'Oleksandr Shepetko'
__email__ = '[email protected]'
__license__ = 'MIT'
class ResolveError(Exception):
pass
| [
"[email protected]"
] | |
eb3a8d5c498c7474673b63e103c93f49315218fa | 3ff9821b1984417a83a75c7d186da9228e13ead9 | /No_0122_Best Time to Buy and Sell Stock II/by_dynamic_programming.py | 5874db8b00a7a87dcea7b16d8be839baf34edc99 | [
"MIT"
] | permissive | brianchiang-tw/leetcode | fd4df1917daef403c48cb5a3f5834579526ad0c2 | 6978acfb8cb767002cb953d02be68999845425f3 | refs/heads/master | 2023-06-11T00:44:01.423772 | 2023-06-01T03:52:00 | 2023-06-01T03:52:00 | 222,939,709 | 41 | 12 | null | null | null | null | UTF-8 | Python | false | false | 2,646 | py | '''
Description:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (i.e., buy one and sell one share of the stock multiple times).
Note: You may not engage in multiple transactions... | [
"[email protected]"
] | |
a87804d2d25c07f79802384fc10580b459fae10e | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/media_source/test_local_source.py | bc637caab808964792012429bc925ee473d435b8 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 10,965 | py | """Test Local Media Source."""
from collections.abc import AsyncGenerator
from http import HTTPStatus
import io
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest.mock import patch
import pytest
from homeassistant.components import media_source, websocket_api
from homeassistant.components.... | [
"[email protected]"
] | |
155e6f8d2612353259928900fac73b905ca32da0 | e5d8b15cbd899283d6ead4742334e997db06d6e0 | /web/config/settings/base.py | 37124bc82aab5552b2646ceca937c109e33f6676 | [] | no_license | Maliaotw/dashboard-django | 628d777d88b61dad7c3c551b72979b38c2065e15 | cabbc3e6e8156510dd4ba91ffe1066c9cb040eac | refs/heads/main | 2023-02-16T02:52:02.169754 | 2021-01-12T03:13:55 | 2021-01-12T03:13:55 | 289,612,737 | 0 | 0 | null | 2021-01-12T03:13:56 | 2020-08-23T04:05:36 | JavaScript | UTF-8 | Python | false | false | 5,390 | py | """
Django settings for web project.
Generated by 'django-admin startproject' using Django 3.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
from .... | [
"[email protected]"
] | |
eecdc90449ea3bbc47e90548ca8004f0872498f7 | ac03d9f3a8c2e6209940ae30900e9b2e32084dce | /main.py | 9ef8df5eafeff0357882459573d9ee1b460c71e4 | [
"Apache-2.0"
] | permissive | cls1991/github-projects-remover | 29f28e0a23b596a7e07b0c07b65092626b42de05 | d924100fedccbb0fd6e20365d4f4df98bf04b292 | refs/heads/master | 2022-12-11T12:31:59.498180 | 2019-10-23T14:22:14 | 2019-10-23T14:22:14 | 84,054,255 | 0 | 0 | Apache-2.0 | 2019-10-23T14:22:16 | 2017-03-06T09:25:51 | Python | UTF-8 | Python | false | false | 1,042 | py | # coding: utf8
import os
# 切换工作目录到项目根目录
project = os.path.split(os.path.realpath(__file__))[0]
os.chdir(project)
from core.github import GithubSample
if __name__ == '__main__':
gs = GithubSample('8709c9b9d01ec8e7388378c3992eff61aa7df813')
# pretty_print(gs.query_api_info())
# pretty_print(gs.query_user_... | [
"[email protected]"
] | |
4bd4bebebcee12e2cf64dd1eacd1a163512bbeee | 78c76c8ec506080ff83edd7a3619a6b1e709a4e5 | /apps/courses/__init__.py | 3b3a526b16976686d4850ba0f61ebd17bc4992e1 | [] | no_license | wadayu/mxonline | dd0a08d21b858a49f2107974ba13b6e283a1f01f | 58e808b3415e51935c15b1e5f7b30461c879d861 | refs/heads/master | 2021-01-20T23:47:55.025272 | 2018-02-08T01:41:06 | 2018-02-08T01:41:06 | 101,853,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | #xadmin后台中文显示
default_app_config = 'courses.apps.CoursesConfig' | [
"[email protected]"
] | |
f9d8898f58752cd3781b1c1101eefbc33a20667c | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/perf/CascadeMaskRCNN_iflytek_for_PyTorch/configs/seesaw_loss/cascade_mask_rcnn_r101_fpn_sample1e-3_seesaw_loss_mstrain_2x_lvis_v1.py | 853289e67b4a5019eddfc1bbefb0b44e53dd49e2 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,714 | py | _base_ = [
'../_base_/models/cascade_mask_rcnn_r50_fpn.py',
'../_base_/datasets/lvis_v1_instance.py',
'../_base_/schedules/schedule_2x.py', '../_base_/default_runtime.py'
]
model = dict(
pretrained='torchvision://resnet101',
backbone=dict(depth=101),
roi_head=dict(
bbox_head=[
... | [
"[email protected]"
] | |
3d825b0e036a2c4f6a56c755ea8fe0225bc2d1f8 | 6610ebe9141f00678851a6f068ec1e5458bf050c | /code/graph_keyboard.py | 19a6ffbf2f3e96351320d674a186a385b8d5dedc | [
"MIT"
] | permissive | iamrajee/bio_medical | e9cec1d9e12c04d87b893d0c12c92d3a1b8fb963 | 8d91cd3838f46685faa057f93f5d22f8e6c4187b | refs/heads/master | 2020-05-04T23:47:45.595827 | 2019-09-17T17:14:19 | 2019-09-17T17:14:19 | 179,555,562 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | import matplotlib.pyplot as plt
import networkx as nx
G=nx.Graph()
# G.add_nodes_from([1,2,3,4,5,6,7,8,9,0],key="A")
# # G.add_edges_from([(1,2),(2,3),(3,4),(5,8),(9,1),(2,3),(4,6),(8,2),(7,3)])
# G.add_weighted_edges_from([(1,2,1),(2,3,2),(3,4,3),(5,8,4),(9,1,5),(2,3,6),(4,6,7),(8,2,8),(7,3,9)])
# keyboard_config =... | [
"[email protected]"
] | |
e234a8079711be2c3d06150ede58ce02370a578b | c75ec82316ed5322c5844912ce9c528c24360b9f | /nsd1905/devweb/myansible/webadmin/admin.py | dcb81958f29fbd102b6bac0302d385ab3985e950 | [] | no_license | MrZhangzhg/nsd2019 | a94cde22f2e4bd648bb9e56ca63827f558f3c083 | 54f6d2c7b348a69f13ad5f38f2fbdc8207528749 | refs/heads/master | 2021-08-22T17:38:27.697675 | 2020-02-22T08:36:21 | 2020-02-22T08:36:21 | 183,539,489 | 21 | 24 | null | 2020-05-17T12:07:55 | 2019-04-26T02:06:16 | HTML | UTF-8 | Python | false | false | 167 | py | from django.contrib import admin
from .models import HostGroup, Host, Module, Argument
for item in [HostGroup, Host, Module, Argument]:
admin.site.register(item)
| [
"[email protected]"
] | |
42a3440f5055af7250f46ea5da4734991bae627f | b30d7e28932056d69b3a3dba4e9c0c552ac19029 | /model_evaluation_utils.py | 2b1870d19748d7fd2e3cd4fd9a62a61b72ecc57d | [] | no_license | rsawin/transfer_learning | 19b9818a9f978ddc31080354bdc3538f32b870e3 | d2a28f7947f481f3466f425e3fd21011c0c91243 | refs/heads/master | 2021-07-08T23:43:55.211542 | 2020-08-03T21:33:47 | 2020-08-03T21:33:47 | 174,645,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,201 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 31 20:05:23 2017
@author: DIP
@Copyright: Dipanjan Sarkar
"""
from sklearn import metrics
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.preprocessing import LabelEncoder
from sklearn.base import clone
from sklearn.preprocessing import... | [
"[email protected]"
] | |
03fea34e3c11916cfd291a566610c03c8d3de9fc | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/interface/ethernet/qos/flowcontrol/link_level_flowcontrol/__init__.py | 3960a6dbe85e3ab3c78e7385317b495bc048176a | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,751 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"[email protected]"
] | |
69a1634d445e07945fcf4295399a9402133a27b5 | 2cf543b38f17b1fc7b9c20d19d2da7fde235abca | /docs/conf.py | e41b0aa24138b21a5d5e76f11cd9ab6762e0e5b7 | [
"MIT"
] | permissive | arvimal/ceph_check | 0de8b93462a8e1449b2cddbbe008ed256aa1a072 | 7e82b7838de247568e64ef84a0fcdaf20e6c1728 | refs/heads/master | 2020-04-16T02:17:36.186334 | 2017-12-25T16:45:34 | 2017-12-25T16:45:34 | 46,115,573 | 6 | 0 | null | 2017-09-07T09:20:02 | 2015-11-13T10:28:24 | Python | UTF-8 | Python | false | false | 8,414 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# ceph_check documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# ... | [
"[email protected]"
] | |
111b0e3fdbd6beabd602738595a0fdf949089ff2 | b65cfcda05fd72350c7b9e11e5995cc1d10fdd75 | /shop/models.py | df6a76b04ed4d1f1473b36d641881c259f5e0b06 | [] | no_license | gauraviit1/pahal_project_2 | f4e6a2cf1cfd613088ad27344279460bb72c9786 | bc89c3848359ae0b95cb55c24d6fe24d637caabd | refs/heads/master | 2021-04-28T21:20:44.614522 | 2017-01-01T09:57:25 | 2017-01-01T09:57:25 | 77,773,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | from django.db import models
from django.core.urlresolvers import reverse
from django.utils.functional import lazy
from PIL import Image
from django.contrib.postgres.fields import HStoreField
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _
from decimal import ... | [
"[email protected]"
] | |
2c4ab74cda2680598623c66912579b5d2540ef70 | edf510cc5bbbe24469d8ff262c022b33b4d80a75 | /tacotron2/model/tacotron2.py | fafca0078fcb2bc687a7f48b30a31e19137b81ac | [
"Apache-2.0"
] | permissive | rheehot/Tacotron2 | e8b8a4be614708800b10b9fa7829264407510fa8 | ddbe55b426397d40cadd14f5040c55ba7c25615d | refs/heads/master | 2022-12-26T14:13:39.966498 | 2020-10-06T18:34:57 | 2020-10-06T18:34:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | # -*- coding: utf-8 -*-
# Soohwan Kim @sooftware
# This source code is licensed under the Apache 2.0 License license found in the
# LICENSE file in the root directory of this source tree
import torch.nn as nn
from torch import Tensor
from typing import Optional
from tacotron2.model.encoder import Encoder
from tacotron... | [
"[email protected]"
] | |
d44cd5123695d6c48fef84f95857d085ddda8775 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/2D_20200722180003.py | f67079f7677c6a1e5d41c5b12f694fad5f417ffe | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | def array(n,m):
# where n is row size and m is column size
array = [[0 for x in range(n)] for x in range(m)]
print(array)
a = [[2, 4, 6, 8, 10], [3, 6, 9, 12, 15], [4, 8, 12, 16, 20]]
# where the first arguement reps the row and second arguement reps the column
print(a[0][3])
def hourGlass(... | [
"[email protected]"
] | |
3fd59004b8a3ada46670dc8f08e82e5d397cce55 | b7b5f5b52f07b576a20e74839136d397f14d0566 | /main/admin.py | cd3bbcc3572a48186b2724bb94ba97c49bfe0e18 | [] | no_license | Chudische/Shabashka | 02d7e81cb2bd317b36e73620fc197868c4d65e1c | c3bab797601e8509439dc6538ec1f712755eb8c9 | refs/heads/main | 2023-07-08T07:54:04.044559 | 2021-08-18T13:40:44 | 2021-08-18T13:40:44 | 315,249,268 | 0 | 1 | null | 2021-08-10T06:42:42 | 2020-11-23T08:34:46 | Python | UTF-8 | Python | false | false | 4,510 | py | import datetime
from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
from import_export import resources
from .models import ShaUser, SubCategory, SuperCategory, Offer, AdditionalImage, Comment, ShaUserAvatar
from .models import UserReview, ChatMessage, Location
from .utilities imp... | [
"="
] | = |
93b4ff666a4c0dbc1475a16fb53d3a864ecec53d | 1e0ec4d34def6d1d31665551b4aecbb644323249 | /disambig_creation_constants.py | 2fca0360764a115a37e4d1aa2de947aad7ea4777 | [] | no_license | RheingoldRiver/leaguepedia_archive | e10615530846080446fa5a56ae2e570f9376f875 | 52703d4fb0fef2345353945044a78915d78688bf | refs/heads/master | 2022-06-19T21:37:47.480986 | 2022-06-01T18:44:32 | 2022-06-01T18:44:32 | 242,654,649 | 1 | 1 | null | 2021-12-15T20:07:19 | 2020-02-24T05:33:07 | Python | UTF-8 | Python | false | false | 928 | py | originalName = 'Limit'
irlName = 'Ju Min-gyu'
newName = '{} ({})'.format(originalName,irlName)
initmove = True
blankedit = False
limit = -1
timeoutLimit = 30
listplayerTemplates = ["listplayer", "listplayer/Current"]
rosterTemplates = ["ExtendedRosterLine", "ExtendedRosterLine/MultipleRoles"]
scoreboardTemplates = ["M... | [
"[email protected]"
] | |
797e2d7a43e4b15dea8e59a7e042f26e1eb14caf | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/pdb2/pdbreader/symbol/LocalData32MsSymbol.pyi | aede84acc0cf9dc7b6e4bd9ac3bccadd11448bf2 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | pyi | import ghidra.app.util.bin.format.pdb2.pdbreader
import ghidra.app.util.bin.format.pdb2.pdbreader.symbol
import java.lang
class LocalData32MsSymbol(ghidra.app.util.bin.format.pdb2.pdbreader.symbol.AbstractLocalDataMsSymbol):
PDB_ID: int = 4364
def __init__(self, __a0: ghidra.app.util.bin.format.pdb2.pdbrea... | [
"[email protected]"
] | |
b6f56697fb41c5e23e58b13a4e63f3780c4b41ea | db338cf7720a0ecbf181f7077b0dcf22b499d822 | /src/mobot_client/migrations/0003_auto_20210902_2106.py | 0f96c067c7d54e446c9525c7deab02ba86fffdfe | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | isabella232/mobot | 94a7e33755cdf3b1916b6642ee7dc9bdfdebf84d | 8a1fc884351211b4730e7de1c0bad1e18a1b1c8f | refs/heads/main | 2023-08-31T17:00:21.341368 | 2021-09-16T00:55:35 | 2021-09-16T04:49:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | # Generated by Django 3.2.7 on 2021-09-02 21:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mobot_client', '0002_auto_20210902_2053'),
]
operations = [
migrations.AlterField(
model_name='bonuscoin',
name='id'... | [
"[email protected]"
] | |
2c615eeec86ee49817a3513724374a206511e132 | 060fbf2a69a90ad92de5fc877521d5ea6b298007 | /test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/double_wrapper.py | 598e2b460d799b8c9b576803570caa93bfc99961 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | iscai-msft/autorest.python | db47a8f00253148fbc327fe0ae1b0f7921b397c6 | a9f38dd762fbc046ce6197bfabea2f56045d2957 | refs/heads/master | 2021-08-02T13:06:34.768117 | 2018-11-21T00:29:31 | 2018-11-21T00:29:31 | 161,554,205 | 0 | 0 | MIT | 2018-12-12T22:42:14 | 2018-12-12T22:42:14 | null | UTF-8 | Python | false | false | 1,552 | 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 ... | [
"[email protected]"
] | |
b1dc65782f757d291f0b3c8796390124c41932ae | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_204/285.py | 05697ee8e397c0a3ab1f3fbfedb01bf8d507a112 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | from __future__ import print_function, division
from math import ceil, floor
import numpy as np
# Fernando Gonzalez del Cueto. Code Jam 2017
#infile = 'test2.in'
infile = 'B-small-attempt2.in'
outfile = infile.replace('.in', '.out')
fid = open(infile, 'r')
n_cases = int(fid.readline().strip())
f_out ... | [
"[email protected]"
] | |
f095f493b8c86691cddc688e4d19ccaf71870c88 | c8efab9c9f5cc7d6a16d319f839e14b6e5d40c34 | /source/Clarification/Backtracking/52.N皇后2.py | 0850985c798d542a6dbf9bbf340bfa76bed00408 | [
"MIT"
] | permissive | zhangwang0537/LeetCode-Notebook | 73e4a4f2c90738dea4a8b77883b6f2c59e02e9c1 | 1dbd18114ed688ddeaa3ee83181d373dcc1429e5 | refs/heads/master | 2022-11-13T21:08:20.343562 | 2020-04-09T03:11:51 | 2020-04-09T03:11:51 | 277,572,643 | 0 | 0 | MIT | 2020-07-06T14:59:57 | 2020-07-06T14:59:56 | null | UTF-8 | Python | false | false | 1,700 | py | # n 皇后问题研究的是如何将 n 个皇后放置在 n×n 的棋盘上,并且使皇后彼此之间不能相互攻击。
#
#
#
# 上图为 8 皇后问题的一种解法。
#
# 给定一个整数 n,返回 n 皇后不同的解决方案的数量。
#
# 示例:
#
# 输入: 4
# 输出: 2
# 解释: 4 皇后问题存在如下两个不同的解法。
# [
# [".Q..", // 解法 1
# "...Q",
# "Q...",
# "..Q."],
#
# ["..Q.", // 解法 2
# "Q...",
# "...Q",
# ".Q.."]
# ]
class Solu... | [
"[email protected]"
] | |
e78baff9bdff094df6a9bde81c9da4513c0aa5b9 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/jyb.py | ca9d3c9ec4d59763f4fd3413bf1ece65baed5ad0 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"[email protected]"
] | |
f60622ab5bd5f34311c951a2a60f776f25a2aa47 | 33a50bb13812090a36257078522b798762978c66 | /top/api/rest/SimbaNonsearchAllplacesGetRequest.py | 6f07639d12207a871566ac06ac186d09de431e25 | [] | no_license | aa3632840/quanlin | 52ac862073608cd5b977769c14a7f6dcfb556678 | 2890d35fa87367d77e295009f2d911d4b9b56761 | refs/heads/master | 2021-01-10T22:05:14.076949 | 2014-10-25T02:28:15 | 2014-10-25T02:28:15 | 23,178,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | '''
Created by auto_sdk on 2014-09-08 16:48:02
'''
from top.api.base import RestApi
class SimbaNonsearchAllplacesGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
def getapiname(self):
return 'taobao.simba.nonsearch.allplaces.get'
| [
"[email protected]"
] | |
9d9ed5f5767b7fd951eb6ad1a2a01ca63fc8e5ed | 56b63ee537f872af0fc028016d1508b4c1dd5c60 | /school/migrations/0267_auto_20210317_1657.py | 926120cf7259917f9c79aaa27206e75ae9e960a4 | [] | no_license | jacknjillsolutionsrevanth/EMS1 | 01fc571120f765b0fbfe3aa654b15ff578d6e9b9 | db14d8e6c15669b5938aa9276c5e22006218814a | refs/heads/main | 2023-08-03T19:40:50.073133 | 2021-10-01T07:02:37 | 2021-10-01T07:02:37 | 410,202,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | # Generated by Django 3.1.4 on 2021-03-17 11:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0266_auto_20210315_1612'),
]
operations = [
migrations.AddField(
model_name='daily_data',
name='routename'... | [
"[email protected]"
] | |
1f6e97b6fae3bcc121943a41542b27b69deeafab | 8c77dcc0fd3e497194e572c8641200f08b32dc97 | /general/function_factory.py | f2c923b5d537856aae039428a6462973dfd14e56 | [
"MIT"
] | permissive | bpuderer/python-snippets | 633a1e382f7c9812621d61ec16a15e106d1d5fc8 | 3277b76b03f3ceb11e4571be4cecae68051aac45 | refs/heads/master | 2021-12-27T09:19:27.212312 | 2021-12-22T13:08:56 | 2021-12-22T13:08:56 | 46,539,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | def raise_to(exp):
def raise_to_exp(x):
return pow(x, exp)
return raise_to_exp
cube = raise_to(3)
print(cube(4))
| [
"[email protected]"
] | |
c10fbf1e704a93a27b39f55a903786ffa970dab7 | f9d942b2fed83e9d6c101ebaedc1d4b36dee2754 | /logistics/tests/util.py | b392e9568f05b3984dcf23beedbd376f6d40b26b | [] | no_license | unicefuganda/rapidsms-logistics | 7cde229ac2619366d253d099c0f222eb96b1468e | 7d9609a7b9d6fa3f4502aba52ab56acc23a6e928 | refs/heads/master | 2020-12-25T05:26:59.459389 | 2012-12-17T12:00:52 | 2012-12-17T12:00:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from rapidsms.tests.scripted import TestScript
from logistics import loader as logi_loader
def load_test_data():
logi_loader.init_reports()
logi_loader.init_supply_point_types()
logi_loader.init_test_location_and_supplypoints()
logi_loader.init_test_product_and_stock()
| [
"[email protected]"
] | |
05d8af9bcacd6c3653138d5f6101b153625fb68c | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Docs/Controlling the Keyboard and Mouse/typer/docs_src/commands/callback/tutorial001.py | 5438b3ead7b25f5be9db58189b57b8e6e3f410a3 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f0921ed2e19ca15b1c6e7817d91c7dbefd69a5a39c79520e0d5e519b11cdd10c
size 756
| [
"[email protected]"
] | |
4df9ea69048a2ad0b8f86d6c9a2ba6a5b4c33d67 | e06f94c1cf7748352516e15a983df38e0693319d | /venv/lib/python3.9/site-packages/web3/pm.py | 5257db22bd20bce2db4460aaffcd9d35406a644c | [
"MIT"
] | permissive | Ruben1701/Blockchain-for-Permission-Management | 3fcf2c2fad62a1219715cb106ef11aed857d8a71 | f063f3da2dc9c12d4c68332e309e402a67fd7a8b | refs/heads/main | 2023-06-05T14:41:05.237873 | 2021-06-26T21:13:38 | 2021-06-26T21:13:38 | 347,065,325 | 0 | 1 | MIT | 2021-05-26T11:49:34 | 2021-03-12T12:51:50 | Python | UTF-8 | Python | false | false | 21,146 | py | from abc import (
ABC,
abstractmethod,
)
import json
from pathlib import (
Path,
)
from typing import (
Any,
Dict,
Iterable,
NamedTuple,
Tuple,
Type,
TypeVar,
Union,
cast,
)
from eth_typing import (
URI,
Address,
ChecksumAddress,
ContractName,
Manifes... | [
"[email protected]"
] | |
2c2eba017b299584cc34574addc7412cb5c9635b | 8ed4bf9fbead471c9e5f88e4d18ac432ec3d628b | /hackerrank/algorithm/string/gem_stones.py | e3ff22b12568fff4bf1fd684c35dd47da7151f2d | [] | no_license | hizbul25/programming_problem | 9bf26e49ed5bb8c9c829d00e765c9401222fb35c | 2acca363704b993ffe5f6c2b00f81a4f4eca7204 | refs/heads/master | 2021-01-10T22:28:26.105787 | 2018-01-21T16:45:45 | 2018-01-21T16:45:45 | 65,394,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | #URL: https://www.hackerrank.com/challenges/gem-stones
n = int(input())
all_elem = set(input())
for g in range(n - 1):
all_elem &= set(input())
print(len(all_elem))
| [
"[email protected]"
] | |
9df035da71a8354e73397ed5fd9483a3a837b5d5 | 62e985b6bc2cd04be506c9f4b586f6a0bd5a8b1c | /docs/_docs | 2e46ca4836023863c54a487374eead67897a2d9d | [
"MIT"
] | permissive | delfick/nose-focus | ece09553d26ce4323e449b5e50f98e63a21d1699 | 89ceae691fabb27c35d4a67f0edf8dec17737f3f | refs/heads/master | 2023-07-10T22:44:29.271678 | 2023-06-23T06:36:00 | 2023-06-23T06:36:00 | 20,155,739 | 0 | 3 | null | 2019-11-06T22:59:43 | 2014-05-25T13:57:39 | Python | UTF-8 | Python | false | false | 512 | #!/usr/bin/env python3
from venvstarter import ignite
import runpy
import os
this_dir = os.path.dirname(__file__)
nose_focus_version = runpy.run_path(
os.path.join(this_dir, "..", "nose_focus", "__init__.py")
)["VERSION"]
with open(os.path.join(this_dir, "requirements.txt"), "r") as fle:
deps = [line.strip(... | [
"[email protected]"
] | ||
e842d47c65b49f7baf66ad14c86f7b7c9b1e413b | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /BitPim/rev3177-3237/right-branch-3237/midifile.py | 2c8d9d84bbc3c8f068fe079043d3fd8f31067e0b | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,795 | py | import common
import fileinfo
module_debug=False
class MIDIEvent(object):
META_EVENT=0
SYSEX_EVENT=1
SYSEX1_EVENT=2
MIDI_EVENT=3
LAST_MIDI_EVENT=4
type_str=('Meta', 'SYSEX', 'SYSEX cont', 'MIDI', 'Last MIDI')
def __init__(self, file, offset, last_cmd=None):
self.__f=file
self... | [
"[email protected]"
] | |
33490b42c85fee01be3f6432c411c486ae7157e5 | aca253ff1a97c96a1a0a9a5802aa623789662bb1 | /p034/statue_bar.py | ebd6c7ce45949c996b6d834401e27a09c8df4f7f | [] | no_license | KD-huhu/PyQt5 | a6128a34b93f6e2da7216d5818f66dc9614216bc | 1c33a6549c2fcf663168256553d8c24e25d9a69c | refs/heads/master | 2022-07-03T07:37:29.837547 | 2020-05-17T14:54:39 | 2020-05-17T14:54:39 | 261,768,854 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import sys, math
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
class StatusBar(QMainWindow):
def __init__(self):
super(StatusBar, self).__init__()
self.initUI()
def initUI(self):
self.setWindowTitle("状态栏演示")
self.resize(300, 20... | [
"[email protected]"
] | |
c73005c81aaec8e7c0613dea2e18f7b12afbb9dd | f45cc0049cd6c3a2b25de0e9bbc80c25c113a356 | /LeetCode/双指针(two points)/16. 3Sum Closest.py | 999c518d3f03cb923594bff7a42b551b460d21fb | [] | no_license | yiming1012/MyLeetCode | 4a387d024969bfd1cdccd4f581051a6e4104891a | e43ee86c5a8cdb808da09b4b6138e10275abadb5 | refs/heads/master | 2023-06-17T06:43:13.854862 | 2021-07-15T08:54:07 | 2021-07-15T08:54:07 | 261,663,876 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | '''
Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each input would have exactly one solution.
Example:
Given array nums = [-1, 2, 1, -4], and target = 1.
The sum that is closest t... | [
"[email protected]"
] | |
70add22be9a70d8ceca4e71014665764dd5f5aff | bc2945c99f828083ca78b3bfcfe220a134fbd8b0 | /users/migrations/0010_auto_20200725_1159.py | c0fe7d7e4a714113bfff57bc26a2b57875bf0f3a | [] | no_license | Kyeza/web_system | 5bde9231551b7a94b535fe707db99ade351bd4fb | 686a701469b13454d39e4f0c6b342b22befdb345 | refs/heads/uganda-master | 2022-12-14T13:43:17.833502 | 2020-12-11T07:23:19 | 2020-12-11T07:23:19 | 176,704,006 | 2 | 1 | null | 2022-12-08T11:07:51 | 2019-03-20T09:55:33 | Python | UTF-8 | Python | false | false | 612 | py | # Generated by Django 3.0.6 on 2020-07-25 11:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reports', '0014_auto_20200605_0638'),
('users', '0009_auto_20200721_0727'),
]
operations = [
migrat... | [
"[email protected]"
] | |
00c870418471d3cbd644cbea12a5c9bdb8ff5530 | f8a114b410803515195a156bc678d76a990d1f83 | /config/settings/base.py | 58f39d4a9fcd2124f896be5e4d4bfe7177a1ba1d | [
"MIT"
] | permissive | mahidul-islam/chatbot_cookiecutter | 86c03941f56e815d4b27fbfec2e7499aa675b065 | 52c8cdf01147b647e076d5dbe5fa1cc13b0bf1ee | refs/heads/master | 2022-12-08T14:20:55.851457 | 2020-08-28T16:27:54 | 2020-08-28T16:27:54 | 291,094,465 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,971 | py | """
Base settings to build other settings files upon.
"""
from pathlib import Path
import environ
ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
# chatbot/
APPS_DIR = ROOT_DIR / "chatbot"
env = environ.Env()
READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=False)
if READ_DOT_ENV_... | [
"[email protected]"
] | |
14ec29e30beb9428142b51e4d0cb06ebde3e6971 | a23ec1e8470f87d1b3fa34b01506d6bdd63f6569 | /algorithms/282. Expression Add Operators.py | 3f93dd1ffb26e5d220725678cb98469a2ceaaf91 | [] | no_license | xiaohai0520/Algorithm | ae41d2137e085a30b2ac1034b8ea00e6c9de3ef1 | 96945ffadd893c1be60c3bde70e1f1cd51edd834 | refs/heads/master | 2023-04-14T17:41:21.918167 | 2021-04-20T13:57:09 | 2021-04-20T13:57:09 | 156,438,761 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | class Solution(object):
def addOperators(self, num, target):
"""
:type num: str
:type target: int
:rtype: List[str]
"""
res, self.target = [], target
for i in range(1,len(num)+1):
if i == 1 or (i > 1 and num[0] != "0"): # prevent "00*" as a number
... | [
"[email protected]"
] | |
3487f385af9cf1c3384d8a9a9c5360459fd67f89 | 93dd86c8d0eceaee8276a5cafe8c0bfee2a315d3 | /python/paddle/fluid/tests/unittests/ir/test_ir_fc_fuse_pass.py | cb485609b55ec330ad7dff0ed4d10d8a13a8f865 | [
"Apache-2.0"
] | permissive | hutuxian/Paddle | f8b7693bccc6d56887164c1de0b6f6e91cffaae8 | a1b640bc66a5cc9583de503e7406aeba67565e8d | refs/heads/develop | 2023-08-29T19:36:45.382455 | 2020-09-09T09:19:07 | 2020-09-09T09:19:07 | 164,977,763 | 8 | 27 | Apache-2.0 | 2023-06-16T09:47:39 | 2019-01-10T02:50:31 | Python | UTF-8 | Python | false | false | 1,978 | py | # Copyright (c) 2019 PaddlePaddle 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 app... | [
"[email protected]"
] | |
7024ae05ff1844eca1d1409094787f626f186dca | 98ebce5d5fbf3eb36642b3ffefe51ffcb81e9d5a | /uv/asgi.py | 3a64a8aef60b33aa8102ee73af4ce975123cecea | [
"CC0-1.0"
] | permissive | codesankalp/E-commerce-Website | cf5d07587e790761b07e68b47669f7cf1f25269b | 9091a7e27a9e63242b9067377a697196879fc707 | refs/heads/master | 2023-01-19T23:29:51.071061 | 2020-11-25T07:35:09 | 2020-11-25T07:35:09 | 286,974,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | """
ASGI config for uv project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_M... | [
"[email protected]"
] | |
3e6274f68a32a64cdaad8f145058730bafa63415 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_scipy_numpy/source/numpy/distutils/system_info.py | d7eb49ecd6b2ad37af5555202623dde6a903977b | [
"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 | 85,533 | py | #!/bin/env python
"""
This file defines a set of system_info classes for getting
information about various resources (libraries, library directories,
include directories, etc.) in the system. Currently, the following
classes are available:
atlas_info
atlas_threads_info
atlas_blas_info
atlas_blas_threads_info
... | [
"[email protected]"
] | |
b20a8ceb62e68cea4660e241d323d08b5c8a9a34 | b05b89e1f6378905bbb62e2a2bf2d4f8e3187932 | /contiguousSubarrayWithMaxSum.py | cca7da339ae673798a2108e9eca5e36101113136 | [
"MIT"
] | permissive | anishmo99/Daily-Interview-Pro | c959cd336209132aebad67a409df685e654cfdfc | d8724e8feec558ab1882d22c9ca63b850b767753 | refs/heads/master | 2023-04-10T08:09:46.089227 | 2021-04-27T07:27:38 | 2021-04-27T07:27:38 | 269,157,996 | 1 | 1 | MIT | 2020-06-08T07:09:19 | 2020-06-03T17:57:21 | C++ | UTF-8 | Python | false | false | 257 | py | class Solution:
def maxSubArraySum(self, arr: List[int]) -> int:
cur_sum,max_sum=arr[0],arr[0]
for i in range(1,len(arr)):
cur_sum = max(arr[i],arr[i]+cur_sum)
max_sum = max(cur_sum,max_sum)
return max_sum | [
"[email protected]"
] | |
2d7ea85777003a35886a2ed9a54c7eacb02feeac | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/kfa.py | fa58bfbad8c36ae3ec8f5d8bfeacb3f8cb899cab | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"[email protected]"
] | |
aaac6a94ac555dc58dda780437398f3de9ad0d12 | 8ae5c8bd19fe77c44b8485f646ff78db2605522a | /control/test.py | fd1e4612d0f2926ef1c3bc836f63ac6f6fbc1337 | [] | no_license | yunshengtian/pendular-codesign | 8bec44de67401d8db9b3e19b9afe4808e6eb84bd | 7f939bb0b00907b367a9ad89a5004ecb3a6aad78 | refs/heads/main | 2023-05-03T22:54:07.379998 | 2021-05-23T04:57:25 | 2021-05-23T04:57:25 | 368,543,614 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import gym
import numpy as np
from argparse import ArgumentParser
import os, sys
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))
import env
from env.utils import utils
from control import get_control
parser = ArgumentParser()
parser.add_argument('--env', type=str, default='pendulum', ... | [
"[email protected]"
] | |
64618a6ac65022117f48efe65d74d536eb1d4461 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AntfortuneEquityShopCustrelationQueryRequest.py | fa4fa39402e4465d04ccbe7c01ba6dec5c1768fa | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 4,021 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AntfortuneEquityShopCustrelationQueryModel import AntfortuneEquityShopCustrelationQueryModel
class AntfortuneEquityShopCustrelationQ... | [
"[email protected]"
] | |
7a90a3c285d5b1d163f9550befa75c5b01f6fdc4 | 0b3c5260cd5c33a1beccc5710a5d0fd097a5ea15 | /anchore_engine/services/policy_engine/engine/policy/gates/npm_check.py | 40e0d49fe309d0fdfc2a14343f4df6cec46099e9 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | omerlh/anchore-engine | fb2d7cb3d8bd259f6c973b450fbaa2c2e00497f0 | 669a0327f8baaee3f5c7c64b482909fe38830d80 | refs/heads/master | 2021-09-02T12:48:51.661648 | 2018-01-02T19:26:47 | 2018-01-02T19:26:47 | 116,236,136 | 1 | 0 | null | 2018-01-04T08:41:39 | 2018-01-04T08:41:39 | null | UTF-8 | Python | false | false | 7,044 | py | from anchore_engine.services.policy_engine.engine.policy.gate import Gate, BaseTrigger
from anchore_engine.services.policy_engine.engine.policy.utils import NameVersionListValidator, CommaDelimitedStringListValidator, barsplit_comma_delim_parser, delim_parser
from anchore_engine.db import NpmMetadata
from anchore_engin... | [
"[email protected]"
] | |
f711172c3480c5580dd6594014f2a13fb124054c | f26dd860c8d764fc7a47bde656f393795cd8d763 | /david13.py | f0f78ee556259290f4fcefbd2eb9801ee2858e03 | [] | no_license | chokkuu1998/david | 8e9fa162f657c8b9bb55502f1cdd730a08ff0235 | 4dc999cdb73383b5a5d7ed3d98b2c1a4d6b5f7ee | refs/heads/master | 2020-03-28T17:05:04.046963 | 2019-07-16T08:07:37 | 2019-07-16T08:07:37 | 148,756,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | AA,BB=map(int,input().split())
CC=list(map(int,input().split()))
pp=list(map(int,input().split()))
qq=[]
rr=0
for i in range(AA):
x=pp[i]/C[i]
qq.append(x)
while B>=0 and len(qq)>0:
mindex=qq.index(max(qq))
if B>=C[mindex]:
rr=rr+pp[mindex]
B=B-C[mindex]
CC.pop(mindex)
pp.pop(min... | [
"[email protected]"
] | |
b70385e17427bd7ad30abd8179b7962f293e20f5 | 5837e04e53e0434c8b10eb9647804901d3a6ee7a | /pyseries/metrics/__init__.py | 77d6184c5b0dba8ce8889cd431ef362b1d01afb2 | [
"BSD-3-Clause"
] | permissive | nubiofs/pyseries | b26fd4dff4b55cc3b338a2ebee9260b91d6fa902 | 59c8a321790d2398d71305710b7d322ce2d8eaaf | refs/heads/master | 2020-04-05T14:18:35.453540 | 2014-10-27T17:47:54 | 2014-10-27T17:47:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | # -*- coding: utf8
from __future__ import division, print_function
'''
Array and time series metrics package
'''
| [
"[email protected]"
] | |
e8e08e4b4c84e23d22c92940cf1d38e721e9617e | dc80f94c1a244002db468fc7242d5fcaafe439dc | /powerdns_client/api/stats_api.py | 865ce4494cac1c4a36ceedb5e0f8587189c76576 | [
"MIT"
] | permissive | sanvu88/python-powerdns-client | f675e1ee162bb76190b41ddf0cfc34e2305a757b | 57dd0460995a5407c6f5c963553b4df0f4859667 | refs/heads/master | 2023-02-04T07:05:31.095951 | 2020-12-15T16:48:15 | 2020-12-15T16:48:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,803 | py | # coding: utf-8
"""
PowerDNS Authoritative HTTP API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.0.13
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absol... | [
"[email protected]"
] | |
6229e7231c45038a0d515693de51d6b3b5ee16fe | 9b10d8482a7af9c90766747f5f2ddc343871d5fa | /Gemtek/AutoTest/DropAP/WRTM-326ACN-DropAP2/premises/library/test.py | f158319fe329093f6d1fd74a233f2a489a42b9b0 | [] | no_license | DarcyChang/MyProjects | 86d33f5cf8bdfd4b21e64922e4eb25c1afc3c135 | 47efb2dfe13ace264f8943b59b701f39f23c4c17 | refs/heads/master | 2021-05-12T12:43:39.255082 | 2020-09-23T06:42:03 | 2020-09-23T06:42:03 | 117,419,269 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | __author__ = 'alu'
import re
import time
import cafe
from cafe.resp.response_map import ResponseMap
from collections import OrderedDict
from demo.alu_demo.User_Cases.test_lib import Teststeplib_e7 as e7_lib
res = "ONT Subscriber Info Status" \
"---------- --------------... | [
"[email protected]"
] | |
d95f0b89899c28fd7e790e02a64cba46aff3d59d | 1ad2ae0383341f2b92fe38173612be5d9c4970e8 | /polls/models.py | 75a460d4f5e68fc9d5052737ed7677900239b83f | [
"MIT"
] | permissive | pizzapanther/ppp | 9b0df90ddf2e52ffdaf43394026613dbd884c0e9 | 3286f39f8e90f3473841a154ff7189a3efd9ca94 | refs/heads/master | 2021-09-23T03:52:27.915606 | 2020-03-04T18:04:08 | 2020-03-04T18:04:08 | 222,154,111 | 0 | 0 | MIT | 2021-09-22T18:10:01 | 2019-11-16T20:16:27 | Python | UTF-8 | Python | false | false | 1,400 | py | from django.conf import settings
from django.db import models
from django.contrib.postgres.fields import ArrayField
class Presentation(models.Model):
title = models.CharField(max_length=100)
slug = models.SlugField(max_length=100)
def __str__(self):
return self.title
def current(self):
return self.po... | [
"[email protected]"
] | |
2b24ec034a34c513b9c6b1bd086580ec9964d106 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Geometry/HcalEventSetup/python/CaloTowerGeometryDBWriter_cfi.py | dc75ba33a6cedd5c4191026f97719656397c89c3 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 531 | py | import FWCore.ParameterSet.Config as cms
CaloTowerHardcodeGeometryEP = cms.ESProducer( "CaloTowerHardcodeGeometryEP" ,
appendToDataLabel = cms.string("_master")
)
CaloTowerGeometryToDBEP = cms.ESProducer( "CaloTowerGeometryToD... | [
"[email protected]"
] | |
35a47b027566248963ff354a2a07b0ef7377d61c | 1bccf0b1374dcfddfc3e320fd5b6af499334df2d | /scripts/hashtagUserCounts.py | 4a780d5a584536af79f7279e772bc4f2cc89c7c9 | [
"Unlicense"
] | permissive | chebee7i/twitter | 6b245f5a7b7510089b62d48567e6208e1fe8a1db | ec1d772c3ef7d2288ac8051efb8637378f3ec195 | refs/heads/master | 2021-01-01T16:25:13.242941 | 2015-06-24T19:39:24 | 2015-06-24T19:39:24 | 23,846,593 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,533 | py | """
Insert the number of users that tweeted each hashtag.
"""
import twitterproj
import pymongo
from collections import defaultdict
import itertools
import json
import os
import io
db = twitterproj.connect()
def add_user_counts(bot_filtered=True):
collection = db.tweets.with_hashtags
if bot_filtered:
... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.