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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d92223c9508f101deebe65756137d8735b9a4c70 | 519a27de1e55d639fefaa86f11b7f7fb8582736a | /test/test_destination_amazon_kinesis.py | 87fd97f90cb439400b0c8eeb0c8cc508f090313f | [
"Apache-2.0"
] | permissive | isabella232/api-client-python | fa3aec6633dc8effffbf9719d777a432492b9afd | 36de745c54091357bbfc0a938d537f249c12ad73 | refs/heads/master | 2023-01-13T08:02:51.811493 | 2020-11-20T01:07:03 | 2020-11-20T01:07:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | # coding: utf-8
"""
LaunchDarkly REST API
Build custom integrations with the LaunchDarkly REST API # noqa: E501
OpenAPI spec version: 3.9.0
Contact: support@launchdarkly.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unit... | [
"team@launchdarkly.com"
] | team@launchdarkly.com |
930c910daf609703efadea45e8e74c8057188bc2 | 09d349155446f2f32519cfc7deb7f79b1138a158 | /libgadu/actions.py | 38093a1616d7d6475e7d350ad5e852ccc211ca78 | [] | no_license | marcin-/pardususer.de | 632d7fb4c5a9252dbcf82711a5da126523d3b8e8 | 1d4bb1d1f9da113cf2b8cbcc6b544ec9b9616862 | refs/heads/master | 2016-09-05T23:22:38.726769 | 2012-10-08T20:40:39 | 2012-10-08T20:40:39 | 6,114,809 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def set... | [
"marcin.bojara@gmail.com"
] | marcin.bojara@gmail.com |
e82d835e74d834f0644015128875097a82a12687 | f91753e0360d89816436d12acd79897fdc87fba1 | /markymarkov/load.py | 974ff1b596ce77a8728376f356abfde49c4877c7 | [
"MIT"
] | permissive | MineRobber9000/markymarkov | 0fd04fba3d71f18656d3abcb84ad686f3d74f5a9 | 0dbf7bf9b219ba6369e0765713e9fe091fc256d5 | refs/heads/master | 2020-09-06T19:16:55.573322 | 2019-11-08T17:59:24 | 2019-11-08T17:59:24 | 220,521,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | import markovify
def load_from_filename(filename,cls=markovify.Text,*args,**kwargs):
with open(filename) as f:
return cls(f.read(),*args,**kwargs)
| [
"khuxkm@ttm.sh"
] | khuxkm@ttm.sh |
d283c2b60134ad041cbb6615793ad51861fa7659 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02389/s202587842.py | 2fcd85995e47e7484c1fd82c8aab1b1b0b1c90af | [] | 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 | 237 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
numbers = input().split(' ')
height = int(numbers[0])
width = int(numbers[1])
print(height * width ,height * 2 + width * 2)
return
if __name__ == '__main__':
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a3b959525dbcbd350efcbfc8c430800171841154 | ff81a9d7880f1b85a1dc19d5eba5ac72d7179c86 | /pychron/graph/plot_record.py | 20fa47b2910e3156cca1c1b3954402d9ee362496 | [
"Apache-2.0"
] | permissive | UManPychron/pychron | 2fb7e479a9f492423c0f458c70102c499e1062c4 | b84c9fd70072f9cbda30abe2c471e64fe3dd75d8 | refs/heads/develop | 2022-12-03T23:32:45.579326 | 2020-01-29T19:02:20 | 2020-01-29T19:02:20 | 36,100,637 | 0 | 0 | null | 2015-05-23T00:10:06 | 2015-05-23T00:10:05 | null | UTF-8 | Python | false | false | 1,726 | 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/licens... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
413e026002d18641c93b590985168911ca5861a3 | 528c811306faa4a34bf51fca7955b7a24ac2e30c | /Python/Add and Search Word - Data structure design.py | b6e9e1dee57787edeecf5ae6b59ae7e801ab4ef2 | [] | no_license | ganjingcatherine/LeetCode-1 | 1addbd7e4d9254a146601f9d5e28b8becb8235a6 | 488782d3f1e759da2d32b4e82dbf55b96c431244 | refs/heads/master | 2021-05-11T03:15:16.810035 | 2016-02-06T06:19:18 | 2016-02-06T06:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | """
Design a data structure that supports the following two operations:
void addWord(word)
bool search(word)
search(word) can search a literal word or a regular expression string containing only letters a-z or .. A . means it can represent any one letter.
For example:
addWord("bad")
addWord("dad")
addWord("mad")
sea... | [
"anthonyjin0619@gmail.com"
] | anthonyjin0619@gmail.com |
157bd5485b5637b9858922bd3d217ac12a7a0657 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03290/s885273808.py | 391218252040131bb525bf9b35040f714d2a59e6 | [] | 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 | 673 | py | D,G = map(int,input().split())
PC = [tuple(map(int,input().split())) for i in range(D)]
ans = 9999
for b in range(1<<D):
sc = pr = 0
for i,(p,c) in enumerate(PC):
if b&(1<<i):
sc += c + (i+1)*100*p
pr += p
if sc >= G:
ans = min(ans, pr)
continue
remsc = G... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1ec92a756729ae9099a99085b0007f555d5589d5 | 518d911a66485947c5d336e96a842f162ef9caf1 | /res/scripts/client/gui/scaleform/framework/tooltip.py | ad81b6190b4569697dcd51e43fef7328d87bf185 | [] | no_license | wotmods/WOTDecompiled | 84b8e5d32ee73e1356b4d57318eb76dfac6b5220 | 45fd599666c55cb871f6b84b0ec977b9d4baf469 | refs/heads/master | 2020-12-25T21:34:26.096544 | 2014-11-05T13:58:39 | 2014-11-05T13:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,677 | py | # 2014.10.18 14:42:34 Central European Daylight Time
#Embedded file name: scripts/client/gui/Scaleform/framework/ToolTip.py
from gui.Scaleform.framework import AppRef
from debug_utils import LOG_DEBUG
from gui.Scaleform.framework.entities.abstract.ToolTipMgrMeta import ToolTipMgrMeta
from helpers import i18n, isPl... | [
"chodakk@RWAMWCOE31488.emea.roche.com"
] | chodakk@RWAMWCOE31488.emea.roche.com |
3d42280f905e99c3269d13a460893e66b4f4c8c6 | 1a8572f026d884a6528a84bed9bc23f6720e1563 | /python/lsst/afw/geom/python/__init__.py | aed12a3be5a7e54eb529b3ef945368d5f289ac9d | [] | no_license | gcmshadow/afw | 7ac487050f31ff0de627406986967112d4230d00 | 7bed000b91fe98b9ab0cf4b852630e2e7bd34b24 | refs/heads/master | 2023-02-19T15:42:08.219914 | 2021-01-19T18:55:44 | 2021-01-19T18:55:44 | 292,353,920 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | #
# LSST Data Management System
# Copyright 2017 LSST Corporation.
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
#
# 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 Softwar... | [
"rowen@uw.edu"
] | rowen@uw.edu |
8eafe2f220c1a45767b12f0e8dbbb33d3b61e10a | bc0d24a29fbdd4b053cadc68a000d1e096cefdef | /api/migrations/0001_initial.py | c5bee44a925b092e12427c7e960fcfbe60ab694f | [] | no_license | himdhiman/celery-example | 6bd84d455b30550656ad346895703c68cbc5c82a | 2655f30d14470ae7736e64a1651cacc01729ac41 | refs/heads/master | 2023-02-24T07:35:53.817510 | 2021-01-29T13:40:32 | 2021-01-29T13:40:32 | 334,155,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # Generated by Django 3.1.5 on 2021-01-29 13:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Name',
fields=[
('id', models.AutoField(aut... | [
"himanshudhiman9313@gmail.com"
] | himanshudhiman9313@gmail.com |
397f908ad622f913ff18c83a34da908ee118c3e1 | 0e4860fecfdd34a3255003cc8c8df086c14083dd | /python/practise/learn-python/python_basic/control_flow.py | d862afec4acf9ffbcec762d89708d426412225ef | [] | no_license | anzhihe/learning | 503ab9a58f280227011da5eaa4b14b46c678e6f3 | 66f7f801e1395207778484e1543ea26309d4b354 | refs/heads/master | 2023-08-08T11:42:11.983677 | 2023-07-29T09:19:47 | 2023-07-29T09:19:47 | 188,768,643 | 1,443 | 617 | null | 2023-08-24T02:10:34 | 2019-05-27T04:04:10 | Python | UTF-8 | Python | false | false | 2,993 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@FileName: control_flow.py
@Function: python control flow
@Author: Zhihe An
@Site: https://chegva.com
@Time: 2021/6/30
"""
"""一、流程控制的概述"""
"""
1996年,计算机科学家证明了这样的事实:任何简单或复杂的算法都可以由顺序结构、选择结构和
循环结构这三种基本结构组合而成。
顺序结构指的是:程序从上到下顺序地执行... | [
"anzhihe1218@gmail.com"
] | anzhihe1218@gmail.com |
2a29c84cf375663fd3f50594c1ea8c4d269088cb | f023a5c23851323fc7bef0e756e343da5a1cbad3 | /03_django/00_django_intro/django_intro/urls.py | 34746b067c90f8f4edb1df0e508c9dc0903020f0 | [] | no_license | 91hongppie/TIL | 26c1d3d8164166c4c909dee4646ef47abcf86260 | c99dadf11b93402fe64c3b4ee2306d0f68d13965 | refs/heads/master | 2023-01-11T19:42:44.194863 | 2021-09-14T12:39:14 | 2021-09-14T12:39:14 | 195,918,107 | 1 | 0 | null | 2023-01-07T17:27:07 | 2019-07-09T02:31:01 | Jupyter Notebook | UTF-8 | Python | false | false | 935 | py | """django_intro URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"91hongppie@gmail.com"
] | 91hongppie@gmail.com |
17ac0f25750c07e7e49e9f51655e2c97a2c52a28 | 65a5f74ede8079d693a70bd9597f063acfbf33fd | /model.py | a270acf153e0510fed4c8a4536318f54e68011a8 | [] | no_license | pombredanne/PyRevEng | 5372a8322313c81ce065c689eb4b816596c90f8b | 08083744806258cfa31edd0132456d70377a9f71 | refs/heads/master | 2020-09-20T06:55:24.020304 | 2019-11-11T17:18:38 | 2019-11-11T17:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,311 | py | #!/usr/local/bin/python3.2
#
# A list-based language to model instructions.
#
# Values are a tuple of (width, value) where value can be None if
# it is unknown, and False if it is unused.
#
# Syntax:
# ( Verb, arg, ...)
# "#0b..." binary constant, number of bits given sets width
# "#0x..." hex constant, number of nybbl... | [
"phk@FreeBSD.org"
] | phk@FreeBSD.org |
75bc0ea53f85b1a0df03537f0aa796d9a29caa33 | 2aed68d1ee14eb3fc344fe1e0db99b20f0c9a166 | /xnr/timed_python_files/warning/weibo_warming.py | 3a03ae1ad1d885ca9e4965625d36d12e902208f1 | [] | no_license | zhhhzhang/xnr1 | a8ab151d99e74124eae2ec15c61281a32cb9ce8d | bfa621916c9a787bcdff4573a06d12056e25c556 | refs/heads/master | 2020-03-19T04:56:22.330912 | 2018-05-30T12:00:12 | 2018-05-30T12:00:12 | 135,883,486 | 0 | 1 | null | 2018-06-03T07:35:36 | 2018-06-03T07:35:35 | null | UTF-8 | Python | false | false | 25,895 | py | #-*- coding: utf-8 -*-
'''
weibo warming function
'''
import os
import json
import time
import sys
reload(sys)
# import sqlite
import sqlite3
sys.path.append('../../')
# from timed_python_files.system_log_create import get_user_account_list
from parameter import DAY,MAX_VALUE,WARMING_DAY,UID_TXT_PATH,MAX_S... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
901c382d44299c80e4f5149a7fd0b82a9138a8b8 | a475692e93d85aece84da0158d9317d2be1e8fbe | /lfd/test/call_push_service.py | 1d436ee82822cb0f4530a73bba0d2d4bb4ccd66b | [] | no_license | warriorarmentaix/lfd | f83e20cd9b91a0ac719645669a1eb98f19fa9007 | ff07d53d8c7ed5a092ec05a03f57620d15bb98a0 | refs/heads/master | 2016-09-06T05:31:24.262555 | 2013-06-03T07:13:45 | 2013-06-03T07:13:45 | 10,400,184 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | import argparse
parser = argparse.ArgumentParser()
parser.add_argument("xyz",type=float,nargs=3)
args = parser.parse_args()
import rospy
import numpy as np
import roslib; roslib.load_manifest("verb_msgs")
from brett2.ros_utils import xyzrgb2pc
from verb_msgs.srv import *
rospy.init_node("call_push_service")
rospy.wait... | [
"joschu@rhino.(none)"
] | joschu@rhino.(none) |
b34cb31225f712351cab0e053a64779f42ec8d14 | 8880e3b48abfbf75167577b3dd6e60ce28dcbf8c | /Hadoop/TheUltimateHandsonHadoop-TameYourBigData/4_Spark/LowestRatedMovie.py | 5ec86c365415e7f7d7b2b04194e70a95dbb854c8 | [] | no_license | arara90/Data-Engineering-self-study | 177531de9e6591ce8b54abcf10eebf952be3c5a2 | ffd2fc5898864949e3b965dde3b6ec0bd6e9c53e | refs/heads/master | 2020-06-26T08:31:45.004374 | 2019-08-29T14:24:48 | 2019-08-29T14:24:48 | 199,584,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | from pyspark.sql import SparkSession
from pyspark.sql import Row
from pyspark.sql import functions
def loadMovieNames():
movieNames = {}
with open("ml-100k/u.item") as f:
for line in f:
fields = line.split('|')
movieNames[int(fields[0])] = fields[1]
return movieNames
def pa... | [
"ararajo@gmail.com"
] | ararajo@gmail.com |
ae6023df23ae3089df5888be102a9afbe480e4ed | 0309bd25cdd8e89297f507be202634b07f5f6e85 | /LeetCode/Easy/Python3/longestpalindrome.py | b69ec7bc70d86b08fa18f680946e65b9e50bd9b7 | [] | no_license | AmyShackles/algo-practice | 10fc4a5c5926232ff2b0aed6183cec9f21bf15f3 | 876e3be57357651348465f70ab312d4ac98d667a | refs/heads/main | 2023-04-03T08:29:33.725236 | 2021-04-13T19:20:18 | 2021-04-13T19:20:18 | 338,672,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | # Source: https://leetcode.com/problems/longest-palindrome/
class Solution:
def longestPalindrome(self, s: str) -> int:
pass
| [
"amyshackles@gmail.com"
] | amyshackles@gmail.com |
1a2419ff8b4af410d4c944df3d105dbda27e53c0 | cb13037cdbd3e0ab6108670108e9497cc1e2a5a7 | /data_analysis/1.fundamentals/matplotlib/2.子图/1.子图.py | 5bc46e18b734581f70330321bcbe156e091bdf5a | [] | no_license | GMwang550146647/network | 390fe0d1c72dcaca8b6d6dd1307adca0d56b55ce | 576de9b993f7763789d25a995702b40c9bc6fa57 | refs/heads/master | 2023-06-15T04:42:54.306077 | 2021-07-12T06:06:02 | 2021-07-12T06:06:02 | 315,488,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | import random
import matplotlib.pyplot as plt
from matplotlib import style
def create_plots():
xs = []
ys = []
for i in range(10):
x = i
y = random.randrange(10)
xs.append(x)
ys.append(y)
return xs, ys
style.use('fivethirtyeight')
fig = plt.figure()
ax1 = plt.subplot2... | [
"550146647@qq.com"
] | 550146647@qq.com |
38651f90fde2c3e181a78ef0f492b53c0c6f0a32 | c9dc1df17ecb9e279eb4403b83358363cdbe7fee | /project/blog/migrations/0007_auto_20180302_0541.py | 7462b76fbb44de0ef1e34a8bba938ce61502f1b7 | [] | no_license | m0nte-cr1st0/keyua | c3894a94c9bfe73409078be11cb1d3f64831054c | b964ebb7e260fbebdbc27e3a571fed6278196cac | refs/heads/master | 2022-11-25T16:03:51.882386 | 2020-01-09T12:57:54 | 2020-01-09T12:57:54 | 232,809,529 | 0 | 0 | null | 2022-11-22T02:24:49 | 2020-01-09T12:58:10 | Python | UTF-8 | Python | false | false | 357 | py | # Generated by Django 2.0 on 2018-03-02 05:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0006_auto_20180226_0554'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'verbose_name_plur... | [
"dinamo.mutu111@gmail.com"
] | dinamo.mutu111@gmail.com |
4862c801acd6468486ebeff1527c994ab5caa7af | 3becbea263beaaf6ea1325570129bd23afeedf17 | /app/views.py | 957b6cc041f5db70bf0bf3fe26d187b7f485e7e7 | [] | no_license | liuchangyin/ShadowSocksShare-OpenShift | e67f488b55c6e063cca1b00f9d2795d8a1a4c691 | 4d3f991093884019e78027a886e3db18a6acc4cb | refs/heads/master | 2021-06-29T05:11:01.488284 | 2017-09-25T10:08:15 | 2017-09-25T10:08:15 | 104,886,244 | 1 | 0 | null | 2017-09-26T13:11:07 | 2017-09-26T13:11:07 | null | UTF-8 | Python | false | false | 4,886 | py | #!/usr/bin/env python
# -*- utf-8 -*-
import base64
import random
import time
import threading
import os
from app import app
from app.ascii import birthday_2017
from app import ss_free
from app import ss
from flask import render_template, send_from_directory, abort
servers = ss_free.main()
curtime = time.ctime()
dec... | [
"charl3s.xu@gmail.com"
] | charl3s.xu@gmail.com |
c7606b99f0fd1a74a567a184693771f279468f67 | 580b732be576cc29a93b4be5e702c5332ba3c076 | /python/summary_updater/summary_updater/sql_run.py | 0df30a95e7047c80005f818c3c5ad74f67f94e92 | [] | no_license | gina-alaska/imiq-database | 7b1ec68f39500657f1baf4842a038dc616429516 | 4e62c97a0e7e41f439cb71543d0d694e831ad700 | refs/heads/master | 2021-01-01T17:05:50.754422 | 2018-08-26T17:10:08 | 2018-08-26T17:10:08 | 13,485,104 | 1 | 0 | null | 2018-07-23T21:32:33 | 2013-10-10T23:08:12 | PLpgSQL | UTF-8 | Python | false | false | 3,237 | py | """sql_run.py
Rawser Spicer
a utility for running a sql script or directory of sql scripts
version 1.0.0
updated: 2017-03-23
"""
import os
import sys
from datetime import datetime
from pandas import read_csv, DataFrame
from utilitools import posthaste as ph
def update_mat_views(login):
s = ph.PostHaste(*ph.lo... | [
"rwspicer@alaska.edu"
] | rwspicer@alaska.edu |
e150a73d431e8d583ad1ed8972fc3f6598a21471 | 625f2f86f2b2e07cb35204d9b3232427bf462a09 | /HIRun2015PbPb/privateMC/SingleGammaFlatPt10To200-1511/SingleGammaFlatPt10To200_pythia8_cfi_GEN_SIM.py | f503af5dbe089c0b6cb327ac9aea53eca9801a33 | [] | no_license | ttrk/production | abb84c423a076fd9966276b7ed4350936c755e0b | f8a64c9c38de215802799365f0f7a99e1ee78276 | refs/heads/master | 2023-02-08T23:48:56.355141 | 2023-01-26T08:46:22 | 2023-01-26T08:46:22 | 52,877,406 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,611 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/SingleGammaFlatPt10To200_pythia8_cfi --conditions auto:run2_mc_HIon --scenario HeavyIons -n 5 --eventcon... | [
"tatark@mit.edu"
] | tatark@mit.edu |
3f0125c1003b2f1f59df379cfb4bf13206be6976 | e42ad00c339799aa39db80c5252e5c1deb3e924f | /StudentInformation/models.py | 947c134d55b1bd74d5ccaca4a0e5644229092167 | [] | no_license | tasim313/python_assignment_1 | 4418b799e751c3f81d420bd4c1c594dd09d97f6a | fba033d2f51276c2154c0691d3742fb383e0b5c2 | refs/heads/main | 2023-07-18T09:07:06.419163 | 2021-09-05T11:22:33 | 2021-09-05T11:22:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | from django.db import models
# Create your models here.
class Student(models.Model):
id = models.AutoField(primary_key=True)
st_id = models.CharField(max_length=264, verbose_name='ID', null=True, blank=True)
name = models.CharField(max_length=264, verbose_name="Name", null=True, blank=True)
age = mod... | [
"mostasimmahmudtasim@gmail.com"
] | mostasimmahmudtasim@gmail.com |
b91d9bfa8da56c05451c8dcde73952cb288fdd30 | ff23900a911e099595c392a7efab1d268b4f5f7d | /examples/docs_snippets/docs_snippets/concepts/assets/asset_metadata.py | 3b96e4227eca1c4723fcd1ab771880d82a37125a | [
"Apache-2.0"
] | permissive | zkan/dagster | bbf2da091bdc7fca028c569db72b9c68ddf55e98 | b2b19edb71fc8985f505b116927350dd23b4a7d9 | refs/heads/master | 2022-08-24T03:20:12.583577 | 2022-08-16T00:01:23 | 2022-08-16T00:01:23 | 244,012,061 | 0 | 0 | Apache-2.0 | 2020-02-29T17:33:24 | 2020-02-29T17:33:24 | null | UTF-8 | Python | false | false | 146 | py | from dagster import asset
# start_example
@asset(metadata={"cereal_name": "Sugar Sprinkles"})
def cereal_asset():
return 5
# end_example
| [
"noreply@github.com"
] | zkan.noreply@github.com |
da8023f1038e0089cdacc564d911882c9c4b7946 | 1e09bc56bf2904b349df1873e11da3d527437880 | /lecture-12/sample.py | e935f03c3e9b42147f762f40db25b349cf7fc164 | [] | no_license | codeforcauseorg-archive/DSA-Live-Python-Jun-0621 | f3444f5671cb4985644c7432517477c3585c70fb | e4fe544178d7851c24755242390f39675b99fabe | refs/heads/main | 2023-08-09T08:31:41.449120 | 2021-09-14T16:44:39 | 2021-09-14T16:44:39 | 384,725,085 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | name = "mohit"
index = 0
print(name[:index] + name[index+1:])
| [
"anujgargcse@gmail.com"
] | anujgargcse@gmail.com |
8f90c1ab41b6af19309292b631c6d5e33847aa79 | 731c3f2f85f6002725322eedc0b2c8b5e74f610e | /jakc_pos_credit_card/models/jakc_pos_credit_card.py | 4a4c20c2adefcbbbed9bc28c12704ec3f443c04f | [] | no_license | babarlhr/project-0021 | 1ac824657f893c8f25d6eb3b839051f350d7cc9d | e30b8a9f5d2147d3ca5b56b69ec5dbd22f712a91 | refs/heads/master | 2021-09-22T15:45:47.431000 | 2018-09-11T14:59:49 | 2018-09-11T14:59:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,067 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import logging
import sets
from openerp import models, fields, api, _
_logger = logging.getLogger(__name__)
class account_bank_statement_line(models.Model):
_inherit = "account.bank.statement.line"
cardnumber ... | [
"wahhid@gmail.com"
] | wahhid@gmail.com |
ab80b5de04202408a40bb16ffa139e08a1a55644 | 746cd1d11eb24e7a987f2dd4db72b68a8e0a5b99 | /android/external/adt-infra/build/scripts/slave/recipe_modules/tryserver/api.py | 0ac2f634ebaaedd0a34d61ee64530b0e8cd47d73 | [] | no_license | binsys/BPI-A64-Android7 | c49b0d3a785811b7f0376c92100c6ac102bb858c | 751fadaacec8493a10461661d80fce4b775dd5de | refs/heads/master | 2023-05-11T18:31:41.505222 | 2020-07-13T04:27:40 | 2020-07-13T12:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,527 | py | # Copyright 2014 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.
import contextlib
import hashlib
from recipe_engine import recipe_api
PATCH_STORAGE_RIETVELD = 'rietveld'
PATCH_STORAGE_GIT = 'git'
PATCH_STORAGE_SVN = 's... | [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
0e06756a2c7c6666a814eed4310871c5a83d6319 | 1195c2b881a3ff984c2d9d1110560d0b5a5caba8 | /page_type_predict.py | f9f50e15b846701629b87e524ebbb4d2cb1c6ef0 | [] | no_license | DMStudent/is_hub | 34b389070164f6f31c3d7e058d6b17189133166b | 89f4ce471a94764a34f9c97d35f7dd18e3c271bd | refs/heads/master | 2021-06-29T00:31:32.317575 | 2017-09-20T04:09:15 | 2017-09-20T04:09:15 | 104,163,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | import logging
from libsvm.svmutil import svm_load_model, svm_predict
class PageTypePredictor(object):
def __init__(self, model_file):
self.model = None
self.svm_model_file = model_file
self.load_model()
def load_model(self):
self.model = svm_load_model(self.svm_model_fi... | [
"wyxidian@gmail.com"
] | wyxidian@gmail.com |
022437fa854b62748de1b7d8ab908566d964d016 | 99d7a6448a15e7770e3b6f3859da043300097136 | /src/database/adapters/power_map_adapter.py | c767fd372e8c4d7cf260b267c7fa06479dcb8ba4 | [] | 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 | 2,457 | py | #===============================================================================
# Copyright 2012 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 |
8f3580f15a0535818afd8b55dfa10c90e69a7f12 | 2d191eb46ed804c9029801832ff4016aeaf8d31c | /configs/ssl/mt_ocrnet_hr48_512x1024_80k_b16_cityscapes_u3k_w20_soft_sharpen_aux_t3.py | c7e7b2d27d649b4d0508ceae2d38f6049e916cbe | [
"Apache-2.0"
] | permissive | openseg-group/mmsegmentation | df99ac2c3510b7f2dff92405aae25026d1023d98 | 23939f09d2b0bd30fc26eb7f8af974f1f5441210 | refs/heads/master | 2023-03-02T07:49:23.652558 | 2021-02-15T04:16:28 | 2021-02-15T04:16:28 | 278,537,243 | 2 | 2 | null | 2020-07-10T04:24:16 | 2020-07-10T04:24:15 | null | UTF-8 | Python | false | false | 2,576 | py | _base_ = [
'../_base_/models/ocrnet_hr18.py',
'../_base_/datasets/cityscapes_custom.py',
'../_base_/default_runtime.py',
'../_base_/schedules/schedule_80k.py'
]
norm_cfg = dict(type='SyncBN', requires_grad=True)
model = dict(
type='CascadeMeanTeacherEncoderDecoder',
pretrained='open-mmlab://msra... | [
"yhyuan@pku.edu.cn"
] | yhyuan@pku.edu.cn |
28efde3ecd879bcb50ab9678d270414635d291b9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/109/usersdata/260/63308/submittedfiles/av2_p3_civil.py | 47ef8859b787be0f5dd73038c31f47b0f1b09afb | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | # -*- coding: utf-8 -*-
n=int(input("digite o valor da dimenão:"))
indice=float(input("digite o indice da posição desejada:"))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
bc3a88b36ce5853cf5160c54c134409de518e988 | 7cf119239091001cbe687f73018dc6a58b5b1333 | /datashufflepy-zeus/src/branch_scripts2/NEWS/ZX_CJXW_GJJRJG/ZX_CJXW_GJJRJG_ZHRMGHGSWJ_XWFB.py | e0e3236a14f2b8ea9763b8390a3538dd08035b06 | [
"Apache-2.0"
] | permissive | ILKKAI/dataETL | 0f5b80c3482994f735f092a1e01fa1009bac4109 | 32f7ec3aaaf32b5074536a615cb9cd5c28bd499c | refs/heads/master | 2022-04-04T19:27:05.747852 | 2020-02-28T11:17:48 | 2020-02-28T11:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # -*- coding: utf-8 -*-
from database._mongodb import MongoClient
def data_shuffle(data):
return data
if __name__ == '__main__':
main_mongo = MongoClient(entity_code="ZX_CJXW_GJJRJG_ZHRMGHGSWJ_XWFB", mongo_collection="ZX_CJXW_HY")
data_list = main_mongo.main()
for data in data_list:
re_data... | [
"499413642@qq.com"
] | 499413642@qq.com |
4001b80b63b699ba2f2fe9670a1ea53c1f71ef0f | c60d956f0def89f2afdc014fce2218deef6096f0 | /tests/shakedown/shakedown/clients/recordio.py | 7d194bb684b1e4d928efd39dc08af2ef11c89ff9 | [
"Apache-2.0"
] | permissive | criteo-forks/marathon | 9691af7936ac624c0f3d8b3e51e140b6ce9276ff | 02137d3b4fd9a56fc56966312a300982fb690300 | refs/heads/criteo/1.9.109 | 2023-03-15T23:12:32.960763 | 2023-03-10T15:39:00 | 2023-03-10T15:39:00 | 50,347,255 | 1 | 10 | Apache-2.0 | 2023-09-12T22:55:56 | 2016-01-25T11:48:51 | Scala | UTF-8 | Python | false | false | 5,440 | py | """
Provides facilities for "Record-IO" encoding of data.
"Record-IO" encoding allows one to encode a sequence
of variable-length records by prefixing each record
with its size in bytes:
5\n
hello
6\n
world!
Note that this currently only supports record lengths
encoded as base 10 integer values with newlines as a
del... | [
"noreply@github.com"
] | criteo-forks.noreply@github.com |
1b6e26d780325df34efdc5270485b3a40eac3cd1 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnproconsul.py | a57d9ff3c0b4535a017b2cb5bc00fe9da1d9bb24 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 121 | py | ii = [('LeakWTI2.py', 7), ('WilkJMC2.py', 1), ('CoolWHM.py', 1), ('GodwWLN.py', 2), ('MereHHB.py', 1), ('JacoWHI.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
47619fd5c7f93f381165622972a15fc5f2b0e49f | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2910/60774/295948.py | 78657b70ec2149c82fa314f348862b68f12700cf | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | n = int(input())
recLst = []
for i in range(0,n):
s = input().split(' ')
recLst.append([int(s[0]),int(s[1])])
start = max(recLst[0])
for i in range(1,n):
if(start >= max(recLst[i])):
start = max(recLst[i])
elif(start >= min(recLst[i])):
start = min(recLst[i])
else:
print('NO'... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f925ae0a70aafd8009f997fa4efc869071673fb8 | bc899480ea50049929e6ba7a2836e39a51d0faa3 | /leetcode/misc/DFS/preorder_binary_tree.py | b80018d671f61c7e77b759a6000f3f423e5ef35e | [] | no_license | grewy/practice_py | 605a88f40eb54f7ac0fd54a1ab2d6bfdfae57b49 | b00f649598a6e57af30b517baa304f3094345f6d | refs/heads/master | 2021-07-09T01:33:07.158778 | 2020-10-15T12:33:06 | 2020-10-15T12:33:06 | 199,878,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py |
def preOrder(root):
"""
Pre-order traversal of tree
"""
if not root:
return
stack = []
result =[]
stack.append(root)
while stack:
curr = stack.pop()
if curr:
stack.append(curr.right)
stack.append(curr.left)
result.append... | [
"mgatuiet@gmail.com"
] | mgatuiet@gmail.com |
5fd1def082834216c4547a70d03d1462bed7873d | 931d0df1e7a118dd8f836aa47da00df1689c6fa9 | /tests/pr2_convexify_pointcloud.py | a4f3de46f66ba0466f4313e1e263fd4f40af8496 | [] | no_license | mDibyo/pr2 | d47780d2c8e220fed95f3f00464281afb6f88fea | 471da4f66d5756a9e5536b073f9bdfffeb480be3 | refs/heads/master | 2021-01-15T09:38:21.414119 | 2015-01-25T01:54:54 | 2015-01-25T01:54:54 | 29,798,729 | 0 | 1 | null | 2015-01-25T01:40:23 | 2015-01-25T01:40:22 | null | UTF-8 | Python | false | false | 1,150 | py | import rospy
import sensor_msgs.msg as sm
from pr2 import convexify_pointcloud
from pr2_sim import simulator, arm, camera
import IPython
class TestConvexifyPointcloud:
def __init__(self):
self.pc = None
self.pc_sub = rospy.Subscriber('/cloud_pcd', sm.PointCloud2, self._pc_callback)
... | [
"gkahn13@gmail.com"
] | gkahn13@gmail.com |
4da129d6edec07d9e633879e214afe185b39e3a1 | 39b0ce74ead84afeeb485244991f0f64ff7c820f | /modules/library/azure_rm_devtestlabsschedule.py | 2f8d8411229c577792fdda7693204a8c38768703 | [
"MIT"
] | permissive | testormoo/ansible-azure-complete | 6ef7b86e7831179007c74d70b66c2bc4fa825197 | 818bce73baad38cd0a2d3370331e9c7462ae672a | refs/heads/master | 2020-04-09T07:24:42.656441 | 2018-12-03T02:08:52 | 2018-12-03T02:08:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,639 | py | #!/usr/bin/python
#
# Copyright (c) 2018 Zim Kalinowski, <zikalino@microsoft.com>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"zikalino@microsoft.com"
] | zikalino@microsoft.com |
133e74a996eab367cb69859fceee49698792e7a7 | 20ea0f7905ac1c036a49716b8d746d3a0b2d459d | /tests/test_commands.py | 0fe3325f3ababf59d2362023f631f0988fb842e0 | [
"MIT"
] | permissive | Knapstad/nikola | be757954f49aab10f8062c694ebe3a348b9a662d | 92a04244bb4d9ff952392794f778e0246bc53f2f | refs/heads/master | 2023-04-05T11:28:15.906654 | 2022-11-08T09:42:36 | 2022-11-08T09:42:36 | 129,942,911 | 0 | 0 | MIT | 2023-03-17T04:59:17 | 2018-04-17T17:43:43 | Python | UTF-8 | Python | false | false | 251 | py | # -*- coding: utf-8 -*-
import unittest
from nikola.plugins.command.version import CommandVersion
class CommandVersionCallTest(unittest.TestCase):
def test_version(self):
"""Test `nikola version`."""
CommandVersion().execute()
| [
"kwpolska@gmail.com"
] | kwpolska@gmail.com |
633533ec6073e9a26c33d50e32df98845b08b717 | eb64fca144a901cdc73a4e9554f4ffbdbc5543c4 | /slyr_community/qgis_plugin/provider.py | 689c971aaffa916ef1b4248c821c7fd5269de23d | [] | no_license | xiaojiujiu999/slyr | 9e97650ace8a237c842b2e9e72d5486e70173c13 | 8569f2fb7c7cd903f58be69a7ac3e495ce2f00c2 | refs/heads/master | 2023-01-19T02:55:22.091761 | 2020-11-30T00:09:20 | 2020-11-30T00:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | # -*- coding: utf-8 -*-
# /***************************************************************************
# provider.py
# ----------
# Date : September 2019
# copyright : (C) 2019 by Nyall Dawson, SMEC
# email : nyall.dawson@gmail.com
#
# *******************************... | [
"nyall.dawson@gmail.com"
] | nyall.dawson@gmail.com |
d7328acc586ad198bd101e5c74ed95d8efd98ed4 | d1770646c7e23a1f31d0c7513971bb016dc1feb0 | /Part 3 - Classification/Section 16 - Support Vector Machine (SVM)/svm1.py | cd3513a6742a9b7fab67ce9f00b8f5e170ee1ffb | [] | no_license | tehmeerali786/machinelearningsds | 86120d2de7179b63274a38ac1d303f7905efbde8 | 268530cc15aa454d1fef8ad7f4ca4b69bd47e864 | refs/heads/master | 2020-04-07T12:41:59.334362 | 2018-11-20T11:15:00 | 2018-11-20T11:15:00 | 158,377,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,616 | py | # Support Vector Machine(SVM)
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values
# Splitting the dataset into the Training set and Tes... | [
"freelanceali786@gmail.com"
] | freelanceali786@gmail.com |
41ef2a7819bb42102bc214f55dc9504d9abcc49d | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/bgp_peer_status_list_result_py3.py | d3ab838cf61bf60e87178d1a218bd735a565469b | [
"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 | 974 | 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 |
b5d779e9e4a68aa349df6a5ae9ef862099cd43bd | aac1eb45b4a86be297b55364a5ba4ed9ce7e42e2 | /samples/test/reused_component_test.py | 28ac297503a473e91eb75f6d6a8da656bcd32e7c | [
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | Ark-kun/pipelines | 7ae7bff01fd065d4727b94816aa5fe80e92ecda4 | b29c906f19db3341ad73a1e967150ad6c2e342b2 | refs/heads/master | 2022-12-21T21:12:10.375430 | 2021-10-13T18:37:07 | 2021-10-13T18:37:07 | 160,883,845 | 1 | 1 | Apache-2.0 | 2021-05-13T20:15:40 | 2018-12-07T22:59:10 | Python | UTF-8 | Python | false | false | 1,455 | py | # Copyright 2021 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"noreply@github.com"
] | Ark-kun.noreply@github.com |
13e618c67b881d6918774425f48f8ec7cbe6336b | d9f4b0a788d39655e29993756aedf3f11bf9086c | /Code Forces/PY/gravityFlip.py | 53c77a25894f6571ac5b45a2ca0cf9fb866e758f | [] | no_license | OmarTahoun/competitive-programming | 07a9123f195c87945c6e56b1d0a3c6fba805d946 | 3b3a4348817fce6637d7bd675ce6f62a4fe69cc8 | refs/heads/master | 2021-08-07T02:45:20.752603 | 2020-04-30T09:50:40 | 2020-04-30T09:50:40 | 164,177,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | n = input()
line = list(map(int, input().split()))
line.sort()
print (*line, end=' ')
| [
"omaraiz489@gmail.com"
] | omaraiz489@gmail.com |
2e3acbb435edcb2ea8ffc797dbdede083c26b844 | d1de9fdc4a444ff1c322e09c684ccb5247c22164 | /Infos.py | dd87cf5db4e723c12de33ddf5b4467c71c830710 | [] | no_license | AntoineValera/SynaptiQs | a178ddf5aa3269fe677afa68f6838db219763a65 | b44a27ba01262e68d74488f98502083c9d681eb6 | refs/heads/master | 2021-01-18T21:12:16.543581 | 2016-05-12T14:52:27 | 2016-05-12T14:52:27 | 40,709,264 | 0 | 0 | null | 2015-10-07T11:32:01 | 2015-08-14T10:17:16 | Python | UTF-8 | Python | false | false | 60,563 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 21 23:07:35 2013
@author: Antoine Valera
"""
import os,sys
from OpenElectrophy import *#gui,sql,open_db,AnalogSignal,Segment,Block,RecordingPoint,
import datetime
from PyQt4 import QtCore, QtGui
from matplotlib import numpy,pyplot
class Infos(object):
"""
This... | [
"a.valera@ucl.ac.uk"
] | a.valera@ucl.ac.uk |
89cc804c7665fe1f8655a92816068e3ab3f156d4 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnideot.py | 8b6cf91d4870f3071b49b085125c5c32250bdb98 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 63 | py | ii = [('BailJD1.py', 1), ('RoscTTI2.py', 1), ('MackCNH.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
07402d822998ce8507375c88ae4de18ec9c3f52d | 30edf7f9ac88003fa87fa8838b56e014f4b32f0c | /RANDOM/ms/two_sum.py | 0955a587051348b0a3e29c5e035b0714619e50b3 | [] | no_license | salonikalsekar/2021_Learn | 9d441e637ec36af2a2b9f59fcb295afc6aa92b15 | 792c6bca54ac34b47b8c30b19600c18de877a832 | refs/heads/master | 2023-08-27T19:59:17.541432 | 2021-11-04T21:59:07 | 2021-11-04T21:59:07 | 409,730,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from collections import defaultdict
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
temp = defaultdict(int)
for idx, i in enumerate(nums):
if target - i in temp:
return [temp[target - i], idx]
temp[i] = idx
| [
"saloniskalsekar@gmail.com"
] | saloniskalsekar@gmail.com |
0eaf3b0ff07638c0de9ea4de74ff0edbfbed88ce | 07c75f8717683b9c84864c446a460681150fb6a9 | /back_cursor/S-scrapy/zhilian/zhilian/items.py | 1278eab7cba787dc49023a65720f532e3fb84226 | [] | no_license | laomu/py_1709 | 987d9307d9025001bd4386381899eb3778f9ccd6 | 80630e6ac3ed348a2a6445e90754bb6198cfe65a | refs/heads/master | 2021-05-11T09:56:45.382526 | 2018-01-19T07:08:00 | 2018-01-19T07:08:00 | 118,088,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
# 引入scrapy模块
import scrapy
class ZhilianItem(scrapy.Item):
'''
创建一个Item类型,用于定义爬虫采集的数据字段
'''
# 通过scrapy.Field()函数定义属性字段
# 工作岗位名称
job_name = scr... | [
"1007821300@qq.com"
] | 1007821300@qq.com |
40b9d27841c7e2f63921e0381c53f5f866a1c072 | a99830407793b99279059973af9a123fafa130ba | /per_script_optimization/db_fig_tbtcso.py | be72c81d818718edfc3fff0df501685d39962854 | [] | no_license | pbayer8/contextual_model | ef66f5d181a061531696b60fe7c79186b270c2a4 | b304727888deac3c910ea7a015870f8a1ba7ad35 | refs/heads/master | 2020-03-12T16:41:57.884626 | 2017-09-19T12:36:22 | 2017-09-19T12:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | from __future__ import absolute_import
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='1'
import scipy as sp
from ops import stimuli as stim
from ops.parameter_defaults import PaperDefaults
from ops.dumb_daemon_db_hp_optim import optimize_model
from ops import model_utils
from ops.fig_tpbtcso_utils import _plot_TrottBorn... | [
"drewlinsley@gmail.com"
] | drewlinsley@gmail.com |
4cba9c42e3596707ecb57eafc3591e4a2d223192 | ae12996324ff89489ded4c10163f7ff9919d080b | /LeetCodePython/RectangleOverlap.py | bc5b48a8eb246f72f6e44a61d6cdbf739b6f1a14 | [] | no_license | DeanHe/Practice | 31f1f2522f3e7a35dc57f6c1ae74487ad044e2df | 3230cda09ad345f71bb1537cb66124ec051de3a5 | refs/heads/master | 2023-07-05T20:31:33.033409 | 2023-07-01T18:02:32 | 2023-07-01T18:02:32 | 149,399,927 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | """
An axis-aligned rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) is the coordinate of its bottom-left corner, and (x2, y2) is the coordinate of its top-right corner. Its top and bottom edges are parallel to the X-axis, and its left and right edges are parallel to the Y-axis.
Two rectangles overl... | [
"tengda.he@gmail.com"
] | tengda.he@gmail.com |
507c3e1195c8b7cafa98441a6cfd724ea8b0ba9a | 6336828aeab3ea2ba3e1cf9452a8a3f3a084b327 | /website/music/migrations/0002_song_is_favorite.py | 3df32a2e72f311e6752d40cb790e9b9ab98da05f | [] | no_license | kalereshma96/DjangoNewRepository | 85f2eaed6b689be273af48d328c0a388244bbe2b | 37fd232c2ac91eb6940300f20118f93d17926f9a | refs/heads/master | 2020-04-12T18:12:15.698279 | 2019-01-21T13:46:37 | 2019-01-21T13:46:37 | 162,672,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 2.0.3 on 2018-12-19 12:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='song',
name='is_favorite',
fi... | [
"kalereshma96@gmail.com"
] | kalereshma96@gmail.com |
30798ca86b383373c22433229c436fa5a5dbc288 | c36679186f669c6e3bd1c106c96d4a17be1f5ab1 | /Separare/110.py | 89a86eddaa1cb51ebb9f90cf27ddd47468d2ca82 | [] | no_license | touhiduzzaman-tuhin/python-code-university-life | 60a3d671b200a6f5222c6d176c13c5f20f013509 | 6d2e3d90d430faa5c83fe79e7fb1ebe516994762 | refs/heads/master | 2023-03-22T15:18:10.636203 | 2021-03-06T18:52:04 | 2021-03-06T18:52:04 | 332,467,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | def sub(x, y):
return x - y
v = sub(10, 20)
print(v) | [
"touhiduzzamantuhin95@gmail.com"
] | touhiduzzamantuhin95@gmail.com |
a91124367752be8e95888ea82bafef760caa6f1a | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part000191.py | 3519c22d75205cc8278f277001954c2e468156ae | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,530 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
65bfb3a168f58e0cf823d366ef0b096c1984c826 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03013/s239526370.py | 03390ec1398e706a1d0ba4d2082e2e4c1e79f1e6 | [] | 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 | 728 | py | import bisect, copy, heapq, math
from math import inf
import sys
from collections import *
from functools import lru_cache
from itertools import accumulate, combinations, permutations, product
def input():
return sys.stdin.readline()[:-1]
def ruiseki(lst):
return [0]+list(accumulate(lst))
def celi(a,b):
ret... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a770c8b71fc2dbf01e315fcf337b18fe005b462f | ba8b8f26915a7e67d4ab0e652bfd2d34660dd6c8 | /12/12.py | 73fd07dcfe79b6ae01593ba60e1e8ce4803315ad | [] | no_license | SteadBytes/advent-of-code-2017 | 8a370b1b36666db38f2acf6d5d65a3657380445c | 8e36d8e66a5294124052ce3a11003b9ae798796c | refs/heads/master | 2022-01-13T16:02:08.563299 | 2019-05-29T05:44:45 | 2019-05-29T05:44:45 | 113,744,234 | 0 | 1 | null | 2019-05-29T05:44:46 | 2017-12-10T11:26:20 | Python | UTF-8 | Python | false | false | 1,248 | py | def find_group_dfs(graph, start):
""" Uses depth first search to determine the nodes in the group
containing `start`.abs
Args:
graph (dict of str: list of str): Mapping from nodes to connections
start (str): Node to find group for
Returns:
set: Nodes in group containing `start`
... | [
"="
] | = |
492932cfe03445dfefd563a74f977cf701a27174 | b04dab7d2494bfd2775b3da6a054b8ce6ef0c032 | /xierpa3/contributions/filibuster/content/names.py | bbf3e6d0a7a676b56cbf7b0bab44645b60208326 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thongnv/Xierpa3 | 7562731c638afbb4cd3286f998d1753dd1659979 | e903ed50117f5c697a01de1141a6a0e3ac94df94 | refs/heads/master | 2020-12-31T03:26:22.467394 | 2014-10-05T12:22:00 | 2014-10-05T12:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,393 | py | # -*- coding: UTF-8 -*-
# -----------------------------------------------------------------------------
# xierpa server
# Copyright (c) 2014+ buro@petr.com, www.petr.com, www.xierpa.com
#
# X I E R P A 3
# Distribution by the MIT License.
#
# -----------------------------------------------------------... | [
"buro@petr.com"
] | buro@petr.com |
933d1b2c44c4e5ed5aac7502c6aa752fcf7ac6eb | 2a9bc46a7c2a31b8eafe7f692ffaca79ea3c42a9 | /dingus/scanner.py | 7bdcc12995a79126e8ae630b42821a2b95b57932 | [] | no_license | jepebe/dingus | 88727942b04d284a8f901e733aaecfabd2b12624 | 93b8d7e0e600b6347f6b7c26f0d8def069e08c6f | refs/heads/master | 2022-07-16T18:49:49.410973 | 2020-05-22T16:59:06 | 2020-05-22T16:59:06 | 266,162,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,560 | py | from dingus.error_handler import ErrorHandler
from dingus.token import Token
from dingus.token_type import TokenType
ord_a = ord('a')
ord_z = ord('z')
ord_A = ord('A')
ord_Z = ord('Z')
ord__ = ord('_')
ord_0 = ord('0')
ord_9 = ord('9')
def is_digit(c):
return ord_0 <= ord(c) <= ord_9
def is_alpha(c):
c = o... | [
"jepebe@users.noreply.github.com"
] | jepebe@users.noreply.github.com |
8b255bbe11006721d4c111319a139d9a21b62b7a | 4c3871eff08da80ebde527f04cad9be2eb170079 | /PYTHON/CLG_python/string2.py | 734353eb1058e3f600eb8a21fd559c95fb9a46e0 | [] | no_license | ironsubhajit/ALL_PYTHON | 03fa029e8cd0777fa5947f25cc776dde97f9ace1 | cc3286ca075c3c98ed34d06e31b5c40bafd23fd3 | refs/heads/main | 2023-06-01T14:00:33.232180 | 2021-06-16T03:55:30 | 2021-06-16T03:55:30 | 362,137,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | st=input("Enter a string:")
cnt=0
for i in range(len(st)):
if(st[i]>='0' and st[i]<='9' or st[i]==" "):
continue;
else:
cnt=cnt+1
print("Total Characters:",cnt)
print("Last Three Characters are:", st[len(st)-3:len(st)])
print("Backward Direction:",st[-1::-1])
print("Captial:",st.upper())
| [
"mandalsubhajit655@gmail.com"
] | mandalsubhajit655@gmail.com |
29e36abdebb0ac1417a74924962bdd832e0485b5 | 85163428d423342ed633ab88120cf22e7cea4d4c | /docs/examples/parsed_classes.py | cb3fcf00c420456b5fc8e0df8864dfaf3b4f4c8d | [
"Apache-2.0"
] | permissive | fossabot/yatiml | fcc68be80fc126033ded79869977d43ca74ccba1 | 8714de8e6f4251479bdd0ad4a77f4f82fcc1be60 | refs/heads/master | 2022-10-26T05:40:22.150947 | 2020-04-22T15:44:26 | 2020-04-22T15:44:26 | 273,246,280 | 0 | 0 | null | 2020-06-18T13:29:38 | 2020-06-18T13:29:38 | null | UTF-8 | Python | false | false | 2,044 | py | from typing import List
from ruamel import yaml
import yatiml
class Identifier:
def __init__(self, namespaces: List[str], name: str) -> None:
self.namespaces = namespaces
self.name = name
@classmethod
def _yatiml_recognize(cls, node: yatiml.UnknownNode) -> None:
node.require_sca... | [
"l.veen@esciencecenter.nl"
] | l.veen@esciencecenter.nl |
1714ef688b0611e38274d4f334ba80ae1f809b5f | 786de89be635eb21295070a6a3452f3a7fe6712c | /scipy/tags/V00-03-00/SConscript | bd36e9dda4f67969ab7b970d967b94068a034b09 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | #--------------------------------------------------------------------------
# File and Version Information:
# $Id: SConscript 806 2010-03-26 17:32:36Z salnikov $
#
# Description:
# SConscript file for package scipy
#------------------------------------------------------------------------
# Do not delete following li... | [
"gapon@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | gapon@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
8425a9def4be298655080a469d6a13745fe656cb | bd053d2bf5444ab8f0b8b0ff56772fa75281e38d | /pennylane/grouping/optimize_measurements.py | ba56b43f9fc535ac4cdede6d8f63bcb645735df9 | [
"Apache-2.0"
] | permissive | johannesjmeyer/pennylane | bcb762583e95537b04a9b38756369571f957d2e5 | 8f602312baea107d5248267fb3dc1593722810e0 | refs/heads/master | 2023-07-11T18:21:31.086858 | 2021-08-14T19:21:42 | 2021-08-14T19:21:42 | 341,190,636 | 3 | 1 | Apache-2.0 | 2021-06-16T09:01:58 | 2021-02-22T12:19:10 | Python | UTF-8 | Python | false | false | 4,078 | py | # Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | [
"noreply@github.com"
] | johannesjmeyer.noreply@github.com |
594f5f665ac950dba114620d413fac7b62cd52f5 | 5c98461074ae1fd0750ce88af5cfa63bdde2d9f9 | /HAIGUAN_DATA/HAIGUAN_DATA/spiders/DLHG_TJSJ.py | 58d85d6cefc041e7866df60b42bb5a6c309947c7 | [] | no_license | Yemeimei/xty_data_-collect | ec33c1c512dec39bef6077c805590d6608da30f6 | e89de447609616ef3ba4aab3f1c31be9818de361 | refs/heads/master | 2021-03-26T16:20:29.313183 | 2020-11-09T14:28:45 | 2020-11-09T14:28:45 | 247,721,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,263 | py | # -*- coding: utf-8 -*-
import scrapy
import logging
import json
from HAIGUAN_DATA.items import HaiguanDataItem
from HAIGUAN_DATA.util_custom.tools.attachment import get_attachments, get_times
class DlhgTjsjSpider(scrapy.Spider):
name = 'DLHG_TJSJ'
# allowed_domains = ['http://dalian.customs.gov.cn/dalian_cus... | [
"sn_baby@qq.com"
] | sn_baby@qq.com |
1307ef93a56e45e8801a68d5388a23a75f586154 | f7e5f77292c2bf595ae034e0a67bf8e01a6e82b1 | /p833/test_solution.py | 8e093d11eda13666bcc532840ac6b17530c4a3d1 | [] | no_license | carwestsam/leetCode | af0d64d8d52597c88441b811ce6609a056ef290e | 8075fbb40987d5e6af8d30941a19fa48a3320f56 | refs/heads/master | 2021-01-20T22:28:59.652051 | 2019-03-22T01:11:30 | 2019-03-22T01:11:30 | 60,820,215 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from unittest import TestCase
from p833.Solution import Solution
class TestSolution(TestCase):
def test_findReplaceString(self):
sol = Solution()
self.assertEqual("eeebffff", sol.findReplaceString("abcd", [0, 2], ["a", "cd"], ["eee", "ffff"]))
| [
"carwestsam@gmail.com"
] | carwestsam@gmail.com |
67db5e5df5acceaa6d6d30d3177c8e4d84ed3cac | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2552/60716/249583.py | b08d404b24c4842b66e8e1608f7ab551acaad40f | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | def operation_1(a,b):
for j in range(a,b+1):
status[j] = 1+status[j]
def operation_0(a,b):
temp = 0
for j in range(a,b+1):
temp += status[j]
return temp
n,m = map(int,input().split())
status = list()
answer = list()
for i in range(n):
status.append(0)
for i in range(m):
str... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
18d749157de45bd65b60e346cb6978a172ffa69a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_242/ch32_2020_03_25_20_37_25_539714.py | ca302b352209dd0aee7609a20f3890348e77bd07 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | def eh_primo(numero):
if numero == 0 or numero == 1:
return False
if numero == 2:
return True
if numero % 2 == 0:
return False
div = 3
while numero > div:
if numero % div == 0:
return False
div = div +1
return True
def lista_primos(n):
cont... | [
"you@example.com"
] | you@example.com |
3a89d057410c2341c0693f627c1a48cdd28ec25c | d046fd4ac8e52ed8054199765893f7e1a71302f2 | /master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getCustomAllocationParameterDict.py | 63311612bd3d77811949c2b2397dfab5bdf0c862 | [] | no_license | jakop345/slapos.core | 7538418056be6541e9ee7a70d2d6b694e03daafc | 410dfb506b7ec17745365d573e7401f217b74ed4 | refs/heads/master | 2020-06-18T21:43:39.012812 | 2016-11-24T11:06:49 | 2016-11-24T11:06:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | query_kw = dict()
return query_kw
| [
"alain.takoudjou@nexedi.com"
] | alain.takoudjou@nexedi.com |
d41376b695d2365debe03d3e84472107c63562a5 | 1975ecfc048594b1c05913a3c415bf2c233b37d2 | /playlist_explanation/src/data/save_normalized_idf.py | f74cfceb39f96df87d300e2acb6b33bcbd8f65fc | [] | no_license | GiovanniGabbolini/dave | 2ad35bbd0abf5aefd1c01436690d647f4b39d82c | e0ad90a5fd5691a8cd5e9b24261fb4d3d82ea91e | refs/heads/master | 2023-03-17T06:04:15.127171 | 2021-03-18T19:31:43 | 2021-03-18T19:31:43 | 349,158,307 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | '''
Created on Sat Feb 01 2020
@author Giovanni Gabbolini
'''
from src.text_processing.compute_normalized_idf import compute_normalized_idf
import numpy as np
from src.data.data import preprocessed_dataset_path
import os
import pandas as pd
prefix_file_name = 'normalized_idf'
path_file_name = preprocessed_dataset_pa... | [
"giovanni.gabbolini@gmail.com"
] | giovanni.gabbolini@gmail.com |
6de3250f4b94a22862d6fff45a5d7bc6bfe8ee8d | edf79f6964b15ea61faa9ecd70871d1ce776eda2 | /Jupyter/first-python-notebook/lib/python3.6/site-packages/pandas/tests/frame/test_rank.py | acf887d047c9e65af1ad800b8de45d32e283437e | [
"MIT"
] | permissive | Roychenlei/LearnPython | 326bf7d59ebec904623ea7102a1e07f1d7cb112b | eaf44787b86fe6da69dc9ba4e4c907884db57fda | refs/heads/master | 2022-10-09T07:23:39.410429 | 2018-04-28T02:35:07 | 2018-04-28T02:35:07 | 115,184,834 | 0 | 1 | MIT | 2022-10-01T15:18:43 | 2017-12-23T09:19:47 | Python | UTF-8 | Python | false | false | 9,478 | py | # -*- coding: utf-8 -*-
from datetime import timedelta, datetime
from distutils.version import LooseVersion
from numpy import nan
import numpy as np
from pandas import Series, DataFrame
from pandas.compat import product
from pandas.util.testing import assert_frame_equal
import pandas.util.testing as tm
from pandas.te... | [
"roychenfly@gmail.com"
] | roychenfly@gmail.com |
d851ebb2285b8250dd8bedbcf9ded8a356c36c0a | 1909c82d61d0a92919cc208692d18e3a642ef6ee | /replay_buffer.py | f0919a9b2cacd96cf50ad63d7f49f4831e4029cc | [] | no_license | ChrisProgramming2018/experimente_IQL | 00963c54a1d690952bcfa9c8dd014158b19a832a | f3509fb42777870e050f7d81646be3ca610aeb05 | refs/heads/main | 2023-01-07T19:28:40.885833 | 2020-11-11T20:52:26 | 2020-11-11T20:52:26 | 311,771,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,395 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
class ReplayBuffer(object):
"""Buffer to store environment transitions."""
def __init__(self, obs_shape, action_shape, capacity, device):
self.capacity = capacity
self.device = device
self.obses = n... | [
"noreply@github.com"
] | ChrisProgramming2018.noreply@github.com |
00b2895c16d724e7153f8dec8cf7277d3cf017ea | c3145ee041d4d3e0cf26ec260d9409da8e8b160a | /redirects/models.py | e610f6021cbe83d20dae923de472bc1f6e274f5e | [] | no_license | jlundell-bot/library_website | 0b7cab541d3cf69dd97c7c8350e21315e9155798 | 59a5e48adf28ecbc43c7be145f9ec386b1066313 | refs/heads/master | 2021-06-21T14:16:57.542644 | 2017-08-18T15:51:44 | 2017-08-18T19:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | from django.db import models
from django.shortcuts import redirect
from wagtail.wagtailcore.models import Page
from wagtail.wagtailadmin.edit_handlers import FieldPanel, FieldRowPanel, MultiFieldPanel, PageChooserPanel
from wagtail.wagtaildocs.edit_handlers import DocumentChooserPanel
from wagtail.wagtailsearch import ... | [
"bbusenius@users.noreply.github.com"
] | bbusenius@users.noreply.github.com |
82bbf7345681b7aa11b354f927a6cf267b7cf59a | b33ddc7b89d05e19fdeb69593872fd174fab9f4f | /URI-py/1064.py | 98e302abcead29529e4bac199c6e056329b27967 | [] | no_license | ThiagoCComelli/URI-Online-Judge | 8b8d609d880342b39ba0d396c0610ecb7e01a5af | 5348f736b2d683f4b857232c22cccb7c1d8b8d65 | refs/heads/master | 2020-07-23T15:14:05.353948 | 2020-03-10T19:42:12 | 2020-03-10T19:42:12 | 207,606,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # -*- coding: utf-8 -*-
positivos = 0
soma = 0
lista= []
lista.append(float(input()))
lista.append(float(input()))
lista.append(float(input()))
lista.append(float(input()))
lista.append(float(input()))
lista.append(float(input()))
for i in lista:
if i>0:
positivos += 1
soma += i
print("%d valores p... | [
"thiago.comelli@outlook.com"
] | thiago.comelli@outlook.com |
661f1ea9615a47173d91b2205cd3d815b41a1f69 | 9abc2f4fbf1b31b5a56507437b4a8d9c3f3db7e6 | /users/migrations/0001_initial.py | 5ececd15dea063f784258ebb10a47583db8320b7 | [] | no_license | odbalogun/ticketr | e9fe8461d66dabe395f0e1af8fbecc67dbb16e97 | 94f24c82f407f861f1614a151feb3fdd62b283e5 | refs/heads/master | 2022-11-30T22:40:30.931160 | 2019-08-09T14:34:38 | 2019-08-09T14:34:38 | 188,833,600 | 0 | 0 | null | 2022-11-22T03:50:30 | 2019-05-27T11:50:07 | Python | UTF-8 | Python | false | false | 2,255 | py | # Generated by Django 2.2.1 on 2019-05-04 13:40
from django.db import migrations, models
import users.managers
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.CreateModel(
name... | [
"oduntan@live.com"
] | oduntan@live.com |
705e76294e4c599a66ce3e8d2b7ecaf153e7b05f | 6817457f2f7cb635e84d5ac23c76873628fb04cf | /src/dama/utils/network.py | 0d300f9c929cc504a4d7fb8eed64e72d5d481880 | [
"Apache-2.0"
] | permissive | elaeon/dama_ml | 5d9a63e0daabe332a08b13813de57d9ed2608015 | 8b56c62a28c69987fc5dbd8a47406a3a22214371 | refs/heads/master | 2021-10-26T05:24:10.166028 | 2019-04-11T00:55:44 | 2019-04-11T00:55:44 | 58,218,206 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | def all_simple_paths_graph(graph, source, cutoff):
if cutoff < 1:
return
visited = [source]
stack = [iter(graph[source])]
while stack:
children = stack[-1]
child = next(children, None)
if child is None:
stack.pop()
visited.pop()
elif len(vi... | [
"mara80@gmail.com"
] | mara80@gmail.com |
8454ccce3edcead4c5618a02cc7403a29ff81a3c | ed96244ad61cf2bfde7737028333ab2c41ec129c | /_unittests/ut_module/test_code_style.py | a14f9d6da882aa6768076ab4bfae76121da32c73 | [
"MIT"
] | permissive | sdpython/pymlbenchmark | f20a19303bb474addb16effe1ae6f4319f3b335b | 37cd6f50a0e1b7faaf849fce2e8a56059f727be5 | refs/heads/master | 2023-02-04T21:14:59.164056 | 2023-02-04T11:28:59 | 2023-02-04T11:28:59 | 173,926,345 | 0 | 1 | NOASSERTION | 2021-01-14T11:52:14 | 2019-03-05T10:34:02 | Python | UTF-8 | Python | false | false | 1,656 | py | """
@brief test log(time=0s)
"""
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import check_pep8, ExtTestCase
class TestCodeStyle(ExtTestCase):
"""Test style."""
def test_style_src(self):
thi = os.path.abspath(os.path.dirname(__file__))
src_... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
8a9fd055f178998fa25e7af7f5d58d3e7ddba2f4 | 2f46c6463d4f871a72d4296c3dae00f029e892f1 | /src/cogent3/parse/nexus.py | 1ef87abc95714ea8a83317faa718e76eafc21088 | [
"BSD-3-Clause"
] | permissive | BrendanBeaton/cogent3 | a09376c55f24da837690219157770ad94e917579 | e10f4f933921d52b000096b7c016190a1602add6 | refs/heads/master | 2022-12-02T07:59:11.112306 | 2020-06-30T05:40:33 | 2020-06-30T05:40:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,115 | py | #!/usr/bin/env python
"""
parses Nexus formatted tree files and Branchlength info in log files
"""
import re
from collections import defaultdict
from cogent3.parse.record import RecordError
from cogent3.util.misc import open_
__author__ = "Catherine Lozupone"
__copyright__ = "Copyright 2007-2020, The Cogent Proje... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
eb3498a5187b6adaf0449d02940e332aa6782817 | ce81137316df7ca3f90311e50d430094926f4c7e | /tcapy/analysis/tcamarkettradeloaderimpl.py | d4734fba59f75236e1de554f6eec5ceeeaaa16c5 | [
"Apache-2.0"
] | permissive | quant108/tcapy | 15c0e0d305858bc27115d7f41cd41dbd26184cad | a1339062a55db5da4e635d07b08c9a8cb699f479 | refs/heads/master | 2023-06-11T17:07:10.629121 | 2021-06-29T12:20:19 | 2021-06-29T12:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,229 | py | from __future__ import division
__author__ = 'saeedamen' # Saeed Amen / saeed@cuemacro.com
#
# Copyright 2017 Cuemacro Ltd. - http//www.cuemacro.com / @cuemacro
#
# See the License for the specific language governing permissions and limitations under the License.
#
import pandas as pd
from datetime import timedelt... | [
"saeedamen@hotmail.com"
] | saeedamen@hotmail.com |
d786f27374e4ed5c68f7615f47a1365ec82ee781 | e4cc240144f404e34c7933963efd4daf8d8f0453 | /rb_read/models.py | 676ffd3ea2dc3d77d24dd4fb20c84f40dd8e3096 | [] | no_license | lnwk/Django-Read-website | bd859e75dbd9dc20a351435e1c699b01924aa50d | c6347d13427e47869b2f871dfb75abf486c2ac57 | refs/heads/master | 2020-03-09T22:35:41.400222 | 2018-05-30T06:44:37 | 2018-05-30T06:44:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from tinymce.models import HTMLField
from django.db import models
from rb_books.models import booksInfo
# Create your models here.
class readInfo(models.Model):
books = models.ForeignKey('rb_books.booksInfo')
rchapter = models.CharField(max_length... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
87a1090052c1c51ea38da00cd4a676a610e45384 | 61673ab9a42f7151de7337608c442fa6247f13bb | /__scraping__/blockchain.info - requests/main.py | 9d9f262e4c4b5d94eeca1935ab0a0d4203d28e19 | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 392 | py | #!/usr/bin/env python3
# date: 2020.05.18
# https://stackoverflow.com/questions/61858764/is-there-an-easy-way-to-access-all-transactions-recorded-in-a-bitcoin-block-with/
#
# https://www.blockchain.com/api/blockchain_api
import requests
r = requests.get('https://blockchain.info/block-height/100?format=json')
data =... | [
"furas@tlen.pl"
] | furas@tlen.pl |
526c56a282e941a9a559f64b7d6e6d38dc242c0c | f518506fb620fd29a2db876c05de813508eda519 | /Project11/app11/migrations/0001_initial.py | 248f97fb94cf06c24002f7f1f9dc7eaa562ea85f | [] | no_license | Niharika3128/Django5-6 | 07435ae9088659e2d192cda60542aee5214e0637 | be3055ca91da45c37f9ec1adb626eea335477746 | refs/heads/master | 2020-06-02T04:28:37.016405 | 2019-06-09T17:28:33 | 2019-06-09T17:28:33 | 191,035,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # Generated by Django 2.1.5 on 2019-04-01 12:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Employee',
fields=[
('idno', models.Integer... | [
"niharika5475@gmail.com"
] | niharika5475@gmail.com |
42d7296c925250d49f9c3a4510c8f2ab458c0ee6 | 6bea1b91c980c9e87a109019be3879e456d009ba | /hackerrank/hackerrank/encryption.py | a436ed7ecfc516ae32ef8e6d1cc4633727d66815 | [] | no_license | Bawya1098/Hackerrank | 631c886f4fcacbb28c637f3073b316059c579c58 | 7eb02f71a5c3c02115301288c9e71b0cfdd5eb3d | refs/heads/master | 2020-04-22T03:15:16.233413 | 2019-05-02T05:43:45 | 2019-05-02T05:43:45 | 170,079,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import math
s = "chillout"
def encryption(s):
s = s.replace(" ", "")
length = len(s)
sqrt_length = math.sqrt(length)
no_rows = math.floor(sqrt_length)
no_columns = math.ceil(sqrt_length)
condition = no_columns * no_rows
if condition < length:
no_rows += 1
grid = []
for ... | [
"admin@Intern3-MacBook-Pro.local"
] | admin@Intern3-MacBook-Pro.local |
8feaabf44cda44616bc980b97d93eff548337191 | a4fa88659d749c1e32d70d4f0d309dcbcce40aa9 | /7/7a.py | ee8e215800b74f4d0aa5cf249efa860100cac494 | [] | no_license | pe-ge/aoc2018 | 91fd5af6374855f6787114d4e64d86d08793d41c | 571aea49caca1fe18cc67c9c403f8107baef4169 | refs/heads/master | 2020-04-12T10:07:06.144536 | 2018-12-25T08:42:17 | 2018-12-25T08:42:17 | 162,419,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | from pprint import pprint
data = []
nodes = set()
counts = {}
with open('7.txt') as f:
# with open('7-example.txt') as f:
for line in f.readlines():
splitted = line.split(' ')
first = splitted[1]
second = splitted[7]
nodes.add(first)
nodes.add(second)
if first not in ... | [
"gergelp@gmail.com"
] | gergelp@gmail.com |
fee75bd21acbb34c39ef7e496d7c6bdc140451b1 | 5717b354e0c81e4e30d365295f91e9f552c811cf | /wishbone/utils/__init__.py | 73899638650befc5b243dd7745cd9967bdf48f7e | [] | no_license | jeredding/wishbone | bd837fba2c07bf8131023d240f3b127073d2fde4 | 0f0f42063ceb2dd4ab011d51faa44ce60c11f056 | refs/heads/master | 2021-01-14T09:50:40.851267 | 2014-10-09T20:33:28 | 2014-10-09T20:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,922 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __init__.py
#
# Copyright 2014 Jelle Smet <development@smetj.net>
#
# 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... | [
"development@smetj.net"
] | development@smetj.net |
bfcd2f9465df3c0da6c69b5b1be9b8bd767a38e9 | 6762839df1f58ffad61aff29521cd1921bb614eb | /lesson56.py | 3c1e37eb7c592afc082d252b7be37154961f2a64 | [] | no_license | aki-06/Udemy_Python3 | 8971572d4e086577d4d4dbbe0ce1348e1087386b | e743035d4a8711bf0b9bf2f9a8e26ce1d2e854e3 | refs/heads/master | 2021-09-21T00:48:10.288084 | 2018-08-18T01:12:11 | 2018-08-18T01:12:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | # デコレータ
def print_more(func):
def wrapper(*args, **kwargs):
print('name = ', func.__name__)
print('args = ', args)
print('kwargs = ', kwargs)
result = func(*args, **kwargs)
return result
return wrapper
def print_info(func):
def wrapper(*args, **kwargs):
prin... | [
"akihiro.nemoto.06@gmail.com"
] | akihiro.nemoto.06@gmail.com |
e549b0d220c926e9d28011382713c1be3745afee | 5de3f612df0dbda712b39403dbafb0617e597651 | /devel/lib/python2.7/dist-packages/pal_interaction_msgs/msg/_TtsActionGoal.py | 2ab6ab2e9c81cdeb6a1d1866af21032f11314235 | [] | no_license | AdriiTrujillo/tiago_public_ws | 1bd62d51c2eb694d07db83738f7bebd582d8126c | 6eaeabd1ec177df837b81fd9f42887318128766b | refs/heads/main | 2023-04-03T13:09:09.749190 | 2021-04-01T10:05:43 | 2021-04-01T10:05:43 | 350,026,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | /home/adrii/tiago_public_ws/devel/.private/pal_interaction_msgs/lib/python2.7/dist-packages/pal_interaction_msgs/msg/_TtsActionGoal.py | [
"adrii.trujillo@gmail.com"
] | adrii.trujillo@gmail.com |
ea9ad5f10931df4174542b057be0718845ca42a5 | a6050bc10e1e1df13a7085adb2f7fed2464874cc | /test/test_unary_ufuncs.py | 6d4dc91ff5bd2ce9c6118743f998639e3dcbdcf0 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | ganprad/pytorch | 2898b67e1c6353c6131792177ae0919cf1aced41 | 8b82ca044cb56a1a42d593e042815961d5128968 | refs/heads/master | 2023-01-29T14:57:43.935896 | 2020-12-13T23:37:13 | 2020-12-13T23:37:13 | 299,380,281 | 0 | 0 | NOASSERTION | 2020-09-28T17:17:27 | 2020-09-28T17:17:26 | null | UTF-8 | Python | false | false | 20,311 | py | import math
from itertools import product, chain
from numbers import Number
import random
import unittest
import torch
from torch.testing._internal.common_utils import \
(TestCase, run_tests, torch_to_numpy_dtype_dict, suppress_warnings,
TEST_NUMPY, make_tensor)
from torch.testing._internal.common_methods_i... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e05300196f36e1cff09557346860a2eb3891a4f8 | 4e29e6baf986d12bb8bf6dd1c43820f9f91fc588 | /src/runtestt.py | 8c5a576b39e5f0b374328259120fd9c077087078 | [
"MIT"
] | permissive | pennycxl/BearSki | 6fb00e29cb967b686eede529c764974f01676100 | 8c6e3d7f2f26ea8cb2e609dd95fbc4d0184f609b | refs/heads/master | 2020-12-10T07:20:02.588534 | 2020-01-14T03:32:02 | 2020-01-14T03:32:02 | 233,534,068 | 1 | 0 | MIT | 2020-01-13T07:13:17 | 2020-01-13T07:13:16 | null | UTF-8 | Python | false | false | 1,697 | py | import unittest
import BearSki.RunUnittest as rut
from BearSki.utils.logger import SkiLogger
from BearSki.report.LocalReportRunner import LocalReportRunner
import time
import sys
import logging
from BearSki.utils.arguments import runArg
def get_test_cases(dirpath,name="test_",isrunonecase=False):
test_cases = uni... | [
"chen6_9@163.com"
] | chen6_9@163.com |
b37e125610b6b96c087c12b9c1c4dafd096b5e5f | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/storefinders/stockinstore.py | d8e0ca657cef39f66a44289eae6c2ddf1213bf16 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 2,552 | py | from scrapy import Spider
from scrapy.http import FormRequest
from locations.dict_parser import DictParser
from locations.hours import OpeningHours
# To use this store locator, you need to determine whether the brand
# is using:
# 1. Widget to locate stores on a map
# * Calls https://stockinstore.net/stores/getAll... | [
"noreply@github.com"
] | alltheplaces.noreply@github.com |
4b93ddb2c0ea36fa8b0c7ef421820f91dd69781c | 84864f862dec9171e958920f2c8e7c920fcef056 | /CLRS/CLRS_with_Python/Review/Chapter7.py | d2741d8df13d23f3b663748fdbab4fb5c85dc7c2 | [] | no_license | Orcuslc/Learning | 7704950f8c09232dadbbde81ed82ddc0ca65172d | ffa856febd85235d17358178f1e288ffae7856cb | refs/heads/master | 2020-03-26T11:59:54.093395 | 2018-05-29T04:19:36 | 2018-05-29T04:19:36 | 47,269,920 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | #Chapter7
#15.8.15
import random
def partition(A, p, r):
flag = A[r]
i = p - 1
for j in range(p, r):
if A[j] < flag:
i += 1
A[i], A[j] = A[j], A[i]
A[i+1], A[r] = A[r], A[i+1]
return i+1
def quick_sort(A, p, r):
if p < r:
q = partition(A, p, r)
quick_sort(A, p, q-1)
quick_sort(A, q+1, r)
def rand... | [
"orcuslc@hotmail.com"
] | orcuslc@hotmail.com |
0420e04a9df5c8eb3186dd360be71bc93e115cdb | 6206ad73052b5ff1b6690c225f000f9c31aa4ff7 | /Code/Time Needed to Inform All Employees.py | 663f5820e2b6e32acf3ab171a203513746d58ad6 | [] | 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 | 932 | py | class Solution:
def numOfMinutes(self, n: int, headID: int, manager: List[int], informTime: List[int]) -> int:
adjacentList = defaultdict(list) #Build adjacent list.
for x in range(n):
if manager[x] != -1:
... | [
"noreply@github.com"
] | mws19901118.noreply@github.com |
afe92387aa9faabbbddbd4ec526b42eac84ae6cb | 9d1cbb275e3a4f4e01bbd8d8bc210f61d719da74 | /welding_trace_beginning/ws3.py | 0cb98f739f234b787ee1b645dbb4fc5441783c61 | [] | no_license | aa88kk/welding_seam | 824036efe6662923b27392fbfdd1957d1390aeeb | 578b69e301f1472f2eef68bfb0a166846af2cfbd | refs/heads/master | 2022-04-08T10:07:13.393516 | 2020-03-12T09:26:19 | 2020-03-12T09:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,115 | py | import math
import numpy as np
import cv2
import ctypes
import time
TEST_IMAGE = ('ssmall.png', 'sbig.png', 'rsmall.png')
#TEST_IMAGE = ('rsmall.png', )
WRITE_RESULT = False
RESIZE = 1
SLOPE_TH = 0.15
def imgRotate(image, angle):
# Get the dimention of the image and then determine the certer.
(h, w) = i... | [
"handongfr@163.com"
] | handongfr@163.com |
8c24febdb7c6853ae7a2fb61d56a53aef87cad48 | 711c30ca421a21b106fd24f617c114cf25fa0176 | /database/src/repo/insert/github/miscellaneous/licenses/Requester.py | 99a0e86330ea713836c49916e9344310a57b17b1 | [
"CC0-1.0",
"MIT",
"Apache-2.0"
] | permissive | ytyaru/GitHub.Upload.ByPython.Add.Database.Create.201703241522 | 88e22bb9aedd127c9f2c8152ae8c7f9057a0c39d | 8017b48a166e86d094d21bc188e151a3e8eb7c5a | refs/heads/master | 2021-01-20T02:28:50.906367 | 2017-04-25T22:24:58 | 2017-04-25T22:24:58 | 89,412,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | #!python3
#encoding:utf-8
import time
import pytz
import requests
import json
import datetime
import database.src.repo.insert.github.common.HttpHeader
import database.src.repo.insert.github.common.HttpResponser
class Requester:
def __init__(self, data):
self.data = data
self.header = repo.insert.git... | [
"ytyaru@outlook.jp"
] | ytyaru@outlook.jp |
6e2c71966550365b72a645daa302df7a63f662be | 180e1e947f3f824cb2c466f51900aa12a9428e1c | /pattern4/hamburg_store_v3/src/Hamburg.py | 036d65bc48c6f49998ea65c17d0e34920903ed99 | [
"MIT"
] | permissive | icexmoon/design-pattern-with-python | 216f43a63dc87ef28a12d5a9a915bf0df3b64f50 | bb897e886fe52bb620db0edc6ad9d2e5ecb067af | refs/heads/main | 2023-06-15T11:54:19.357798 | 2021-07-21T08:46:16 | 2021-07-21T08:46:16 | 376,543,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | #######################################################
#
# Hamburg.py
# Python implementation of the Class Hamburg
# Generated by Enterprise Architect
# Created on: 19-6��-2021 18:39:44
# Original author: 70748
#
#######################################################
import abc
class Hamburg(abc.ABC):
def... | [
"icexmoon@qq.com"
] | icexmoon@qq.com |
6c4b79282b8aab9745e4dc16c9bc60a5fcf52c87 | 9784a90cac667e8e0aaba0ca599b4255b215ec67 | /gluon/gluoncv2/models/fcn8sd.py | c57ed712473944d808d1628de66c09f9d0ef96bd | [
"MIT"
] | permissive | osmr/imgclsmob | d2f48f01ca541b20119871393eca383001a96019 | f2993d3ce73a2f7ddba05da3891defb08547d504 | refs/heads/master | 2022-07-09T14:24:37.591824 | 2021-12-14T10:15:31 | 2021-12-14T10:15:31 | 140,285,687 | 3,017 | 624 | MIT | 2022-07-04T15:18:37 | 2018-07-09T12:57:46 | Python | UTF-8 | Python | false | false | 16,570 | py | """
FCN-8s(d) for image segmentation, implemented in Gluon.
Original paper: 'Fully Convolutional Networks for Semantic Segmentation,' https://arxiv.org/abs/1411.4038.
"""
__all__ = ['FCN8sd', 'fcn8sd_resnetd50b_voc', 'fcn8sd_resnetd101b_voc', 'fcn8sd_resnetd50b_coco',
'fcn8sd_resnetd101b_coco', 'fcn... | [
"osemery@gmail.com"
] | osemery@gmail.com |
e2755190310f1b37a598ce866288219022d19643 | 929fba6e9f74cc109d98efdc0f32fa4cadbd4def | /Strings/1367.py | 43d898e154fa461552f8b8668c04d614c079b84e | [
"MIT"
] | permissive | LorranSutter/URI-Online-Judge | 2be9d95a27e52fad6bb1ae189d9bb39c72a43228 | 01822b6124a535aeecbdbdad616b61f2d55dd8d4 | refs/heads/master | 2023-01-28T00:15:34.569999 | 2023-01-24T03:08:38 | 2023-01-24T03:08:38 | 141,393,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py |
N = int(input())
while N != 0:
problems_incorrect = dict()
for k in range(26):
problems_incorrect[chr(k+65)] = 0
problems_correct = []
solved = 0
total = 0
for k in range(N):
S = input().split()
if S[2] == "incorrect":
problems_incorrect[S[0]] += 1
elif S[0] not in problems_correct:
problems_cor... | [
"lorransutter1836@gmail.com"
] | lorransutter1836@gmail.com |
a9a0185ab6c07e59d5434aa273cbb2c48d948c50 | d66d45efcf3eb7ddd50700e94b88f8ca10f97199 | /lmatools/io/LMA_h5_file.py | 19546d1c46c0fb53fe564bdf6b7f110eeee33ad6 | [
"BSD-2-Clause"
] | permissive | deeplycloudy/lmatools | 6a54a4d32d55fa951609286d7ea68f74f42624fd | 392eff5f15735be7b7f5ccc20d2835a617000117 | refs/heads/master | 2023-08-10T02:17:33.369134 | 2023-07-31T20:12:26 | 2023-07-31T20:12:26 | 18,602,238 | 16 | 25 | BSD-2-Clause | 2023-07-31T20:16:04 | 2014-04-09T15:22:39 | Python | UTF-8 | Python | false | false | 10,049 | py | from __future__ import absolute_import
from __future__ import print_function
import numpy as np
from datetime import datetime, timedelta
import os
def to_seconds(dt):
'convert datetime.timedelta object to float seconds'
return dt.days * 86400 + dt.seconds + dt.microseconds/1.0e6
def parse_lma_h5_filename(file... | [
"eric.bruning@gmail.com"
] | eric.bruning@gmail.com |
20767c935ef78ed49fb5b6342b59703e1b8d8d7e | 63bacb52d016cf7a237dacd79ba2861842c49ca9 | /zuora_client/models/get_payment_run_summary_total_values.py | 938a4106c443d865aa1262dc18851d79523ff1b2 | [] | no_license | arundharumar-optimizely/zuora-client-python | ee9667956b32b64b456920ad6246e02528fe6645 | a529a01364e41844c91f39df300c85c8d332912a | refs/heads/master | 2020-07-05T23:09:20.081816 | 2019-07-30T21:46:47 | 2019-07-30T21:46:47 | 202,811,594 | 0 | 0 | null | 2019-08-16T23:26:52 | 2019-08-16T23:26:52 | null | UTF-8 | Python | false | false | 58,467 | py | # coding: utf-8
"""
Zuora API Reference
# Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A... | [
"brian.lucas@optimizely.com"
] | brian.lucas@optimizely.com |
c85a5e023c22f3842ca63a18731ac66806206bfc | df92b896e8a1ea3b930309e8b5c2aeb672f80ed5 | /app.py | 9316b628df507d8039e0bd81f2bcc470c6544641 | [] | no_license | volgoweb/simple_scraping | ab7527f5e2dedd960e8a5358f995c5dd960164a2 | 043d4c568140a9e18c7e32a66f7109f1e908e73f | refs/heads/master | 2021-01-02T22:36:11.036980 | 2017-08-28T07:06:48 | 2017-08-28T07:06:48 | 99,351,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from flask import Flask
import config
app = Flask(__name__)
app.config.from_object(config)
| [
"volgoweb@bk.ru"
] | volgoweb@bk.ru |
0dbee20a7120517c56b3bc8abd346eb8506c3ef2 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/nz3.py | 49d7b3173e0769048ed04f37aa01cd2218650aa9 | [] | 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:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
c8a4c6ba3d0286477a6900996115375c19c27018 | 99b062cb9f5f3ff10c9f1fa00e43f6e8151a43a6 | /algorithm/day10/토너먼트카드게임.py | 4f1a56826cc8935a57eb81c025efbffca1e8cf3a | [] | no_license | HSx3/TIL | 92acc90758015c2e31660617bd927f7f100f5f64 | 981c9aaaf09c930d980205f68a28f2fc8006efcb | refs/heads/master | 2020-04-11T21:13:36.239246 | 2019-05-08T08:18:03 | 2019-05-08T08:18:03 | 162,099,042 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | def RPS(a, b):
global g_1, g_2
if a == 1 and b == 1:
print(a)
# return a
if a == 1 and b == 2:
print(b)
# return b
if a == 1 and b == 3:
print(a)
# return a
if a == 2 and b == 1:
print(a)
# return a
if a == 2 and b == 2:
pr... | [
"hs.ssafy@gmail.com"
] | hs.ssafy@gmail.com |
cce1cdee99099cd1d504091d875d54906d93be8f | e73f2cb5a3a99c4531136c0d5df44c4662c73482 | /models.py | 39eae6c2f0ecd2fdda5beb05e046ac9577429085 | [] | no_license | fraduq/YOLOv3v4-ModelCompression-MultidatasetTraining-Multibackbone | 5585f56cb35ddc45e8555716503eb0e446ada8f8 | 1036249263e7ebe5a51800264259f918c291fac7 | refs/heads/master | 2022-12-04T04:31:58.115393 | 2020-08-19T10:10:03 | 2020-08-19T10:10:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,391 | py | from utils.google_utils import *
from utils.layers import *
from utils.parse_config import *
from utils.quantized_lowbit import *
from utils.quantized_google import *
from utils.quantized_dorefa import *
import copy
ONNX_EXPORT = False
def create_modules(module_defs, img_size, cfg, quantized, qlayers):
# Constru... | [
"844701730@qq.com"
] | 844701730@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.