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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3d1adc70cd541480ba5036a9efa4b5fee148a93d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /YcqAY72nZNPtvofuJ_8.py | b8e97a2438ad8150983e02cf9849e462c2089ed7 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py |
def quad_sequence(lst):
#find pattern
difference = [lst[len(lst)-2] - lst[len(lst)-3], lst[len(lst)-1] - lst[len(lst)-2]]
difference_of_difference = difference[1] - difference[0]
#workout
last_num = lst[len(lst)-1]
last_diff = difference[1]
next_nums = []
for _ in range(len(lst)):
last_diff+=differ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
eaaf216be821853937268b4966d0219606e5dc83 | 86f026df0f9c5734ffd7266e08e45a5c8f855359 | /dataapp/migrations/0001_initial.py | e1531da8975c84cddbfa3ea68c7c488015ea2500 | [] | no_license | stam007/api_shop | 38e23795a305f31d1bf1260cf6c4f118c99c9c92 | 443c2a2f9b6f204a2b194b1c6dd61b8b29d23c1c | refs/heads/master | 2020-06-16T03:39:38.137973 | 2019-07-05T21:37:03 | 2019-07-05T21:37:03 | 195,469,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py |
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=Fa... | [
"you@example.com"
] | you@example.com |
595d87247e2461ae9ffc07c514269c1026c31b6b | d499057c555f2c9217cdfa5052207b67ea54b5cc | /server.py | d28eb56439d3b0a8e280d4903de84f66fd06cc9b | [
"Apache-2.0"
] | permissive | defnngj/movie-website | 6fe1fcc2571c75dd7f423137833eb46c4ac7db1d | d1ffaf209b4c689cd5180b8a8bb1866ad6d0f0e8 | refs/heads/main | 2023-08-11T10:37:38.783093 | 2021-09-27T14:39:56 | 2021-09-27T14:39:56 | 410,204,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | import os
import sqlite3
from flask import g
from flask import Flask
from flask import render_template
app = Flask(__name__)
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DATABASE = os.path.join(BASE_DIR, "dev.db")
def connect_db():
return sqlite3.connect(DATABASE)
def get_db():
db = getattr(g, '... | [
"defnngj@gmail.com"
] | defnngj@gmail.com |
74da5a87b5ec42b3916f337f6510325ceb0175cc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_223/ch147_2020_04_12_20_47_12_558411.py | 48a99e9557a4ecf4ea235c6fb2d47c61fe37004e | [] | 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 | 453 | py | def mais_frequente(l1):
dic={}
for e in l1:
if e in dic:
dic[e]+=1
else:
dic[e]=1
ocorrencias = [0]
for n in dic.values():
if n>ocorrencias[0]:
del ocorrencias[0]
ocorrencias.append(n)
palavra = []
for i in dic.items... | [
"you@example.com"
] | you@example.com |
cfbbccfbb28499d825414a4c03770d71a0783f86 | 0ad5abffdd15bca072ab8db068aab7e1bc6df167 | /NanoGardener/python/modules/LeptonMaker.py | c081cb86e230635a3145a1ee358104a8582dccfd | [] | no_license | pfackeldey/LatinoAnalysis | bf603af9c370b079c3d92e3ed49a5d7d05b87379 | 484a48ec6bfdb7edb06897be984eecfd1aae62fd | refs/heads/master | 2020-03-14T22:42:22.226962 | 2018-04-27T16:02:56 | 2018-04-27T16:02:56 | 131,827,114 | 0 | 0 | null | 2018-05-02T09:16:59 | 2018-05-02T09:16:59 | null | UTF-8 | Python | false | false | 8,092 | py | import ROOT
import os
import re
ROOT.PyConfig.IgnoreCommandLineOptions = True
from PhysicsTools.NanoAODTools.postprocessing.framework.eventloop import Module
from LatinoAnalysis.NanoGardener.data.LeptonMaker_cfg import List_newVar, Lep_var
from LatinoAnalysis.NanoGardener.data.common_cfg import Type_dict
#from Latino... | [
"senne.vanputte@student.uantwerpen.be"
] | senne.vanputte@student.uantwerpen.be |
2faa1a2aaf34ff00d50c35afead93ace9bc949fb | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/test/condorSub/dict_Summer20UL16APV_gjets_dr0p4.py | 817994fbf5c7ee0aa69b211e2a51ecb254f23838 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 446 | py | flist = {
"scenario": "Summer20UL16APV",
"args": "emerging=True",
"samples": [
['Summer20UL16APV.GJets_DR-0p4_HT-100To200_TuneCP5_13TeV-madgraphMLM-pythia8'],
['Summer20UL16APV.GJets_DR-0p4_HT-200To400_TuneCP5_13TeV-madgraphMLM-pythia8'],
['Summer20UL16APV.GJets_DR-0p4_HT-400To600_TuneCP... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
190d1b1092d241c85f0feb82ec4fbde905277a25 | 871e1b0295c0fbbfca8191236d674866cf62ff01 | /TrainB5_NAR1_imagenet_64.py | 532b33d65353507986ad9cfe7bb6f9818cee5de2 | [] | no_license | Peckkie/USAI_ABnormal_Screening | ce31a813e9303a7d43def912ab731cc633268cb7 | 82cd63ac9ab72fbe68eae254c15c7bf7ef906022 | refs/heads/master | 2023-02-16T13:32:33.678500 | 2021-01-07T02:36:35 | 2021-01-07T02:36:35 | 277,981,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,080 | py | import PIL
from keras import models
from keras import layers
from tensorflow.keras import optimizers
import os
import glob
import shutil
import sys
import numpy as np
from skimage.io import imread
import matplotlib.pyplot as plt
import os
from tensorflow.keras import callbacks
import pandas as pd
from keras.utils impor... | [
"w_yupaporn@kkumail.com"
] | w_yupaporn@kkumail.com |
b9a48a3fa6173aaf6e71b3ae6f50b4791ceb6e34 | e49a07ad215172e9c82cb418b10371bf0ce1c0f7 | /第1章 python基础/Python基础09/1-创建模块/msgnew.py | c70f8f258a39e5f8bc8e8298c973427f1890cdb5 | [] | no_license | taogangshow/python_Code | 829c25a7e32ead388c8b3ffa763cb9cf587bfd7b | 4b3d6992ec407d6069f3187ca7e402a14d863fff | refs/heads/master | 2022-12-16T01:26:17.569230 | 2018-11-16T10:07:59 | 2018-11-16T10:07:59 | 157,832,985 | 0 | 1 | null | 2022-11-25T09:55:32 | 2018-11-16T08:00:13 | Python | UTF-8 | Python | false | false | 142 | py | __all__ = ["test2","Test"]
def test1():
print("---test1---")
def test2():
print("---test2---")
class Test(object):
pass
num = 100
| [
"cdtaogang@163.com"
] | cdtaogang@163.com |
fdd59d240a4c0bb10c89d75d4e9a62b0b1c7f939 | 2e990ff03f23c3f82e1f3fb7acee1ddd8fb72e0e | /whoislive.py | 450d38b0d33cacce38abf02fe08ffd66a715315d | [] | no_license | HeNine/ekimbot_plugins | e25bd5326b13603a8671d4089317185bb7a7821c | 354978cc8a632aec57ef79d2948ada21dc2502cd | refs/heads/master | 2021-01-24T18:26:28.146480 | 2017-03-06T17:37:11 | 2017-03-06T17:37:11 | 84,441,447 | 0 | 0 | null | 2017-03-09T12:47:12 | 2017-03-09T12:47:12 | null | UTF-8 | Python | false | false | 4,547 | py |
import functools
import itertools
import gevent
import gtools
import requests
import twitch
from ekimbot.botplugin import ClientPlugin
from ekimbot.commands import CommandHandler
from ekimbot.utils import reply_target
def encode_recursive(o, encoding='utf-8'):
if isinstance(o, unicode):
return o.encode(encoding... | [
"mikelang3000@gmail.com"
] | mikelang3000@gmail.com |
7a2c9eb7044540d777bca9c0f68a4a888895eb00 | 06904f68018fbd42bba1909e12a79c2106af71f4 | /mirror_en.py | 733cf287ae4ed857491c9bb00206dfa953eb9428 | [] | no_license | rzbfreebird/MCDR-Mirror-Server | 2d079ac30c073805045f97302b2379937b8f95e2 | fbaebc8eeddaefe3675efff8abe98e7e69d83e30 | refs/heads/master | 2022-12-07T01:14:01.603244 | 2020-09-03T14:30:43 | 2020-09-03T14:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,443 | py | # -*- coding: utf-8 -*-
import shutil
import datetime
import os
import json as js
import platform
from os.path import abspath, dirname
from utils import rcon
current_path = abspath(dirname(__file__))
def read_config():
with open("config/mirror.json") as json_file:
config = js.load(json_file)
return conf... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
0f6b4c0e8a7fc2507d68d242905734ba1e2e2592 | 6b033e3dddc280417bb97500f72e68d7378c69d6 | /IV. COLAB/Enemy-Spotted/2. Uniform Classification/crawling/crawling_version_2_deprecated.py | fa6711bbd2b14e88c54793181f0ffa2d0b600bb1 | [] | no_license | inyong37/Study | e5cb7c23f7b70fbd525066b6e53b92352a5f00bc | e36252a89b68a5b05289196c03e91291dc726bc1 | refs/heads/master | 2023-08-17T11:35:01.443213 | 2023-08-11T04:02:49 | 2023-08-11T04:02:49 | 128,149,085 | 11 | 0 | null | 2022-10-07T02:03:09 | 2018-04-05T02:17:17 | Jupyter Notebook | UTF-8 | Python | false | false | 903 | py | from urllib.request import urlopen
import argparse
import requests as req
from bs4 import BeautifulSoup
# reference: https://enjoysomething.tistory.com/42
parser = argparse.ArgumentParser()
parser.add_argument("-data", required=False, default='acu pattern')
args = parser.parse_args()
data = args.data
def main():
... | [
"inyong1020@gmail.com"
] | inyong1020@gmail.com |
5901cd761f795addb37355ab5dfb91b136524937 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/45/usersdata/118/15614/submittedfiles/lista1.py | e7b973d29fb37d041373635daf0586e519cab283 | [] | 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 | 430 | py | # -*- coding: utf-8 -*-
from __future__ import division
n = input('Digite o número de termos:')
a = []
for i in range(0,n+1,1):
a.append(input('Digite o valor:')
somap = 0
somai = 0
contp = 0
conti = 0
for j in range(0,len(a),1):
if a[i]%2 == 0:
contp = contp +1
somap = somap +1
else:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
65862506e7c2a0b1eba9b24168fb76d1f57c32fd | 87fb0ae5563512bf4cfe2754ea92e7f4173f753f | /Chap_05/Ex_129.py | 67451fbd6333873e212e51249f4b024c92250365 | [] | no_license | effedib/the-python-workbook-2 | 87291f5dd6d369360288761c87dc47df1b201aa7 | 69532770e6bbb50ea507e15f7d717028acc86a40 | refs/heads/main | 2023-08-21T13:43:59.922037 | 2021-10-12T20:36:41 | 2021-10-12T20:36:41 | 325,384,405 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | # Tokenizing a String
# Tokenizing is the process of converting a string into a list of substrings, known as tokens.
def tokenbystring(string: str) -> list:
string = string.replace(' ', '')
tokens = []
dgt = ''
for s in string:
if s in ['*', '/', '^', '+', '-', '(', ')']:
if dgt !=... | [
"cicciodb@hotmail.it"
] | cicciodb@hotmail.it |
c69d55d3f7500378e3a928dff4e8a0e47d70916b | 09db0d94ef90ff4df3b17cf8d9c2cca7f79b2c65 | /buffer.py | 317b3835a2a7a73b712441fc4f3f631cdf1c3eb1 | [] | no_license | tgbugs/desc | 5e17e7e35445908b14c7cbaed766764bb3cbab6b | b68a07af90f87f55c4b5be6ff433f310a0bc7e2c | refs/heads/master | 2020-04-09T12:20:02.650756 | 2019-05-08T07:34:29 | 2019-05-08T07:34:29 | 20,045,270 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | #!/usr/bin/env python3.4
""" Example for how to load vertex data from numpy directly
"""
import numpy as np
from panda3d.core import Geom, GeomVertexFormat, GeomVertexData
from .util.ipython import embed
size = 1000
data = np.random.randint(0,1000,(size,3))
#color = np.random.randint(0,255,(size,4))
color = np.repea... | [
"tgbugs@gmail.com"
] | tgbugs@gmail.com |
b7dd7a197154d308863a5d0f9d1d548a6a166d6e | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/plone.app.controlpanel-2.1.1-py2.7.egg/plone/app/controlpanel/skins.py | a649d961b9669e9e19a497770d9f1e3f809ad3e2 | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,314 | py | from zope.interface import Interface
from zope.component import adapts
from zope.formlib.form import FormFields
from zope.interface import implements
from zope.schema import Bool
from zope.schema import Choice
from Products.CMFCore.utils import getToolByName
from Products.CMFDefault.formlib.schema import SchemaAdapter... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
9ee36689f1628a59d8a7f28c1af469ca7adedfe2 | b5e15fc6fe0132f18c72a1bf035b3edab618e35c | /microfinance/project_data/helpers.py | 4e75b923715a09285f8ea6047a5c9c702562fcbf | [] | no_license | Jubair70/BRAC-Customer-Service-Assisstant | ced72b4c81e0f4670c4be9efdb7d0d113f285b28 | fe35de8b96e2d8a44bf8ed811faa628ea27861d2 | refs/heads/master | 2021-06-27T06:38:35.239131 | 2020-01-13T05:17:48 | 2020-01-13T05:17:48 | 233,516,095 | 0 | 0 | null | 2021-06-10T22:28:56 | 2020-01-13T05:12:26 | JavaScript | UTF-8 | Python | false | false | 608 | py | import paho.mqtt.client as mqtt
from microfinance.settings import MQTT_SERVER_PATH, MQTT_SERVER_PORT
def send_push_msg(topic = "/CSA/1/11111", payload = None, qos = 1, retained = False):
# MQTT_SERVER_PATH = "192.168.22.114"
# MQTT_SERVER_PORT = 1884
# MQTT_SUBSCRIBE_TOKEN = "/CSA/1/11111"
# MQTT_SERVE... | [
"jubair@mpower-social.com"
] | jubair@mpower-social.com |
e7bc5b408596623a5bf610c7bba934e4da24efab | 197420c1f28ccb98059888dff214c9fd7226e743 | /elements, blocks and directions/classes/class5_A_funcs.py | 3f2a7d6da1786dea286652d45ddc788ab0d67f48 | [] | no_license | Vovanuch/python-basics-1 | fc10b6f745defff31364b66c65a704a9cf05d076 | a29affec12e8b80a1d3beda3a50cde4867b1dee2 | refs/heads/master | 2023-07-06T17:10:46.341121 | 2021-08-06T05:38:19 | 2021-08-06T05:38:19 | 267,504,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | ''' class A '''
class A:
val = 1
def foo(self):
A.val += 2
def bar(self):
self.val += 1
a = A()
b = A()
a.bar()
a.foo()
c = A()
print(a.val)
print(b.val)
print(c.val)
| [
"vetohin.vladimir@gmail.com"
] | vetohin.vladimir@gmail.com |
af8ba639185f3e1cad576566a26e97b93daee28c | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/datahub/storekit/druid.py | 73bd116ab7896d4819f9a8cc6250460549d55a6b | [
"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 | 44,065 | 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 |
7c7e67d27b764ca813e58971be7ee5ec46ca05c5 | e49a07ad215172e9c82cb418b10371bf0ce1c0f7 | /第1章 python基础/Python基础01/19-打印1-100之间的偶数.py | 4549dced2d7a0a0a558734f64134b9b56b6a40e8 | [] | no_license | taogangshow/python_Code | 829c25a7e32ead388c8b3ffa763cb9cf587bfd7b | 4b3d6992ec407d6069f3187ca7e402a14d863fff | refs/heads/master | 2022-12-16T01:26:17.569230 | 2018-11-16T10:07:59 | 2018-11-16T10:07:59 | 157,832,985 | 0 | 1 | null | 2022-11-25T09:55:32 | 2018-11-16T08:00:13 | Python | UTF-8 | Python | false | false | 61 | py | i = 1
while i<=100:
if i%2==0:
print(i)
i+=1
| [
"cdtaogang@163.com"
] | cdtaogang@163.com |
73a34062044e8bbacbf5e735782bef6c3a6cbc5a | 85df75bec1ea604c21db36b8892c90e0d7b7574f | /armstrong/core/arm_layout/utils.py | c7bb882623ba0881a93e8ae89a446d49251f0d1a | [
"Apache-2.0"
] | permissive | niran/armstrong.core.arm_layout | a569a64f84085b55509b26c004a9a41af3952047 | 229106581439c370ba51b1395e5e5e4db111a0bc | refs/heads/master | 2021-01-16T19:29:16.017160 | 2012-03-16T16:29:58 | 2012-03-16T16:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
def get_layout_template_name(model, name):
ret = []
for a in model.__class__.mro():
if not hasattr(a, "_meta"):
continue
ret.append("layout/%s/%s/%s.html" % (a._meta.app_label,
... | [
"development@domain51.com"
] | development@domain51.com |
60c721e6c7d21277963b95af8fdc2aa107b72302 | 21df7cd93e156af8357596143792c22b44e14747 | /regression/SimpleLinearRegression.py | 963a2797127498672b735dbc7c59e572c6b024fa | [] | no_license | yanyongyong/machineLearn | 0cac90c1d0b4f7021e3f9ca658268f3c433b481f | d77a13f83679ba4b06bf24c6c6019dc2af55986f | refs/heads/master | 2021-09-03T08:25:33.933996 | 2018-01-07T14:15:52 | 2018-01-07T14:15:52 | 107,839,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | import numpy as np
#简单的线性回归
def fitSLR(x,y):
n = len(x)
denominator = 0 #分母
numerator = 0 #分子
for i in range(0,n):
numerator += (x[i]- np.mean(x))*(y[i] - np.mean(y))
denominator += (x[i] - np.mean(x))**2
b1 = numerator/float(denominator)
b0 = np.mean(y) - b1*np.mean(x)
# b0 ... | [
"123456"
] | 123456 |
465b87dd2605a4e591b7693d9ff7ef6ed379c2e6 | f39c2c500873180d953ab9a7b22a4f6df95fb1c3 | /Amazon/Pyramid Transition Matrix.py | 24f0dd8cd85fc636e5f6ed3c3ff56adc101c0a4e | [] | no_license | Jason003/interview | 458516f671d7da0d3585f89b098c5370edcd9f04 | e153306b85c3687b23a332812a0885d25ecce904 | refs/heads/master | 2021-07-15T15:28:07.175276 | 2021-02-05T03:21:59 | 2021-02-05T03:21:59 | 224,898,150 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | '''
Input: bottom = "BCD", allowed = ["BCG", "CDE", "GEA", "FFF"]
Output: true
Explanation:
We can stack the pyramid like this:
A
/ \
G E
/ \ / \
B C D
We are allowed to place G on top of B and C because BCG is an allowed triple. Similarly, we can place E on top of C and D, then A on top of G and E.
'... | [
"jiefanli97@gmail.com"
] | jiefanli97@gmail.com |
983a777eea0b5f999dc64520c81090b60c106a85 | cd6c6298fb407b7158e25aba2ab28e58517b1bd0 | /tests/test_plugins.py | 54f26a7f79028ccfeae9522314b326c15c0de4a7 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | mociepka/coveragepy | dc58ef4b6072af0e55edb5d920d8a58d4cbeef0c | bc31b68776bb76ac9a650caa3c7a04c84817093d | refs/heads/master | 2021-01-17T20:16:31.014696 | 2016-01-02T21:30:47 | 2016-01-02T21:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,439 | py | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
"""Tests for plugins."""
import os.path
import coverage
from coverage import env
from coverage.backward import StringIO
from coverage.control import Plugins
from ... | [
"ned@nedbatchelder.com"
] | ned@nedbatchelder.com |
ae60e9b1424a37519eecbabcfeb13e32fe0e0f59 | df1348a67a54fa530f620ba1145c34d914710fde | /examples/sandbox/sandbox_export.py | 0279085899b7e8a7bfb5c5464169c3afb8f28481 | [
"MIT"
] | permissive | SilverLabUCL/netpyne | bf00991cec1ca44c44476e0a0fff2a15bc28b08c | 72ce78d8c79c060d44513bafa7843756ee06cc45 | refs/heads/master | 2020-07-12T12:45:39.959342 | 2016-11-16T10:26:23 | 2016-11-16T10:26:23 | 73,908,592 | 0 | 0 | null | 2016-11-16T10:21:48 | 2016-11-16T10:21:48 | null | UTF-8 | Python | false | false | 293 | py | import sandbox # import parameters file
from netpyne import sim # import netpyne sim module
sim.createExportNeuroML2(netParams = sandbox.netParams,
simConfig = sandbox.simConfig,
reference = 'sandbox') # create and export network to NeuroML 2 | [
"salvadordura@gmail.com"
] | salvadordura@gmail.com |
e0c05f71ba2c1ec6b84d1cee2e49a9f3fd585618 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_clutched.py | e70757cfd80eae64be874dd7819e132a2b0a95da | [
"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 | 240 | py |
from xai.brain.wordbase.nouns._clutch import _CLUTCH
#calss header
class _CLUTCHED(_CLUTCH, ):
def __init__(self,):
_CLUTCH.__init__(self)
self.name = "CLUTCHED"
self.specie = 'nouns'
self.basic = "clutch"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
59d94563bfa6f5937003f4b1bdd3072c24cc7d4c | e9f111b913255e2a8963556a638017c6c4729f01 | /randomize_four_digits.py | 0384492097a4e58757931549c4dab66f38246c1c | [] | no_license | dojinkimm/daddy | d609c38333358a6119ad71b4c89f418ae8c071eb | 77e79324da3e7deb11d0a045d888e432a499d388 | refs/heads/master | 2023-01-31T08:21:26.544482 | 2020-12-15T12:25:26 | 2020-12-15T12:25:26 | 285,579,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | """
문장 리스트에서 4자리 혹은 3자리 숫자를 찾아서 랜덤 숫자로 변경해주는 GUI 프로그램
GUI Program that finds four digit or three digit number in a list of sentences,
and changes to random number
"""
import random
import re
import pandas as pd
import PySimpleGUI as sg
def arg_parse():
layout = [
[sg.Text("문장을 입력하세요", size=(25, 1))],
... | [
"dojinkim119@gmail.com"
] | dojinkim119@gmail.com |
125c76db9f1f9f7db1a60cc1fac82e87519e6ac9 | c342df24a9e2a94c5b952b57d73e45ee35adea80 | /dqn_bullet_cartpole.py | f1a52ad5b053b903b878f9a354642da5683ba6ec | [
"MIT"
] | permissive | vyraun/cartpoleplusplus | 4b652d4ba0210e5abdb78931153d6076839cf6df | 87c0f1b896e6d6919c4dbfcd0bf4306f807b60ef | refs/heads/master | 2020-12-31T02:48:49.650551 | 2016-08-29T03:29:05 | 2016-08-29T03:29:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | #!/usr/bin/env python
# copy pasta from https://github.com/matthiasplappert/keras-rl/blob/master/examples/dqn_cartpole.py
# with some extra arg parsing
import numpy as np
import gym
from keras.models import Sequential
from keras.layers import Dense, Activation, Flatten
from keras.optimizers import Adam
from rl.agen... | [
"matthew.kelcey@gmail.com"
] | matthew.kelcey@gmail.com |
a2ee918ee914a6a2440aeba1db575f22ba3e78bf | 458b1133df5b38a017f3a690a624a54f0f43fda7 | /PaperExperiments/XHExp041/parameters.py | 62f97ccd29ad9f45eebb6360c8de059e6a0f209d | [
"MIT"
] | permissive | stefan-c-kremer/TE_World2 | 9c7eca30ee6200d371183c5ba32b3345a4cc04ee | 8e1fae218af8a1eabae776deecac62192c22e0ca | refs/heads/master | 2020-12-18T14:31:00.639003 | 2020-02-04T15:55:49 | 2020-02-04T15:55:49 | 235,413,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,604 | py |
# parameters.py
"""
Exp 41 - {'Initial_genes': '5000', 'Host_mutation_rate': '0.30', 'TE_progeny': '0.15, 0, 0.55, 1, 0.30, 2', 'TE_Insertion_Distribution': 'Flat()', 'Carrying_capacity': '30', 'TE_excision_rate': '0.1', 'Junk_BP': '1.4', 'Gene_Insertion_Distribution': 'Flat()', 'mutation_effect': '0.10', 'TE_death_ra... | [
"stefan@kremer.ca"
] | stefan@kremer.ca |
a03230f460994f28b677a293aea19162a7708eb2 | 8ff12c53e31f134b9f39f59b9a6f7d4f9142cea7 | /lvlist/teacherPython/lianxi.py | bf2cc0047479923ed84cd01299189d22e12ed361 | [] | no_license | quhuohuo/python | 5b0a80dbec7d22a0b274e4a32d269e85d254718c | 5732c5974519da8e8919dab42b36ab0ab2c99b37 | refs/heads/master | 2021-06-13T11:41:12.356329 | 2017-04-07T08:58:05 | 2017-04-07T08:58:05 | 75,054,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | #!/usr/bin/python
def fun(char):
l = char.split(" ")
char = ''.join(l)
return char
while True:
s = raw_input()
if not len(s):
break
print "before:",s
s = fun(s)
print "after:",s
| [
"813559081@qq.com"
] | 813559081@qq.com |
19774af108915387eb5f2ee44608d270c5137efc | 6d4d69c91eb14150778468f7cf73d8e2a9aa9124 | /t/variant/read_expresses_del.py | a0eba72d31d3b41050cde4c2746b8eee0690634a | [] | no_license | phonybone/Nof1 | 847acf7ce785319590f99271d20b7c126b59b699 | 22d877a96cd4481fdb7bf860c4d0721fcb34ddbe | refs/heads/master | 2021-01-23T13:56:53.606351 | 2013-09-20T23:50:30 | 2013-09-20T23:50:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import unittest, sys, os
from warnings import warn
libdir=os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..','lib'))
sys.path.append(libdir)
from variant import *
class TestExpressesSNP(unittest.TestCase):
def setUp(self):
print
def test_expresses_del(self):
var=Va... | [
"phonybone@gmail.com"
] | phonybone@gmail.com |
c310f33e1c8dbb6251814466ec5e07be15b0a61f | 637fe43cb3b858be426e9b9ce10485430ae1f146 | /fsleyes/gl/gl14/glmask_funcs.py | 3d9bfb590cf1c45bff2b61b253fd436eaac571e6 | [
"BSD-3-Clause",
"CC-BY-3.0",
"Apache-2.0"
] | permissive | laurenpan02/fsleyes | 9dda45c1b1b77f0f042488ddf40fed46e5c77360 | eed8940d422994b6c1f1787381ebac2361b81408 | refs/heads/master | 2023-03-11T16:49:16.994945 | 2021-02-25T18:07:39 | 2021-02-25T18:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | #!/usr/bin/env python
#
# glmask_funcs.py - OpenGL 1.4 functions used by the GLMask class.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module provides functions which are used by the :class:`.GLMask`
class to render :class:`.Image` overlays in an OpenGL 1.4 compatible manner.
"""
import fsleyes.gl.s... | [
"pauldmccarthy@gmail.com"
] | pauldmccarthy@gmail.com |
7641a1c1f9068abb40afb542114f32591bf63472 | f645ebae84e973cb42cffbe7f1d112ff2e3b0597 | /no/edgebox_final/edgebox_final/settings.py | 8cc80e236c92caef201e903858278cbcd6d1bf38 | [] | no_license | bopopescu/file_trans | 709ce437e7aa8ce15136aa6be2f5d696261c30bd | fadc3faf6473539ed083ccd380df92f43115f315 | refs/heads/master | 2022-11-19T18:54:17.868828 | 2020-03-11T04:30:41 | 2020-03-11T04:30:41 | 280,964,974 | 0 | 0 | null | 2020-07-19T22:57:41 | 2020-07-19T22:57:40 | null | UTF-8 | Python | false | false | 3,754 | py | """
Django settings for edgebox_final project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"871488533@qq.com"
] | 871488533@qq.com |
bed8fdd79205932c1f16505cfd9077aa45156f68 | 2d9a17e2b896d2f6a90913a4ba02d41f0ede5dd0 | /_58job/page_store.py | ab4764e39b62286c71dc816045dbe148722d6785 | [] | no_license | wolfwhoami/xxxxx | 1cf2ed2c8ed78048d87cccf2953ca86c0871a783 | 670787ec71127bc05c1645cc3d8ef7c3a91fe84b | refs/heads/master | 2020-03-30T00:44:55.864817 | 2016-12-16T01:45:03 | 2016-12-16T01:45:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
from spider.ipin.savedb import PageStoreBase
from spider.runtime import Log
from spider.util import htmlfind
from spider.util import TimeHandler
import spider
import time
import re
class Jd58PageStore(PageStoreBase):
def __init__(self):
super(Jd58PageStore, sel... | [
"jianghao@ipin.com"
] | jianghao@ipin.com |
217bd2af0238293662a1d0bef1aaf8b835af57ff | a4830a0189c325c35c9021479a5958ec870a2e8b | /lib/pyutil/django/mixins.py | 1f6e5aee271e26288ffc4fda4263d7ba951ea772 | [] | no_license | solutionprovider9174/steward | 044c7d299a625108824c854839ac41f51d2ca3fd | fd681593a9d2d339aab0f6f3688412d71cd2ae32 | refs/heads/master | 2022-12-11T06:45:04.544838 | 2020-08-21T02:56:55 | 2020-08-21T02:56:55 | 289,162,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | # Django
from django.http import JsonResponse
from django.forms import BaseFormSet, formset_factory
from django.forms.models import model_to_dict
from django.views.generic.edit import FormMixin
from django.core.exceptions import ImproperlyConfigured
from django.views.generic.detail import SingleObjectTemplateResponseMi... | [
"guangchengwang9174@yandex.com"
] | guangchengwang9174@yandex.com |
4bbfd3063d60db8bdd0ba24404b6cba6e8214f32 | d916a3a68980aaed1d468f30eb0c11bfb04d8def | /2021_06_14_Linked_list_cycle.py | 2cfffe4d21e1cf1685d43336acfba01f596912c7 | [] | no_license | trinhgliedt/Algo_Practice | 32aff29ca6dc14f9c74308af1d7eaaf0167e1f72 | 480de9be082fdcbcafe68e2cd5fd819dc7815e64 | refs/heads/master | 2023-07-10T23:49:16.519671 | 2021-08-11T05:11:34 | 2021-08-11T05:11:34 | 307,757,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | # https://leetcode.com/problems/linked-list-cycle/
# Given head, the head of a linked list, determine if the linked list has a cycle in it.
# There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, pos is used to denote the ... | [
"chuot2008@gmail.com"
] | chuot2008@gmail.com |
7f976f5b8142c14de1f5a2d2cbea50a1fe36c512 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_sync_token_async.py | 9d2441dc438ea9e84f222b0768eefed6c3454998 | [
"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 | 4,236 | py | # --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""), ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ae59f02eab72110000b74d8503fae65c3fc36ecd | e164fd9dce5fef093f85ca009f78570ec2b1c492 | /324. Wiggle Sort II.py | c63081d423ce9f82a653401f08c2dc5fb6ed93ff | [] | no_license | havenshi/leetcode | 58fde93a1f1cbdd3c2faa9566c00383e5812f3a7 | bcb79f329bcb133e6421db8fc1f4780a4eedec39 | refs/heads/master | 2021-01-22T04:15:23.748793 | 2019-11-30T04:25:54 | 2019-11-30T04:25:54 | 92,447,327 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | # Sorting and reoder solution. (92ms)
class Solution(object):
def wiggleSort(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
nums.sort()
med = (len(nums) - 1) / 2
nums[::2], nums[1::2] = nums[med::-... | [
"haiwen.shi01@gmail.com"
] | haiwen.shi01@gmail.com |
91577320a6ad2fab7a30f0640acbdbcf621586e1 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-5.py | 41c46ea0f9f6ec5c12819d5834a5ba585aeda8a2 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 717 | py | from output.models.nist_data.list_pkg.nmtoken.schema_instance.nistschema_sv_iv_list_nmtoken_enumeration_3_xsd.nistschema_sv_iv_list_nmtoken_enumeration_3 import NistschemaSvIvListNmtokenEnumeration3
from output.models.nist_data.list_pkg.nmtoken.schema_instance.nistschema_sv_iv_list_nmtoken_enumeration_3_xsd.nistschema_... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
61ffe08a041bf9ab8125c750c6710d2416c6f292 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/mpls_state/ldp/statistics/ldp_protocol_stats_instance_since_clear/__init__.py | 9db90b9b03d86d82c89d8808869b01b69cf370e7 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,549 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
2b60f88f7128b020f21fa8e9351b9fb82c26385d | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/gensim/corpora/lowcorpus.py | e293c998a14d288506947a9fd241acf64a343952 | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 7,100 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Corpus in GibbsLda++ format of List-Of-Words.
"""
from __future__ import with_statement
import logging
from gensim import utils
... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
d95b85d157c5e47a6a21e27eabf4525b5afea52e | d0a84d97aaa8dcc2dff4a6b33ce98dee6d474496 | /com.CheckProofing/Test_Campaign_2021/scripts/python/Page/extract_images.py | 3b80f87b21db865b5932d0164080417339bd2fe7 | [] | no_license | ahmed-test001/python | 21a27248c4571a13c0ed4dccab256aede1beea3a | eab59b9a54fae1a51fbc18c391599eb3b0e28b3d | refs/heads/master | 2023-03-10T21:00:54.634028 | 2021-02-27T05:31:58 | 2021-02-27T05:31:58 | 342,778,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,915 | py | # import json
# import re
# import os
# import sys
# import requests
# import pytesseract
# # import cv2
# from urllib.parse import urlparse
#
# from bs4 import BeautifulSoup
# from selenium.webdriver.support.wait import WebDriverWait
#
# from Test_Campaign_2021.scripts.python.Util_Data import ReadConfig
#
#
# class ex... | [
"ahmedu.ferdous@gmail.com"
] | ahmedu.ferdous@gmail.com |
b9063f096b96d5a75a310bc8ea0a8636adf03b5a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /BHBXNfeMsA43d8Tys_22.py | a4efdfcb90caae2db151d39c9a348261e7d74a67 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | """
As far as we currently know, approximations for the mathematical constant
**pi** (π) in the history of mathematics started surfacing with Ancient
Babylonians, who found its correct truncation up to 1 decimal place. During
the 5th century, the Chinese mathematician Zu Chongzhi raised it to 7 decimal
places and fr... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
72fb6a38c5f5d698ef3de0e95fd431195f0c6c1c | 4522fc52bc43654aadd30421a75bae00a09044f0 | /riley/dev.py | 1c924685ce9976e08ff5b678bf63dcb402aa2ce4 | [] | no_license | qesoalpe/anelys | 1edb8201aa80fedf0316db973da3a58b67070fca | cfccaa1bf5175827794da451a9408a26cd97599d | refs/heads/master | 2020-04-07T22:39:35.344954 | 2018-11-25T05:23:21 | 2018-11-25T05:23:21 | 158,779,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | from dict import Dict as dict
import os
import os.path
from isodate import datetime_isoformat
from datetime import datetime
from pathlib import Path
path_root = Path(r'/home/picazo/anelys')
if os.path.sep != '/':
os.path.sep = '/'
from katherine import d6
def get_datetime(timestamp):
return datetime_isofor... | [
"qesoalpe@gmail.com"
] | qesoalpe@gmail.com |
92f6925b2a9cfb31a62f32e59f35f03425e5c4ee | fd25231975acd147e04dc3ed3627c92cb1a4f86c | /FlaskAPI/vir_env/lib/python3.7/site-packages/scipy/io/matlab/tests/test_mio.py | a2fff9f37f188018118bed9ef6dc4f9d6725e5b8 | [] | no_license | sumitkutty/Flight-Price-Prediction | 832a2802a3367e655b46d3b44f073d917abd2320 | d974a8b75fbcbfa42f11703602af3e45a3f08b3c | refs/heads/master | 2022-12-25T07:13:06.375888 | 2020-10-08T18:46:44 | 2020-10-08T18:46:44 | 302,366,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8ddd2d36df500761f2d9af0be22308dd2450ebd281c3b0e945bc89b26ebb413d
size 42136
| [
"sumitkutty37@gmail.com"
] | sumitkutty37@gmail.com |
9a0a32664eb32200ecc56fb66c1444ceee1270a9 | 7dc65b6d2e857c807bd2f75e2586af5f8e933fe5 | /fixtures/vcenter_gateway.py | 1c031b4ea91e3d21c538dd73e06dfdc6d23c41d9 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | vkolli/contrail-test-perf | d6fdc20f4a2004066c5a6316afd915ecdc9366c2 | db04b8924a2c330baabe3059788b149d957a7d67 | refs/heads/master | 2021-01-18T15:36:18.120487 | 2017-03-30T19:19:30 | 2017-03-30T19:19:30 | 86,661,522 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,851 | py | from vcenter import *
from vnc_api.vnc_api import *
from lif_fixture import LogicalInterfaceFixture
from physical_device_fixture import PhysicalDeviceFixture
from pif_fixture import PhysicalInterfaceFixture
from port_fixture import PortFixture
from openstack import OpenstackAuth, OpenstackOrchestrator
from contrailapi... | [
"root@5b3s45.contrail.juniper.net"
] | root@5b3s45.contrail.juniper.net |
3496db296e088ab5b474d57d635d971b8e919291 | 923a14dd594191d77e30465027ece8371f28a7a6 | /web-serpng/code/serpng/jobs/services/search/user_data_tests.py | a41f50ac118c451b073c3ebd84206912b868bae7 | [] | no_license | alyago/django-web | 3af7b3389df59104eaf5e50ed9cc2c3e730fed7f | da3073eec6d676dfe0164502b80d2a1c75e89575 | refs/heads/master | 2021-01-10T19:33:45.425520 | 2013-11-21T09:43:37 | 2013-11-21T09:43:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py | """User Data Tests."""
from django.test import TestCase
import user_data
# JSON responses from the bridge to be used in the tests.
JSON_RESPONSE_WITH_NO_USER_DATA = {
'abc': 'I am not user data'
}
JSON_RESPONSE_WITH_GOOD_USER_DATA = {
'user_data': {
'recent_searches': ['rs1', 'rs2'],
'user_e... | [
"oleg@simplyhired.com"
] | oleg@simplyhired.com |
ea0247a08d3dbfcc08f7339be1353955119ac626 | f5ef25c84e9b4846f98d520bc9a20d20b3d1b65c | /OOP/oop3.py | e7b6dedf4ec707a9c8abd83d79293c2b25573e9b | [] | no_license | amiraHag/python-basic-course2 | 45757ffdfa677c2accd553330cd2fd825208b0aa | 1fbfd08b34f3993299d869bd55c6267a61dc7810 | refs/heads/main | 2023-03-31T06:48:11.587127 | 2021-03-30T03:43:10 | 2021-03-30T03:43:10 | 327,271,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | # --------------------------------------------------------------------
# -- Object Oriented Programming => Instance Attributes and Methods --
# --------------------------------------------------------------------
# Self: Point To Instance Created From Class
# Instance Attributes: Instance Attributes Defined Inside The ... | [
"amira071846@feng.bu.edu.eg"
] | amira071846@feng.bu.edu.eg |
8af41c09b124f2ec5b82fef8804ae4eefd794aa5 | 4759db9f7e74cec91edbb4c18c553b92913d1695 | /adafruit_atecc/adafruit_atecc_cert_util.py | 415c17ab0cb4833d4b867b6891196d9eb11ca90d | [
"MIT",
"LGPL-2.1-or-later",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | brentru/Adafruit_CircuitPython_ATECC | 9702e8e06123ab258fee39baf3462640401f9f28 | cceac6431ff28edcf410c53fc2db0c357533d774 | refs/heads/master | 2020-07-27T13:53:31.604065 | 2019-09-17T20:17:00 | 2019-09-17T20:17:00 | 209,113,921 | 1 | 0 | MIT | 2019-09-17T17:15:21 | 2019-09-17T17:15:21 | null | UTF-8 | Python | false | false | 6,488 | py | # Copyright (c) 2018 Arduino SA. All rights reserved.
#
# This library 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 2.1 of the License, or (at your option) any later version.
#
# Thi... | [
"robots199@me.com"
] | robots199@me.com |
432c01b9bc0749e080f5030723946eea795b05b6 | eeade223e39130cac09fb4907da6410101af5935 | /setup.py | 3e74c7d16553cc22209fc859a2c55f4468a03da1 | [] | no_license | TrendingTechnology/jaxfg | 67cac95f7e37c2eac75574fa8473b89cc222137e | 7f19668b344944be196e6b61fdc36f1441bac819 | refs/heads/master | 2023-06-20T17:20:43.928788 | 2021-07-30T23:24:42 | 2021-07-31T00:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from setuptools import find_packages, setup
setup(
name="jaxfg",
version="0.0",
description="Factor graphs in Jax",
url="http://github.com/brentyi/jaxfg",
author="brentyi",
author_email="brentyi@berkeley.edu",
license="BSD",
packages=find_packages(),
package_data={"jaxfg": ["py.type... | [
"yibrenth@gmail.com"
] | yibrenth@gmail.com |
88fde4953ea93f45918c4891940b3b494d26ae2f | 7623d4ca5cacb259a1b2e7a98b1e8a3011592348 | /SICP/examples/ex2_83.py | b372d8db084f7f17d5cb1e2e2f63db57d0db0e8f | [] | no_license | nextdesusu/Learn-Python | 3b875ab5093844fe64cc13e717a3637bdfe62a9a | 3212059408eec27ee2ed359ac9d691b3d061372f | refs/heads/master | 2022-01-29T07:39:11.915177 | 2019-07-21T14:18:10 | 2019-07-21T14:18:10 | 198,063,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | def gcd(a, b):
while a != 0 and b != 0:
if a > b:
a = a % b
else:
b = b % a
return a + b
#print(gcd(50, 130))
class Complex:
def __init__(self, real, imag = 0):
self.real = real
self.imag = imag
def __str__(self):
... | [
"noreply@github.com"
] | nextdesusu.noreply@github.com |
ecadda233d55e5a381cea2a473aabeb40e553cf4 | f32e9b464a8c9fb7f5238935cfb5f83e840269e6 | /chat.py | 9bba623185a4235e003e9897cc735374256095c4 | [] | no_license | DavidArmendariz/python-chatbot | c192fc5f310d7c069c2a58b165ff8d90a1ceff2b | c7df66d4e0ae64c79ab75cc5cb58690efa677c23 | refs/heads/master | 2022-12-18T18:38:38.375681 | 2020-09-28T19:10:11 | 2020-09-28T19:10:11 | 258,566,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from app import app, db
from app.models import User, Message, Chatroom
@app.shell_context_processor
def make_shell_context():
return {'db': db, 'User': User, 'Message': Message, 'Chatroom': Chatroom} | [
"darmendariz1998@outlook.com"
] | darmendariz1998@outlook.com |
32bc36980bd85af045910d5303f1b1c037b8938f | 3b60e6f4bbc011003ac4929f01eb7409918deb79 | /Analysis_v1/Simulation/Pythia/RSG/RSGfragments/RSGravitonToGammaGamma_kMpl01_M_5750_TuneCP5_13TeV_pythia8_cfi.py | dbf0343665487d8f89199e7c5e5a6aaec7a57103 | [] | no_license | uzzielperez/Analyses | d1a64a4e8730325c94e2bc8461544837be8a179d | 1d66fa94763d7847011ea551ee872936c4c401be | refs/heads/master | 2023-02-09T04:54:01.854209 | 2020-09-07T14:57:54 | 2020-09-07T14:57:54 | 120,850,137 | 0 | 0 | null | 2020-06-17T16:48:16 | 2018-02-09T03:14:04 | C++ | UTF-8 | Python | false | false | 1,324 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import *
from Configuration.Generator.Pythia8aMCatNLOSettings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms... | [
"uzzie.perez@cern.ch"
] | uzzie.perez@cern.ch |
47063c6f9762cc541be468fe4120e733110426e3 | d7a68c636e6128533b17975655bd6b46ed222916 | /adapter-transformers-adapters3.1.0/src/transformers/models/decision_transformer/modeling_decision_transformer.py | 959b9763d0bd48505d91336461376868845b5345 | [
"Apache-2.0"
] | permissive | cambridgeltl/autopeft | 69179f8faf2cc4d2164ff78e544dc3fe2d39c331 | d8ad6bea93aa413a54d0e09fe25bdd62b46cfcf5 | refs/heads/main | 2023-05-23T09:21:59.912941 | 2023-04-25T14:35:31 | 2023-04-25T14:35:31 | 594,316,585 | 26 | 4 | Apache-2.0 | 2023-04-25T14:35:32 | 2023-01-28T06:39:25 | Python | UTF-8 | Python | false | false | 43,844 | py | # coding=utf-8
# Copyright 2022 The HuggingFace Team The HuggingFace Inc. team. 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/LIC... | [
"hz416@cam.ac.uk"
] | hz416@cam.ac.uk |
8aeb1300f85a1aaafb71ce05a4910eda695d01de | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_461.py | 5bdb3315298efd0854676b72294e5e643b54f60a | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | # How to query filter in django without multiple occurrences
ParentModel.objects.filter(childmodel__in=ChildModel.objects.all()).distinct()
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
25894a978235e5a7ba954ec8cdc0e0047e8254e1 | 2fd087fbc5faf43940153693823969df6c8ec665 | /pyc_decrypted/latest/dropbox/metadata/vorbis.py | e7e48da8552e55eb862035894baafb7a71cedce1 | [] | no_license | mickeystone/DropBoxLibrarySRC | ed132bbffda7f47df172056845e5f8f6c07fb5de | 2e4a151caa88b48653f31a22cb207fff851b75f8 | refs/heads/master | 2021-05-27T05:02:30.255399 | 2013-08-27T13:16:55 | 2013-08-27T13:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | #Embedded file name: dropbox/metadata/vorbis.py
from collections import defaultdict
import struct
from .utils import safe_read
def readVorbisComment(file_obj):
toret = defaultdict(list)
try:
vendor_length = struct.unpack('<I', safe_read(file_obj, 4))[0]
safe_read(file_obj, vendor_length)
... | [
"bizonix@me.com"
] | bizonix@me.com |
71b22fc91381f282dc98817aa113784b5ba94563 | 714fadd433c05b126b7909e1de14ee00bd2b0096 | /tests/test_http_client/test_http_service.py | 1dcba7edf292aa326727edd97db710b4b948af70 | [
"MIT"
] | permissive | Zheaoli/huskar-python | 4b1a30fc6939d387e09aaa484e7afe3ca190d293 | f62a2d3636b2804a552bf59f76903cf2841d75c9 | refs/heads/master | 2020-08-03T03:59:19.279390 | 2019-09-27T06:34:09 | 2019-09-27T06:34:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,669 | py | # -*- coding: utf-8 -*-
from mock import Mock
import pytest
import gevent
from huskar_sdk_v2.http.components.service import Service
initial_service_data = {u'192.168.1.1_17400': {
u'ip': u'192.168.1.1',
u'meta': {
u'control_daemon_port': 5544,
u'protocol': u'thrift',
u'pushSequence': ... | [
"mozillazg101@gmail.com"
] | mozillazg101@gmail.com |
0c4d74fc244e79ebb2b0c11a0c7f7fcf431d901f | 079c07c5d97eb60d36269e27309e84b25ea0aaeb | /guidehero-backend/app/managers/call_manager.py | 2df061c86f9dcff1932fc86ea2e7e2a95baf97e2 | [] | no_license | itdream-dev/python | 3aa44329673f05e2a86e1cba56cb88101c777233 | eda81b802b99f45933bdf0d22b508837cfa538f0 | refs/heads/master | 2023-03-05T12:27:42.776870 | 2020-05-11T15:54:45 | 2020-05-11T15:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | # -*- coding: utf-8 -*-
from config import Ivysaur
from lib.registry import get_registry
from lib.models.call import Call
from lib.push_notifications import PushNotifications
class CallManager(object):
def __init__(self):
registry = get_registry()
self.call_repo = registry['CALL_REPO']
se... | [
"skyclean906@gmail.com"
] | skyclean906@gmail.com |
aaac7828f0ebe58e41fab34c975790676ce05ef9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_116/ch32_2020_04_08_11_44_06_529462.py | cc4a1b9f2ef0e4e497cbb913dca1ed7af116e79d | [] | 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 | 523 | py | def lista_primos(n):
a=2
lista=[]
contador = 3
while len(lista)!=n:
if a == 2:
lista.append(a)
a+=1
elif a%2 == 0:
a+=1
elif contador < a :
contador = 3
while contador < a:
if a%contador == 0:
... | [
"you@example.com"
] | you@example.com |
dcd05b317337bac479b22dcaea4f461603eaa11b | 02e23da0431623db86c8138bda350a1d526d4185 | /Archivos Python Documentos/Graficas/.history/matriz_20200222132010.py | 8534cb3045cb3b356fb2e42fe4a210b62a5a9f3b | [] | no_license | Jaamunozr/Archivos-python | d9996d3d10ff8429cd1b4c2b396016a3a5482889 | 1f0af9ba08f12ac27e111fcceed49bbcf3b39657 | refs/heads/master | 2022-08-05T14:49:45.178561 | 2022-07-13T13:44:39 | 2022-07-13T13:44:39 | 244,073,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | import numpy as np
import os
import pylab as pl
import matplotlib.pyplot as plt
os.system("clear")
g=[
12, 23;
34, 34,
]
print (g)
"""
raiz=np.sqrt
ln=np.log
X = np.arange(-2, 12, 0.1)
Y = np.arange(-2, 12, 0.1)
J=np.count_nonzero(Y)
print (J)
a = [0] * J
for i in range(J):
a[i] = Y[i]
X[25]=... | [
"jaamunozr@gmail.com"
] | jaamunozr@gmail.com |
c711158cdb65871fda79be945d0bae0d04d531a8 | 50afc0db7ccfc6c80e1d3877fc61fb67a2ba6eb7 | /challenge20(T-primes)/solutions/Coder45.py | 32ba0e7800485a552e5637112a3fad818e939995 | [
"MIT"
] | permissive | banana-galaxy/challenges | 792caa05e7b8aa10aad8e04369fc06aaf05ff398 | 8655c14828607535a677e2bb18689681ee6312fa | refs/heads/master | 2022-12-26T23:58:12.660152 | 2020-10-06T13:38:04 | 2020-10-06T13:38:04 | 268,851,516 | 11 | 8 | MIT | 2020-09-22T21:21:30 | 2020-06-02T16:24:41 | Python | UTF-8 | Python | false | false | 165 | py | python
def solution(n):
for k in range(n):
y=len([k for k in range(1,n+1) if not n %k])
if y == 3:
return True
else:
return False | [
"cawasp@gmail.com"
] | cawasp@gmail.com |
62f3762c1f4cc277c8f0b20c4777ee5c189eb345 | e593f5b34050eba13fbadeee3563346fa0f1c25b | /tests/plugins/test_speedrunslive.py | 81731cbdc212b4e31f3887da8a114f76df267300 | [
"BSD-2-Clause",
"CC-BY-SA-2.0",
"MIT",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-proprietary-license"
] | permissive | fuglede/streamlink | f9e56e434b01ae426edd83f13037384af294838a | 2661d40164986f979edc2e6867f8daeceba73a44 | refs/heads/master | 2020-03-25T08:36:43.175618 | 2018-08-05T15:10:15 | 2018-08-05T15:10:15 | 143,622,979 | 0 | 0 | BSD-2-Clause | 2018-08-05T15:07:12 | 2018-08-05T15:07:12 | null | UTF-8 | Python | false | false | 570 | py | import unittest
from streamlink.plugins.speedrunslive import SpeedRunsLive
class TestPluginSpeedRunsLive(unittest.TestCase):
def test_can_handle_url(self):
should_match = [
'http://www.speedrunslive.com/#!/twitch',
]
for url in should_match:
self.assertTrue(SpeedRu... | [
"gravyboat@users.noreply.github.com"
] | gravyboat@users.noreply.github.com |
5ec6d29eb18f4b5a615c47c002f54ce12402b6b1 | 611847354ec077c5bc65fdb08c9f45ff45b4bfcc | /code/docker/python/flask_2/app.py | 234a0768f1eb0f2a9ab328dd7b3a0fc9be9cf1a3 | [
"MIT"
] | permissive | afcarl/pythoh_machine_learning_excerise | 1a572e4c6db11ee28d5c245f20fc81b334d04995 | f2b6e93eb02345f9078642cff3066e3e65557e51 | refs/heads/master | 2020-03-21T06:00:08.623962 | 2017-06-08T23:03:35 | 2017-06-08T23:03:35 | 138,193,305 | 1 | 0 | null | 2018-06-21T16:05:53 | 2018-06-21T16:05:52 | null | UTF-8 | Python | false | false | 2,365 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from flask import Flask, render_template, request
from wtforms import Form, TextAreaField, validators
import pickle
import sqlite3
import os
import numpy as np
from vectorizer import vect
app = Flask(__name__)
cur_... | [
"snow.akogi.pgel@gmail.com"
] | snow.akogi.pgel@gmail.com |
9bf502aa53de5ff285b04513b8db97f45b9147ae | 64d923ab490341af97c4e7f6d91bf0e6ccefdf4b | /tensorforce/core/policies/state_value.py | 3f2776d338b73a577f31700a2da5f1127a5c3642 | [
"Apache-2.0"
] | permissive | tensorforce/tensorforce | 38d458fedeeaa481adf083397829cea434d020cd | 1bf4c3abb471062fb66f9fe52852437756fd527b | refs/heads/master | 2023-08-17T17:35:34.578444 | 2023-08-14T20:14:08 | 2023-08-14T20:14:08 | 85,491,050 | 1,312 | 246 | Apache-2.0 | 2023-08-14T20:14:10 | 2017-03-19T16:24:22 | Python | UTF-8 | Python | false | false | 2,932 | py | # Copyright 2020 Tensorforce Team. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"alexkuhnle@t-online.de"
] | alexkuhnle@t-online.de |
98fb0dcf64f5486c42788855054e4d8f97762dd7 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-nlp/huaweicloudsdknlp/v2/model/post_sentence_embedding_req.py | 70377e135a6ed8d93d796857d996707216550b46 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,253 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class PostSentenceEmbeddingReq:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
3eed1b10050537ad9781069bb46ed2f3703cf569 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/intermediate/intermediate-bite-14-generate-a-table-of-n-sequences.py | 55c17a68b9ae77cc101badbd72287e480fb740fa | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,471 | py | """
DATE: 05 Nov 2020
TASK DESCRIPTION:
Write a function that receives one or more sequences. The sequences are already defined for you.
The function should return a table (list of strings) where the columns are the sequences
(example below).
To keep it simple we work with equally sized sequences so you don't have to... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
43ef6671cbd2943a73a2201439c31fdfc5c0ad9c | 54a745510b16111f5e5f610a07be49ea1e79fccf | /py1810/hello_mysql_01.py | 086070e7afa84b55e4f9c256485a983058c32dcc | [] | no_license | SonDog0/bigdata | 84a5b7c58ad9680cdc0e49ac6088f482e09118a5 | e6cd1e3bbb0bfec0c89a31b3fb4ef66d50c272be | refs/heads/master | 2020-04-22T02:24:16.469718 | 2019-03-13T08:59:26 | 2019-03-13T08:59:26 | 170,047,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | # 파이썬으로 MySQL, MariaDB 다루기
# python에서 MySQL 데이터베이스를 지원하려면
# python DB API 규약에 맞게 작성된 mySQL DB 모듈 필요
# 일반적으로 pyMySQL 모듈을 많이 사용
import pymysql
# # mysql connection 생성
# conn = pymysql.connect(host='13.209.88.188', user= 'son', password= '931027',db='SON_MARIADB', charset='utf8')
#
# curs = conn.cursor()
#
#... | [
"noreply@github.com"
] | SonDog0.noreply@github.com |
639b97de6a8ed56bc002ebcf1f711245cbb5584e | 2793721e5cbfccfedac75556e34dba22999530d7 | /Dynamic_Programming/venv/bin/easy_install-3.7 | 4b809b9ca4fadb6a24070714033b737b0d49bbb0 | [] | no_license | iafjayoza/Python | 135e613d1d23c493b05a009843b40cbca6a1d318 | aaa05b0d655c8f0a47ced0100a844d99f852b2a4 | refs/heads/master | 2022-12-07T07:21:46.494885 | 2020-09-06T09:03:27 | 2020-09-06T09:03:27 | 282,707,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | 7 | #!/Users/jo049566/Desktop/Jay/Jay_Data/Study_Repo/Python/Projects/Dynamic_Programming/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
... | [
"jaykumar.oza@cerner.com"
] | jaykumar.oza@cerner.com |
eb3d9991bac5d69b10d1a291e2e099785c5e1bdb | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/leetCode/Backtracking/90_SubsetsII.py | f0018bb559069fbfa983759b7fcba413f3f6cb4b | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,397 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
c.. Solution o..
___ subsetsWithDup nums
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
__ n.. nums:
r_ []
nums.s.. )
nums_len = l..(nums)
# Keep the subsets without duplicate subs... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
6315e17d884b08aa11eab2a3d71e667e140f18bc | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc040/A/4812227.py | e74fe7e059ba85e08c3cc200758d2172a2a1467f | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | n,x=map(int,input().split());print(min(x-1,n-x)) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
f24083eb0c7654f23ecf8369b85752a9772562e2 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/enums/types/targeting_dimension.py | 76a70911a6f15e25b79765af970fefb4bcd708ba | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
adb2babffe1e8af59930020f6c17f6d45db5f76f | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/KoubeiTradeOrderConsultRequest.py | 2defd325c725861c41724ed3832b3e090ad2407b | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,936 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiTradeOrderConsultModel import KoubeiTradeOrderConsultModel
class KoubeiTradeOrderConsultRequest(object):
def __init__(sel... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
3c9ce756eb733e12cf686c8c32401331d69dad3f | 5ee028ee2582a2d566c22a32097a1fcbed314fcc | /openwsn-fw-antiJamming/bsp/chips/si70x/SConscript | 8694311edc5303fbdb892109f6bbf7a70d61cfda | [] | permissive | ssciancalepore/BitTransfer | 70c5b271743ebe683d7a3a37d595dbab132f903e | b9d343b0219259f4870e9362b99c27f544014b89 | refs/heads/master | 2022-06-20T18:38:03.271254 | 2019-09-15T04:56:32 | 2019-09-15T04:56:32 | 199,583,953 | 1 | 1 | BSD-3-Clause | 2022-06-03T22:45:01 | 2019-07-30T05:53:29 | C | UTF-8 | Python | false | false | 116 | Import('env')
localEnv = env.Clone()
source = ['si70x.c']
si70x = localEnv.Object(source=source)
Return('si70x') | [
"savio.sciancalepore@gmail.com"
] | savio.sciancalepore@gmail.com | |
d74fcb05f9f029d6ad582d79695f8433a2079244 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_test/_internal/import_analysis.py | 9cc5376feb59d3d3b5b855832763ded054f1feb9 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 14,066 | py | """Analyze python import statements."""
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import ast
import os
import re
from . import types as t
from .io import (
read_binary_file,
)
from .util import (
display,
ApplicationError,
is_subdir,
)
from .data import... | [
"sifang@cisco.com"
] | sifang@cisco.com |
6e3f3b1486dc70ef90cb88af554179fd8f6dc4d5 | 59090da2fe4e848b986c704b1ecf06ebe2d730b1 | /conferences/items.py | 459b144b8d8631dcf42753824838e783ac88a031 | [
"MIT"
] | permissive | manuphatak/conferences | 75449d2b16d546d4c66e9363369331239c74c9bd | 67e8880fe7049c003650d83e090b95cc09b45da5 | refs/heads/master | 2021-06-05T04:03:18.071859 | 2015-12-25T01:13:18 | 2015-12-25T01:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ConferencesItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"bionikspoon@gmail.com"
] | bionikspoon@gmail.com |
cd7c58f94edaf9c24fad73a64af8e44d5887e94d | 90312ba1088363f12408b9869d89e31d6ad658e5 | /mifare_classic/src/python/mifare_classic.py | c96368023c6e19ad3e9a43933d96a426cec021f3 | [
"ISC"
] | permissive | Tosyk/formats-kaitai-io.github.io | c3e9d0df4deae557f5ac4d36290c7052be4c16bb | 1faec646734b93815d39bc638ead4bc9a37eca3e | refs/heads/master | 2023-07-29T07:22:10.818349 | 2021-09-12T11:41:45 | 2021-09-12T11:41:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,148 | py | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
from pkg_resources import parse_version
import kaitaistruct
from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO
if parse_version(kaitaistruct.__version__) < parse_version('0.9'):
raise Exception("Incompati... | [
"kaitai-bot@kaitai.io"
] | kaitai-bot@kaitai.io |
b2801badf5bd6284bd289b522b327b3edbb347b5 | 6131b2738a7c087dfa6907c624453576f6f0e393 | /银行转账pmysql版本/Bank_Transfer.py | 34c606ac76f8f664750def22983d82d05855ec09 | [] | no_license | heheddff/myPythonProcess | 60ef240130cd02906dc500eedb397a9662c02e5a | 885a25dd2a9cd43801306d9e70b9ce89daec4406 | refs/heads/master | 2020-04-08T19:09:18.192738 | 2019-08-06T02:52:54 | 2019-08-06T02:52:54 | 159,642,468 | 4 | 5 | null | null | null | null | GB18030 | Python | false | false | 2,049 | py | # coding=gbk
import pymysql
class Money():
def __init__(self,sid,tid,mon):
self.conn = pymysql.connect(
host="127.0.0.1",
port=3306,
user='root',
passwd='****',
db='test'
)
self.cursor = self.conn.cursor();
self.table = "money"
self.sid = sid
self.tid = tid
self.mon = mon
def checkuse... | [
"qq2003qq@126.com"
] | qq2003qq@126.com |
2e89a9bd74c09e3531412e11b310be4b94ae18d1 | 2a39fe8bd203531c9bcdb470d19b80beac665eae | /model_cluster.py | 288cf9409b0694d16f6334c5ea877ffeafd2e726 | [] | no_license | davidharvey1986/lenstoolTools | 7bf11af1a38700503a731c6fe7e83fdc92bf58c1 | 85bcf729603d34341f5f41c57c4e233b08055baa | refs/heads/master | 2021-09-08T14:29:52.695461 | 2018-03-10T13:54:50 | 2018-03-10T13:54:50 | 124,657,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,715 | py | '''
This script has 2 functions:
1. model_cluster( ra, dec, cluster, \
halos=None, \
best_file=None)
This models the input cluster and returns a structure
from simulate_project with shear, chi, etc.
'''
import numpy as np
import ipdb as pdb
import astro_tools as at
imp... | [
"davidharvey1986@googlemail.com"
] | davidharvey1986@googlemail.com |
37dcfb2bd2200cc648ab737e317d319edfd9d269 | b87f66b13293782321e20c39aebc05defd8d4b48 | /maps/build/EnthoughtBase/enthought/logger/agent/attachments.py | 4d8f00f577f6d82f2c2ec0b1a7f4b5a14dd94aef | [] | no_license | m-elhussieny/code | 5eae020932d935e4d724c2f3d16126a0d42ebf04 | 5466f5858dbd2f1f082fa0d7417b57c8fb068fad | refs/heads/master | 2021-06-13T18:47:08.700053 | 2016-11-01T05:51:06 | 2016-11-01T05:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | """ Attach relevant project files.
FIXME: there are no public project plugins for Envisage 3, yet. In any case,
this stuff should not be hard-coded, but extensible via extension points. The
code remains here because we can reuse the zip utility code in that extensible
rewrite.
"""
import logging
import os.path
from e... | [
"fspaolo@gmail.com"
] | fspaolo@gmail.com |
a4becb7bb74d1bc89c50607b9bb58cfd03ce77ee | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/littlecodersh_EasierLife/EasierLife-master/Programs/PCMusicViaWechat/run.py | 711a41774b068b3a371af0624be25cf996578762 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 785 | py | #coding=utf8
import os
import itchat
from NetEaseMusicApi import interact_select_song
HELP_MSG = u'''\
欢迎使用微信网易云音乐
帮助: 显示帮助
关闭: 关闭歌曲
歌名: 按照引导播放音乐\
'''
with open('stop.mp3', 'w') as f: pass
def close_music():
os.startfile('stop.mp3')
@itchat.msg_register(itchat.content.TEXT)
def music_player(msg):
if msg['To... | [
"659338505@qq.com"
] | 659338505@qq.com |
9b1fbe5600b7322f49bc1c05a6ab3c1035972d4d | e288dd6e3edbe2e77a970719ea943a98c629d2e2 | /stackdio/api/environments/tasks.py | e774089765937867e957f17e4651402aec083649 | [
"Apache-2.0"
] | permissive | Harrison-Miller/stackdio | b308db4cfd68e9900e08867726b779e334f2334a | b12975737a0962c748b3da375609f7db9c8842f3 | refs/heads/master | 2021-01-25T07:49:08.369918 | 2017-05-14T04:31:09 | 2017-05-14T04:31:09 | 93,666,368 | 0 | 0 | null | 2017-06-07T18:23:56 | 2017-06-07T18:23:56 | null | UTF-8 | Python | false | false | 11,435 | py | # -*- coding: utf-8 -*-
# Copyright 2017, Digital Reasoning
#
# 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... | [
"clark.perkins@digitalreasoning.com"
] | clark.perkins@digitalreasoning.com |
31a22036f099c73ba1c28df51244f2704b311551 | 891902687207fb335b65dbb8d31d6e20301764f9 | /pe007.py | 3521b25495844f22a773b26856805b717f686ada | [] | no_license | maecchi/PE | 93bd050eaca2733aa37db6ca493b820fe3d7a351 | 3d9092635807f0036719b65adb16f1c0926c2321 | refs/heads/master | 2020-05-04T16:38:36.476355 | 2012-06-10T05:26:10 | 2012-06-10T05:26:10 | 1,746,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#
# pe007.py - Project Euler
#
prime_array = []
sum_of_array = len(prime_array)
number = 1
while (len(prime_array) < 10001) :
is_prime = True
number += 1
if sum_of_array == 0:
if number != 1:
prime_array.append(number)
else:
for i in prime_array :
if not numb... | [
"aos81922710@yahoo.co.jp"
] | aos81922710@yahoo.co.jp |
4adcfd595197df3f2ce242669e3c597ba48b4670 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations/_express_route_ports_operations.py | be712ee91b79cf9c38e4d15ed2135405fdc6f98d | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 27,188 | 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"
] | scbedd.noreply@github.com |
2229d4df4a6585402d2b9b02a44445d1e7e39d2e | 71f55955d7115763f9267704328f8c738aafaa15 | /euca2ools/commands/iam/addrolepolicy.py | bb9e1d6ddeabb20857861ae24bcc791d2dbbad40 | [
"BSD-2-Clause"
] | permissive | fr33jc/euca2ools | 66da4a866e9a0873ce225f9f931019b0bbd82fff | f4d8052000601e59e4e7d4dec4aa4094df4e39a0 | refs/heads/master | 2021-01-21T08:20:44.646393 | 2015-05-07T06:16:30 | 2015-05-07T06:26:57 | 35,200,788 | 0 | 0 | null | 2015-05-07T05:34:42 | 2015-05-07T05:34:42 | null | UTF-8 | Python | false | false | 3,335 | py | # Copyright 2014 Eucalyptus Systems, Inc.
#
# Redistribution and use of this software in source and binary forms,
# with or without modification, are permitted provided that the following
# conditions are met:
#
# Redistributions of source code must retain the above copyright notice,
# this list of conditions and t... | [
"gholms@devzero.com"
] | gholms@devzero.com |
a8fe19a5ebd13e3f499880b38d3a0c9b3e2e1a01 | 77c641fd0708b279dddbe01f6af32a8531b93185 | /marketsim/gen/_out/orderbook/_TwoWayLink.py | 32086a419dd50f0c39f7d88416660a33f3316484 | [] | no_license | abensrhir/marketsimulator | aea286afd2bb2e0c8a547bfa879601aef21c0cd5 | f9f55c72fb34cdbec42b96737ca20839f26c6299 | refs/heads/master | 2020-12-13T20:55:55.795344 | 2014-02-24T22:52:24 | 2014-02-24T22:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | from marketsim import registry
from marketsim.gen._out._itwowaylink import ITwoWayLink
from marketsim.gen._intrinsic.orderbook.link import _TwoWayLink_Impl
from marketsim.gen._out._ilink import ILink
@registry.expose(["Asset", "TwoWayLink"])
class TwoWayLink_ILinkILink(ITwoWayLink,_TwoWayLink_Impl):
""" (normally ... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
223d15aa59b73791af3a6b0a32075d3e44e5e0e1 | 12c41119156dd3783c3801e07f5f973289f26bb0 | /aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/ModifyInstanceCrossBackupPolicyRequest.py | 73f1bb1dc4142387214d25bfcc8845befb0ee4b4 | [
"Apache-2.0"
] | permissive | toywei/aliyun-openapi-python-sdk | bfe0893da38af9b222ce072fd7587d5b6cdce204 | ce8f683e3201fca8c473512267f50a34f71e31d3 | refs/heads/master | 2020-08-07T23:42:00.053692 | 2019-10-08T08:50:21 | 2019-10-08T08:50:21 | 213,626,962 | 1 | 0 | NOASSERTION | 2019-10-08T11:43:15 | 2019-10-08T11:43:15 | null | UTF-8 | Python | false | false | 3,625 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
2a3f06373320ecc765b4bb93855f011b6abd1874 | 8773e8c9b9a0a6e407f91b6f7c6321141d7e8356 | /P0028.py | b36e66bdef3c5322dae8da2cc24b78e41d00f479 | [] | no_license | westgate458/LeetCode | 1836bb21e8dd95386ccab390f5fd04567a429a02 | 36d7f9e967a62db77622e0888f61999d7f37579a | refs/heads/master | 2021-12-28T04:16:36.875737 | 2021-12-17T05:48:09 | 2021-12-17T05:48:09 | 152,928,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 7 21:30:22 2018
@author: Tianqi Guo
"""
class Solution(object):
def strStr(self, haystack, needle):
"""
:type haystack: str
:type needle: str
:rtype: int
"""
# length of two strings
lh = len(haystack)
... | [
"tqguo246@gmail.com"
] | tqguo246@gmail.com |
531a90f48670b96708ad059976d2ba5bf25937fd | cbadf1c08435abc91bd221d2fd9d096717685cc0 | /cses/introductory/t1068/task.py | 4d13a4212760b1f74adb4ec357a1211f2f7534e6 | [] | no_license | x3mka/code-contests-python | 9b54738941187284e1f70aad850ae1016ca6cd39 | 57f473ca84735f9312913967e20a3ac0da32baa8 | refs/heads/master | 2022-09-01T20:39:05.329559 | 2022-08-04T13:05:22 | 2022-08-04T13:05:22 | 263,626,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | import sys
def rs(): return sys.stdin.readline().rstrip()
def ri(): return int(sys.stdin.readline())
def ria(): return list(map(int, sys.stdin.readline().split()))
def ws(s): sys.stdout.write(s); sys.stdout.write('\n')
def wi(n): sys.stdout.write(str(n)); sys.stdout.write('\n')
def wia(a, sep=' '): sys.stdout.write(sep... | [
"bdimonik@gmail.com"
] | bdimonik@gmail.com |
c38f64648780fe24938819e7a021e775e5b9144a | 2aba3c043ce4ef934adce0f65bd589268ec443c5 | /codility/lessons/lesson15/abs_distinct.py | 20cee5b98361ce77f0c60a5866368cb270aedd84 | [] | no_license | kambehmw/algorithm_python | 4f66593b77039d90515d1fcbecacdab8c811b92f | 17222399dcc92fd8f908e5774a9883e2e89c486e | refs/heads/master | 2020-06-02T12:44:11.322356 | 2020-05-18T13:22:05 | 2020-05-18T13:22:05 | 191,157,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | def solution(A):
result = set()
for a in A:
if abs(a) not in result:
result.add(abs(a))
return len(result)
if __name__ == '__main__':
A = [-5, -3, -1, 0, 3, 6]
print(solution(A)) | [
"kanbe.hmw@gmail.com"
] | kanbe.hmw@gmail.com |
de025b7b8d83683bd44b1e5b4b977f3007113196 | 2a48fb1c369a97ff82974030289613e9ccabdcd7 | /ml/rl/types.py | 0fca511ab279c28aa71bf2520a63f458fde9a3ca | [
"BSD-3-Clause"
] | permissive | Tsolmon17/Horizon | 9f5a192529f424fb8f1f47a4dddca97963c94aa2 | c13522660be6a63b793424db52a1824b0765b22d | refs/heads/master | 2020-06-23T18:40:44.078097 | 2019-07-24T22:23:39 | 2019-07-24T22:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,089 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import dataclasses
from dataclasses import dataclass
from typing import Any, Dict, List, Optional, Type, TypeVar, Union, cast
import numpy as np
import torch
@dataclass
class BaseDataClass:
def _replace(self, **kwargs... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b186256f20c492cec5e909922ed7a5ab603e0044 | 3fd8a3e3f37f9db258df63d8565239b8b8be0f24 | /basic_python/try_range.py | 6b594db09eecc7eed9296be9b513002ca6b94dc2 | [] | no_license | raveena17/workout_problems | 713a3e1a6ec513c1ee8b878519171150c6858aa4 | 004812cb7abf096d6f5d20181a29c16f8daaac55 | refs/heads/master | 2021-03-12T19:27:08.013266 | 2017-09-08T16:11:32 | 2017-09-08T16:11:32 | 102,878,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | a=['apple','mango','orange','banana']
for k in range(len(a)):
print k,a[k]
| [
"linuxuser@5gws004-linux.fifthgentech.local"
] | linuxuser@5gws004-linux.fifthgentech.local |
5194708e4cb011418ca453bde54265f86a22abd6 | fd48fba90bb227017ac2da9786d59f9b9130aaf0 | /digsby/src/gui/uberwidgets/formattedinput2/FormattedExpandoTextCtrl.py | eb6cbfe7288e350f9b8f5536a12e7a9dc75c2ac0 | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | niterain/digsby | bb05b959c66b957237be68cd8576e3a7c0f7c693 | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | refs/heads/master | 2021-01-18T10:07:10.244382 | 2013-11-03T02:48:25 | 2013-11-03T02:48:25 | 5,991,568 | 1 | 0 | null | 2013-11-03T02:48:26 | 2012-09-28T02:24:50 | Python | UTF-8 | Python | false | false | 8,255 | py | '''
Prepares FormattedExpandoTextCtrl and FormattedTextCtrl dependant on platform
On Windows includes spellcheck mixin while on Mac it does not because spellcheck is provided by the OS
'''
from gui.uberwidgets.formattedinput2.fromattedinputevents import TextFormatChangedEvent
import wx
wxMSW = 'wxMSW' in wx.Platfor... | [
"mdougherty@tagged.com"
] | mdougherty@tagged.com |
a65f673d101d1225381df4757e6710a796a2a320 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/networkx/algorithms/bipartite/projection.py | ffa5405958ff0e3d50185832e1b21f40ec34067e | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,002 | py | """One-mode (unipartite) projections of bipartite graphs."""
import networkx as nx
from networkx.utils import not_implemented_for
__all__ = [
"project",
"projected_graph",
"weighted_projected_graph",
"collaboration_weighted_projected_graph",
"overlap_weighted_projected_graph",
"generi... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
89d623c28a996e84828f0a45a67a973512b06bb1 | bc963c3c109c2d39c42f305ae555dc32625b2ba3 | /exp/030.py | d28143b48203c034c57b7b6c2bb676e65f627d7d | [] | no_license | osuossu8/BirdCLEF2021 | 0d03d68f0fdddd2859e8a323df99e56ec47000fd | 99a4f2121355f8bb2c6db330dad90a2fd7b9aaff | refs/heads/main | 2023-05-25T05:50:29.076941 | 2021-06-01T11:31:12 | 2021-06-01T11:31:12 | 359,748,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,075 | py | import ast
import gc
import os
import math
import random
import time
import warnings
import sys
sys.path.append("/root/workspace/BirdCLEF2021")
import albumentations as A
import cv2
import librosa
import numpy as np
import pandas as pd
import soundfile as sf
import colorednoise as cn
import timm
import torch
import to... | [
"osuosuossu18@gmail.com"
] | osuosuossu18@gmail.com |
96195a397e80348016e9ddf846478112f9dadba0 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/connectivity_parameters_py3.py | 2f6d375168c517e8f45f0201c2a3c695caf2c4b8 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,034 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
079f73405b82e6ed8e06092b520bc341fcf6c5bb | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /neural_guided_symbolic_regression/mcts/tree_test.py | 3e108c8496714cd1df5f3dfda77470f2b6451863 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 12,674 | py | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
fb6e59194cd56c41ffbf2f949fdb863868fbed1e | 82f998aec53e7bc49eb5aad4fdb18cbe72976b89 | /transformers/configuration_albert.py | 144678774cdc1e5b1ea30145fdf9204c810d854a | [] | no_license | MatNLP/SMedBERT | 6ab8d2749a8a26005eef36dc347f779c9e6a217b | 8dd549f902ca59ad2b84bf3b951213565fde4dc0 | refs/heads/main | 2023-09-02T03:22:13.298661 | 2021-11-17T05:44:50 | 2021-11-17T05:44:50 | 372,204,217 | 75 | 13 | null | null | null | null | UTF-8 | Python | false | false | 5,303 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 ... | [
"czr@daddy.com"
] | czr@daddy.com |
d57c34be95b4a4e63226be4b67e05cb99573eb54 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03326/s618374476.py | ab457fda2c9fc24c21e8f4fbf5a51f82f641ff89 | [] | 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 | 1,134 | py | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_upper... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5397c4ec035464d3f1523de7b3931fc7aed77c1d | 031d986fedef859c56d862fad71be339eec8365c | /saf/data_utils/prepare_datasets_from_tables.py | c847a0d7361c17c1bf042161a2107ac0bb1888aa | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | pc-seawind/google-research | bcdbf8bebf9a4a60a2407356a6ef3cdafe333070 | a7f09315705b650b75be08370cc4c70edb11e475 | refs/heads/master | 2022-11-13T20:10:47.006299 | 2022-11-04T23:29:14 | 2022-11-04T23:32:35 | 245,136,474 | 0 | 0 | Apache-2.0 | 2020-03-05T10:44:20 | 2020-03-05T10:44:19 | null | UTF-8 | Python | false | false | 10,346 | py | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5993102db04b63b021c0792c45e33184b33f0e7e | dc3d310934705034ab2f5bc4d3a96f07dab9b48b | /venv/Scripts/pip3.8-script.py | d6438c0257f98b46c7098f54e08d33868c8e9a97 | [] | no_license | createnewdemo/istudy_test | 82197488d9e9fa05e0c6cc91362645fc4555dc1d | 806693f2bee13e3c28571d0d75f6b6ea70acf7a0 | refs/heads/master | 2022-04-19T05:52:53.780973 | 2020-04-17T17:04:10 | 2020-04-17T17:04:10 | 256,507,355 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 400 | py | #!F:\pycharmÁ·Ď°\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"320783214@qq.com"
] | 320783214@qq.com |
10cabdec7e10d144746752e0c1d59045fc66cc76 | 9d1c769fb97c9287fc86cf582ac84bbf9cfdeec8 | /PythonFunctionalProgramming(Advanced)/7.Lambda Expression.py | 8b180d4009858955fcd193726d37957f15f09c82 | [] | no_license | rohan9769/Python-Coding-and-Practice | a0bb1b560e995b2f484b6e6a9cc42e4bac9e84cc | 27da1d4c3d0a1067fb8ce7f937d469bc4a2d2189 | refs/heads/master | 2021-02-10T09:15:17.999508 | 2020-03-22T13:12:44 | 2020-03-22T13:12:44 | 244,368,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #Lambda Expression - one time anonymous functions
# lambda parameter : action to take on the pararmeter
from functools import reduce
my_list = [1,2,3]
# def multi_by2(i):
# return i*2
def check_odd(i):
return i%2 != 0
def accumulator(acc,i):
print(acc,i)
return acc + i
print(list(map(lambda i: i*... | [
"rohannayak2071@gmail.com"
] | rohannayak2071@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.