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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
02d09da67cc228655601028fddaf3051b6cb1e4e | b6d4cd1e04ad6d956a46f02e32f4cee384228b1d | /Benchmark functions/rastrigin.py | ca317a2d8dcb9f2e4e0865b3a0962515fc125eb5 | [] | no_license | nickedes/Chaotically-Initialized-Bfo | 02fcfd944da1898eecc01db25616049a117131fd | c0454164164306f2c4169d406ed992041fdd3c6b | refs/heads/master | 2021-01-17T22:53:16.919174 | 2016-06-04T07:12:43 | 2016-06-04T07:12:43 | 42,680,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | # RASTRIGIN FUNCTION
# Input Domain: [-5.12, 5.12]
from math import cos, pi
from sphere import normalization
def rastrigin(x):
x = normalization(x)
result = 0
for elem in x:
result += elem**2 - 10*cos(2*pi*elem) + 10
return result
| [
"nkmittal4994@gmail.com"
] | nkmittal4994@gmail.com |
aa49330cf3c5c4ab84d33a657dea5e8d540b8022 | be3bc396b580975970a7f323b91229ed5d4aad1c | /workflow/feature_engineering/generate_features/SOAP_QUIP/SOAP_features.py | 048c6374d7c2170404d1609d4fda90cc29da72ac | [
"MIT"
] | permissive | raulf2012/PROJ_IrOx_OER | 813ee91139b45f47acb980d1ebfacdf87c364996 | b79fc490f598a48e405819bd6a788ca6d4af440e | refs/heads/master | 2023-06-23T22:48:25.695679 | 2023-06-09T22:34:41 | 2023-06-09T22:34:41 | 269,264,743 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,290 | py | # ---
# jupyter:
# jupytext:
# formats: ipynb,py
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.4.2
# kernelspec:
# display_name: Python [conda env:PROJ_irox_oer] *
# language: python
# name: conda-env-PROJ_irox_... | [
"raulf2012@gmail.com"
] | raulf2012@gmail.com |
730d16199ccf2d54cf44b4c6477de9f9a92a1eaf | 2ac770255ca90ff07593a2934e51aaf1111b5bd2 | /main.py | 45976c768b81ca47d3b592f09a7a0a49a014979c | [] | no_license | brunogamacatao/jogo_da_velha | 05ee09d875b41543af9fdd7460d186f448e0c9d9 | c52333aa19b60e3df1687e4e39ada310483b30d1 | refs/heads/master | 2022-10-26T05:12:03.925089 | 2020-06-17T23:40:32 | 2020-06-17T23:40:32 | 273,099,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,536 | py | import os
import numpy as np
import pickle
LINHAS = 3
COLUNAS = 3
class Estado:
def __init__(self, p1, p2):
self.tabuleiro = np.zeros((LINHAS, COLUNAS))
self.p1 = p1
self.p2 = p2
self.acabou = False
self.tabuleiroHash = None
self.vezDe = 1 # o p1 começa
# transforma o estado do tabuleir... | [
"brunogamacatao@gmail.com"
] | brunogamacatao@gmail.com |
c7dfaf2baca34efd728ab95b36331f946a4019da | a4deea660ea0616f3b5ee0b8bded03373c5bbfa2 | /executale_binaries/register-variants/vpaddb_xmm_xmm_xmm.gen.vex.py | da60cce705883dc9fcecce65db8794bd4d72801b | [] | no_license | Vsevolod-Livinskij/x86-64-instruction-summary | 4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd | c276edab1b19e3929efb3ebe7514489f66087764 | refs/heads/master | 2022-02-02T18:11:07.818345 | 2019-01-25T17:19:21 | 2019-01-25T17:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | import angr
proj = angr.Project('vpaddb_xmm_xmm_xmm.exe')
print proj.arch
print proj.entry
print proj.filename
irsb = proj.factory.block(proj.entry).vex
irsb.pp() | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
dad294341f0b5045b7a257176a9abc8917bc5546 | 6e5ab77fee1fb4a0310213dd8c6dd8601828b1b9 | /Algorithm/Swea/D4_13736.py | 76aabb52c8cefb72954c120c08f33ab60aeca4e6 | [] | no_license | hongyong3/TIL | 36d031c0da9e3e6db3eebb977bd3e12df00a849f | 7f1492128e957a78fc95b255f4f7f2978161e471 | refs/heads/master | 2023-08-19T09:16:03.231757 | 2023-08-18T09:38:47 | 2023-08-18T09:38:47 | 162,100,258 | 1 | 0 | null | 2023-02-11T00:52:32 | 2018-12-17T08:42:42 | Jupyter Notebook | UTF-8 | Python | false | false | 3,121 | py | import sys
sys.stdin = open("D4_13736_input.txt", "r")
'''
A : 나연, B : 다현, K번 반복
둘 중 사탕의 개수가 더 적은 사람을 X
더 많은 사람이 Y
단, 두 사람이 같은 개수의 사탕을 갖고 있다면, 나연이가 X, 다현이가 Y
'''
# 8 / 150 Runtime Error
# T = int(input())
# for test_case in range(T):
# A, B, K = map(int, input().split())
# P, Q = min(A, B), max(A... | [
"chy66822495@gmail.com"
] | chy66822495@gmail.com |
36161f266f137b4ff0171d70c4ade6cf648c3723 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03077/s861845197.py | f96a63c26ca89079225eee278c72439ec3dfa518 | [] | 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 | 131 | py | n = int(input())
x = min([int(input()) for _ in range(5)])
a, b = divmod(n, x)
if b == 0:
print(5+(a-1))
else:
print(5+a)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6395908ec3ee4c6a81445747f551cbf720ef2c12 | 0c2ca3b3c7f307c29f45957e87ed940c23571fae | /fhirclient/models/claim.py | b09ebe48315807b53ea671f1f226360745a47ce4 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | myungchoi/client-py-1.0.3 | 49c3d15b8dfb845e7cbc933084ed5fcc37e7c4ed | 08e4e5828fb461c105907fd454b19dfc8463aad8 | refs/heads/master | 2021-06-25T04:36:26.952685 | 2021-02-11T16:27:26 | 2021-02-11T16:27:26 | 209,669,881 | 0 | 0 | NOASSERTION | 2021-03-20T01:45:42 | 2019-09-20T00:11:10 | Python | UTF-8 | Python | false | false | 23,151 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/Claim) on 2016-03-23.
# 2016, SMART Health IT.
from . import domainresource
class Claim(domainresource.DomainResource):
""" Claim, Pre-determination or Pre-authorization.
A provide... | [
"myungchoi@gmail.com"
] | myungchoi@gmail.com |
b73bc4480e4a66a40f473ba54d908f10916b741f | b5207169365b9da94b4325bd9f9dec007200a5e0 | /Week 3/Lists_Exercices/sum_numbers.py | 844cfe6cc592dceaafae037bd74ee7c167c187a5 | [] | no_license | veselotome4e/Programming0 | de14083e15e607ef0994c582319fe3c204fc1a59 | 46f0c8785d87582ce7d33e0e76aaaaa5220d24f3 | refs/heads/master | 2021-01-17T04:58:52.789279 | 2015-04-02T17:07:17 | 2015-04-02T17:07:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | n = input("Enter count of numbers: ")
n = int(n)
count = 1
total_sum = 0
while count <= n:
number = input("Enter number: ")
number = int(number)
total_sum += number
count += 1
print("The sum is: {}".format(total_sum))
| [
"bgvladedivac@gmail.com"
] | bgvladedivac@gmail.com |
c8538f770bfcf0e102accd559d5693cc18dd1545 | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /flask-reactjs-master/app/controllers/auth.py | 657ed1641a098915af28b71e0997b232627fc6ee | [] | no_license | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | from flask import Blueprint, render_template, flash, request, redirect, url_for, session
from flask_login import login_user, logout_user, login_required, current_user
from app.extensions import cache
from app.forms import LoginForm, SignupForm
from app.models.database import db
from app.models.user import User
auth = ... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
f0955d1871e808b8dee8159a502d97b13c603a75 | e8e1263072f2524b19b3c31cccd09fd7ab9dd791 | /firstapp/models.py | 8d6f75a88fbb12b2348f93632ad5956cbd646ccc | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | Jameskirwa/My-Gallery | a5ca218e3d73bd7232e94ff657b3a621f5b52191 | 09e6aa78e1160dcc4054a9c59ab30c82eb7a33f4 | refs/heads/master | 2021-09-08T04:10:52.624317 | 2019-08-26T08:19:50 | 2019-08-26T08:19:50 | 204,121,182 | 0 | 0 | MIT | 2021-09-08T01:14:25 | 2019-08-24T06:57:37 | Python | UTF-8 | Python | false | false | 2,091 | py | from django.db import models
class Category(models.Model):
name = models.CharField(max_length=150)
def __str__(self):
return self.name
def save_category(self):
self.save()
def delete_category(self):
Category.objects.filter(id = self.pk).delete()
def update_category(self,**kw... | [
"example@email.com"
] | example@email.com |
bc4dda14797bc46b85211c6133d30c93584e9c1b | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/template_dir/pyramid_template_1_6_multi_model/pyr_1s/L4/step10_a.py | 43fac9e99ff403a8fe65b27a87a39d53f28b9232 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,242 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
2e4d46cb5a22676cd1f07512bcc46acae458ace7 | 64ef180b1725d831891ef075557ddcc540c6e42a | /lib/global_variable.py | 7a73bcf960855161caddfb28385c3c3c02cfa0e4 | [
"MIT"
] | permissive | nasingfaund/tkinter-gui-application-examples | 125acc088133020adae0bfc9c752a8e75c780c73 | 7073d163713829b2ff10a331c7f88f845d89b1bc | refs/heads/master | 2023-07-15T06:41:35.861732 | 2021-08-28T14:36:28 | 2021-08-28T14:36:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | #!/usr/bin/env python3
# -*- coding:utf-8-*-
# global variable management module
def init_global_variable():
"""initialize variable"""
global GLOBALS_DICT
GLOBALS_DICT = {}
def set_variable(name, value):
"""set variable"""
try:
GLOBALS_DICT[name] = value
return True
except Ke... | [
"doudoudzj@sina.com"
] | doudoudzj@sina.com |
9a6bf60a4f23d40772a53228fdb5c18ea0bde102 | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /tests/charts/test_webserver.py | b15a50d181ff0f156a864b5ede764188d8a0228f | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 30,734 | 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"
] | ishiis.noreply@github.com |
46cbf9a6a53b1f76820b9b601b2abbf377ecb55d | 1d44620574e959285549cbcd5f979f421540a87e | /python/random.py | 90509725dcdb9b2414e794b4b791eb9e2da03262 | [] | no_license | Bit4z/python | ab26920817b5bdadf2138b8f489b24dac64c88a0 | 9428a57489f063772a1dd11a27a16c5153ae3a25 | refs/heads/main | 2023-05-14T19:06:38.904867 | 2021-06-04T06:24:50 | 2021-06-04T06:24:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | import random
a=random.randint(1,100)
print(a)
| [
"noreply@github.com"
] | Bit4z.noreply@github.com |
5bada0d60d2b1aaed7d233a5337a0dee2f48ec99 | a83f2d14e27bb6f4eba7e96b31bf89e3dc6c9234 | /app/reservation/migrations/0004_reservation_reservation_num.py | 6488e775f6a4d899f6893467a37ad73386ff7134 | [
"MIT"
] | permissive | wps-yapen/yapen | 91be4fc1d76488d86ac664d530009fa3d9cd1dc6 | 4104856046529b06dbc1a3763c0632b508ebb3ca | refs/heads/master | 2022-12-15T01:39:52.549999 | 2018-08-27T08:01:01 | 2018-08-27T08:01:01 | 141,869,434 | 1 | 5 | MIT | 2022-12-08T02:50:12 | 2018-07-22T05:47:32 | Python | UTF-8 | Python | false | false | 413 | py | # Generated by Django 2.1 on 2018-08-23 07:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reservation', '0003_auto_20180816_1353'),
]
operations = [
migrations.AddField(
model_name='reservation',
name='reserv... | [
"gambler1541@gmail.com"
] | gambler1541@gmail.com |
5ff1e85c10983ea1d4ba709da8f7c8185e4575ea | 391937be6d8c8bcf5c3fe9fae8790024fc1e1727 | /vm-pwn/kindvm/exp.py | 25caa1e8d8a01a0ff0d3a330cbcb0613ef3f7ecf | [] | no_license | n132/Watermalon | a9d93d3f0d598de7f8ed9bbe13ed02af364f770f | 79b4479458ae0884d9cdd52d317674298d601d0a | refs/heads/master | 2022-05-13T21:04:08.108705 | 2022-04-08T23:29:48 | 2022-04-08T23:29:48 | 154,925,917 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | from pwn import *
context.log_level='debug'
context.arch='amd64'
p=process('./kindvm')
p.sendlineafter(": ","n132")
pay="\x01\x00\xff\xd8\x08\x00"
#load buf-0x28 & out reg[0]===> leak heap
pay+="\x07\x01\x08\x04\x87\x7b"
#set reg[0]=0x0804877b
pay+="\x02\xff\xe4\x01"
#store buf-0x28+0xc
pay+="\x06"
p.sendlineafter(": ... | [
"986256128@qq.com"
] | 986256128@qq.com |
2cd261dbc27cd2565f3798de8c4036d8f5ba2c73 | 9a4c569548c6aa96f9e137da1e4dba9a8dd0ec13 | /catkin_ws/devel/lib/python2.7/dist-packages/gazebo_ros_link_attacher/srv/_Attach.py | 2cdbf0df025b45d0aba8120b6dc15d3ce0e1224c | [] | no_license | capf-2011/Vargi-Bots-eYRC | 081014358a1b2f9cf55064d58ff2e5bdee554445 | 89b0bd0d5de1215e2338379931e31aea2e946ed3 | refs/heads/master | 2023-03-23T07:50:43.159560 | 2021-03-07T10:19:50 | 2021-03-07T10:19:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | /home/satyam/catkin_ws/devel/.private/gazebo_ros_link_attacher/lib/python2.7/dist-packages/gazebo_ros_link_attacher/srv/_Attach.py | [
"satyamozar@gmail.com"
] | satyamozar@gmail.com |
bca7dfdb7918343e7126a2b464bae118858e5ec9 | bf03cf5fc05ecc390d75112bb944e153d78c5fa4 | /script.py | 87ea237bc6bc685a54278d4b7319cb35ff69b682 | [] | no_license | elagulsen/computergraphics_anim | a55f734269933183f275ae4aabfa1843a0e17ab4 | 0c4bf94282620891c4029ac6f7b3f816ef9d9b6e | refs/heads/master | 2020-05-25T15:12:38.057832 | 2019-05-27T02:59:20 | 2019-05-27T02:59:20 | 187,862,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,648 | py | import mdl
from display import *
from matrix import *
from draw import *
"""======== first_pass( commands ) ==========
Checks the commands array for any animation commands
(frames, basename, vary)
Should set num_frames and basename if the frames
or basename commands are present
If vary is found, but frame... | [
"you@example.com"
] | you@example.com |
43f766ac317ec840fe45bcce7ec0336926986945 | e3f52aa153ac5649f433a16eec15028253ca0799 | /scripts/irods/test/test_stacktrace.py | 6b1742e7508f12b9d3955698613a222a48404140 | [
"BSD-3-Clause"
] | permissive | panmin2014/irods | f002b788738ce8d0c01a448ac0968ad9e70c7b20 | 3797e9eccdae1acffccc3d4048470e838250ced8 | refs/heads/master | 2021-01-06T11:36:20.144983 | 2020-02-14T17:40:09 | 2020-02-18T02:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | import sys
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest
from . import session
from .. import test
from .. import lib
from ..configuration import IrodsConfig
class Test_Stacktrace(session.make_sessions_mixin([('otherrods', 'rods')], []), unittest.TestCase):
plugin_name... | [
"terrellrussell@gmail.com"
] | terrellrussell@gmail.com |
d248b8998f8c589709259b219b4bc89e6fa5f433 | a5d1b2e3f4661ec48b0f8e8e998c72ae6214d469 | /google/cloud/documentai_v1beta3/types/document.py | ef3fc26d3f31b966a7844b7586ed7ab27a2cf52a | [
"Apache-2.0"
] | permissive | renovate-bot/python-documentai | 9657f8529cd3f155b09cda34e854b392a8ab04bb | 66b014b1675c4cdb7459d5b3b207be72d0dd309f | refs/heads/master | 2023-06-08T10:33:40.739677 | 2021-08-13T17:17:01 | 2021-08-13T17:17:01 | 237,537,463 | 1 | 1 | Apache-2.0 | 2020-02-01T00:07:12 | 2020-02-01T00:07:12 | null | UTF-8 | Python | false | false | 47,777 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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"
] | renovate-bot.noreply@github.com |
992cb8683e0b490894efdd7e3cc83d284fc26c68 | 95eed88115075f7e1916a14de7497d05a12a9330 | /abc120a.py | 5bf9006cbd5783bdaac9568283a5ee58bd51c33b | [] | no_license | ynagi2/atcoder | bdbbd030f1dd39e937b0872b028ce0f38372521e | e404f4500d837bfd6ca473aa2837f46ae71ad84a | refs/heads/master | 2022-04-29T12:48:44.229462 | 2022-04-22T15:04:50 | 2022-04-22T15:04:50 | 241,098,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py |
def main():
a, b, c = map(int, input().split())
ans = b // a
if ans > c:
ans = c
print(ans)
if __name__ == '__main__':
main() | [
"noreply@github.com"
] | ynagi2.noreply@github.com |
872ac373591e848dfd273d257a87bdbbd7909686 | 78144baee82268a550400bbdb8c68de524adc68f | /Production/python/Summer16v3/WJetsToLNu_HT-2500ToInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8_ext1_cff.py | ad180773f0a0ed8c03e3afcdf23421ea8b9d8ce4 | [] | no_license | tklijnsma/TreeMaker | e6989c03189b849aff2007bad22e2bfc6922a244 | 248f2c04cc690ef2e2202b452d6f52837c4c08e5 | refs/heads/Run2_2017 | 2023-05-26T23:03:42.512963 | 2020-05-12T18:44:15 | 2020-05-12T18:44:15 | 263,960,056 | 1 | 2 | null | 2020-09-25T00:27:35 | 2020-05-14T15:57:20 | null | UTF-8 | Python | false | false | 5,566 | 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/mc/RunIISummer16Mi... | [
"Alexx.Perloff@Colorado.edu"
] | Alexx.Perloff@Colorado.edu |
717a6842daafc0790cc0924309e0bef562e33f10 | 3eec249b3629c31ed0114eaaff485b94f23d6b47 | /bin/gifmaker.py | 903d1db9884b1b9d8fa6b84fbf46242c85436024 | [] | no_license | sarkmen/form | 19bae21eafc01aa60c443861dad57833d98fa7d8 | 0efa1bee36e418095210e0fcc1459cdba8ffa1d6 | refs/heads/master | 2020-12-25T14:13:11.061223 | 2016-05-10T17:09:59 | 2016-05-10T17:09:59 | 58,479,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/Users/Roadwalker/dev/form/bin/python3
#
# The Python Imaging Library
# $Id$
#
# convert sequence format to GIF animation
#
# history:
# 97-01-03 fl created
#
# Copyright (c) Secret Labs AB 1997. All rights reserved.
# Copyright (c) Fredrik Lundh 1997.
#
# See the README file for information on usage and r... | [
"beomjun.gim3@gmail.com"
] | beomjun.gim3@gmail.com |
655699afe83781bb74ad88f303463968b8ad5417 | 02560440f9f91e583fe98d80ab11e18aa6c7a525 | /apps/proyectos/forms.py | 365d5900cbb0edd35e6ad62b85b64ef0e85302f0 | [] | no_license | eduardogpg/wamadeusV1 | a36c89176543e638486009620c5131f46743edbc | 82d93293dc6afc95a6661f727162f4055ab83a43 | refs/heads/master | 2020-12-28T01:57:47.831689 | 2015-01-08T05:14:25 | 2015-01-08T05:14:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django import forms
from django.forms import ModelForm
from .models import Proyecto
class FormularioProyecto(ModelForm):
class Meta:
model = Proyecto
fields = ['nombre', 'descripcion', 'estado']
| [
"eduardo78d@gmail.com"
] | eduardo78d@gmail.com |
1a44e38e24ab11597b78026aa318c47881ad2e54 | 9d6a3789c083b170920707597b9785d02704b66b | /TimeTracker/controllers/monthly_invoice_controller.py | 64700b6d4f420831d5dae260e67648e47c5006cd | [] | no_license | jamesfowkes/TimeTracker | 6d7736ecb6e895d1c191809ba3f262bb6f8ebd98 | 4293725e91519a4d02591f1629d94a68c0ab6100 | refs/heads/master | 2021-01-17T10:10:09.410146 | 2017-02-01T07:06:56 | 2017-02-01T07:06:56 | 32,203,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,014 | py | """
monthly_invoice_controller.py
"""
import logging
from datetime import datetime
from flask import url_for
from TimeTracker import app
from TimeTracker.controllers.client_controller import Client
from TimeTracker.controllers.invoice_controller import Invoice
from TimeTracker.controllers.task_controller import Task... | [
"jamesfowkes@gmail.com"
] | jamesfowkes@gmail.com |
b74daa6016095c1a170cf196b2cbaba837b18549 | a46fc5187245f7ac79758ae475d4d865e24f482b | /invert_binary_tree/invert_tree.py | 6414a96d6210c576328d6c0b3eca09f01cd01404 | [] | no_license | narnat/leetcode | ae31f9321ac9a087244dddd64706780ea57ded91 | 20a48021be5e5348d681e910c843e734df98b596 | refs/heads/master | 2022-12-08T00:58:12.547227 | 2020-08-26T21:04:53 | 2020-08-26T21:04:53 | 257,167,879 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | #!/usr/bin/env python3
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def invertTree(self, root: TreeNode) -> TreeNode:
from collections import deque
queue = deque()
if root ... | [
"farruh1996@gmail.com"
] | farruh1996@gmail.com |
236d152801b886b766d4449ce2f2c62cda20ed62 | 99b438e8709c23a097d0ab9d3068949454281da2 | /bot.py | e37187b609eb05f221556f1c5faab210cb4a731a | [] | no_license | dennisthemenace2/TwitchViewBot | 58f136a6f2c9a0e0589101eac166c1657e39af63 | f258965798306f1b8caa9188e910fb2b65d3b7bf | refs/heads/master | 2020-03-25T23:32:55.971007 | 2018-08-13T17:22:32 | 2018-08-13T17:22:32 | 144,280,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,380 | py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
#very crude code, I coded this on stream, the skullbot was used as basis for this
""" simple Twitch bot https://github.com/skullvalanche/skullbot/blob/master/skullbot.py"""
import socket
import json
import time
import random
import re
from streamlink import Streamlink, ... | [
"your_email@example.com"
] | your_email@example.com |
7f2d4990887d3db88692231856e9fb5b2494d797 | 392450084ee44e82dd205950cfa2122e219e8c73 | /cartpole/hebb_err.py | 87faacfe9afebf8d233c969eff24246fb4886074 | [] | no_license | bcrafton/summer18 | 047004a7ee0eb7e22aabd2276f94164f2fa8d05a | 74b53462a43a684d87dec57cae850de5748c5ad8 | refs/heads/master | 2020-03-16T20:53:35.426010 | 2018-09-21T17:53:05 | 2018-09-21T17:53:05 | 132,976,372 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,510 | py | # Inspired by https://keon.io/deep-q-learning/
import random
import gym
import math
import numpy as np
from collections import deque
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import Adam
SPIKE = 1
NUM_SCORES = 100
def update_elig(elig, grad):
elig = np.copy(elig)
gr... | [
"crafton.b@husky.neu.edu"
] | crafton.b@husky.neu.edu |
61e624f0dc940aef798161eaaf833cf7a28316b0 | 54426b97493542ad7534b4d9f4469d6f8d2ae0ec | /chapt-04-bits/find_difference.py | ad68c08a4b92bee9f9a8c80ea3d179276b8df728 | [] | no_license | rlavanya9/cracking-the-coding-interview | 5d2cac50b5bc5f2b5aec91e4c1827cafa1b15d29 | de7b579573a187df116d39b52a43c109baf42c9c | refs/heads/master | 2023-03-16T19:21:25.400844 | 2021-03-19T17:37:16 | 2021-03-19T17:37:16 | 349,505,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # https://www.youtube.com/watch?v=sRwElQ_TOr8
# def find_diff(s,t):
# ret = 0
# for element in s+t:
# ret += ret ^ ord(element)
# return chr(ret)
def find_diff(s,t):
r = 0
for ch in s+t:
r = r ^ ord(ch)
return chr(r)
print(find_diff("abcd", "acbda"))
print(find_diff("abcd... | [
"rangaswamy.lavanya@gmail.com"
] | rangaswamy.lavanya@gmail.com |
d4e7489e8836755bac49a53c47d0013e514fb9c2 | f0d6efe035d4c2ed1ea6bb6d1d5a613b8630a025 | /volttron/platform/vip/agent/decorators.py | 47d90dc980a510629e6e0a6c7a44e8d7310de361 | [
"BSD-2-Clause-Views",
"BSD-3-Clause"
] | permissive | bemoss/BEMOSS3.5 | d24c1c5587e5081092cc97250db45645363da4e4 | 75a09bc5d0a2ec0ae994ac900a93dc027b527860 | refs/heads/master | 2021-08-15T23:05:40.661118 | 2021-03-29T20:28:14 | 2021-03-29T20:28:14 | 91,000,462 | 81 | 38 | NOASSERTION | 2021-03-29T20:29:54 | 2017-05-11T16:25:43 | Python | UTF-8 | Python | false | false | 6,872 | py | # -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
# Copyright (c) 2015, Battelle Memorial Institute
# 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. Redistri... | [
"aribemoss@gmail.com"
] | aribemoss@gmail.com |
4f8067f40ffd3f66ebca698db7239a6ffd616f52 | b136b779e8a559f65cf6484484807c28754e232d | /modelcif/__init__.py | d14f7d680c1a8657183a9439dfc34ae7a281bdf3 | [
"MIT"
] | permissive | ihmwg/python-modelcif | c1c94b4d67bb9ba9cf55bdd63b698a1fb8cf6031 | 3789cac10893b0fe20b87ae57ad92cc54115f7b8 | refs/heads/main | 2023-08-14T08:42:53.395695 | 2023-08-04T23:16:27 | 2023-08-04T23:16:27 | 440,680,221 | 8 | 2 | MIT | 2022-08-29T16:50:15 | 2021-12-21T23:47:30 | Python | UTF-8 | Python | false | false | 22,969 | py | import itertools
from ihm import Entity, AsymUnit, Software, Assembly, Residue # noqa: F401
from ihm import AsymUnitRange, _remove_identical # noqa: F401
import modelcif.data
import sys
__version__ = '0.8'
class System(object):
"""Top-level class representing a complete modeled system.
:param str title... | [
"ben@salilab.org"
] | ben@salilab.org |
16bef5c7561ccaf5c34029ab3aaf64c300b6f436 | ac8ffabf4d7339c5466e53dafc3f7e87697f08eb | /python_solutions/623.add-one-row-to-tree.py | 56971c0a382183c4088f667b3b556bd97bfe3f0f | [] | no_license | h4hany/leetcode | 4cbf23ea7c5b5ecfd26aef61bfc109741f881591 | 9e4f6f1a2830bd9aab1bba374c98f0464825d435 | refs/heads/master | 2023-01-09T17:39:06.212421 | 2020-11-12T07:26:39 | 2020-11-12T07:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,741 | py | from collections import Counter, defaultdict, OrderedDict
from bisect import bisect_left, bisect_right
true = True
false = False
#
# @lc app=leetcode id=623 lang=python3
#
# [623] Add One Row to Tree
#
# https://leetcode.com/problems/add-one-row-to-tree/description/
#
# algorithms
# Medium (48.15%)
# Total Accepted: ... | [
"ssruoz@gmail.com"
] | ssruoz@gmail.com |
1d15bf71ddec80925f2a784eba7d9bb209b68db7 | 2d638ff9bda6648ac2b3723865db8639ee661fd8 | /solid/machines/stepped_machine.py | 33f1607388f47944d02951a9d47ef1aacd876a90 | [] | no_license | haaksmash/solid | 17341f87c1773f308338607331613a8f6099962c | cc96ccbfbb30719be86a8f0c1a1fd000494fddcb | refs/heads/develop | 2022-01-26T16:23:07.958516 | 2016-09-01T17:44:54 | 2016-09-01T17:44:54 | 17,554,398 | 0 | 0 | null | 2022-01-21T19:26:06 | 2014-03-09T00:30:39 | Python | UTF-8 | Python | false | false | 1,559 | py | """
Copyright (C) 2014 Haak Saxberg
This file is part of Solid, a state machine package for Python.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 3
of the License, or (at you... | [
"haak.erling@gmail.com"
] | haak.erling@gmail.com |
edb7c1f305093baac175b3ff0bb274fd4a888edd | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_08_01_preview/operations/_private_endpoint_connections_operations.py | ac6bc54d50ee70b7eedb762838c3d27d293d4f7f | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 35,116 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
b270b785a08a9a10fe5f955dcd7a02086247a026 | 8698bd76aa5f6aa1cada4c8705a8937061f5fdc9 | /ob/generators/fMarketModNewAmountOfColCInLastNSecs.py | 07732044fce46cf6e81a7a2662120c91f8b74ab6 | [] | no_license | grmte/ml | 83c3f5a187782ca56a411c604a245bde2957c4dd | 1059c554f8a091e045058a5c27bd7534fc7b302f | refs/heads/master | 2021-01-01T20:17:45.146963 | 2015-04-07T10:52:43 | 2015-04-07T10:52:43 | 17,405,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,770 | py | import sys, os, dataFile, colNumberOfData, attribute, common
from collections import deque
def extractAttributeFromDataMatrix(args):
if args.n == None:
N = 5
else:
N = int(args.n)
try:
#Value of argument c can be taken as BidP0 and AskP0
args.c
except:
print "Since -c has no... | [
"you@example.com"
] | you@example.com |
f7380be13a009a146b7e691b3f7d6c33734bc574 | 85ddc4b28048d7eb2911eff0f0d0105285c972e9 | /patchworkorange/minigames/sokoban/Sokoban.py | af036a4869490f622656ff60782aa32748523c02 | [] | no_license | bitcraft/pyweek25 | 77f8286f4d33056bf5369439014199a3af11423d | 4c6c25990716556d1c8e194eeb01764a1381e588 | refs/heads/master | 2020-03-13T00:38:19.843627 | 2018-04-24T22:18:59 | 2018-04-24T22:18:59 | 130,890,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,946 | py | import sys
from logging import getLogger
import pygame
import pytmx.util_pygame
from pytmx.pytmx import TiledTileLayer
from patchworkorange.core import resources
from patchworkorange.core.minigamemanager import Minigame
BLOCK_SIZE = (32, 32)
WALLS = []
BOXES = []
GOALS = []
PLAYER = []
logger = getLogger(__name__)
... | [
"leif.theden@gmail.com"
] | leif.theden@gmail.com |
4a1648d34d72930158be9fbfad14f8e8432c9fd5 | 18720e8776eff5547bf9608ef3b103f06056ff3c | /home/migrations/0071_frontimage.py | 29446bb751636f2eeab22d304e6d2073007eabbb | [] | no_license | vishnoitanuj/HBN | 93dfb803554e6ff1143d5e64f74f159b89586202 | c5149a987a10e5d7e83f1590d1e8282623144733 | refs/heads/master | 2021-01-23T05:35:37.749510 | 2017-06-09T19:18:59 | 2017-06-09T19:18:59 | 92,976,155 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-06-08 14:41
from __future__ import unicode_literals
from django.db import migrations, models
import home.models
class Migration(migrations.Migration):
dependencies = [
('home', '0070_meetprof_prof_name'),
]
operations = [
migrati... | [
"vishnoitanuj@outlook.com"
] | vishnoitanuj@outlook.com |
57cd5f8c533a6603d0bda4de5e6c5383f66df842 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/GDS/common_shamil_v3/hr_custom_military/report/hr_injury_report.py | 5fc012b4d158d01963254758c8c37d7b99f63b02 | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | # -*- coding: utf-8 -*-
from report import report_sxw
title = {
'officer' : unicode('ر.البطاقة', 'utf-8') ,
'soldier' : unicode('نمرة', 'utf-8'),
}
class hr_injury(report_sxw.rml_parse):
'''
@return move order data in dictionary
'''
def get_record(self):
res = {}
for i in self.pool.... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
3e73686d369493f056daafa7c2ed5bf26ca3139a | 451c8b0b46dd79bf7ee46f40c9be5ef79bf153f2 | /django_submissions/django_assignment_005/django_assignment_005/settings.py | eaf46f3e9051ee9bc0dcea03b2ef5cd57a6a564d | [] | no_license | kranthy09/django_assignments | 07b694ef4c1c8208eb61f341668ce3e1c59ffc22 | 316fa671f80545def706fc92009c59b8ec0e211c | refs/heads/master | 2021-02-28T05:05:28.001783 | 2020-07-23T09:07:14 | 2020-07-23T09:07:14 | 245,664,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | """
Django settings for django_assignment_005 project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
... | [
"g.kranthi2507@gmail.com"
] | g.kranthi2507@gmail.com |
43bb3a89640eef90f4d01633aa7c6b6edf36746a | e298bf40ae88c2bd8e0a07f3e92f3e08a92edcc6 | /oslo_messaging/_drivers/__init__.py | 8f3a4dea89e2c65fee700ba6c52a727eca835cd2 | [] | no_license | KevinKaiQian/polar-bear | 46a814c746246394f76505846166673a049f12f2 | 61d4e0ccd7328a6aa543af3b75e5f7fedf98bf8e | refs/heads/master | 2022-04-29T02:15:35.536039 | 2021-05-19T12:33:07 | 2021-05-19T12:33:07 | 172,068,536 | 2 | 0 | null | 2022-03-29T21:56:51 | 2019-02-22T13:11:58 | Python | UTF-8 | Python | false | false | 25 | py | from impl_rabbit import * | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9b4bdd806a91d4941b72e0da6741443fcd8717f5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_bets.py | 32e5d5d508f6497e3184189763383921cb90710c | [
"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 | 217 | py |
from xai.brain.wordbase.verbs._bet import _BET
#calss header
class _BETS(_BET, ):
def __init__(self,):
_BET.__init__(self)
self.name = "BETS"
self.specie = 'verbs'
self.basic = "bet"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
90b7858f5cb9925a5eaf71f660059b11ac9b7172 | 8206011c292afb98a2d8e49dd37250e2233b5a54 | /muDIC/vlab/noise.py | 12fa1eafee190ac7f196b1d1802d79c7cd4edfd6 | [
"MIT"
] | permissive | ets-lipec/muDIC | 898facc4a9af0aebb6cd40235268065d7bdc32da | e7f3706c39550f02355e422b345aece37f957d2e | refs/heads/master | 2023-07-21T21:50:51.738840 | 2020-08-26T21:36:10 | 2020-08-26T21:36:10 | 283,907,230 | 0 | 1 | MIT | 2023-07-06T21:37:56 | 2020-07-31T00:47:05 | Python | UTF-8 | Python | false | false | 1,269 | py | from functools import partial
import numpy as np
def gaussian_noise_model(size, sigma):
return np.random.normal(0.0, sigma, size)
def noise_injector_additive(image, noise_generator):
image_noisy = image + noise_generator(image.shape)
return image_noisy
def noise_injector(noise_model="gaussian", sigma... | [
"sindre.n.olufsen@ntnu.no"
] | sindre.n.olufsen@ntnu.no |
dc2daabf812f0a8ee58491e12b0551d088b043e0 | 3f9d28984403cdd84b984d7a82eb6136018966a4 | /beauty_accounting/__manifest__.py | 79ee6ab3ff57dc994b36278df99d8fb696b37c5e | [] | no_license | joevm018/temasq | bee1c69aee4c87de415e66e236b40c28201e2951 | 74f003c6a009716bf26a6438f5ee48e7dfcbb030 | refs/heads/master | 2023-03-18T23:42:13.598853 | 2021-03-11T11:35:16 | 2021-03-11T11:35:16 | 346,671,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
{
'name': "Beauty Accounting",
'summary': """Beauty Accounting
""",
'description': """
""",
'author': "Al Kidhma Group",
'website': "",
'category': '',
'version': '0.1',
'depends': ['base','product', 'account', 'account_accountant','beauty... | [
"esreejishnu@gmail.com"
] | esreejishnu@gmail.com |
ddf815d3f09a088d7fd4d73430da9240d1ddf712 | 78e6c64920a65f1605f2368d4b0a47e25f0b28c5 | /abc160/a/main.py | bfb669aeed946cf4902ae55b76b3e3fd1e0ae5c7 | [] | no_license | melank/atCoder | b8dce4f30ffbfd930e0f0c4fa7579228baae8d2a | 606b0c84f2f4864869868e948f702f5833a6a062 | refs/heads/master | 2023-08-05T06:08:39.209811 | 2021-09-24T14:10:29 | 2021-09-24T14:10:29 | 328,083,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | s = input()
if s[2] == s[3] and s[4] == s[5]:
print('Yes')
else:
print('No') | [
"masaki.vr@gmail.com"
] | masaki.vr@gmail.com |
e54b3e3801a99c895fa8a7cbc35dfad270792009 | b54b6168ba35ce6ad34f5a26b5a4a3ab8afa124a | /kratos_3_0_0/applications/PFEMapplication/test_exemples/dam2d.gid/dam2d_benchmark.py | 7a2b3657f20c39acf16b4c2d957864d52b78a90a | [] | no_license | svn2github/kratos | e2f3673db1d176896929b6e841c611932d6b9b63 | 96aa8004f145fff5ca6c521595cddf6585f9eccb | refs/heads/master | 2020-04-04T03:56:50.018938 | 2017-02-12T20:34:24 | 2017-02-12T20:34:24 | 54,662,269 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | import benchmarking
def Run():
print "Running dam2d.py..."
return benchmarking.RunBenchmark("dam2d.py", "dam2d_ref.txt")
| [
"pooyan@4358b7d9-91ec-4505-bf62-c3060f61107a"
] | pooyan@4358b7d9-91ec-4505-bf62-c3060f61107a |
ca3ae3dacee6939a5188e6e8c1bda21d8833d9cf | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/datamgr/datamanager/dataquality/sample/task.py | 133f9c66444d668c50c95df5e9ff2fba16a2d2b5 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 23,959 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
---------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
2eddf28f021cba9b9fe53e296f9c66ad2f23e939 | 05ef6b961d945ae4ac53e4078e17959c821fc489 | /srcds/addons/source-python/plugins/admin/core/frontends/commands.py | f6b799a9b60edf27516c21b56308c24d311c30ac | [] | no_license | Source-Python-Dev-Team/Source.Python.Admin | 416860399342638e29f8c46e8b9a1f454b8a910b | cead3639bab2acce9da55a4e7f196c750160b27f | refs/heads/master | 2020-05-04T14:36:05.365570 | 2017-08-21T06:10:33 | 2017-08-21T06:10:33 | 37,398,305 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,672 | py | # =============================================================================
# >> IMPORTS
# =============================================================================
# Source.Python
from commands import CommandReturn
from commands.typed import TypedClientCommand, TypedSayCommand
from core import AutoUnload
from ... | [
"kirill@mysnik.com"
] | kirill@mysnik.com |
62006e749b3becd4e19aa94eee34c6b39a1f9cca | 3be42b83a15d022f5863c96ec26e21bac0f7c27e | /tensorflow_probability/python/bijectors/cumsum.py | f90931c0b8c374976edafeefd243f29e73f8ae67 | [
"Apache-2.0"
] | permissive | ogrisel/probability | 846f5c13cddee5cf167b215e651b7479003f15d2 | 8f67456798615f9bf60ced2ce6db5d3dba3515fe | refs/heads/master | 2022-11-09T10:53:23.000918 | 2020-07-01T23:16:03 | 2020-07-01T23:17:25 | 276,580,359 | 2 | 1 | Apache-2.0 | 2020-07-02T07:37:58 | 2020-07-02T07:37:57 | null | UTF-8 | Python | false | false | 3,544 | py | # Copyright 2018 The TensorFlow Probability 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 o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
4bb04826a22ff3f5b4d68c8ebbc2150750d3761d | d77c96f335e86f3ee4d283b734d67704878cecac | /software/multicut_exp/snemi3d/lmc_init_exp.py | 6f2e9a2f650e2e16853fd8b69c1f3feb1c1790f2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | ilastik/nature_methods_multicut_pipeline | 93180aab3a5dfc2cd39e71c18f0e8e3b121960b8 | 1dc596505ab8c995b50561eeb969c59673b7dcab | refs/heads/master | 2021-06-19T12:16:06.529352 | 2021-03-31T19:45:23 | 2021-03-31T19:45:23 | 74,971,782 | 17 | 3 | NOASSERTION | 2021-03-31T15:00:34 | 2016-11-28T12:40:13 | Python | UTF-8 | Python | false | false | 2,547 | py | # initialize the datasets for the snemi experiments
import os
from MetaSet import MetaSet
from DataSet import DataSet
meta_folder = "/media/tbeier/data/datasets/snemi_out/snemi3d"
meta = MetaSet(meta_folder)
# toplevel folder that has all the data
data_path = "/media/tbeier/data/datasets/snemi_in/snemi3d_data"
me... | [
"constantin.pape@iwr.uni-heidelberg.de"
] | constantin.pape@iwr.uni-heidelberg.de |
94cf24793d7551daf1646bb1457b84e88d4eb79f | d338575967fb2017c1d0508659e25413c50dca04 | /config/wsgi.py | 07d72f22eaf90eecf3de6e3c14dbbc0a1794e9fc | [] | no_license | adbrum/djangoApi | 3e02599847c2f5290deaf51011231424dda67e98 | 102194461aa916b5e2ef535ddb3bb87faaccc2fb | refs/heads/master | 2022-12-15T10:47:07.297057 | 2020-09-04T16:01:42 | 2020-09-04T16:01:42 | 292,889,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
WSGI config for djangoApi project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"adbrum@outlook.com"
] | adbrum@outlook.com |
5229e29912e52cea7176cb7643bd588fb98fb3c2 | 62404e9f290ca218d0be79b4326a2544f4ba5519 | /t-func-many-args.py | dc52a4b098a5930e39b4f298bb674f3ea44954dc | [] | no_license | dhellmann/python-dict-profile-article | 428d507d7b86135ecce93107295a071772110a7c | 257f1624cc9274effa4047637f2c0182cbc01a99 | refs/heads/master | 2022-11-24T08:17:38.562816 | 2012-11-12T15:15:49 | 2012-11-12T15:15:49 | 275,435,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | a = 'b'
dict(a=a,
b='c',
c='d',
)
| [
"doug.hellmann@gmail.com"
] | doug.hellmann@gmail.com |
85b0af2639621d64dee82d84709e6ecfe2aa1581 | c2f7566a917be17be73cae0fb949a24d6908d1f9 | /tests/tests_algorithms/test_linear.py | 438c3c41011b3476c7fe352c3a31da15e78f7348 | [
"MIT"
] | permissive | jeisc/mljar-supervised | 12a70a8e658e7dfdc8ddf06f9526e163a9bc62f2 | aaa34592745433d1531bcef43598865c81ef8bae | refs/heads/master | 2022-11-13T19:47:12.774939 | 2020-07-10T07:15:46 | 2020-07-10T07:15:46 | 278,840,661 | 1 | 0 | MIT | 2020-07-11T10:38:49 | 2020-07-11T10:38:49 | null | UTF-8 | Python | false | false | 3,357 | py | import unittest
import tempfile
import json
import numpy as np
import pandas as pd
from numpy.testing import assert_almost_equal
from sklearn import datasets
from supervised.algorithms.linear import LinearAlgorithm, LinearRegressorAlgorithm
from supervised.utils.metric import Metric
import tempfile
class LinearReg... | [
"pplonski86@gmail.com"
] | pplonski86@gmail.com |
010ff94d5f9191ceba3f7e7ffeba988d0eb01df0 | 63b79eb44cf682ece74be1fc866f7651837db448 | /powerplay/models/team_roster.py | cc5f710f77d1cfbd6e121757872e7d3ed58f4334 | [] | no_license | bclark86/powerplay-py | c8cc4df8acd9ada91299706b7a7113ab9c963645 | 584d754629936a93d95157356ff806a5c68438dc | refs/heads/main | 2023-07-19T04:23:16.510338 | 2021-09-02T13:17:12 | 2021-09-02T13:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,022 | py | # coding: utf-8
"""
NHL API
Documenting the publicly accessible portions of the NHL API. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class TeamRoster(object):
"""NOTE: This ... | [
"saiem.gilani@gmail.com"
] | saiem.gilani@gmail.com |
6d12e65bba38b660d87f1e8c6d4ee14b518c82d9 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/march.py | 0e40c72e1a9d2092e4d2c69bd2ca85dd7129f635 | [] | 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 | 2,666 | py | ii = [('CookGHP3.py', 16), ('LyelCPG2.py', 2), ('MarrFDI.py', 6), ('RogePAV2.py', 3), ('CoolWHM2.py', 67), ('KembFFF.py', 12), ('GodwWSL2.py', 12), ('RogePAV.py', 1), ('SadlMLP.py', 10), ('FerrSDO3.py', 2), ('WilbRLW.py', 28), ('WilbRLW4.py', 41), ('RennJIT.py', 17), ('ProuWCM.py', 2), ('AubePRP2.py', 128), ('CookGHP.p... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
e8df21818f05883f8858ed409df7be6df4280dc9 | fe7b65f2f989d5293394a7b37afb45fbcb66827c | /06_TreesDataStructure/postorder_traversal.py | 77bfa3611226ec973e2078634a07cafa3be41485 | [] | no_license | ijuarezb/InterviewBit | 33980fa7b6792d283784cf58ecdad6d9d926d998 | e77c1baaf793106a5404d5449664822d8b05ae03 | refs/heads/master | 2020-07-22T23:08:05.661073 | 2020-01-13T00:05:07 | 2020-01-13T00:05:07 | 207,342,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py | #!/usr/bin/env python3
import sys
from BST import TreeNode
from BST import insertNode
# Postorder Traversal
# https://www.interviewbit.com/problems/postorder-traversal/
#
# Given a binary tree, return the postorder traversal of its nodes’ values.
#
# Example :
#
# Given binary tree
#
# 1
# \
# 2
# /
# ... | [
"ivanjuarez@uchicago.edu"
] | ivanjuarez@uchicago.edu |
613addc74bd93d0e974769b4c8e96dcd8b3cec25 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02715/s479064767.py | ca5129e9e54c472c575918d588fa20e05490bc81 | [] | 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 | 589 | py | #!/usr/bin/env python3
def pow(N,R,mod):
ans = 1
i = 0
while((R>>i)>0):
if (R>>i)&1:
ans *= N
ans %= mod
N = (N*N)%mod
i += 1
return ans%mod
def main():
N,K = map(int,input().split())
li = [0 for _ in range(K)]
mod = 10**9+7
ans = 0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e99c87b491e6df6875cc6f1312144b027bd6033a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_sudden.py | 884b283d118b73f94878570113442b22a20189e3 | [
"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 | 405 | py |
#calss header
class _SUDDEN():
def __init__(self,):
self.name = "SUDDEN"
self.definitions = [u'happening or done quickly and without warning: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2]... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
cb4bfad6e1fd6a8e639c98b5700e7673f9ac2e55 | c62abe2ec405bb7a1f1e3e193624675b8b5eb265 | /src/test_one_hot.py | b6a52285ecc24141560a12ed4ae2d74eb1403e69 | [] | no_license | luzi82/codelog.tensorflow | 71362b87204ff9b4e46d7ec92ab481e893c4c42c | 69e1e4b5969dc4797c6c8857b4d1ea893dbb3aa4 | refs/heads/master | 2021-01-12T09:59:25.649282 | 2017-02-05T04:55:53 | 2017-02-05T04:55:53 | 76,327,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | import tensorflow as tf
in_0 = tf.placeholder(tf.float32, [None,3])
idx_0 = tf.placeholder(tf.int64, [None])
out_0 = tf.placeholder(tf.float32, [None])
mask = tf.one_hot(idx_0, 3, axis=-1)
in_mask = in_0 * mask
mid = tf.reduce_sum(in_mask, reduction_indices=[1])
diff = out_0 - mid
diff_abs = tf.abs(diff)
diff_abs_mea... | [
"luzi82@gmail.com"
] | luzi82@gmail.com |
0e5ca0152863d4767c3b6bb06f72c7ef8112cb20 | 0bd7c1f7bf6da5ef92b9013e1d913140f0249dfa | /cecilia-python/剑指offer/chapter-7/TranslateNum.py | 7fa24b5a33808af9c1e5900d2cb15328814afb6e | [] | no_license | Cecilia520/algorithmic-learning-leetcode | f1fec1fae71c4cf7410122f5ce969e829f451308 | 32941ee052d0985a9569441d314378700ff4d225 | refs/heads/master | 2022-05-02T03:00:57.505672 | 2022-03-19T09:51:28 | 2022-03-19T09:51:28 | 229,673,810 | 7 | 1 | null | 2022-03-19T09:34:57 | 2019-12-23T04:04:04 | Python | UTF-8 | Python | false | false | 2,735 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : TranslateNum.py
@Contact : 70904372cecilia@gmail.com
@License : (C)Copyright 2019-2020
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2020/8/20 17:25 cecilia 1.0 将数字翻译成字符串(动... | [
"cc15572018516@163.com"
] | cc15572018516@163.com |
448bbafeda4d93db4b12f8ef5c59ae79fc24c289 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/ui/inflight/overviewConst.py | 85f3d85f78770a6671ddb297f18e716c4e610f5b | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 1,637 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\inflight\overviewConst.py
HTML_ENTITIES = '>|<|&|>|<|&'
HTML_ENTITY_REPLACEMENTS = {'>': u'>',
'<': u'<',
'&': u'&',
'>': u'>',
'<': u'<',
'&': u'&'}
COLUMN_VELOC... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
6ede3dec4fc3366ddd58aa1b8a9dce545de6f60c | 6bd9d7679011042f46104d97080786423ae58879 | /1354/b/b.py | c5baabf6be93aff429e0886b44de9ce7c75c998e | [
"CC-BY-4.0"
] | permissive | lucifer1004/codeforces | 20b77bdd707a1e04bc5b1230f5feb4452d5f4c78 | d1fe331d98d6d379723939db287a499dff24c519 | refs/heads/master | 2023-04-28T16:00:37.673566 | 2023-04-17T03:40:27 | 2023-04-17T03:40:27 | 212,258,015 | 3 | 1 | null | 2020-10-27T06:54:02 | 2019-10-02T04:53:36 | C++ | UTF-8 | Python | false | false | 623 | py | def read_int():
return int(input())
def read_ints():
return map(int, input().split(' '))
t = read_int()
for case_num in range(t):
s = input()
cnt = dict()
cnt['1'] = 0
cnt['2'] = 0
cnt['3'] = 0
ans = len(s) + 1
l = 0
r = -1
while r < len(s):
while cnt['1'] == 0 or... | [
"qqbbnease1004@126.com"
] | qqbbnease1004@126.com |
adb03f9f6a610d38a3dbdf27808774107761b96f | 1a9852fe468f18e1ac3042c09286ccda000a4135 | /Specialist Certificate in Data Analytics Essentials/DataCamp/11-Unsupervised_Learning_in_Python/e3_inspect_your_clustering.py | 6fb180c5486741db91045162de757a66e2a72f8a | [] | no_license | sarmabhamidipati/UCD | 452b2f1e166c1079ec06d78e473730e141f706b2 | 101ca3152207e2fe67cca118923896551d5fee1c | refs/heads/master | 2023-08-14T15:41:24.312859 | 2021-09-22T17:33:01 | 2021-09-22T17:33:01 | 386,592,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,122 | py | """
Inspect your clustering
Let's now inspect the clustering you performed in the previous exercise!
A solution to the previous exercise has already run, so new_points is an array of points and labels is
the array of their cluster labels.
Instructions
100 XP
Import matplotlib.pyplot as plt.
Assign column 0 o... | [
"b_vvs@yahoo.com"
] | b_vvs@yahoo.com |
4fd4e03ad1b0b214163bede11bcd5e8719f7e39f | 7aecab27c231c5207f26a1682543b0d6c5093c06 | /server/dancedeets/servlets/static_db.py | 4e4e66a28e5f91df81f034299e687a32db365214 | [] | no_license | mikelambert/dancedeets-monorepo | 685ed9a0258ea2f9439ae4ed47ebf68bb5f89256 | 4eff1034b9afd3417d168750ea3acfaecd20adc6 | refs/heads/master | 2022-08-10T07:16:32.427913 | 2018-04-15T22:05:58 | 2018-04-15T22:05:58 | 75,126,334 | 24 | 2 | null | 2022-07-29T22:28:45 | 2016-11-29T22:04:44 | Python | UTF-8 | Python | false | false | 1,293 | py | import logging
import markdown
from google.appengine.ext import ndb
from dancedeets import app
from dancedeets import base_servlet
class StaticContent(ndb.Model):
# SSO
name = ndb.StringProperty()
language = ndb.StringProperty()
title = ndb.TextProperty()
markdown = ndb.TextProperty()
@app.ro... | [
"mlambert@gmail.com"
] | mlambert@gmail.com |
b209d3c16349512055925e9cbf4a3fa29525c953 | ba916d93dfb8074241b0ea1f39997cb028509240 | /kickstart/2022/RoundG/walktober.py | f107c0a85613b024a4bdb3e977d295dd90a3c2c0 | [] | no_license | satojkovic/algorithms | ecc1589898c61d2eef562093d3d2a9a2d127faa8 | f666b215bc9bbdab2d2257c83ff1ee2c31c6ff8e | refs/heads/master | 2023-09-06T08:17:08.712555 | 2023-08-31T14:19:01 | 2023-08-31T14:19:01 | 169,414,662 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | import numpy as np
T = int(input())
for t in range(1, T + 1):
M, N, P = list(map(int, input().split()))
board = []
for _ in range(M):
b = list(map(int, input().split()))
board.append(b)
board = np.array(board)
total = 0
for n in range(N):
top = sorted(board[:, n], revers... | [
"satojkovic@gmail.com"
] | satojkovic@gmail.com |
dff1926c92f1f008a6c7e5907d3b9edb070d8ca6 | 439781ac3a6b083f9a5ec3b8e5f1bae2965ddbb2 | /leetcode_175.py | eafd8d1fbfb34454c45895263f9d1dd195841814 | [] | no_license | bajpaiNikhil/Leetcode | f957fa0eef0ea20c2a0a5e1561243256dd332efa | 3920adb41849e49d20c75b2f0bb0093bc382890d | refs/heads/master | 2023-04-29T10:45:55.725869 | 2021-05-24T06:35:33 | 2021-05-24T06:35:33 | 314,014,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py |
class treeNOde:
def __init__(self,val=0,left=None,right=None):
self.val=val
self.left=left
self.right=right
def height(root):
if root==None:
return 0
return 1+max(height(root.left),height(root.right))
def traverse(node, level, pos):
if not node:
ret... | [
"nikhil.cse16@gmail.com"
] | nikhil.cse16@gmail.com |
8946cb15814fb35ea98c692f5c1d755455c18d68 | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/sc.social.like-2.5-py2.7.egg/sc/social/like/testing.py | fb60710f8018f9e09a0934936bb10b4f13f9e8ef | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | # -*- coding: utf-8 -*-
from plone import api
from plone.app.robotframework.testing import AUTOLOGIN_LIBRARY_FIXTURE
from plone.app.testing import FunctionalTesting
from plone.app.testing import IntegrationTesting
from plone.app.testing import PLONE_FIXTURE
from plone.app.testing import PloneSandboxLayer
from plone.tes... | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
9a0941c0ccffcf1742c4b9294774e37dc43fb5f2 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/Googlenet_ID0447_for_PyTorch/torchvision/datasets/folder.py | 4a0e51066c7de0885d2671df4db0433583a553b3 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 9,133 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
c5a4a22469449c81d2476f6b069da2c2aaae89bb | fc00b177802c49cf04dc6a8e430093bc14ae9b53 | /venv/Lib/site-packages/xlsxwriter/__init__.py | 4b9c2a8f8bfa09583da6297425882fed35743588 | [] | permissive | artisakov/vigilant-journey | 9c8264d36da5745374a0d08b0b0288a70f978a11 | 4fed9026071a64489d26422ba7cd1a9b9cb05e16 | refs/heads/master | 2022-11-16T03:10:06.418221 | 2020-07-16T07:33:06 | 2020-07-16T07:33:06 | 238,490,887 | 0 | 1 | MIT | 2020-03-01T10:12:22 | 2020-02-05T16:03:07 | HTML | UTF-8 | Python | false | false | 79 | py | __version__ = '1.2.8'
__VERSION__ = __version__
from .workbook import Workbook
| [
"60698561+artisakov@users.noreply.github.com"
] | 60698561+artisakov@users.noreply.github.com |
03c30c65c8dbeeb2343c74e6878b27c76285f66a | aaa762ce46fa0347cdff67464f56678ea932066d | /AppServer/lib/django-1.4/tests/modeltests/properties/models.py | 5c2656570c7ad84b8c026be1f5334a22448736a9 | [
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.1-or-later",
"MIT",
"GPL-2.0-or-later",
"MPL-1.1"
] | permissive | obino/appscale | 3c8a9d8b45a6c889f7f44ef307a627c9a79794f8 | be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f | refs/heads/master | 2022-10-01T05:23:00.836840 | 2019-10-15T18:19:38 | 2019-10-15T18:19:38 | 16,622,826 | 1 | 0 | Apache-2.0 | 2022-09-23T22:56:17 | 2014-02-07T18:04:12 | Python | UTF-8 | Python | false | false | 568 | py | """
22. Using properties on models
Use properties on models just like on any other Python object.
"""
from django.db import models
class Person(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
def _get_full_name(self):
return "%s %s" % (sel... | [
"root@lucid64.hsd1.ca.comcast.net"
] | root@lucid64.hsd1.ca.comcast.net |
4f485c42c9943c1b20610bf870ea87d3345f23b6 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/hdinsight/azure-mgmt-hdinsight/generated_samples/create_hd_insight_cluster_with_compute_isolation_properties.py | dc367b2ee5df9abf26b82c34cfdbf301c9332847 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,095 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
d4e7c74e703765079c8c3b08213951f35efefcdb | 5ed664e1d507c36e90cf3f46292f2d694154f8fa | /use function.py | c579e9998d6715ce7ac2ef2b0c8f2a29f2448bf1 | [] | no_license | gauriindalkar/function | 5dc24ccb384740a0b906250f8304a35c706b435f | b191311894ea04dc7ca66860800bc3208060d938 | refs/heads/main | 2023-05-08T15:38:23.195734 | 2021-05-29T17:40:48 | 2021-05-29T17:40:48 | 372,035,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | #####simple function use karke
# def add():
# x=10
# y=20
# print(x+y)
# add()
| [
"noreply@github.com"
] | gauriindalkar.noreply@github.com |
806ae6c77ae842d38045548bcb173f25ec7ffb42 | f7110aaab742fc92179302c5874691078ed05158 | /user_app2/user_app/urls.py | c5ee48fd75c8aeaab69dff376834fe680b8d2744 | [] | no_license | Moha327/python_extra | 0f9252a46a652ffe83d97cd0d6906a1835c2abbf | a3e1b31831578484c651d76bfd01173fe9d6eb10 | refs/heads/master | 2023-05-23T14:03:21.962212 | 2021-06-16T13:50:06 | 2021-06-16T13:50:06 | 377,511,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | """user_app 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-base... | [
"m7amad9595@outlook.com"
] | m7amad9595@outlook.com |
6769a9702b13423d7f28d1539fd3faa577c307c1 | 2933b8f123981f88e576e7ba5baa5143c3667019 | /pysmartnode/logging/logging_full.py | 08ded118d695cb45e92bb7229e24d0445fd35827 | [
"MIT"
] | permissive | MatthiasLienhard/pysmartnode | c6a9b4819cddcf1b928eecc385cef087a832e5cb | f853efb3378d881dd2e62eec2ca1621898953c19 | refs/heads/master | 2020-09-04T09:31:45.302398 | 2019-07-07T06:14:55 | 2019-07-07T06:14:55 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 2,305 | py | '''
Created on 19.07.2017
@author: Kevin Köck
'''
__updated__ = "2018-09-28"
__version__ = "2.5"
# TODO: Add possibility to use real logging module on esp32_lobo and save logs locally or to sdcard
import gc
from pysmartnode.utils import sys_vars
from pysmartnode import config
import uasyncio as asyncio
gc.collect(... | [
"kevinkk525@users.noreply.github.com"
] | kevinkk525@users.noreply.github.com |
cb3802ce1d98c17e892866127f3f0c7c5a1b8bc0 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/Juniper-MIBs.py | 0ba9e568d729571b6cd1edf10d34aa6ebf99cc62 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 10,196 | py | #
# PySNMP MIB module Juniper-MIBs (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-MIBs
# Produced by pysmi-0.3.4 at Mon Apr 29 19:48:56 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
d0f496043a46805e72ab5218af55fd55aba6ca69 | 877086f72d55e4283f87d23991b4a4b7ce273b8d | /schevo/test/test_relax_index.py | 9c8073c549d3f8cb2e0a3f22ab773520144edb44 | [
"MIT"
] | permissive | Schevo/schevo | 8a8fb981b947446942723877920120628fc9c457 | d57a41f8b7b514ed48dc0164dcd3412a89e9873b | refs/heads/master | 2016-09-05T09:29:46.914848 | 2009-10-04T23:01:31 | 2009-10-04T23:01:31 | 199,052 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | """relax_index/enforce_index unit tests."""
# Copyright (c) 2001-2009 ElevenCraft Inc.
# See LICENSE for details.
from schevo.test import CreatesSchema, raises
class BaseRelaxIndex(CreatesSchema):
body = """
class Foo(E.Entity):
name = f.string()
_key(name)
@extentmethod
... | [
"gldnspud@gmail.com"
] | gldnspud@gmail.com |
5f489b13df8d25a8f8a553b54b91cecf2cb5d4a0 | 0cf6728548830b42c60e37ea1c38b54d0e019ddd | /Learning_Quant/python金融大数据挖掘与分析全流程详解/第6章源代码汇总/6.2.2 Excel工作簿等文件的读取和写入.py | e63ab47d43fab1bf35910d065a16b685f5951e77 | [] | no_license | MuSaCN/PythonLearning | 8efe166f66f2bd020d00b479421878d91f580298 | 507f1d82a9228d0209c416626566cf390e1cf758 | refs/heads/master | 2022-11-11T09:13:08.863712 | 2022-11-08T04:20:09 | 2022-11-08T04:20:09 | 299,617,217 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # =============================================================================
# 6.2.2 Excel等文件的读取和写入 by 王宇韬&肖金鑫
# =============================================================================
# 1.文件读取
# 1.1 读取Excel文件
import pandas as pd
data = pd.read_excel('data.xlsx') # data为DataFrame结构,这里设置是相对路径,也可以改成绝对路径
print(... | [
"39754824+MuSaCN@users.noreply.github.com"
] | 39754824+MuSaCN@users.noreply.github.com |
05e2b8654610856f885d4a7a20e7f9018e20802f | 96ec40afeeb163bd370c25052cce9c87ae084fe1 | /phoenix/esgf/slcsclient.py | 19278c0e62c42c0a1270c6d0cf447e1c12e045df | [
"Apache-2.0"
] | permissive | TeriForey/fawkes | 4e8edc68676c284b994fd5ec7c1815045ed13804 | 1b51430d2f952d9802f13fa1f2d0f68df706c43e | refs/heads/master | 2020-03-14T11:09:50.624391 | 2018-07-27T13:48:11 | 2018-07-27T13:48:11 | 131,584,635 | 0 | 0 | Apache-2.0 | 2018-06-21T15:04:03 | 2018-04-30T10:51:43 | JavaScript | UTF-8 | Python | false | false | 5,865 | py | from OpenSSL import crypto
from base64 import b64encode
from StringIO import StringIO
from requests_oauthlib import OAuth2Session
from pyramid.security import authenticated_userid
from phoenix.esgf.logon import save_credentials
from phoenix.db import mongodb
import logging
LOGGER = logging.getLogger(__name__)
def... | [
"ehbrecht@dkrz.de"
] | ehbrecht@dkrz.de |
2d83d359fdb856d80e6899567061652ee285e90b | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/security/azure-mgmt-security/azure/mgmt/security/v2021_06_01/models/_models_py3.py | 4f876f6c77d6d8bdbfbc4f3fbab9d1d5023ef1aa | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 76,349 | py | # coding=utf-8
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
# 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) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ca7157b5b0c7069e59967ab599962d956d7fefc7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_cloyed.py | 866731bcab5dd3b76d7f2caaed6ae87438105c9b | [
"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 |
from xai.brain.wordbase.verbs._cloy import _CLOY
#calss header
class _CLOYED(_CLOY, ):
def __init__(self,):
_CLOY.__init__(self)
self.name = "CLOYED"
self.specie = 'verbs'
self.basic = "cloy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c1c1e6f62b2df825cdf3bb2f44508dc73ba8f0b3 | bbebd95ce007baf3be20ca14fc8fe696c4c7dd96 | /L9 Python Scripts/Lemur256_b995_9/__init__.py | 1558a6a3907cffb4e21b8f83fc52de13c9f23463 | [] | no_license | spiralune/monomodular | 70eeabcb5a9921b7bab30d8c5fd45ca237cde9c3 | 862bb02067c2fbc9816795904b2537a9b5e1c7b6 | refs/heads/master | 2020-12-11T04:06:25.390424 | 2014-07-09T19:45:41 | 2014-07-09T19:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # by amounra 0513 : http://www.aumhaa.com
from Lemur256 import Lemur256
def create_instance(c_instance):
""" Creates and returns the LemaurPad script """
return Lemur256(c_instance)
from _Framework.Capabilities import *
def get_capabilities():
return {CONTROLLER_ID_KEY: controller_id(vendor_id=2536, ... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
fc7501db831d9f628d3edcf954d3733be7392097 | 8fde9a65a5ec19bcffbf9b868de702bd75303739 | /keras/QuickDraw/printh5.py | e394bfc0b85b6a72b637e74f070b8e01e3fe0a2a | [] | no_license | wupanhao/XiaoBaiAssistant | d7eb0e3e4ef83344ef146d7a0e354cdcade84718 | 5c8412954b680ccd01c6a681b18e9ed2b6c60550 | refs/heads/master | 2020-05-04T21:54:48.499925 | 2019-10-31T16:23:53 | 2019-10-31T16:23:53 | 179,493,103 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | import h5py
def print_keras_wegiths(weight_file_path):
f = h5py.File(weight_file_path) # 读取weights h5文件返回File类
try:
if len(f.attrs.items()):
print("{} contains: ".format(weight_file_path))
print("Root attributes:")
for key, value in f.attrs.items():
print(" ... | [
"wupanhao@qq.com"
] | wupanhao@qq.com |
9901ce8a9aecd422b682131a26e189cf0f2f660c | fddad101c7be2fcbc05131081e708f31948c002f | /1209. Remove All Adjacent Duplicates in String II/answer.py | 4cbb1e8f2ae537174d21c43e8d203d351fd5f150 | [] | no_license | LennyDuan/AlgorithmPython | a10c9278c676829ab5a284a618f6352414888061 | 523c11e8a5728168c4978c5a332e7e9bc4533ef7 | refs/heads/master | 2021-07-16T12:31:08.284846 | 2021-03-28T20:31:28 | 2021-03-28T20:31:28 | 244,040,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | def removeDuplicates(self, s: str, t_k: int) -> str:
dups = []
for c in set(s):
dups.append(k * c)
print(dups)
while True:
tmp = s
for dup in dups:
if dup in s:
s = s.replace(dup, "")
if tmp == s:
return s
s = "deeedbbcccbdaa"
k... | [
"hod8@aber.ac.uk"
] | hod8@aber.ac.uk |
1276a10b6ec3dbe31ec15fcf182a0d05f1e229c7 | a38bf459ae380f67e0de22f7106a8df4385a7076 | /tests/integration/goldens/redis/tests/unit/gapic/redis_v1/test_cloud_redis.py | bc58a6c8eab93f99e94219fa25665f67089f84ec | [
"Apache-2.0"
] | permissive | googleapis/gapic-generator-python | 73ce9d52f6f5bb2652d49b237b24263d6637b1da | 4eee26181e8db9fb5144eef5a76f178c1594e48a | refs/heads/main | 2023-09-04T11:12:14.728757 | 2023-09-02T10:34:44 | 2023-09-02T10:34:44 | 129,809,857 | 116 | 65 | Apache-2.0 | 2023-09-12T18:57:01 | 2018-04-16T21:47:04 | Python | UTF-8 | Python | false | false | 323,475 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# 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"
] | googleapis.noreply@github.com |
8697fd8861412387125e89f18bb23fd13b05a360 | c32fc1071362ca56f4f2a5488be7c4f41a2d3dc1 | /pythoncrashcourse/linkedinpython/introduction/introduction.py | 775e7cdcde7c38807c7b439deceaa6a7de9afcb3 | [] | no_license | charan2108/pyprocharmprojects | 234713888168551fe1fc49d20482f4b1d2b9351a | 8100194a8d14bf84b6141df8c73e7ed1883d85e3 | refs/heads/main | 2023-08-21T00:59:47.052269 | 2021-09-30T16:05:41 | 2021-09-30T16:05:41 | 353,374,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | print("Hello World")
name = input("Enter name")
print("Nice to meet you", name)
def main():
name = input("Enter name")
print("Nice to meet you", name)
| [
"sumacharan.adabala@gmail.com"
] | sumacharan.adabala@gmail.com |
627725fc35cbe5f3ebadc054fef03d82fe28cdf4 | 1bdb0da31d14102ca03ee2df44f0ec522b0701a4 | /Lombardia/AcqueBresciane/3-ReportFoundList_.py | 1e2033ab7b3e79a4c1b701d36ca664dd3fe0e2a7 | [] | no_license | figuriamoci/Acqua | dc073d90c3c5e5899b22005685847916de1dfd95 | aef22fcd0c80c92441e0e3df2468d7a2f23a848a | refs/heads/master | 2020-12-15T04:00:26.855139 | 2020-06-08T21:17:55 | 2020-06-08T21:17:55 | 234,986,179 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | ##
from bs4 import BeautifulSoup
import pandas as pd,logging,requests,io
import pdfquery
import acqua.aqueduct as aq
gestore = "AcqueBresciane"
aq.setEnv('Lombardia//'+gestore)
url = 'https://www.acquebresciane.it/public/acquebresciane-portal/it/home/qualita-acqua'
page = requests.get(url)
soup = BeautifulSoup(page.tex... | [
"an.fantini@gmail.com"
] | an.fantini@gmail.com |
2c1e265c744442aa296d693d2194b439a9625d5b | 567a4a614727613160f64da1ddd20fbc9fdeb906 | /source/__main__.py | 3a3b92e2d8f2839f4929b06e03877dba2f5fdeab | [
"MIT"
] | permissive | whitegreyblack/PyCurses | 3790fd7561b02c984c8aee97cd1579c31866ab57 | 78f3637b4c03c11d7f6ef15b20a1acf699d4be24 | refs/heads/master | 2021-01-19T23:00:18.661002 | 2019-06-26T15:59:33 | 2019-06-26T15:59:33 | 88,906,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,183 | py | """__main__.py: Receipt Viewer App
Handles building application within curses environment. Initializes
curses settings then sends the screen into the application to be built
"""
__author__ = "Samuel Whang"
import curses
import os
import pprint
import sys
import click
import source.utils as utils
from source.applica... | [
"sangwoowhang@gmail.com"
] | sangwoowhang@gmail.com |
305a7063cb265833a0edddcc0242a0a19a0fb580 | ab6adba9a2c5e5e01a102ecda589923059726a20 | /nlpaug/augmenter/word/word_embs_aug.py | 953809318f37bd97444d390980d5638065aa3afc | [
"MIT"
] | permissive | AndriyLazorenko/nlpaug | 13e0cb0f18c6d3707925b3cfc94971bfb31899aa | 79eff53f54ca16a4c49b3e8b0d816012e7b9c905 | refs/heads/master | 2020-07-06T05:02:47.904689 | 2019-08-17T01:02:05 | 2019-08-17T01:02:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,386 | py | """
Augmenter that apply operation to textual input based on word embeddings.
"""
from nlpaug.augmenter.word import WordAugmenter
from nlpaug.util import Action
# @deprecated(deprecate_from='0.0.7', deprecate_to='0.0.9', msg="Use WordEmbsAug from 0.0.7 version")
class WordEmbsAugmenter(WordAugmenter):
def __... | [
"makcedward@gmail.com"
] | makcedward@gmail.com |
125fa743eb3445847d3f7842c397796d1cf9cfc0 | de6f99da346e2646356b51ef040af75f760569e4 | /mnist/mnist_demo.py | 841f113da6da761d53d4c1781d00767e3b267f1e | [] | no_license | bboym/tensorflow-mnist | 14899b75e6fce01ed9bf782cf7a964969a4914c2 | bf326ee6577fc1ec5fbffa6928a5766e324901f0 | refs/heads/master | 2020-12-30T15:42:19.272256 | 2017-05-13T12:17:48 | 2017-05-13T12:17:48 | 91,168,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | import PIL.Image
from numpy import *
def RGB2Grey(R,G,B):
return (255-((R*30 + G*59 + B*11 + 50) / 100))
def GetImage(filelist):
# value=zeros([1,width,height,1])
width=28
height=28
value=zeros([1,width,height,1])
value[0,0,0,0]=-1
label=zeros([1,10])
label[0,0]=-1
for filename in filelist:
# print(file... | [
"you@example.com"
] | you@example.com |
0e29ec3059c43cca9577dacf4054b5b86f1b4c51 | 49e0842db6d2ae7c4decd29cf53132841f312ea6 | /tests/test_engine/test_queries/test_queryop_comparsion_gt.py | e17b08b352f436abcf842aeaef7c3410fa207530 | [
"BSD-3-Clause"
] | permissive | gitter-badger/MontyDB | cd75556f4a607b31eb154d51b4af8b7cbb0376e8 | 849d03dc2cfed35739481e9acb1ff0bd8095c91b | refs/heads/master | 2020-06-02T20:16:24.250954 | 2019-06-09T15:11:39 | 2019-06-09T15:11:39 | 191,296,205 | 0 | 0 | BSD-3-Clause | 2019-06-11T04:52:57 | 2019-06-11T04:52:57 | null | UTF-8 | Python | false | false | 13,473 | py |
import pytest
from montydb.errors import OperationFailure
from datetime import datetime
from bson.timestamp import Timestamp
from bson.objectid import ObjectId
from bson.min_key import MinKey
from bson.max_key import MaxKey
from bson.int64 import Int64
from bson.decimal128 import Decimal128
from bson.binary import Bi... | [
"david962041@gmail.com"
] | david962041@gmail.com |
9293b409f8eec1f789f4d2f1f04cfea83f74a0f9 | b0717aeda1942dd35221e668b5d793077c074169 | /env/lib/python3.7/site-packages/twilio/rest/wireless/v1/sim/usage_record.py | 42c38eddbce474cd89fe6c4b131920c719f237aa | [
"MIT"
] | permissive | stevehind/sms-steve-server | 3fdeed6de19f29aeaeb587fe7341831036455a25 | 9b0dac19f2e6ccf6452e738017132d93e993870b | refs/heads/master | 2022-12-21T23:34:10.475296 | 2020-01-27T16:24:39 | 2020-01-27T16:24:39 | 231,842,510 | 0 | 0 | MIT | 2022-05-25T05:03:16 | 2020-01-04T23:25:23 | Python | UTF-8 | Python | false | false | 9,758 | py | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import serialize
from twilio.base import values
from twilio.base.instance_resource import InstanceResource
from twilio.base.list_resource import ListResource
from twilio.base.page im... | [
"steve.hind@gmail.com"
] | steve.hind@gmail.com |
b1c05ac84637f5aeec8636a74923b0db24b7d0d0 | 8e3379aaac42e02316c2da9c2edaa5b896256c08 | /scripts/training/two_round_poker/step_learning_on_scaled_scalar_feature.py | 0cee93690aa1fc95992fca50cfebd2f0ebce1b1a | [] | no_license | ishikota/PyPokerAI | 0fc46128ef31a398137c4b6d1a4cef1debc5ad8d | 0208c695492f57aa9c47dcf9e55395b7c148db97 | refs/heads/master | 2020-06-14T15:01:33.884131 | 2017-03-06T18:11:31 | 2017-03-06T18:11:31 | 75,168,872 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,211 | py | #!/usr/local/bin/python
# Resolve path configucation
import os
import sys
root = os.path.join(os.path.dirname(__file__), "..", "..", "..")
src_path = os.path.join(root, "pypokerai")
sys.path.append(root)
sys.path.append(src_path)
# Prepare method to start pdb when crashed
import pdb, traceback, sys
def run_insecure_... | [
"ishikota086@gmail.com"
] | ishikota086@gmail.com |
579a124e270d7abbc58c42be192e0321cf3cdea8 | 41b4702e359e3352116eeecf2bdf59cb13c71cf2 | /full_model_walker_param/utils/logging.py | 56955b2116150f62474d3bd5c5e2b37e62bd95d9 | [] | no_license | CaralHsi/Multi-Task-Batch-RL | b0aad53291c1713fd2d89fa4fff4a85c98427d4d | 69d29164ab7d82ec5e06a929ed3b96462db21853 | refs/heads/master | 2022-12-22T19:23:45.341092 | 2020-10-01T00:05:36 | 2020-10-01T00:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,565 | py | """
Based on rllab's logger.
https://github.com/rll/rllab
"""
from enum import Enum
from contextlib import contextmanager
import numpy as np
import os
import os.path as osp
import sys
import datetime
import dateutil.tz
import csv
import json
import pickle
import errno
import gzip
from utils.tabulate import tabulate
... | [
"jil021@eng.ucsd.edu"
] | jil021@eng.ucsd.edu |
7f12ce96e77acbd262dc02ad447dc4acf80e4a51 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2964/60636/256270.py | 05a964680fad3511eeadbeead9cc34a53e4b319f | [] | 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 | 1,047 | py | def solve(i,j,leni,lenj,cnt,ans1,a,b):
if cnt+abs(leni-i+j-lenj)>=ans1:
return ans1
while i<leni and j<lenj:
if a[i]!=b[j]:
ans1= solve(i+1,j+1,leni,lenj,cnt+1,ans1,a,b)
ans1=solve(i+1,j,leni,lenj,cnt+1,ans1,a,b)
ans1=solve(i,j+1,leni,lenj,cnt+1,ans1,a,b)
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
22f0364d66550f6cecdd741dc062269a36390a37 | 349dadbf45b7c12a3fe41c5e0421c0488b679919 | /transformers/tests/test_generation_stopping_criteria.py | d3de2c56da1d5d8ca5d1698b906364a9b44e1e8b | [
"BSD-3-Clause",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Apache-2.0"
] | permissive | salesforce/CodeRL | c772e408bac690527759f416ea22add4c97e5bec | 51db4ff983d5376e62b9e7eba150316a651c80d9 | refs/heads/main | 2023-08-18T18:38:02.740995 | 2022-11-18T16:14:28 | 2022-11-18T16:14:28 | 508,912,853 | 412 | 52 | BSD-3-Clause | 2023-08-31T07:51:27 | 2022-06-30T02:54:36 | Python | UTF-8 | Python | false | false | 3,006 | py | import time
import unittest
from transformers import is_torch_available
from transformers.testing_utils import require_torch, torch_device
from .test_modeling_common import ids_tensor
if is_torch_available():
import torch
from transformers.generation_stopping_criteria import (
MaxLengthCriteria,
... | [
"hungle@salesforce.com"
] | hungle@salesforce.com |
7642f0222acbc26846ce597d577d513b8384cfb6 | 9febc3008d825a253bd870f05fe128c356586a9c | /venv/lib/python3.7/site-packages/github/Rate.py | a0813490dfcf3fb0f047ddfa9e19ebbbf387a128 | [
"LGPL-3.0-or-later",
"MIT"
] | permissive | bhaving07/pyup | 7ca947a0f4e6b6e1ca1e1b7c49c6bd3d99943c28 | 17ad21a2957c5cce91ad0cf5f75853a3182806d2 | refs/heads/main | 2023-02-01T14:16:40.959832 | 2020-12-18T04:34:27 | 2020-12-18T04:34:27 | 322,286,443 | 0 | 0 | MIT | 2020-12-17T13:14:46 | 2020-12-17T12:20:49 | Python | UTF-8 | Python | false | false | 3,562 | py | # -*- coding: utf-8 -*-
############################ Copyrights and license ############################
# #
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2014 Vincent Jacques <vincent@vincent-ja... | [
"bvgolakiya4@gmail.com"
] | bvgolakiya4@gmail.com |
eb4a0264887ef9e2feb2d9073d1d93d10abd0911 | 464b867648ffa7afb444d9754cf4d1ffbf25d2bf | /Learn_Python/Python_Training/Batch-2/10_Dec_2017/10_Dec/file1.py | a3b46e5c176df1149befd3f0fd25d79588c86c39 | [] | no_license | pks3kor/For_GitHub | b619fd7f19baa96d7232a0d35ce48c1355360547 | bafb2c15ff81fd2f3f90a57ac7b3467c86ac6a2e | refs/heads/master | 2021-01-25T09:20:52.146374 | 2018-06-10T14:44:04 | 2018-06-10T14:44:04 | 93,822,114 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | #~ open(<filename>,<option>)
fh = open("Test12.txt","r")
#~ print fh
#~ print fh.next()
#~ print fh.next()
#~ print fh.next()
#~ print fh.read()
print fh.read() | [
"pks3kor@gmail.com"
] | pks3kor@gmail.com |
52a0874ae27d1ae9f910460215bf6eb98a99edf8 | 99a5a5953dd6354b659a11222796676129e3b139 | /mysite/mysite/settings.py | 678fdd42143b74b264382b99a88a71826965f40f | [] | no_license | synod2/polls_practice | 55c2bd9226d66a167d86101ed2b3c7b23fec678a | b62bab6b9efc1304d2c44a1b3ecdf80990ae9fb4 | refs/heads/master | 2020-03-20T23:09:57.013202 | 2018-06-27T11:03:48 | 2018-06-27T11:03:48 | 137,832,691 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,091 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"synod2@naver.com"
] | synod2@naver.com |
3adbbbbfc8006739687ba975a3360c7a9792914d | 99ba551645dc9beed36f0478b396977c50c3e7ef | /程序员面试金典/面试题16.19.水域大小.py | 82fbac7fc69893473a13e442a88662338019ee52 | [] | no_license | wulinlw/leetcode_cn | 57381b35d128fb3dad027208935d3de3391abfd0 | b0f498ebe84e46b7e17e94759dd462891dcc8f85 | refs/heads/master | 2021-08-09T17:26:45.688513 | 2021-07-15T14:38:30 | 2021-07-15T14:38:30 | 134,419,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | # #!/usr/bin/python
# #coding:utf-8
#
# 面试题16.19.水域大小
#
# https://leetcode-cn.com/problems/pond-sizes-lcci/
#
# 你有一个用于表示一片土地的整数矩阵land,该矩阵中每个点的值代表对应地点的海拔高度。若值为0则表示水域。由垂直、水平或对角连接的水域为池塘。池塘的大小是指相连接的水域的个数。编写一个方法来计算矩阵中所有池塘的大小,返回值需要从小到大排序。
# 示例:
# 输入:
# [
# [0,2,1,0],
# [0,1,0,1],
# [1,1,0,1],
# [0,1,0,1]
# ]
# 输出:... | [
"wulinlw@gmail.com"
] | wulinlw@gmail.com |
472236ca7c4ca250abfbf71f92757e92159863dd | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startPyquil352.py | 8ea809afdf0c3bdbd3495a52a266b216ed547c4c | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,489 | py | # qubit number=2
# total number=64
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
a57c77d1f8b93a39fbb19136ec937050c0b88685 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py | 8655b9548316d09a7bc0326b00a93d5ee7092b20 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 48,024 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator})
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# ---------... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.