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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71ac26b37b14e37540c8c6747bb6ed2674c72de1 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/12103121.py | aff6fabbfe181ee752fdebddb4817168e9cada39 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/12103121.py generated: Fri, 27 Mar 2015 15:48:08
#
# Event Type: 12103121
#
# ASCII decay Descriptor: [B+ -> K+ (KS0 -> pi+ pi-)]cc
#
from Configurables import Generation
Generation().EventType = 12103121
Generation().SampleGenerationTool = "SignalRepeate... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
0f0384d38e52d268984da24a31de51dd057df061 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/crvcam001/boxes.py | 48a26b479879bf751284a115ee42601517ff5ba7 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | def print_square():
print('*' * 5)
for i in range(3):
print('*' , " "*3 , '*' , sep="")
print('*' * 5)
def print_rectangle(width, height):
print('*' * width)
gap = " "
for i in range(height -2):
print('*' , gap * (width-2) , '*', sep="")
print('*' * width)
def get... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
a8e5ad6c2627b4a7e10d03f0efbd7d90534a7b5a | 445e58746e9ca9b61a2d1a6ede82b7badec059ee | /scripts/download.py | 361335c8c1356c0c4c1d4354c59ba3909be583a7 | [
"MIT"
] | permissive | agrc/electrofishing-query | cdbc18eec74d4af1c478309a518f898a4db51e92 | 21934ef11622139ba55f26c30dee17c1d5ac6688 | refs/heads/main | 2023-08-19T04:51:21.612552 | 2023-07-04T16:43:02 | 2023-07-04T21:35:15 | 181,779,317 | 0 | 0 | MIT | 2023-09-01T02:45:33 | 2019-04-16T22:55:17 | JavaScript | UTF-8 | Python | false | false | 7,795 | py | #!/usr/bin/env python
# * coding: utf8 *
'''
download.py
A script that downloads CSVs of electrofishing data for a given
set of sampling event ids.
'''
import csv
import sys
from glob import glob
from os import sep, walk
from os.path import basename, dirname, join, normpath, realpath
from zipfile import ZIP_DEFLATED, ... | [
"stdavis@utah.gov"
] | stdavis@utah.gov |
7c04bf56b1d4694c250bc1011dd80707d168fa04 | 632099ac0d895943cbbeb9048a2cdfcd21102411 | /Novation_Impulse/__init__.py | 6f5f46ce2ef01ae52ac870a2cfd2e9d926eaf2c6 | [] | no_license | Toniigor/AbletonLive9_RemoteScripts | 7f4bbf759a79629584413f6d1797005e8cd7f2ff | fed1e5ee61ea12ea6360107a65a6e666364353ff | refs/heads/master | 2021-01-16T21:19:25.330221 | 2014-06-06T12:33:03 | 2014-06-06T12:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #Embedded file name: /Users/versonator/Jenkins/live/Projects/AppLive/Resources/MIDI Remote Scripts/Novation_Impulse/__init__.py
from Novation_Impulse import Novation_Impulse
def create_instance(c_instance):
return Novation_Impulse(c_instance)
from _Framework.Capabilities import *
def get_capabilities():
ret... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
669639ec4990e3d78768775b8b7faa030a35400e | f96937b4f6ee9865413978fb85fa2e99e2f842ff | /curriculumBuilder/__init__.py | e3d673e4e7cff389c9d9ed185f26e56dd2ca56d5 | [] | no_license | mrjoshida/curriculumbuilder | 8adf22d91eae2f3205b177e18dbd8a0909fb2d58 | 3b700d6a6fea6d1d7d7ed18d5612d6e0853449c3 | refs/heads/master | 2021-01-17T02:28:11.094855 | 2019-10-17T22:47:46 | 2019-10-17T22:47:46 | 36,847,693 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | from __future__ import absolute_import
# import curriculumBuilder.receivers
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
# from .celery import app as celery_app
import curriculumBuilder.numbering_patch
| [
"josh@code.org"
] | josh@code.org |
223ca663a896fe7a75e5413d34f5ecfe3cc0c3e5 | 433ada0b349e8a68dd85a5af047b90d23aee44c9 | /include/TestClientImportOptions.py | 414bed35d496b167fcb8e57b8681071e8f77d8c2 | [
"WTFPL"
] | permissive | 3wayHimself/hydrus | 7ddfe3507ad2b3e9dc4ab69cb9c6e25efc06c5aa | 804ffe8cecfe01bdb9518070d31dbf826b72e8ef | refs/heads/master | 2020-03-23T04:37:53.849078 | 2018-07-11T20:23:51 | 2018-07-11T20:23:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,403 | py | import ClientConstants as CC
import ClientImportFileSeeds
import ClientImportOptions
import ClientTags
import HydrusConstants as HC
import HydrusData
import HydrusExceptions
import HydrusGlobals as HG
import os
import unittest
from mock import patch
class TestCheckerOptions( unittest.TestCase ):
def test_chec... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
8d92d5c580a5678636e059c2ef71d1e061dd7ee0 | 056754778e09aa5c412bbeadd77f20667b013648 | /markov.py | 2f7dfc8804d428b00d5fa056c84ec36f167f9234 | [] | no_license | sridevich/markov_chains | 22518a4cdcb2be71cd95dd8ef3d3be32912af8d0 | b799430373d0ca1bfe5ffc0596a22d4dcea026fc | refs/heads/master | 2021-01-11T23:23:00.780606 | 2017-01-12T02:05:43 | 2017-01-12T02:05:43 | 78,574,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,471 | py | from random import choice
import twitter
import os
import sys
api = twitter.Api(
consumer_key=os.environ['TWITTER_CONSUMER_KEY'],
consumer_secret=os.environ['TWITTER_CONSUMER_SECRET'],
access_token_key=os.environ['TWITTER_ACCESS_TOKEN_KEY'],
access_token_secret=os.environ['TWITTER_ACCESS_TOKEN_SECRET'... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
1e2f8bbd44e82b0308ddca0516aaa3686749ac5e | b7a753180264aaba666da8aaad1bb03ccc0159da | /board/views.py | 3eabda8d5d16d2813e82265dd3898bc61943f2b5 | [] | no_license | boyl/lighteddjango | ec3630985a8e45bc4313f4a6bfe4d46912a58f72 | cf437743d23157b6e888468ac8d2e9cc5bc24bcc | refs/heads/master | 2022-12-19T08:39:18.018477 | 2020-06-30T03:47:42 | 2020-06-30T03:47:42 | 173,584,375 | 0 | 0 | null | 2022-12-08T04:51:46 | 2019-03-03T14:19:12 | JavaScript | UTF-8 | Python | false | false | 5,434 | py | import hashlib
import requests
from django.conf import settings
from django.core.signing import TimestampSigner
from django.contrib.auth import get_user_model
from rest_framework import viewsets, authentication, permissions, filters
from rest_framework.renderers import JSONRenderer
from rest_framework.pagination impo... | [
"1228417956@qq.com"
] | 1228417956@qq.com |
ee726d7533579f7a9c1d89fddd7d1581375a412a | b55f70755712b26688b80a8ba3806a4124fbcd11 | /LinkedList/remove_duplicate_from_sorted_linkedlist.py | ec55034979d77103ec2b1c458b9b307dd7dbf44a | [] | no_license | Shanshan-IC/Algorithm_Python | a44703a0f33370c47e3e55af70aadeae08d5a1a5 | ace23976d2f1f51141498c4c4ea6bca0039b233f | refs/heads/master | 2021-09-08T07:16:59.576674 | 2018-03-08T09:24:01 | 2018-03-08T09:24:01 | 114,254,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | """
http://www.lintcode.com/zh-cn/problem/remove-duplicates-from-sorted-list/
Definition of ListNode
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
"""
class Solution:
"""
@param: head: head is the head of the linked list
@return: head of li... | [
"shanshan.fu15@imperial.ac.uk"
] | shanshan.fu15@imperial.ac.uk |
9551014bbb31c958619230f90f70227bf926855c | ad0cbe6e2f3862490ec378319ed14072735da628 | /airflow_ml_dags/images/airflow-preprocess/preprocess.py | 05baaf7e9e5e09e3529a1dc5307f6adc36f4482e | [] | no_license | made-ml-in-prod-2021/dronovartem | 4365c05e67d6dd7bc5d798ad3b814b4687b51171 | 37711ea51e326f6468303daaa9852d9f1e92e9bf | refs/heads/main | 2023-06-04T12:40:39.017311 | 2021-06-24T18:28:15 | 2021-06-24T18:28:15 | 353,791,508 | 0 | 1 | null | 2021-06-24T18:28:16 | 2021-04-01T18:28:51 | Jupyter Notebook | UTF-8 | Python | false | false | 599 | py | import os
import pandas as pd
import click
@click.command("predict")
@click.option("--input-dir")
@click.option("--output-dir")
def preprocess(input_dir: str, output_dir):
"""
Implement dummy dataset preprocessing.
"""
data = pd.read_csv(os.path.join(input_dir, "data.csv"))
target = p... | [
"noreply@github.com"
] | made-ml-in-prod-2021.noreply@github.com |
eabfb42337373790ebbbc5379ef69a5441583b28 | 2436f9f911149926af8fd7c1cd5c4e0d604987a0 | /puente_quintanavides/pretensa_viga_xci.py | ae3ea59819381584f381dd1432ad80297966424e | [] | no_license | cryptopulgo/XCmodels | d185b93d01f69d52d88d8a5f965c35dc1742da22 | bad6e553d919909086ab9045884594b7d8aafc06 | refs/heads/master | 2022-12-08T21:24:39.152883 | 2020-08-19T13:25:25 | 2020-08-19T13:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | # -*- coding: utf-8
def trataResultsPret(nmbComb):
mdlr(dom(calculate_nodal_reactions(1)\listaReaccionesNodos(nmbComb,tagsNodosCoartados,"%7.2f","reacc","cabecera","tit")))
\nuevo_archivo_salida["salidaG0"]{"reacciones_G0.tex"}
\resuelveCombEstatLin("G0")
\trataResultsPret("G0")
cierra_archivo_salida("salidaG0")
| [
"l.pereztato@gmail.com"
] | l.pereztato@gmail.com |
3109ce5a426b3c7a9bbb884949883026d046ef93 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/grade-school/07ecb8fb9316422683afbe71e7b89cda.py | 282651815e49817683861a8da2d0e1bacaaac438 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 456 | py | from collections import defaultdict
class School:
def __init__(self, name):
self.name = name
self.db = defaultdict(set)
def add(self, student, grade):
self.db[grade].add(student)
def grade(self, grade_number):
return self.db[grade_number]
def sort(self):
regi... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
859496717de268dc9117c928a2adaa60d197eb67 | 35fdd5b42b47a1dbe6a25f6fc1865f4e48b842a5 | /evalml/tuners/tuner_exceptions.py | a1fecf7101695ca8c098a63dd3fa2cdf08aa4bf7 | [
"BSD-3-Clause"
] | permissive | skvorekn/evalml | 41e5426f9f7d5ad625c21b74336009894c79c7de | 2cbfa344ec3fdc0fb0f4a0f1093811135b9b97d8 | refs/heads/main | 2023-03-27T01:42:07.691406 | 2021-03-19T18:53:43 | 2021-03-19T18:53:43 | 349,555,689 | 0 | 0 | BSD-3-Clause | 2021-03-21T14:57:01 | 2021-03-19T21:08:12 | null | UTF-8 | Python | false | false | 274 | py | class NoParamsException(Exception):
"""Raised when a tuner exhausts its search space and runs out of parameters to propose."""
pass
class ParameterError(Exception):
"""Raised when a tuner encounters an error with the parameters being used with it."""
pass
| [
"noreply@github.com"
] | skvorekn.noreply@github.com |
37f7b34d2d10f3ffdc8b99dc71379799894ec17a | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/fabric/FabricFcSan.py | 31582e89aeb3a2412f8e11f8d85e697845f18cf1 | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,240 | py | """This module contains the general information for FabricFcSan ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class FabricFcSanConsts():
ID_A = "A"
ID_B = "B"
ID_NONE = "NONE"
UPLINK... | [
"test@cisco.com"
] | test@cisco.com |
79fe8745abbd0602a0437bb480fabb4ab786264d | 682319f56c17e949bab0d6e418838d33977dd760 | /Assignment_5/pattern1.py | 5c0520857bd5b8c307f2c17dfda35cc732667f4a | [] | no_license | DilipBDabahde/PythonExample | 8eb70773a783b1f4b6cf6d7fbd2dc1302af8aa1b | 669762a8d9ee81ce79416d74a4b6af1e2fb63865 | refs/heads/master | 2020-08-23T01:05:44.788080 | 2020-07-25T21:59:52 | 2020-07-25T21:59:52 | 216,511,985 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | '''
2. Write a recursive program which display below pattern.
Input : 5
Output : 1 2 3 4 5
'''
i = 1;
def pattern(iNo):
global i;
if i <= iNo:
print(i,end= " ");
i += 1;
pattern(iNo);
def main():
val = int(input("Enter a val:"));
pattern(val);
print();
if __name__ == '__main__':
main();
| [
"noreply@github.com"
] | DilipBDabahde.noreply@github.com |
98fd0ff9ef892db47051df84ce0c6dab4a5c6f62 | 7d1fd87e1aaf7e6b2ea72ab086a128d03ab059f1 | /Python_Flask/Flask1/flask_2.py | 3204f2d47e2bdba0604fdd8a5c532a2880633b24 | [] | no_license | efren1990/codepy | 05fb34fb608d9921cd5b1c257a9869f2d42eafae | 1bd957e7a7285d459ba76e99c4bccb8dbabf8da4 | refs/heads/main | 2023-06-30T06:31:51.154519 | 2021-08-13T01:30:57 | 2021-08-13T01:30:57 | 395,486,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | """
QUE ES FLASK--->
Flask es un microframework para Python basado en Werkzeug, Jinja 2 y buenas intenciones.
Y antes de preguntar: ¡es con licencia BSD!
--------------METODO RUN--------------------------------------------------------------
"""
# Llamado de la libreria flask la clas Flask
from flask import Flask
"""P... | [
"52503339+incodeEfren@users.noreply.github.com"
] | 52503339+incodeEfren@users.noreply.github.com |
008dd71fd10f5620479b636d318ed0204bec3d29 | cb3119cbe128fc9adcf286d257126d03b0de7a10 | /tests/test_net.py | d5498289586178f08151b9c08a1eee33656809fe | [
"MIT"
] | permissive | CBJamo/skidl | a66d14598ec851eb80c1d1fd38df3513aff0acdc | c0e46aa2e75f3be8aefd585c8cbdcbd33a59d542 | refs/heads/master | 2020-03-09T06:30:26.759951 | 2018-04-08T12:54:08 | 2018-04-08T12:54:08 | 128,640,952 | 0 | 0 | null | 2018-04-08T12:52:59 | 2018-04-08T12:52:58 | null | UTF-8 | Python | false | false | 412 | py | import pytest
from skidl import *
from .setup_teardown import *
def test_nets_1():
gnd = Net('GND')
a = Net('A')
b = Net('B')
c = Net()
p = Pin()
assert len(default_circuit.get_nets()) == 0
assert len(a) == 0
assert len(b) == 0
assert len(c) == 0
a += p
assert len(default_ci... | [
"devb@xess.com"
] | devb@xess.com |
20f5f50e20a6e339fe8174eaf494840bb10d8f6b | a312bf5148945a19bb6d30c1f0e97d3edc021af2 | /RestFrameWork/api/serializer.py | d9ff420cf6e881549e5c71899e923275d6171933 | [] | no_license | Shikhar0907/Create-API | 252cdb632765f5d5b7a03213b942bfc9c5b979de | c8f13f309d0aa668091d615946b52bea66316d36 | refs/heads/master | 2020-04-03T00:51:57.367335 | 2018-10-27T01:16:00 | 2018-10-27T01:16:00 | 154,911,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | from rest_framework import serializers
from RestFrameWork.models import Status
class StatusSerializer(serializers.ModelSerializer):
class Meta:
model = Status
fields = [
'id',
'user',
'content',
'image'
]
read_only_fields = ['user']
... | [
"shikharsuman59@gmail.com"
] | shikharsuman59@gmail.com |
e2fb33449cb17a9b98a90fba8046aa3d8eddddcf | 2324d8e4544a9b813153ce0ed0f858972ea7f909 | /66-加一.py | 35964e18d54db38d2430e97ff639ad548ef65d3c | [] | no_license | Terry-Ma/Leetcode | af8a4ad8059975f8d12b0351610336f1f5f01097 | cc7f41e2fb3ed5734c2a5af97e49a5bc17afbceb | refs/heads/master | 2021-08-10T16:40:20.482851 | 2021-07-03T08:35:56 | 2021-07-03T08:35:56 | 225,814,239 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | class Solution:
def plusOne(self, digits: List[int]) -> List[int]:
result = 0
flag = 1
for i in range(len(digits) - 1, -1, -1):
if flag == 1:
if digits[i] == 9:
digits[i] = 0
else:
digits[i] = digits[i] + 1
... | [
"rssmyq@aliyun.com"
] | rssmyq@aliyun.com |
33b03bfe4606d07da07c3346d5d1ccfd40eca98f | d3efc82dfa61fb82e47c82d52c838b38b076084c | /crossmarketetf_bak/crossmarket_redemption_HA/YW_CETFSS_SHSH_037.py | b5b26bedf5acb5c58983fc121c0293984c3daf9e | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,499 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test")
from crossmarketetf.cetfservice.cetf_main_service import *
from crossmarketetf.cetfservice.cetf_get_components_asset import *
from crossmarketetf.cetfservice.cetf_utils import *
from mysql.QueryOrderErrorMsg import q... | [
"418033945@qq.com"
] | 418033945@qq.com |
11dd3960248cfa2fe0cc0c0fac1b2eb2a9ff57ac | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-7332.py | d25e1cfe7e3b3c326b3f08619c66c15d0345986e | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,291 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
0b3171a0d71ffcfd3d3b577218d0ac08ae5273f7 | b01d5af63ae060b3b4b1a715823722e0e2cde603 | /tensorflow_graphics/nn/layer/tests/pointnet_test.py | d5a6a3b51085aa29b0bee419989d7efc2848ef79 | [
"Apache-2.0"
] | permissive | ghosalsattam/graphics | 9c8b313def86d4629281e9c53e0cb261703336f5 | 946aa03b5178d2fc557a81045b84df24af322afd | refs/heads/master | 2022-12-06T15:42:21.729897 | 2020-06-25T14:37:26 | 2020-06-25T14:37:51 | 276,175,390 | 0 | 0 | Apache-2.0 | 2020-06-30T18:13:34 | 2020-06-30T18:13:33 | null | UTF-8 | Python | false | false | 3,553 | py | # Copyright 2020 The TensorFlow 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
fbcc8dc57d65876cb88bbb56654d802ff47535ab | ef74d9ad851021bcb0ed12880e14269b6ed7f617 | /Sample/Koudai/Server/src/ZyGames.Tianjiexing.Server/PyScript/Action/action4408.py | c30f2afc099f329d04a422f45a419fb2d45cb810 | [
"BSD-2-Clause-Views",
"MIT"
] | permissive | sunyuping/Scut | b5e5798e9b519941f0ac3a08a3263dc0f45beb47 | ec2ea35c0e4de1f2da49c50d14e119a4f17cd93a | refs/heads/master | 2020-12-25T23:19:26.597830 | 2013-11-16T07:50:01 | 2013-11-16T07:50:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | import clr, sys
import random
import time
import datetime
clr.AddReference('ZyGames.Framework.Common');
clr.AddReference('ZyGames.Framework');
clr.AddReference('ZyGames.Framework.Game');
clr.AddReference('ZyGames.Tianjiexing.Model');
clr.AddReference('ZyGames.Tianjiexing.BLL');
clr.AddReference('ZyGames.Tianjiexing.La... | [
"wzf_88@qq.com"
] | wzf_88@qq.com |
17008c563dddbe80a6415183379d983eac9dbb47 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/input/Profile/JoystickProfile.py | 5d46096bb6be570335fa1ccb552a8962953dcbef | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,476 | py | # Embedded file name: scripts/client/input/Profile/JoystickProfile.py
import BigWorld
import math
import GameEnvironment
from ICMultiUpdate import ICMultiUpdate
import InputMapping
from MathExt import clamp, sign, FloatToCInt16
from consts import FORCE_AXIS, FLAPS_AXIS, HORIZONTAL_AXIS, VERTICAL_AXIS, ROLL_AXIS, BATTLE... | [
"55k@outlook.com"
] | 55k@outlook.com |
81fb43984df719ac0a69586774519e26f244c066 | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/scattersmith/marker/_colorsrc.py | 1d2e5dccad1b68311d62023efc16f4abcdc15182 | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 423 | py | import _plotly_utils.basevalidators
class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(
self, plotly_name="colorsrc", parent_name="scattersmith.marker", **kwargs
):
super(ColorsrcValidator, self).__init__(
plotly_name=plotly_name,
parent_na... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
7ebfc26b10baea71e8dbcd50b7ed6fc962d09c71 | e09bbdc53af6be9281795189f26f6e59997abf68 | /neuronquant/gryd/transport.py | 183330aa2c65f32fdec906caffa44dc146ea5c03 | [
"Apache-2.0"
] | permissive | jag787/ppQuanTrade | 620ce72c7875bb730708c48ae0481376b43e501b | 9a6da7522d281da130a2c459e2e614a75daa543d | refs/heads/master | 2021-01-11T13:53:40.583710 | 2013-12-20T10:43:58 | 2013-12-20T10:43:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,675 | py | #
# Copyright 2013 Xavier Bruhiere
#
# 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 wri... | [
"xavier.bruhiere@gmail.com"
] | xavier.bruhiere@gmail.com |
5157862865c047a3f71dfc3861aa683a3ee01433 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_340/ch18_2020_03_24_20_25_22_823016.py | 2c9bee710b1b30509eed5988debf9eecc529908b | [] | 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 | 180 | py | def verifica_idade(idade):
if idade<21 and idade>=18:
return "Liberado BRASIL"
if idade>=21:
return "Liberado EUA e BRASIL"
else:
return "Não está liberado" | [
"you@example.com"
] | you@example.com |
387c0b0af55a652c79e797fdd431a9df93bc9ad1 | 0bce7412d58675d6cc410fa7a81c294ede72154e | /Python3/0840. Magic Squares In Grid.py | f34d8b33065ffacf2d06e6948cd16d845b526b6e | [] | no_license | yang4978/LeetCode | 9ddf010b0f1dda32cddc7e94c3f987509dea3214 | 6387d05b619d403414bad273fc3a7a2c58668db7 | refs/heads/master | 2022-01-15T04:21:54.739812 | 2021-12-28T12:28:28 | 2021-12-28T12:28:28 | 182,653,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | class Solution:
def numMagicSquaresInside(self, grid: List[List[int]]) -> int:
m = len(grid)
n = len(grid[0])
res = 0
for i in range(1,m-1):
for j in range(1,n-1):
if grid[i][j] == 5:
s = set([grid[x][y] for x in range(i-1,i+2) for y i... | [
"noreply@github.com"
] | yang4978.noreply@github.com |
709301f9d4428d82c82012c10bfd7baa33a5c3ed | 3a91ebaa94e72906c8ef06baa780eeb14ceb6a2f | /rex/controllers/wallet_controller.py | 915639c1959dbc67f919f59662b5da6fcd68cd93 | [] | no_license | mphuc/max | 660523b07f201265398f7ccf1e50ff937c2bbe55 | 835f7877c217cd80b5d8334376e4708cca1a15e9 | refs/heads/master | 2022-12-09T17:38:40.163828 | 2019-03-19T02:43:16 | 2019-03-19T02:43:16 | 151,679,863 | 0 | 0 | null | 2022-12-07T23:52:39 | 2018-10-05T06:33:47 | JavaScript | UTF-8 | Python | false | false | 35,406 | py | from flask import Blueprint, request, session, redirect, url_for, render_template, flash
from flask.ext.login import login_user, logout_user, current_user, login_required
from rex import app, db
from rex.models import user_model, deposit_model, history_model, invoice_model
from werkzeug.security import generate_passwor... | [
"you@example.com"
] | you@example.com |
8ad5873a652011eb278d4990e7ab0deaaa16d6d5 | fa0c53ac2a91409eaf0fc7c082a40caae3ffa0d8 | /com/lc/python_1_100_Days_Demo/Day41-55/code/oa/hrs/migrations/0002_auto_20180523_0923.py | 8b9b835a5b6e204d799a71659938b8b97db8597e | [] | no_license | ahviplc/pythonLCDemo | aba6d8deb1e766841461bd772560d1d50450057b | 22f149600dcfd4d769e9f74f1f12e3c3564e88c2 | refs/heads/master | 2023-07-24T01:41:59.791913 | 2023-07-07T02:32:45 | 2023-07-07T02:32:45 | 135,969,516 | 7 | 2 | null | 2023-02-02T03:24:14 | 2018-06-04T04:12:49 | Python | UTF-8 | Python | false | false | 1,309 | py | # Generated by Django 2.0.5 on 2018-05-23 01:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hrs', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='dept',
name='excellent',
field=... | [
"ahlc@sina.cn"
] | ahlc@sina.cn |
8947aacd51a8e5f7d74271633434aedd17340366 | 85ef27cfe69bf8f4c65ecf4a382742984d91ae12 | /Python/Programs/count_letters.py | 2fe480f4ae66114923b5425db6a3b01a6754c3cf | [] | no_license | SenthilKumar009/100DaysOfCode-DataScience | 7fc0d404e486b2aa1da3a242def0a307fec50f47 | dd2d44363960c9078b73956b6587961de0185f16 | refs/heads/master | 2023-07-17T04:38:21.404964 | 2021-08-27T12:56:55 | 2021-08-27T12:56:55 | 191,664,483 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | message = 'It was a bright cold day in April, and the clocks were striking thirteen.'
count = {}
for character in message:
count.setdefault(character, 0)
count[character] = count[character] + 1
print(count) | [
"senthilkumark.nitt@gmail.com"
] | senthilkumark.nitt@gmail.com |
f6b2bb05fba8fa4a5e097c7a3e7a8c1d6f174bb5 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/966bacf76c3a1f815c5fe55cee798dee/snippet.py | cb3ed3fe07ada127bc9b67fa2db937d98cc30bc7 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 378 | py | class globalizer():
def __init__(self):
global a
a = self #global self formbidden bcs self is an ARGUMENT
cloud = globalizer()
if __name__ == '__main__':
cloud.nbr = 1
cloud.string = 'Hello World'
def randFunction():
for i in range(cloud.nbr):
print(cloud.strin... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
19c45d471ccab8ab75f519647a61c26064197ab5 | 496a63f41fa32e2bb3ecce0d35ff4374f1c02ad5 | /src/scripting/assembly/ge.py | f933b8eb895afe1b368c3d8c5beefca223b82b18 | [
"BSD-3-Clause"
] | permissive | vincent-lg/avenew.one | bbfa8d44e68db943b8825e9d4a32a43e985778fe | fb7f98d331e47e2032ee1e51bf3e4b2592807fdf | refs/heads/main | 2023-02-14T00:28:53.511552 | 2021-01-13T11:13:07 | 2021-01-13T11:13:07 | 330,207,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | # Copyright (c) 2020-20201, LE GOFF Vincent
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions... | [
"vincent.legoff.srs@gmail.com"
] | vincent.legoff.srs@gmail.com |
6a63bb8312a5cd8e61b833f01e14539cb8da6134 | 088e000eb5f16e6d0d56c19833b37de4e67d1097 | /model-optimizer/extensions/ops/interpolate.py | 36f96e35ce8a854d22ae2d4a4234e40536375d2b | [
"Apache-2.0"
] | permissive | projectceladon/dldt | 614ba719a428cbb46d64ab8d1e845ac25e85a53e | ba6e22b1b5ee4cbefcc30e8d9493cddb0bb3dfdf | refs/heads/2019 | 2022-11-24T10:22:34.693033 | 2019-08-09T16:02:42 | 2019-08-09T16:02:42 | 204,383,002 | 1 | 1 | Apache-2.0 | 2022-11-22T04:06:09 | 2019-08-26T02:48:52 | C++ | UTF-8 | Python | false | false | 2,543 | py | """
Copyright (c) 2019 Intel Corporation
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 wri... | [
"44090433+openvino-pushbot@users.noreply.github.com"
] | 44090433+openvino-pushbot@users.noreply.github.com |
119e98fc99640e99e9f37b056b8002cc63a4c9b3 | db9f0df35b37cf6b6aae18753609ae2c64e7e549 | /TTBSMTuplesAnalysis/python/Type11Analyzer.py | a45ad2af8cb9143551bdbc7a33010d7620bfa444 | [] | no_license | justinrpilot/ZprimeAllHad | 938f0097f87ea1dfbfb290a1e553c9555768a89e | b4477e26cce570376f7671433327a8d0f9ea516c | refs/heads/master | 2021-01-13T02:16:54.485622 | 2015-01-07T21:18:56 | 2015-01-07T21:18:56 | 12,485,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,719 | py | import ROOT
import copy
from math import *
from array import array
from operator import itemgetter, attrgetter
ROOT.gSystem.Load("libFWCoreFWLite.so")
ROOT.AutoLibraryLoader.enable()
from DataFormats.FWLite import Events, Handle
from Analysis.TTBSMTuplesAnalysis import *
class Type11Analyzer :
"""Run 1 + 1 Anal... | [
"justin.pilot@cern.ch"
] | justin.pilot@cern.ch |
b0efa79ff67011699b40d07b9eb872a0596d4486 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/84/usersdata/188/56925/submittedfiles/lista1.py | 3ae36f6760785e4cd08b91fcf70529b819f30e26 | [] | 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 | 155 | py | # -*- coding: utf-8 -*-
lista=[]
n=int(input('Digite n:'))
for i in range (1,n+1,1):
valor=float(input('Valor:'))
lista.append(valor)
print(lista)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
29aa09304badbc52a5f19a16218b19920f47ee59 | 10af7a7c08e2d8c630f115a7f1c89dc9a2c0c007 | /0437_pathSum.py | ac2d79c9e3aa80043576026113c614918875db5d | [] | no_license | mathvolcano/leetcode | 4218846652a8d73192d74cbf83f5a92549236568 | 2682cc975ec299d9253aa191b5453669dd1ebd58 | refs/heads/master | 2022-11-27T22:47:49.700110 | 2022-11-08T18:11:27 | 2022-11-08T18:11:27 | 154,909,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | """
437. Path Sum III
https://leetcode.com/problems/path-sum-iii/
"""
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def pathSum(self, root: TreeNode, pat... | [
"mathvolcano@users.noreply.github.com"
] | mathvolcano@users.noreply.github.com |
880ebf9230daad74995329f1a250ec1834803007 | 1588a1d601d29c18942d220657185d3bf7b17160 | /시뮬레이션/BOJ1966.py | f8f06358c959b96afa8efb9434aea0aa231e353b | [] | no_license | geonwoomun/AlgorithmStudy | 1f8148e981beebd2e6f70e65193ce445fa59df96 | d43b624aad80f10d687a8f4b37cc79d88fc772b3 | refs/heads/master | 2020-08-01T05:24:26.980370 | 2020-07-15T05:04:35 | 2020-07-15T05:04:35 | 210,878,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # BOJ 1966번 프린터 큐
from sys import stdin
input = stdin.readline
T = int(input())
while T > 0 :
N, M = map(int, input().split()) # N 개수 M 위치
paper = list(map(int, input().split()))
check = [i for i in range(N)]
count = 0
while 1:
maxPaper = max(paper)
temp = paper.pop(0)
temp... | [
"ansejrrhkd@naver.com"
] | ansejrrhkd@naver.com |
c31acf44d382b4d4d9b138ea83593ab35a2a2999 | 0b2facfa8d47bceea5bbf969bd1ca86215638cf6 | /macop/algorithms/Algorithm.py | 140bb33cb3ebe9a7cc366b57190e12834379767e | [
"MIT"
] | permissive | geoffreyp/macop | 37ec5c0ed7913068ee808e63c9c537babed479ca | 287df287e23c7e4f07e90dfcc0a99ef247f5c6b5 | refs/heads/master | 2022-12-29T06:40:11.774347 | 2020-10-23T10:25:15 | 2020-10-23T10:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,374 | py | """Abstract Algorithm class used as basic algorithm implementation with some specific initialization
"""
# main imports
import logging
import pkgutil
import sys
from ..utils.color import macop_text, macop_line, macop_progress
# Generic algorithm class
class Algorithm():
"""Algorithm class used as basic algorithm... | [
"contact@jeromebuisine.fr"
] | contact@jeromebuisine.fr |
b0ab78c85f4036c1d5dc4095044316ce631511b5 | 7f5a392fc8a08c1cc1f2bc658497b12ef2a27f79 | /air/discarded/train_air_num_bbox.py | 68861ea639f1c0149792768d3288aaf5a0761c16 | [] | no_license | taufikxu/MOG-ASR | f3478c523cbb29a985bdf5cadd2cba500d71fe3c | 72407c36ea4e61b0c9777fefd6bec7836126077a | refs/heads/master | 2020-08-26T16:04:59.603570 | 2019-10-23T13:49:55 | 2019-10-23T13:49:55 | 217,066,279 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,826 | py | import os
import shutil
import argparse
import time
import tensorflow as tf
import numpy as np
from multi_mnist import read_and_decode
from multi_mnist import read_test_data
from air.air_prior_correlated_num_bbox import AIRModel
from utils.checkpoints import build_logger
EPOCHS = 300
BATCH_SIZE = 64
CANVAS_SIZE = 5... | [
"kunxu.thu@gmail.com"
] | kunxu.thu@gmail.com |
8930a0c2a06c0c47f689a2c208024783fa6de8f4 | 769f08657e880c4b1cc085dd77277c6eef8772e5 | /pep412.py | 9d69fb239b7d2c34d02bda047e6e781adb4dd5ec | [] | no_license | udemy-course/python3-new-feature | 106160389ebf70e13a5c2bce158fbc32d4979fc9 | b6b482bc4acffb9bf168dc9f494f28179357934c | refs/heads/master | 2020-03-23T03:26:29.954700 | 2018-08-23T13:37:40 | 2018-08-23T13:37:40 | 141,030,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | """
pep412.py
Created by Peng Xiao on 2018-08-10. xiaoquwl@gmail.com
"""
import time
class Foo:
def __init__(self, a, b):
self.a = a
self.b = b
if __name__ == "__main__":
n = 1000000
i = 0
result = []
while i < n:
result.append(Foo(1,2))
i += 1
while True:
... | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
9fedf7c194fd4216199fea7f3daae1bf67c19c59 | 62c20237dbc12a49849bc6533e5e386bc6a26cf6 | /app.py | 4234d25f12c085e1b347a75fbf2b2881d1665eb2 | [] | no_license | yhx189/api-server | 03ef3b70c5734442c90dc8b118920237616da072 | d96cfc2d437ff2b540e355ae363003629d23a1f1 | refs/heads/master | 2021-01-10T01:15:23.539890 | 2016-01-21T00:53:18 | 2016-01-21T00:53:18 | 50,071,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,414 | py | #!flask/bin/python
import socket
import subprocess
from flask import Flask, jsonify, abort, request, make_response, url_for
app = Flask(__name__, static_url_path = "")
#app = Flask(__name__)
@app.errorhandler(400)
def not_found(error):
return make_response(jsonify( { 'error': 'Bad request' } ), 400)
@app.errorha... | [
"ubuntu@ubuntu.(none)"
] | ubuntu@ubuntu.(none) |
09c129b6cd1a837099b4b2c25784a3808389e94e | eafe15761be5f857d5b756eafc9446fc375aba66 | /video/migrations/0002_auto_20200216_1749.py | 2c6e5d422dc6f2c4f631513f1d9151a4b2a1e24c | [] | no_license | biletboh/tempora | 6ff10995e7eacae8b2ac95b1dfb785749949670b | cec40ad8719d03e5c1d83320c38f78d3e0338687 | refs/heads/master | 2023-05-25T21:23:09.466591 | 2022-02-09T10:10:58 | 2022-02-09T10:10:58 | 92,310,550 | 0 | 0 | null | 2023-05-22T20:57:13 | 2017-05-24T15:56:23 | HTML | UTF-8 | Python | false | false | 507 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2020-02-16 15:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('video', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"biletskyboh@gmail.com"
] | biletskyboh@gmail.com |
fee306a0edc828534bcb940ad1661104bfc04226 | 0557d23e6752aa981a0fb81d6c7a727bfdf760d2 | /airflow_cdk/__init__.py | 5d82fcd42cb6bf344ef8397739e5312f0f597f3c | [
"Apache-2.0"
] | permissive | knowsuchagency/airflow-cdk | 15b5f0cac1c6c8e7b7d450fc8ab29bbb3fc50aa1 | 6f83e9cfcc01f18ddaac8dbe313ababd3129fe88 | refs/heads/master | 2022-12-17T14:21:06.246049 | 2020-09-21T22:07:04 | 2020-09-21T22:07:04 | 266,039,663 | 27 | 3 | Apache-2.0 | 2020-09-21T21:02:37 | 2020-05-22T06:50:33 | Python | UTF-8 | Python | false | false | 43 | py | from airflow_cdk.cdk import FargateAirflow
| [
"knowsuchagency@gmail.com"
] | knowsuchagency@gmail.com |
6bece771f9246166f9a70f04cf16afe1303fb78c | fc0cc698686f4b17aafe42360dac81357bcb183e | /docimage/preprocessing.py | a2d90ef4b101fa2335edaf0ef786be4c5104e6e4 | [
"MIT"
] | permissive | Abhishek-Prusty/docimage | 7b7bef669b3a5e03b170fed4c9f340af9e103fe7 | c29f9a2634e6f807b108cd4237783be22baea307 | refs/heads/master | 2020-03-22T13:52:45.381192 | 2018-08-16T17:16:57 | 2018-08-16T17:16:57 | 140,138,183 | 2 | 0 | MIT | 2018-08-11T09:59:15 | 2018-07-08T04:48:38 | Python | UTF-8 | Python | false | false | 6,980 | py | # -*- coding: utf-8 -*-
"""
pre-processing and pattern matching.
This python module can perform the following functions:
1. Binarization - method binary_img(img) performs this function
2. Skew correction - method skew_correction(img) performs this function
Need to introduce machine learning of some sort to make the ske... | [
"vishvas.vasuki@gmail.com"
] | vishvas.vasuki@gmail.com |
0112480a4196f04c5801ba35de61675a5b1bc136 | 26dec2f8f87a187119336b09d90182d532e9add8 | /mcod/reports/tests/conftest.py | c0e0376a877c755a7387fefc0a28a7e11df4dff4 | [] | no_license | olekstomek/mcod-backend-dane.gov.pl | 7008bcd2dbd0dbada7fe535536b02cf27f3fe4fd | 090dbf82c57633de9d53530f0c93dddf6b43a23b | refs/heads/source-with-hitory-from-gitlab | 2022-09-14T08:09:45.213971 | 2019-05-31T06:22:11 | 2019-05-31T06:22:11 | 242,246,709 | 0 | 1 | null | 2020-02-24T22:39:26 | 2020-02-21T23:11:50 | Python | UTF-8 | Python | false | false | 46 | py | from mcod.core.tests.conftest import * # noqa | [
"piotr.zientarski@britenet.com.pl"
] | piotr.zientarski@britenet.com.pl |
4aa5f2afb04c078af8ed9f1cb0036c1589a50253 | 4012f290d83ae7f4c09d7440f26d2acd7e63efbe | /1173.py | 84b870ec4827293d81d8ffc5b50fe0a1e8918e42 | [] | no_license | jinaur/codeup | ffc2d0fdf73892c1f46d80021ad8f4c1293c9e2e | 5f75ace909e2b3151171932cc3ee9f3c49dd46d9 | refs/heads/master | 2023-04-15T07:42:06.244806 | 2021-04-25T13:59:42 | 2021-04-25T13:59:42 | 277,760,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | a, b = map(int, input().split())
def my_func(a, b) :
if b < 30 and a == 0 :
a = 23
b += 30
print(a, b)
return
elif b < 30 :
a -= 1
b += 30
print(a, b)
return
b -= 30
print(a, b)
return
r = my_func(a, b)
| [
"50763720+jinaur@users.noreply.github.com"
] | 50763720+jinaur@users.noreply.github.com |
4f69ae38888dca5bfa8b94ef6888374f34854149 | cb3634622480f918540ff3ff38c96990a1926fda | /PyProject/sparkproject/rdd/pairRdd/transformations/reduceByKey.py | 513009ff5dc829627635a3d07fae951f883b828a | [] | no_license | jacksonyoudi/AlgorithmCode | cab2e13cd148354dd50a0487667d38c25bb1fd9b | 216299d43ee3d179c11d8ca0783ae16e2f6d7c88 | refs/heads/master | 2023-04-28T07:38:07.423138 | 2022-10-23T12:45:01 | 2022-10-23T12:45:01 | 248,993,623 | 3 | 0 | null | 2023-04-21T20:44:40 | 2020-03-21T14:32:15 | Go | UTF-8 | Python | false | false | 393 | py | # coding: Utf-8
from pyspark import SparkConf, SparkContext
if __name__ == '__main__':
conf = SparkConf().setAppName("rdd").setMaster("local[*]")
sc = SparkContext(conf=conf)
a = ["a", "a", "c", "d", "d", "c", "e"]
b = [1, 2, 3, 4, 1, 3, 7]
data = list(zip(a, b))
disData = sc.parallelize(data... | [
"liangchangyoujackson@gmail.com"
] | liangchangyoujackson@gmail.com |
f22db2a82d7850863138464c298ed71a3e98019e | 47c19df3774c82354579414440e03c1fa89dc49c | /tensorflow/python/training/distribute.py | caffd042a0917209c87cab8993169dc4bc956039 | [
"Apache-2.0"
] | permissive | felipengeletrica/tensorflow | 16f50191bf661e55dda4322d13bb0638da94141e | 82a8b1b30f4d2eff5ae17839a118f5e8e83d81a2 | refs/heads/master | 2020-03-21T08:12:07.889799 | 2018-06-22T15:51:23 | 2018-06-22T15:51:23 | 138,327,820 | 1 | 0 | Apache-2.0 | 2018-06-22T17:01:48 | 2018-06-22T17:01:45 | null | UTF-8 | Python | false | false | 50,665 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
e402fa1c2ce544c37f3d20d570e1726d78557508 | d4412fbe37540e2c4cbe59ed6503d3661ccb7d9c | /tests/test_analyzer/test_subclasses/test_flop_tensor.py | 4e9c9852649ba593d37e20f9a9a414fd2a2a04f4 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | hpcaitech/ColossalAI | a082ed08a3807b53c49d1f86835b9808590d9042 | c7b60f75470f067d1342705708810a660eabd684 | refs/heads/main | 2023-09-01T04:13:13.834565 | 2023-08-30T15:07:21 | 2023-08-30T15:07:21 | 422,274,596 | 32,044 | 4,084 | Apache-2.0 | 2023-09-14T15:19:54 | 2021-10-28T16:19:44 | Python | UTF-8 | Python | false | false | 1,925 | py | import pytest
import torch
import torch.nn.functional as F
import torchvision.models as tm
from packaging import version
from colossalai.testing import clear_cache_before_run, parameterize
from tests.test_analyzer.test_fx.zoo import tm_models, tmm_models
try:
from colossalai._analyzer._subclasses import MetaTenso... | [
"noreply@github.com"
] | hpcaitech.noreply@github.com |
310a3e2b195bd96ba7d266f470ce7bf23891162a | 5210993914691c70076be979aa5c57c33d5d3bc4 | /Programming101-3/Week_1/The_Final_Round/unique_words_count.py | daf32bc0de62796c448ac4f7695c67a3dea43851 | [] | no_license | presian/HackBulgaria | d29f84ab7edc85a4d8dfbf055def7d0be783539e | 8bc95bb31daeb1f5a313d25b928f505013f5f0b0 | refs/heads/master | 2021-01-10T04:38:05.759005 | 2015-10-15T07:05:21 | 2015-10-15T07:05:21 | 36,889,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | def unique_words_count(arr):
return len({x for x in arr})
def main():
print(unique_words_count(["apple", "banana", "apple", "pie"]))
print(unique_words_count(["python", "python", "python", "ruby"]))
print(unique_words_count(["HELLO!"] * 10))
if __name__ == '__main__':
main()
| [
"presiandanailov@gmail.com"
] | presiandanailov@gmail.com |
3332366bee34f0fc8461908bc0793a908fe55b86 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/purview/azext_purview/manual/_help.py | 0508662c698375e3bf665656ff64d7a2955da878 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 5,143 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | [
"noreply@github.com"
] | Azure.noreply@github.com |
4553cecf9a964d9436652c40173f996ef96764d9 | 3b981dfc835d36eb9bb86e4dbb0b1e332285d5cf | /nkcomments/tests.py | a18b4126c658b2f908cb0544717e797b4646133b | [] | no_license | richraines/nuortenideat | d9ad5ff33e4231c7f9960b9e1a54be16395173a2 | 033f63575c52ce118f0deba1168afca743de6c26 | refs/heads/master | 2020-09-01T01:39:39.137935 | 2016-10-31T14:24:59 | 2016-10-31T14:24:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,945 | py | # coding=utf-8
from __future__ import unicode_literals
from django.contrib.contenttypes.models import ContentType
from account.factories import UserFactory, DEFAULT_PASSWORD
from content.factories import IdeaFactory
from content.models import Idea
from nuka.test.testcases import TestCase
from .factories import Cust... | [
"erno@fns.fi"
] | erno@fns.fi |
b5502ff8609f59db993800579ab69261e4b48e43 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02887/s396715066.py | 5b052e1ae14ff4d5ca6061b10c85c914d5c652a3 | [] | 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 | 148 | py | n = int(input())
s = input()
ans = 0
i = 0
while i < n:
ans += 1
while i + 1 < n and s[i] == s[i + 1]:
i += 1
i += 1
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7cacc1bab1526fbce224cf19ba5f0e8b7d08435c | 8b0cf90774310723282c525a491d0df5ccdbaddc | /blog3/apps/articles/urls.py | dcfde7c9c4fe4f3e8d0bd47fc031969a95517c81 | [] | no_license | LIMr1209/django-practive | 13d0b1a02761010643405b8233bc2b1c1ebf8622 | deb01dac652cda7ef7117d3ecef3546092cef97c | refs/heads/master | 2020-03-24T06:16:58.839185 | 2018-08-19T06:25:45 | 2018-08-19T06:25:45 | 142,522,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | """blog3 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"aaa1058169464@126.com"
] | aaa1058169464@126.com |
0b2cf2939ef3f48228585318267019e47b06095b | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/addons/hr_holidays/hr_department.py | 7d85f388aed16347ff5c1459fc3ae78817e442c2 | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | # -*- coding: utf-8 -*-
import datetime
from dateutil.relativedelta import relativedelta
from yuancloud import api, fields, models
from yuancloud.tools import DEFAULT_SERVER_DATETIME_FORMAT
class hr_department(models.Model):
_inherit = 'hr.department'
@api.multi
def _compute_leave_count(self):
H... | [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
7c3c0c5a5449b05da0d3b2c0e20af4bdc954d868 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/13506401.py | 2ee175731dd094ef713916c24d807afb652a3e37 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/13506401.py generated: Wed, 25 Jan 2017 15:25:23
#
# Event Type: 13506401
#
# ASCII decay Descriptor: [B_s0 -> (tau+ -> pi+ pi- pi+ (pi0 -> gamma gamma) anti-nu_tau) (tau- -> pi+ pi- pi- (pi0 -> gamma gamma) nu_tau)]cc
#
from Configurables import Gener... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
47f25718bc8fa8fde5832344631f295bcac6eb3e | 230b7714d61bbbc9a75dd9adc487706dffbf301e | /tools/binary_size/libsupersize/diff_test.py | 93ded263b681ff5749aee9d022c882345bbc8fc3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"MIT",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.0-only",
"APSL-2.0",
"LicenseRef-scancode-unknown",
"Zlib"
] | permissive | byte4byte/cloudretro | efe4f8275f267e553ba82068c91ed801d02637a7 | 4d6e047d4726c1d3d1d119dfb55c8b0f29f6b39a | refs/heads/master | 2023-02-22T02:59:29.357795 | 2021-01-25T02:32:24 | 2021-01-25T02:32:24 | 197,294,750 | 1 | 2 | BSD-3-Clause | 2019-09-11T19:35:45 | 2019-07-17T01:48:48 | null | UTF-8 | Python | false | false | 7,313 | py | #!/usr/bin/env python
# Copyright 2019 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 unittest
import diff
import models
def _MakeSym(section, size, path, name=None):
if name is None:
# Trailing letter is ... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
09b6e86dc545020ba63dfe09f0a5961ed2def2ff | 028274f08da4c616ccc1362df390dcfe58131fc6 | /DS_Management_Tools/TaskController/EESMap/__init__.py | dad1405df121f6c10a6267c6a2520494f8e5c7f4 | [] | no_license | PyWilhelm/EDRIS_DS | 8a5430515bfc7e11abf846126f4fa2388ff59dd9 | cc0179495d8874ff5a95fd08d833388f434e1d87 | refs/heads/master | 2021-01-17T00:43:01.560668 | 2016-07-23T10:50:09 | 2016-07-23T10:50:09 | 64,011,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import json
from TaskController.SPS.MetataskOverriderSPS import MetataskOverriderSPS
from TaskController.BaseClass.Controller import Controller
from TaskController.PISystem import PostProcessing
def start_controller(tid, input_data, session={}, controller=None,... | [
"ziyang.li.nk@gmail.com"
] | ziyang.li.nk@gmail.com |
87b51dd3a3e8876ddd9a9460e1914569c7f0e8dc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_005/ch1_2020_03_02_19_35_48_382180.py | cfc6794f0f914f73b54f3ebeea232541950565aa | [] | 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 | 63 | py | def calcula_valor_devido(c,i,n):
m=c*(1+n)**i
return m
| [
"you@example.com"
] | you@example.com |
db727ffa84eef94dfc2beca0189cb6f147dd7d5b | 065191d9e09ecda3966d96770d166371bcbba515 | /troposphere/helpers/meta.py | 0d96a8ed25a18bfb7ede095d1f80e67aa001fa12 | [
"MIT"
] | permissive | sabakaio/docker-registry | 2da96e14c1a7f1d50a7998e355b6980617ce0355 | 720a800e5f7f02ff1ec5d9b1d559a2dd6114f7f1 | refs/heads/master | 2020-04-10T13:30:10.923260 | 2016-12-13T16:24:26 | 2016-12-13T16:30:32 | 61,976,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,225 | py | from troposphere import Ref, Base64, Join
from troposphere import cloudformation as cf, ec2, autoscaling as au
def docker():
return cf.InitConfig(
'Docker',
packages={'yum': {'docker': []}},
commands={
'docker_user': {
'command': 'usermod -aG docker ec2-user'
... | [
"anton.egoroff@gmail.com"
] | anton.egoroff@gmail.com |
0db997ac3b71508a9edbdb5eb3f6387a318c9d51 | 2b8e7eadb920e96c75697880a9c5461aa8e0c5ed | /nabu/neuralnetworks/components/__init__.py | a5db902e5340481df5b5861383c42f9afb4ac971 | [
"MIT"
] | permissive | ishandutta2007/nabu | fb963ed3cd34ee340014e0c1e77927c838bba0ad | 313018a46f68cec1d4a7eb15b8b1cf68111a959c | refs/heads/master | 2020-04-03T04:57:57.911576 | 2018-12-14T11:02:52 | 2018-12-14T11:02:52 | 155,029,958 | 0 | 0 | MIT | 2018-12-06T18:20:12 | 2018-10-28T02:59:31 | Python | UTF-8 | Python | false | false | 146 | py | '''@package components
contains tensorflow components'''
from . import hooks, ops, rnn_cell, layer, beam_search_decoder, constraints,\
attention
| [
"vincent.renkens@esat.kuleuven.be"
] | vincent.renkens@esat.kuleuven.be |
f1d495e819fdd0ca2ee0c788757b45bdda03b7f4 | 6759d9c1b836224ce5a154f7857157640866d60b | /manage.py | 17148e60b41874beacdfe3f2efcf55a0a2f74974 | [] | no_license | riyadhswe/Covid19 | 323d9361d98c53c45394d074b21d9539c1ee077d | 1428b91ad7e90da891dc4148c888eafe43153ffa | refs/heads/master | 2023-03-25T06:10:08.497082 | 2021-03-24T15:18:54 | 2021-03-24T15:18:54 | 338,812,298 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Covid19.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"riyadhswe@gmail.com"
] | riyadhswe@gmail.com |
de800c8cf61c350770e839c16c0dd15804e29491 | 691793de7d07b17918d076b319281c706f7275c0 | /signing_today_client/api/devices_api.py | 306cc2ab1266e7621a8ba2d8c55389a9a5667599 | [
"MIT"
] | permissive | signingtoday/signingtoday-sdk-python | 1ddfae5340690c80760c500436631d4a8ff9c87f | ed267279622fb59f2ad8fa289157fc9cdf9d8a5b | refs/heads/master | 2020-12-03T15:32:35.755222 | 2020-03-24T08:27:11 | 2020-03-24T08:27:11 | 231,372,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,528 | py | # coding: utf-8
"""
Signing Today Web
*Signing Today* is the perfect Digital Signature Gateway. Whenever in Your workflow You need to add one or more Digital Signatures to Your document, *Signing Today* is the right choice. You prepare Your documents, *Signing Today* takes care of all the rest: send invitatio... | [
"smartcloud@bit4id.com"
] | smartcloud@bit4id.com |
17e7706740822fc7a717ced217bcdb8f7770aece | e0db13bc8113fb7b383d0a8d09e09686668e2fb4 | /Data-Structures-and-Algorithms/Big-O-Notations.py | bdb3512128e595a28ba98d081d46d63601c547a3 | [] | no_license | nirmalnishant645/Python-Programming | dd66acd665af8933fa14b19d01300deb1eccbb7d | 70e97e6f35f125acfde3b38e1baa794a357b8a77 | refs/heads/master | 2022-06-03T12:41:56.483000 | 2022-05-12T10:54:59 | 2022-05-12T10:54:59 | 151,211,590 | 3 | 5 | null | 2020-02-12T05:48:59 | 2018-10-02T06:44:54 | HTML | UTF-8 | Python | false | false | 516 | py | from math import log
import numpy as np
import matplotlib.pyplot as plt
plt.style.use('bmh')
# Set up runtime comparisons
n = np.linspace(1,10,1000)
labels = ['Constant','Logarithmic','Linear','Log Linear','Quadratic','Cubic','Exponential']
big_o = [np.ones(n.shape),np.log(n),n,n*np.log(n),n**2,n**3,2**n]
# Plot set... | [
"nirmalnishant645@gmail.com"
] | nirmalnishant645@gmail.com |
849332128a1f20ddebff18d4d7d8abafa1b75de5 | fdcb2cdee4d5b398eed4eefc830213234e3e83a5 | /01_MIT_Learning/00_midterm/P4.py | 8b625a8f64d442a8f758fb47ab1f6f2a52939a51 | [] | no_license | daftstar/learn_python | be1bbfd8d7ea6b9be8407a30ca47baa7075c0d4b | 4e8727154a24c7a1d05361a559a997c8d076480d | refs/heads/master | 2021-01-20T08:53:29.817701 | 2018-01-15T22:21:02 | 2018-01-15T22:21:02 | 90,194,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | # PROBLEM 4
# Write a function is_triangular that meets the
# specification below.
"""
A triangular number is a number obtained by the continued
summation of integers starting from 1.
For example, 1, 1+2, 1+2+3, 1+2+3+4, etc.,
corresponding to 1, 3, 6, 10, etc., are triangular numbers.
"""
def is_triangular(k):
... | [
"nikdaftary@gmail.com"
] | nikdaftary@gmail.com |
8b9c8c09a91ab100a96e677c5af956a33a8ee87e | 1eddc123709611cf2ddccb0b7d48b722b2a09a5d | /plugins/modules/fmgr_pm_pblock_obj.py | 1e54ba66c85c05275915542e8b4b909def1cc7c8 | [] | no_license | fortinet-ansible-dev/ansible-galaxy-fortimanager-collection | bfb2014a72007358b491bb1d27c0fa3191ec62a8 | 63b65abce410ed4d6b76e3dd1dcf7a4341cc173d | refs/heads/main | 2023-07-09T04:33:38.304263 | 2023-06-21T21:11:57 | 2023-06-21T21:11:57 | 242,629,431 | 10 | 18 | null | 2022-12-16T15:57:16 | 2020-02-24T02:28:03 | Python | UTF-8 | Python | false | false | 30,166 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2023 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | [
"hq-devops-admin@fortinet.com"
] | hq-devops-admin@fortinet.com |
1c93cded721204389639d3cabae1b862853c3694 | 53a3c329e6f0860e840babf19e12452e94c30e39 | /scripts/gain_stats.py | ca1ee1fea01ba14ec2b2c538c37a6fc3a66bc37b | [] | no_license | galabing/qd | 60c2602f0deaae808b519c796b24063839766071 | 9ece034832167de958ec8a56da081ab75916684d | refs/heads/master | 2020-12-26T04:38:26.187729 | 2015-06-15T21:20:20 | 2015-06-15T21:20:20 | 34,972,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | #!/usr/bin/python
ticker_file = '/Users/lnyang/lab/qd/data/tickers'
gain_dir = '/Users/lnyang/lab/qd/data/tmp/gains10/12'
min_date = '2004-01-01'
max_date = '9999-99-99'
with open(ticker_file, 'r') as fp:
tickers = sorted(fp.read().splitlines())
print 'processing %d tickers' % len(tickers)
stats = dict() # y => ... | [
"lnyang@linkedin.com"
] | lnyang@linkedin.com |
f2ff6a97ff2a03d6a5c101fff002e306e7e6f9a0 | 65b69f075fd0e57d8409561087f2366f8a60bab3 | /rieapie/trickery.py | 2e18a5467a15a7884a202d8850e35b488e2bf501 | [
"MIT"
] | permissive | alisaifee/rieapie | d7e74adf8208012e00f81a5bd0a7d4232a2cde67 | a480c09f476867a259a2b1468f5c942897cd2d3d | refs/heads/master | 2023-08-10T04:07:56.319117 | 2013-12-01T02:28:41 | 2013-12-01T02:28:41 | 11,880,429 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,421 | py | import requests
import logging
import functools
import inspect
import json
GET = "GET"
PUT = "PUT"
POST = "POST"
DELETE = "DELETE"
class Component(object):
def __init__(self, name, api_object, parent=None):
self.name = str(name)
self.parent = parent
self.api_object = api_object
def _... | [
"ali@indydevs.org"
] | ali@indydevs.org |
e6f9ad93c38b7186f4e1bc7fbce807810f34015d | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Fisher/trend_PolyTrend/cycle_5/ar_/test_artificial_32_Fisher_PolyTrend_5__20.py | a843775b068feeaffba3bdedfbb078ee85d324f6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 265 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 5, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
9109e0a345c4b5dbe1c74ecc0b5f1c67bc8afc0a | 93a7db386dfa0ac0dc369cc7f4b974224c801d8d | /deploy/dot-product/scripts/main-47.py | d0fa56eb54e5acb7e99d402afe69b29b3ad86d95 | [] | no_license | lingxiao/good-great-combo | e051f20c89b7317a14ca5cee357bda7b095ce174 | 4d2691866bc21e2c542354ad3aae6f369eb86c87 | refs/heads/master | 2021-01-19T19:30:43.391759 | 2017-04-09T12:35:15 | 2017-04-09T12:35:15 | 83,699,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | ############################################################
# Module : A series of measures on the graph for experiments
# Date : April 2nd, 2017
# Author : Xiao Ling
############################################################
import os
import numpy as np
from utils import *
from scripts import *
from app.co... | [
"lingxiao@seas.upenn.edu"
] | lingxiao@seas.upenn.edu |
a18fc841ab746e31eab0bde79ff593d39f6893cd | 508c5e01aa7dce530093d5796250eff8d74ba06c | /code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/utils/javascript/javascript_bundler.py | 6016adb05301df6dc69f51f5715640f911d2aec2 | [
"PostgreSQL",
"MIT"
] | permissive | jhkuang11/UniTrade | f220b0d84db06ff17626b3daa18d4cb8b72a5d3f | 5f68b853926e167936b58c8543b8f95ebd6f5211 | refs/heads/master | 2022-12-12T15:58:30.013516 | 2019-02-01T21:07:15 | 2019-02-01T21:07:15 | 166,479,655 | 0 | 0 | MIT | 2022-12-07T03:59:47 | 2019-01-18T22:19:45 | Python | UTF-8 | Python | false | false | 1,663 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import os
from co... | [
"jhkuang11@gmail.com"
] | jhkuang11@gmail.com |
a9139035aaa678ebf9365d927a8a6fff7b6545f3 | 66c3eb5a49b6b674e72ffeac00a221f16e224806 | /HC_At_Test/PO/pageobject/betgame_page.py | 4e4c4aa91e294bce27fe6559be1fd9845eeed4da | [] | no_license | fan966/LX_AT_TEST | 20ad5793ef9ab6fe9070d046935b90450321ff0b | 7e95a399140567ff601205f8d83babbe56279ab6 | refs/heads/master | 2022-12-31T15:11:04.972185 | 2020-10-23T11:58:46 | 2020-10-23T11:58:46 | 258,690,216 | 0 | 1 | null | 2020-04-26T07:00:43 | 2020-04-25T04:53:19 | Python | UTF-8 | Python | false | false | 952 | py | # -*-coding:utf-8-*-
from selenium.webdriver.common.by import By
class BetPageLocator(object):
"""
下注页面公共部分元素定位信息
"""
# 投注倒计时
hc_game_time = (By.XPATH, r'//ul[contains(@class ,"flip")]')
tty_game_time = (By.XPATH, r'//div[@class="alert-box"]')
# 停售
div_stop_selling = (By.ID, 'stopSel... | [
"664340382@qq.com"
] | 664340382@qq.com |
e4b4376cf120624cd187c64a050c710037607475 | 538fd58e4f7d0d094fd6c93ba1d23f78a781c270 | /689_max_sum_of_3_non_overlap_subarrays/test_solution.py | fc67ba8effb08041b9071ff7807d540305bb207a | [] | no_license | FluffyFu/Leetcode | 4633e9e91e493dfc01785fd379ab9f0788726ac1 | 5625e6396b746255f3343253c75447ead95879c7 | refs/heads/master | 2023-03-21T08:47:51.863360 | 2021-03-06T21:36:43 | 2021-03-06T21:36:43 | 295,880,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from solution import max_non_overlap
import pudb
def test():
nums = [1, 2, 1, 2, 6, 7, 5, 1]
k = 2
res = max_non_overlap(nums, k)
assert [0, 3, 5] == res
| [
"fluffyfu400@gmail.com"
] | fluffyfu400@gmail.com |
d4d7fc69db45b2bd9d71d42ba91520dc5d575626 | 7d07c037dbd2fbfce960c7a63debe1cb3d5f1a8a | /api/apps/predictions/tests/views/test_tide_windows.py | 3dbb0d868779e043bd779a4bbc7feb1045058611 | [] | no_license | sealevelresearch-jenkins/sea-level-api | 2fcbf309fa7388514ddf8bf9bd520f5681775939 | 382cf4d1b6981f4120d8add6d79a53493b911e24 | refs/heads/master | 2020-12-25T05:19:21.904701 | 2014-06-25T11:44:26 | 2014-06-25T11:44:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,838 | py | import datetime
import json
import pytz
from django.test import TestCase
from nose.tools import assert_equal, assert_in
from nose.plugins.skip import SkipTest
from api.apps.predictions.models import Prediction
from api.apps.locations.models import Location
class TestTideWindowsView(TestCase):
fixtures = [
... | [
"paul@paulfurley.com"
] | paul@paulfurley.com |
1e7d8fb610baf2fe9c8bbfdb8ef02faabb5e813c | 72cbe74acc97c445553d4e4468de5b491a0e7af3 | /id3wr.py | 77b939ac785d0df645b0a90745b4952685cafe5c | [] | no_license | acadien/xrdAnalysis | e1989d2b917bcbf21a2e8cf7006082aa8fe071b0 | c05beab696d7ebd5dd80d6a4ce50810a3ee65682 | refs/heads/master | 2021-01-10T21:33:15.352168 | 2015-05-19T18:21:55 | 2015-05-19T18:21:55 | 35,900,206 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | #!/usr/bin/python
import os
import re
from ID3 import *
path='./'
dirlist=os.listdir(path)
pardir=os.getcwd()
album=re.search(r'(/[\w,\s]+)+',pardir)
album=album.group(1).lstrip('/')
for fname in dirlist:
try:
m = re.search('(\d\d)-(\w+)-(\w+)_www\.file',fname)
id3info = ID3(fname)
except:
... | [
"adamcadien@gmail.com"
] | adamcadien@gmail.com |
293f5b32b2b42456464676d82eb4d9157e70b078 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/common/Lib/ctypes/test/test_integers.py | 3167244d8935295055bdcead94ecc8b9cd4c6a32 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 428 | py | # 2017.02.03 21:57:48 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/ctypes/test/test_integers.py
import unittest
if __name__ == '__main__':
unittest.main()
# okay decompyling c:\Users\PC\wotsources\files\originals\res\packages\scripts\scripts\common\Lib\ctypes\test\test_integers.pyc
# decompi... | [
"info@webium.sk"
] | info@webium.sk |
a010e185bf8e52e2f22af54c3a9fdcb3c419e547 | b61dedf12868e2bc511b6693af1985911a13f336 | /src/logpipe/formats/pickle.py | 2dfea0f71f0be7e298f161b03f7014c150a64290 | [
"ISC"
] | permissive | vitorcarmovieira/django-logpipe | f9eebb6674b9ba180a63448c9d71ce2e87929f7c | 89d0543e341518f9ae49124c354e6a6c2e3f4150 | refs/heads/main | 2023-03-03T13:18:22.456270 | 2021-02-13T17:29:32 | 2021-02-13T17:29:32 | 326,679,534 | 1 | 1 | ISC | 2021-02-13T17:29:32 | 2021-01-04T12:39:30 | Python | UTF-8 | Python | false | false | 562 | py | from rest_framework import renderers, parsers
import pickle
class PickleRenderer(renderers.BaseRenderer):
media_type = 'application/python-pickle'
format = 'pickle'
charset = None
render_style = 'binary'
def render(self, data, media_type=None, renderer_context=None):
return pickle.dumps(d... | [
"crgwbr@gmail.com"
] | crgwbr@gmail.com |
787ab2f450dbb132be7a57a5e36ccf3341ec5e94 | 6c9912ab5ff000cc9f489248de2f2687f61cac1a | /rrc/settings/prod.py | dcf462a3fa98c8ff0c7954e3e75f1577139baf02 | [
"MIT"
] | permissive | rocky-roll-call/rrc-backend | ed047457d4eae730168a109584c56389c4c01c09 | 02e8e11c3dab7661e48650e2e861a4a97788a4ce | refs/heads/master | 2020-04-28T14:26:24.623336 | 2019-12-30T04:11:20 | 2019-12-30T04:11:20 | 175,338,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
Production Settings
"""
from decouple import config, Csv
from dj_database_url import parse as db_url
from rrc.settings.dev import *
DATABASES = {"default": config("DATABASE_URL", cast=db_url)}
DEBUG = config("SECRET_KEY")
SECRET_KEY = config("SECRET_KEY")
ALLOWED_HOSTS = config("ALLOWED_HOSTS", cast=Csv())
JW... | [
"michael@mdupont.com"
] | michael@mdupont.com |
c6c775bb54a0e2e106a903677ca605c033ab439a | f95d2646f8428cceed98681f8ed2407d4f044941 | /day09/day09/exercise/myadd.py | a9178c6996c200cf9c3a17191158f06e47e2dcf1 | [] | no_license | q2806060/python-note | 014e1458dcfa896f2749c7ebce68b2bbe31a3bf8 | fbe107d668b44b78ae0094dbcc7e8ff8a4f8c983 | refs/heads/master | 2020-08-18T01:12:31.227654 | 2019-10-17T07:40:40 | 2019-10-17T07:40:40 | 215,731,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # 练习:
# 写一个函数myadd, 此函数可以计算两个数,三个数,及四个数的和
# def myadd(.....):
# ....
# print(myadd(10, 20)) # 30
# print(myadd(100, 200, 300)) # 600
# print(myadd(1, 2, 3, 4)) # 10
# 方法1
# def myadd(a, b, c=0, d=0):
# return a + b + c + d
# 方法2
# def myadd(a, b, c=None, d=None):
# if c is None:
#... | [
"C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn"
] | C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn |
fb66fe333c795753e3bb1c54e9b12a0c9b1edb53 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/sonarr/__init__.py | c592e8435c28b8ea7f22b41bc2b6f515fbafa82d | [
"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 | 4,327 | py | """The Sonarr component."""
from __future__ import annotations
from typing import Any
from aiopyarr.models.host_configuration import PyArrHostConfiguration
from aiopyarr.sonarr_client import SonarrClient
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
CONF_API_KEY,
CONF... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
6949ae60b99663f19494a7ea87f9d87ec0858309 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_walleyes.py | 9095d3388cacad88aa57bdae0e7ba33f57fa39d6 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
#calss header
class _WALLEYES():
def __init__(self,):
self.name = "WALLEYES"
self.definitions = walleye
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['walleye']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
59d00a0a1af3c49e1d1aa9570187d7a6f89cdc8e | ff52e4d5ccc7bf0bcf3c41bb304f9c28f455c57e | /lms/lms/doctype/tasks/tasks.py | 20df73f8296465ab88fb9c1b6b58e2f7a92565f7 | [
"MIT"
] | permissive | vignesharumainayagam/engagex-lms-backup- | 889e76096d80b57f1df94c4ffa0dbc87ef6328f4 | d377c78873e66574a996c7d67b33ce9ff69f9d74 | refs/heads/master | 2020-03-11T18:00:28.166274 | 2018-04-19T05:36:46 | 2018-04-19T05:36:46 | 130,164,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Valiant Systems and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Tasks(Document):
pass
@frappe.whitelist()
def get_events(start, end, filters=None):
... | [
"vigneshwaran@valiantsystems.com"
] | vigneshwaran@valiantsystems.com |
2e2393fe770c6f960a4b4da26f9ebde7510eb4b4 | 526b892fa981573f26d55c361b42a9d3fa841db5 | /haas/highlighter/forms.py | c1c72f9063001d89e88ee11eb8b9560d184b6781 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | uranusjr/bbshighlighter | 13d89713245f95906a733b7aa8e7c39c58f6ec22 | da35d483e429e0cbd0619b1bc399f4fe67de9ac3 | refs/heads/master | 2020-05-31T22:36:58.424739 | 2014-03-07T17:24:00 | 2014-03-07T17:24:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms
from pygments.lexers import get_all_lexers
class HighlighterForm(forms.Form):
language = forms.ChoiceField()
code = forms.CharField(label='', widget=forms.Textarea)
def __init__(self, *args, *... | [
"uranusjr@gmail.com"
] | uranusjr@gmail.com |
45b1ffda6000b52ced756e89f276e7c99ca0fde5 | 0ed0f9b98be3eb4f87aedfb67210b01a3bd4ffe4 | /Validation/test/sync_MC_cfg.py | c4c6e0f84886667de068721433af89aef78b258f | [] | no_license | jshlee/CATTools | 6e6714225010fa5dfcc819f578d3ad0b8458a8dc | 3805086b4577b439ecef5369d5bd56f25cfe1ca3 | refs/heads/cat80x | 2021-01-21T16:44:52.978003 | 2017-10-17T18:46:58 | 2017-10-17T18:46:58 | 25,828,473 | 1 | 2 | null | 2017-10-17T18:46:59 | 2014-10-27T16:32:59 | C++ | UTF-8 | Python | false | false | 1,332 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("CATeX")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(False) )
process.options.allowUnscheduled = c... | [
"jhgoh@cern.ch"
] | jhgoh@cern.ch |
43cb4118ba6d1783272f04f6cbc672ceb38ea175 | 711c11d0111a40055ba110e7089a231c2ba42b8e | /toontown/ai/QuestManagerAI.py | ee1e2061bbd45b431c28194a5aa636fa8c01c284 | [
"Apache-2.0"
] | permissive | DeadMemez/ProjectAltis-OldAcornAcres | 03c8dc912ecccae8456d89790f6b332547b75cc3 | e8e0087389933795973e566782affcaec65a2980 | refs/heads/master | 2021-01-19T13:59:07.234192 | 2017-08-20T14:41:45 | 2017-08-20T14:41:45 | 100,869,782 | 0 | 2 | null | 2017-08-20T15:14:35 | 2017-08-20T15:14:35 | null | UTF-8 | Python | false | false | 26,126 | py | from toontown.toon.DistributedNPCSpecialQuestGiverAI import DistributedNPCSpecialQuestGiverAI
from toontown.building import FADoorCodes
from otp.ai.MagicWordGlobal import *
from toontown.hood import ZoneUtil
from toontown.quest import Quests
QuestIdIndex = 0
QuestFromNpcIdIndex = 1
QuestToNpcIdIndex = 2
QuestRewardIdI... | [
"tewtow5@gmail.com"
] | tewtow5@gmail.com |
4237ec9fd7869d359af8e6f194348e6758a7a910 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/io_import_mc/__init__.py | 9987c1068ea276a0c20b744f7ea9530f0f1b2fd4 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,003 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
01bb63ecb9346797486f1cf6af72c8fbf7e0b1e3 | f359c953ef823cc44f7d87a3736c3e4fb1817c0b | /EDBRCommon/python/PromptReco/Run2015D/SingleElectron/SingleElectron_Run2015D-bo.py | 93598b048e708643741ed759431ae1c51bb1d279 | [] | no_license | jruizvar/ExoDiBosonResonancesRun2 | aa613200725cf6cd825d7bcbde60d2e39ba84e39 | b407ab36504d0e04e6bddba4e57856f9f8c0ec66 | refs/heads/Analysis76X | 2021-01-18T20:00:57.358494 | 2016-05-30T21:30:19 | 2016-05-30T21:30:19 | 23,619,682 | 1 | 1 | null | 2016-04-22T18:38:45 | 2014-09-03T12:41:07 | Python | UTF-8 | Python | false | false | 930 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/data/Run2015D/Sing... | [
"jruizvar@cern.ch"
] | jruizvar@cern.ch |
7d645049875ce042602061c064c8c1b640251ccb | 71764665e27f4b96bab44f38a4a591ffc2171c24 | /hhplt/productsuite/gs10/__init__.py | 0dba8ddde1ae1f18ae65c9240109e986b46b8791 | [] | no_license | kingdomjc/RSU_production_VAT | 693f8c504acc0cc88af92942734ccb85f7e7d7c0 | 9a3d6d3f5a5edfaf30afdff725661630aafe434c | refs/heads/master | 2020-07-31T05:03:46.699606 | 2019-09-24T02:09:53 | 2019-09-24T02:09:53 | 210,491,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,258 | py | #coding:utf-8
'''GS10 OBU生产测试'''
import hhplt.testengine.product_manage as product_manage
import battery,cq_overall_unit,trading,board_mending,cq_auto_board,manual_board,trading_mending,retradeAndValidateMac
#注册产品测试项
product_manage.registerProduct('GS10 OBU',(
cq_auto_bo... | [
"929593844@qq.com"
] | 929593844@qq.com |
17b4251a831504ca745d4b00d9f775904854ff17 | 407c790da88f1c38f8800d6555cfeb9397046e70 | /anuncios/forms.py | 8bbcc2cb74ef19bbc8098c25ac201c3d04753801 | [] | no_license | jonatasprates/matao4x4 | 5488473812ab4dc31011199f5a055c9cca4144bb | ad8de86d9a9bce13363fd6417dd738430c60e9bb | refs/heads/master | 2022-11-26T13:49:11.784141 | 2020-08-11T02:10:36 | 2020-08-11T02:10:36 | 286,622,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | #-*- coding: utf-8 -*-
from django.core.files.images import get_image_dimensions
from matao4x4.anuncios.models import Anunciante
from django import forms
class AnunciantesAdminForm(forms.ModelForm):
class Meta:
model = Anunciante
# validando o campo específico: imagem
def c... | [
"jonatasluisprates@gmail.com"
] | jonatasluisprates@gmail.com |
7e32b253fb44929796b8569b0d1334b8e2ca7c12 | 33518b9521d8e633010b0b9d1ea0f7a937437200 | /Python/strobogrammatic_number_ii/strobogrammatic_number_ii.py | 3456ec0c3783ada61d9b190a8736aca60890cef3 | [] | no_license | lqs4188980/CodingPractice | 977ddb69306c92a5e3df88f26572200622fad82a | c17653832269ab1bb3e411f7d74bef4c8e9985b3 | refs/heads/master | 2021-01-22T05:10:40.885490 | 2016-02-05T09:06:51 | 2016-02-05T09:06:51 | 25,272,652 | 0 | 1 | null | 2016-01-06T07:50:29 | 2014-10-15T20:40:34 | Java | UTF-8 | Python | false | false | 1,335 | py | # corner cases:
# won't start with 0
# 0, 1, 8 good for central
# 0, 1, 6, 8, 9 for rest
class Solution(object):
def __init__(self):
self.odd = ['0','1','8']
self.whole = ['0','1','6','8','9']
self.non_zero = ['1','6','8','9']
def findStrobogrammatic(self, n):
"""
:type... | [
"xiaoqin.zhu.4@gmail.com"
] | xiaoqin.zhu.4@gmail.com |
20c27ce9740fff5beebeaf33e73bf00621d46f2f | ef6a64f2e1276b2312fe69be5fb0f79de654f613 | /backend/breach/migrations/0014_auto_20160504_1753.py | dfab67023f3403bba72ecf71953d90b5076e106a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MasterScott/rupture | cd1d1fd410f376d1b5c32587a71fd9565ce6aae6 | 131c61a28550f082ca1598aa40ac37ca59204b40 | refs/heads/develop | 2021-07-06T04:29:04.791439 | 2019-07-28T10:47:39 | 2019-07-28T10:47:39 | 218,162,821 | 0 | 0 | MIT | 2021-01-12T08:59:19 | 2019-10-28T23:16:52 | null | UTF-8 | Python | false | false | 528 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-05-04 17:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('breach', '0013_auto_20160330_1632'),
]
operations = [
migrations.AlterField(... | [
"dimit.karakostas@gmail.com"
] | dimit.karakostas@gmail.com |
5911c46e45ba3fe780b13f90caecdb859d1aa90a | f8b5aafac15f408a48fabf853a918015c927e6fe | /backup/virtualenv/venv27/lib/python2.7/site-packages/ansible/modules/core/packaging/os/apt.py | b0566bf2c219fe7f9f851f802ff2c519286ed317 | [] | no_license | to30/tmp | bda1ac0ca3fc61e96c2a1c491367b698d7e97937 | ec809683970af6787728c2c41f161f416155982a | refs/heads/master | 2021-01-01T04:25:52.040770 | 2016-05-13T16:34:59 | 2016-05-13T16:34:59 | 58,756,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 27,266 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2012, Flowroute LLC
# Written by Matthew Williams <matthew@flowroute.com>
# Based on yum module written by Seth Vidal <skvidal at fedoraproject.org>
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | [
"tomonaga@mx2.mesh.ne.jp"
] | tomonaga@mx2.mesh.ne.jp |
ab57c4b29c3146737651116ef31d6aee8c1efed7 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_138/658.py | 25615d80a7676ddb94779696a868e8215c273d28 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | def dwar(NAOMI , KEN):
naomi = NAOMI[:]
ken = KEN[:]
naomi.sort()
ken.sort()
N = len(naomi)
count = 0
for turn in range(N):
if naomi[0] > ken[0]:
count += 1
naomi = naomi[1:]
ken = ken[1:]
else:
naomi = naomi[1:]
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0c2d777b143221ee4e5b6e86f30dff1da4b5cc8b | 5b173a0e8a10a4f9ff0e3559cdaf8a211e239376 | /scoring_360/migrations/0002_auto_20190408_1246.py | 7d00471115c41ced34ee64497736eade78e325b8 | [] | no_license | Tur-4000/MTLCrewing | 9eb6a59ab0d8d0362cae01459470eb4cd3e4f9b5 | 388029cc0fbf60dacd2118dcc80ce3ec3d77d07b | refs/heads/master | 2022-05-02T11:05:30.205355 | 2019-04-08T14:05:19 | 2019-04-08T14:05:19 | 176,301,948 | 0 | 0 | null | 2022-03-11T23:42:58 | 2019-03-18T14:19:56 | JavaScript | UTF-8 | Python | false | false | 817 | py | # Generated by Django 2.1.7 on 2019-04-08 09:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('crewing', '0028_auto_20190408_1246'),
('scoring_360', '0001_initial'),
]
operations = [
migrations.... | [
"tur.4000@gmail.com"
] | tur.4000@gmail.com |
b87ce28ff9491f2f1ec326ace32de6c94e3f8349 | 1fe03131ad139e2415fd0c0c73697b4541e5b862 | /.history/src/fightScene_20190423000454.py | c40281bf6dde0086a8bb07b3bfd7efde3705a454 | [
"MIT"
] | permissive | vidalmatheus/pyKombat | d83175a7a952663e278a8247d43349f87192fde3 | 6646020c59367ba0424d73a5861e13bbc0daac1f | refs/heads/master | 2021-06-20T09:35:07.950596 | 2020-08-06T14:08:13 | 2020-08-06T14:08:13 | 172,716,161 | 1 | 1 | MIT | 2019-12-25T10:54:10 | 2019-02-26T13:24:31 | Python | UTF-8 | Python | false | false | 12,563 | py | import pygame
import os
from pygame.locals import *
import config
import game
import engine
import menu
from random import randint
import _fighter
from pygame_functions import *
class Scenario:
def __init__(self, game, scenario):
self.game = game
self.scenario = scenario
pygame.mixer... | [
"matheusvidaldemenezes@gmail.com"
] | matheusvidaldemenezes@gmail.com |
ba19fd6a44365f2760be541f3b378daf2577f033 | d19731cd2271ea9cba5f07935964e798c8a4f73b | /modules/compiled/tests/test_condensate.py | 5b23b7518e4fc9ccad8c03922c8295888b33cd79 | [] | no_license | jkiesele/HGCalML | 3949532f6b3f6a501670ffb60cedf8474caa934c | 5101b8cdca876a92a9dc87ceca9598bbbfaf980e | refs/heads/master | 2023-07-25T03:21:36.973479 | 2021-10-19T08:12:04 | 2021-10-19T08:12:04 | 186,409,038 | 0 | 5 | null | 2020-02-27T15:00:55 | 2019-05-13T11:46:33 | Python | UTF-8 | Python | false | false | 2,956 | py | from condensate_op import BuildCondensates
import tensorflow as tf
from ragged_plotting_tools import make_cluster_coordinates_plot
import matplotlib.pyplot as plt
import numpy as np
import time
print('starting test')
n_vert=4000
n_ccoords=2
n_feat=3
soft=False
radius=0.7
betas = tf.random.uniform((n_vert,1), dtype='f... | [
"jkiesele@cern.ch"
] | jkiesele@cern.ch |
657533c490b8360ae94f5471ae1d4efe763c667d | 74da166dc375be56a83b175cdc17d559a262dba1 | /airflow_client/client/model/scheduler_status.py | 5625b88b7b98abb6abc2314899ba41f859629bcf | [
"Apache-2.0"
] | permissive | zjiaksmc/airflow-client-python | eec72956abaede23b8865f5d09f03e242dc86467 | f8d7f958578fd1c63cef41d6b3f5447dc45bdfe6 | refs/heads/master | 2023-08-25T16:50:27.535880 | 2021-10-25T07:03:06 | 2021-10-25T07:03:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,761 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | zjiaksmc.noreply@github.com |
010f5a2d71de95257e26364f8a2da83460f9bb81 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/qhj.py | c11e1b4d27f522c3567d8b971bfa85f10e4d1f24 | [] | 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 |
acf208104074450f635a9fcd79eae320b3a08fc3 | 34a0d7fc7ec039cf57bf0a33bc5abb423dfdc97f | /s3_app.py | db98d4ba7e241119900adc70c77bb3ea1d0c6e02 | [] | no_license | jrieke/db-playbooks | 422330a6e5cc6cebc105bcc704a265fc1164df65 | 9128b6bce9fa53c4ef89bc727f5b7b3e300b6904 | refs/heads/main | 2023-04-17T23:19:47.714623 | 2021-05-07T21:49:50 | 2021-05-07T21:49:50 | 357,368,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | import streamlit as st
import s3fs
import time
import os
start_time = time.time()
# Create connection object.
# `anon=False` means not anonymous, i.e. it uses auth to pull data.
fs = s3fs.S3FileSystem(anon=False)
f"Creating fs took {time.time() - start_time} s"
start_time_read = time.time()
# Retrieve file content... | [
"johannes.rieke@gmail.com"
] | johannes.rieke@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.