blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f4f776a49f6cecba47b26f047750be00054ba27 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/nAODv5v6_Mela/cuts.py | 01b43aaa5b329b9b5edddf1b28fe74d91713f518 | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 1,258 | py | #import my.Wlep_sel
#import my.final_fatjetsel
#supercut = 'nCleanFatJet==1'
#-----Variable Deinition-----#
eleWP='mvaFall17V1Iso_WP90'
muWP='cut_Tight_HWWW'
Year='2017'
LepWPCut='(Lepton_isTightElectron_'+eleWP+'[0]>0.5 || Lepton_isTightMuon_'+muWP+'[0]>0.5)'
LepCut="( Lepton_pt[0]>30 \
&& ( fabs(Lepton_e... | [
"d4space@gmail.com"
] | d4space@gmail.com |
e830ffd19d418330e649c0af7e0a4bf9d0c7b6b4 | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/mimecast/komand_mimecast/actions/get_audit_events/schema.py | da4e4d383f51030dd308c1570249b76f61fd0a5c | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 5,168 | py | # GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json
class Component:
DESCRIPTION = "Get audit of events in Mimecast service"
class Input:
AUDIT_EVENTS_DATA = "audit_events_data"
AUDIT_EVENTS_PAGINATION = "audit_events_pagination"
class Output:
PAGINATION = ... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
92f769e2c3c6ac4aef6f13fd10f88ac2d359365a | 13edd8f1bc3b86fd881f85fbeafe94811392d7fc | /seventh_module/CRM/41.CRM开发之用户登陆_公户申请到私户/luffy_crm/web/models.py | fca1611797666e57fcdaeaecdf10ff6284e43752 | [] | no_license | ryan-yang-2049/oldboy_python_study | f4c90c9d8aac499e1d810a797ab368217f664bb1 | 6e1ab7f217d9bf9aa7801266dee7ab4d7a602b9f | refs/heads/master | 2022-07-22T23:49:28.520668 | 2019-06-11T13:26:25 | 2019-06-11T13:26:25 | 129,877,980 | 0 | 1 | null | 2022-07-18T17:12:54 | 2018-04-17T09:12:48 | HTML | UTF-8 | Python | false | false | 5,577 | py | from django.db import models
from rbac.models import UserInfo as RbacUserInfo
class School(models.Model):
"""
校区表:
如:
北京昌平校区
上海浦东校区
深圳南山校区
"""
title = models.CharField(verbose_name='校区名称', max_length=32)
def __str__(self):
return self.title
class Department(models.Model):
"""
部门表
"""
title = mod... | [
"11066986@qq.com"
] | 11066986@qq.com |
569a23583095b3c1d8b943a84b3313dbc2697392 | 469456a0bf4c7c040a8136b111195a82de17cc6b | /rev9.py | 9a76ded53f81ecdb2bca1160827cd0d59417e39f | [] | no_license | 6reg/function_fun | d2e73387e78396618d074c97a2b0088647693b4e | 64bf2d6211f9bdcc030922a7f5292c37a31eddd9 | refs/heads/main | 2023-07-07T23:42:46.426225 | 2021-08-07T22:10:47 | 2021-08-07T22:10:47 | 370,854,414 | 0 | 1 | null | 2021-07-07T02:20:18 | 2021-05-25T23:39:07 | Python | UTF-8 | Python | false | false | 362 | py | import json
def rev():
with open("fruits.json") as f:
fruits = json.load(f)
rev_fruits = {}
for o_key in fruits:
o_val = fruits[o_key]
if o_val not in rev_fruits:
rev_fruits[o_val] = [o_key]
else:
rev_fruits[o_val].append(o... | [
"mathiasgreg@gmail.com"
] | mathiasgreg@gmail.com |
7273aab7252791133c85d4fd80cdf0e405f4aa3d | dcc4437e844b56a9d564f60b8253fe744e653fdd | /lot/pages.py | 2bccfc8b260faff8dc9ef63dff6081a86051642a | [] | no_license | chapkovski/lottery-real-time-update | 532621dfaf901239722ed0fd4af54d427551e87b | b4f26b42454f68c1b1a17d1d8adfe2aa1b84c173 | refs/heads/master | 2020-04-24T11:44:42.311614 | 2019-02-21T20:31:14 | 2019-02-21T20:31:14 | 171,935,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from otree.api import Currency as c, currency_range
from ._builtin import Page, WaitPage
from .models import Constants
from utils import cp
class MyPage(Page):
pass
class ResultsWaitPage(WaitPage):
def after_all_players_arrive(self):
pass
class Results(Page):
pass
page_sequence = [
MyPag... | [
"chapkovski@gmail.com"
] | chapkovski@gmail.com |
f89d16f2660bbc9655f0b967253eb8339b916889 | ec11b34831462992865251acd62c35cedb0ee325 | /tests_old/test_find_num.py | 531c434373b72b9745d61ee38b8e499ba6fe89a7 | [] | no_license | igrekus/fiddle | 3767fb518ed0c4aa1d5c5e9fc708a9c6c18ccea7 | 3a9ab408af6304d7b1901c3aa893ae39d3132226 | refs/heads/master | 2023-04-28T00:21:10.020419 | 2023-04-19T09:52:34 | 2023-04-19T09:52:34 | 222,413,997 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | import random
from pyexpect import expect
# from fiddle import find_missing, find_duplicate
from find_missing import find_missing, find_duplicate
def test_find_missing_random():
n = 100
seq = list(range(1, n + 1))
random.shuffle(seq)
expected = seq.pop(random.randint(0, n))
expect(find_missing(... | [
"upload234@mail.ru"
] | upload234@mail.ru |
805e83753d7000b56334334d6c6ebc7efd47bedc | 67cbf8eba7d1303294d62d00bae69a2cd8c8d875 | /day3/unittestDemo.py | b35c17465ef6d71fbc718671b75bc248a4246915 | [] | no_license | changchengxc/selenium1208 | c2bb5efe699c44db6b3a7abeac21d6456c5d4089 | e52460ebc93bd7466725d3f96bd0e3d036f9a2fb | refs/heads/master | 2020-04-13T01:20:43.429519 | 2018-12-23T07:46:35 | 2018-12-23T07:46:35 | 162,871,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | import unittest
# unittest是python内置的代码库,不需要下载
# 最常用代码库,会在python sdk中准备好,不需要通过第三方下载
# 说明unittest比selenium更常用,更重要
# 类名最好和文件名之间,只差一个首字母的大小写问题,类名首字母大写,文件名首字母小写
# python中用小括号表示继承
# 让我们自己的类,继承unittest代码库中的TestCase类,表示当前类也是一个测试用例类
# 1.继承unittest代码库中的TestCase类
class UnittestDemo(unittest.TestCase):
# 2.重写父类的方法:setUp和tearD... | [
"51Testing"
] | 51Testing |
e99f9811ab29813d4590275295bab1adfba97815 | 2c68f9156087d6d338373f9737fee1a014e4546b | /src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.py | ac78888c23545fd7d16d88c6781edda87e05c50d | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | anpaz/azure-cli-extensions | 8b0d4071c49840da9883f13cb0fd1f4515246ee0 | 847fd487fe61e83f2a4163a9393edc9555267bc2 | refs/heads/master | 2023-04-23T17:22:53.427404 | 2021-01-29T17:48:28 | 2021-01-29T18:01:33 | 257,394,204 | 2 | 0 | MIT | 2021-01-28T10:31:07 | 2020-04-20T20:19:43 | Python | UTF-8 | Python | false | false | 3,550 | 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 ... | [
"noreply@github.com"
] | anpaz.noreply@github.com |
7bb7b70565b990d444814af35e8f071e3bfe40bc | 507570f66a4e29d9d96d220fc2ea8b1bf3f3cc73 | /cambiaahora/historias/admin.py | f489a70983291c092fcdec5fef7f090935adc199 | [
"MIT"
] | permissive | CARocha/plataforma_fadcanic | cd7543dc0b6c87b406d3bce9a3268383c0649eaf | da557b0b26d144095988a8809a97b83791077f20 | refs/heads/master | 2021-01-22T00:19:55.882039 | 2017-02-07T15:46:41 | 2017-02-07T15:46:41 | 35,907,829 | 1 | 0 | null | 2015-05-19T20:51:04 | 2015-05-19T20:51:04 | null | UTF-8 | Python | false | false | 1,367 | py | from django.contrib import admin
from django import forms
from .models import Historias
from django.contrib.flatpages.models import FlatPage
# Note: we are renaming the original Admin and Form as we import them!
from django.contrib.flatpages.admin import FlatPageAdmin as FlatPageAdminOld
from django.contrib.flatpages.f... | [
"crocha09.09@gmail.com"
] | crocha09.09@gmail.com |
c5691ea9dfb896d9517efbfb5c2bee129c46c4fe | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2171/60615/257499.py | ab6427fa5d945c7e4db42eef0a701908389a0d75 | [] | 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 | 424 | py |
time=int(input())
result=[]
while time>0:
length=int(input())
num=list(map(int,input().split()))
even=[]
i=0
while i<length:
if num[i]%2==0:
even.append(num[i])
num[i]='none'
i=i+1
for item in num:
if item!='none':
even.append(item)
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
994d3c2fa7a8959b6842b0dd32fc5a1ae434eb65 | b43cee0973a455a58b74233d4e02d522587f93ae | /algorithm/lesson01/task-02.py | 64af4808c10ee87233c3b83635f5c50c6db7f332 | [] | no_license | ivadimn/py-input | 5861cc92758378f44433bd6b1af7ba78da04d1c0 | bbfdd74c4dffe66440490d79082de2c0318e5027 | refs/heads/master | 2023-08-15T03:34:01.916026 | 2023-07-24T14:48:08 | 2023-07-24T14:48:08 | 202,401,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | # 2. По введенным пользователем координатам двух точек вывести уравнение прямой вида y = kx + b,
# проходящей через эти точки.
x1 = int(input('Введите координату X1 : '))
y1 = int(input('Введите координатн Y1 : '))
x2 = int(input('Введите координаты X2 : '))
y2 = int(input('Введите координаты Y2 : '))
k = (y2 - y1)... | [
"ivadimn@mail.ru"
] | ivadimn@mail.ru |
4334bb87289d789103e565cf45d6839c1c71f8a4 | 69298e7ea5d2bfb34015b5793fae6e9adc4afe05 | /blogmain/models.py | 801b0f5d3b79f6d9180c057aa86ddd3ca7214f45 | [] | no_license | q2806060/myblog | be6a3e40451ed63c352db10958b784f63779f0e9 | 26f2810cead04a78ee50de49863c1eac3ef11a01 | refs/heads/master | 2022-12-22T20:07:46.558568 | 2020-03-12T10:59:15 | 2020-03-12T10:59:15 | 215,686,277 | 0 | 0 | null | 2022-12-11T09:43:38 | 2019-10-17T02:28:44 | JavaScript | UTF-8 | Python | false | false | 323 | py | from django.db import models
# Create your models here.
class TimeAxis(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
pubtime = models.DateField()
class Mate:
db_table = "timeaxis"
verbose_name = "时间轴"
verbose_name_plural = verbose_name | [
"C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn"
] | C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn |
916a66d7dd202125bc0fa66823c9daceddc6c87b | f94790a262f6d31f91ec0a0b63d5212a36a9ee6d | /examples/psets/solvers.py | 0b591e24b44633e3523a9c64d00511ecd16f71c4 | [
"BSD-3-Clause"
] | permissive | rc/dist_mixtures | 02d893898b986b3123511d7fdb8bb37bb282261a | 6cb1219339b6c0ce66a240fe6626402ea23fe19f | refs/heads/master | 2021-01-13T01:36:52.982612 | 2014-07-23T13:50:09 | 2014-07-23T13:50:09 | 6,022,654 | 0 | 1 | null | 2013-06-24T13:13:33 | 2012-09-30T21:43:35 | Python | UTF-8 | Python | false | false | 1,286 | py | """
Parameter sets with changing the optimization solver.
By default, unspecified options are taken from a previous set. In case of the
first set, defaults are provided in the code. Command-line options can be used
to override the settings below.
Local minimizer methods:
- 'Nelder-Mead'
- 'Powell'
- 'CG'
- '... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
dab45220c0bbb625bd0860aa6fa4c06f4b83f56a | 739b764438a4b82edc5ae63dd5b1d715779dc7a1 | /python-coding-bat/list-1/middle_way/middle_way.py | 2b1c5c57fb1c222798e189e74914cfc35850edfc | [] | no_license | mgermaine93/python-playground | 2cbf3994ebc0faf51515aac233a69f926ba9cccd | 6fc7c6ee0e2d17b585469c60a748c4ae41030f87 | refs/heads/master | 2021-05-17T04:03:58.460331 | 2021-04-09T20:32:05 | 2021-04-09T20:32:05 | 250,613,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | # Given 2 int arrays, a and b, each length 3, return a new array length 2 containing their middle elements.
def middle_way(a, b):
return [a[1], b[1]]
| [
"mgermaine93@gmail.com"
] | mgermaine93@gmail.com |
42c0467054287a9015444049d3719f3b096e0c6a | 6853d854a49c877b4be7aa2a99a4e81e392fc75f | /tests/src/Cataloger/test_Initializer.py | 387130e1bf1bd64e2ae828824e36e107b8b4ee11 | [] | no_license | foorenxiang/Storage-Drives-Searcher | 666f878fa03c4432b38aaa8a14ac7b67c6599e67 | 5664d9e2bd9ce98c6b4a78d0f35295111741bf1a | refs/heads/main | 2023-07-16T23:50:44.266211 | 2021-09-04T00:36:45 | 2021-09-04T00:36:45 | 380,691,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | # LINK src/Cataloger/Initializer.py:1
def test_Initializer():
raise NotImplementedError
object_to_test = Initializer()
| [
"foorenxiang@gmail.com"
] | foorenxiang@gmail.com |
79ebec9475f2c24971ebb8d454d469eadb4813a1 | 862ded8815fc5ef2fde5f2be0fb4d2409fdbd7ba | /temperSoftmaxExperment.py | fe83a3f8166b36db541d7ea089465dd5f598d860 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | DIYer22/human-pose-estimation.pytorch | db45d03fd0e380e765d307276ae0e95d55b7cb51 | 56c799e31d1423aa10861d021730692d76259bc8 | refs/heads/master | 2020-04-27T18:46:27.047269 | 2019-03-11T06:07:29 | 2019-03-11T06:07:29 | 174,586,577 | 0 | 0 | null | 2019-03-08T18:14:28 | 2019-03-08T18:14:28 | null | UTF-8 | Python | false | false | 1,055 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: DIYer22@github
@mail: ylxx@live.com
Created on Sun Mar 10 16:00:49 2019
"""
from boxx import *
from boxx.ylth import *
from boxx.ylth import tht, map2, npa, th, np
from pylab import plt
nn.Softmax
th.Tensor.softmax
plott = lambda *l, **kv:plt.plot(*map2(lamb... | [
"ylxx@live.com"
] | ylxx@live.com |
f72123e14e845c3ae826be770d4cac6fd21bc3d8 | 413967b8602a2e31980efc9deebd35d99914802e | /udemy_python_django/class_02.py | cf07ede0aeddeb77b5bd264ef8bf982c2e1d9cef | [] | no_license | uni51/understand_python | 009dbeabbdf6a336e87f68f97fab729cee09b59d | ecd2408725ad29df11db7304dff6604a790ea763 | refs/heads/master | 2020-05-25T02:09:27.111155 | 2019-05-24T02:50:05 | 2019-05-24T02:50:05 | 187,572,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | members = {}
# クラスの場合は、先頭の1文字を大文字にするのが慣例
class Student:
def __init__(self,name):
self.name = name
self.score = {} # 成績を管理するための辞書
def add_score(self, subject_name, point):
self.score[subject_name] = point
def get_score(self, subject_name):
return self.score.get(subject_... | [
"uni51@users.noreply.github.com"
] | uni51@users.noreply.github.com |
231bc4504d5923d0be7cbd4e0eadf5469e7c50c6 | e663909cec3c4eda12bb705fce9a6dc901bb7d88 | /爬虫/day09_scrapy 存储csv xml/workhome/Novel/__init__.py | d5114b81ec2d55795ac70cf5b8fe2a87d7cb60c3 | [] | no_license | 1284753334/learning2 | a03f293965a652883503cae420d8b1ad11ae6661 | f2fcb3c856656cc8427768b41add3ee083487592 | refs/heads/master | 2023-01-30T23:18:26.951210 | 2020-12-20T15:57:18 | 2020-12-20T15:57:18 | 315,065,804 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | import os
# while True:
# fname=input('./abc.txt')
# if os.path.exists(fname):
# print ("Error:'%s' already exists" %fname)
# else:
# break
#
# #下面两句才是最重点。。。。也即open函数在打开目录中进行检查,如果有则打开,否则新建
# fobj=open(fname,'w')
# fobj.close()
# 创建一个txt文件,文件名为mytxtfile,并向文件写入msg
def text_create(name, msg)... | [
"huapenghui@git.com"
] | huapenghui@git.com |
373e0169a4bf347014aa1f68b23453aad9d489d1 | 691a248157342775eee7864af31d54bc87bf06e6 | /02 neural-network/06. neural-network-training/ex04-1.py | c8266c06b08618a63a8a9f065041b87a1bc968b0 | [] | no_license | chu83/DeepLearning | 7429135ff095778c91bb877371e22fb933dbddf4 | f0b838504c02f4d6f1bd923c550ff6ab825d4f46 | refs/heads/master | 2023-01-28T00:05:35.305559 | 2020-12-04T05:49:16 | 2020-12-04T05:49:16 | 315,176,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | # 신경망학습 : 신경망에서의 기울기
import numpy as np
import os
import sys
from matplotlib import pyplot as plt
from pathlib import Path
from PIL import Image
try:
sys.path.append(os.path.join(Path(os.getcwd()).parent, 'lib'))
from mnist import load_mnist
from common import softmax, cross_entropy_error, numerical_grad... | [
"59534807+chu83@users.noreply.github.com"
] | 59534807+chu83@users.noreply.github.com |
5dec7e690a504b7db81bedd7d9374d93db794558 | bcbc5fbdaf73146c1473f925d8d3303ef9d1256f | /chatterbot/utils/word_net.py | 818ae2178a9e6741a76c54fa56ea65abfc0a67d4 | [
"BSD-3-Clause"
] | permissive | korymath/ChatterBot | b1a3b2700d4eefbbc5a3460e174dd9d539131902 | b517e696e016b6c2fae4b5326029b16d45ee6471 | refs/heads/master | 2021-01-15T09:27:41.970135 | 2016-04-08T05:21:35 | 2016-04-08T05:21:35 | 55,752,170 | 1 | 0 | null | 2016-04-08T05:18:31 | 2016-04-08T05:18:31 | null | UTF-8 | Python | false | false | 405 | py | from nltk.corpus import wordnet
class Wordnet():
def __init__(self):
from nltk.data import find
from nltk import download
try:
find('wordnet.zip')
except LookupError:
download('wordnet')
def synsets(self, token):
"""
Takes a token and r... | [
"valetolpegin@gmail.com"
] | valetolpegin@gmail.com |
6eb11f1feb0f7d839db4fa1a2fabcc4d3c68adde | 3dcc44bf8acd3c6484b57578d8c5595d8119648d | /fix_chains.py | 72714a9a5c9a8c90be4059d0c74cbd727ddc1b90 | [] | no_license | rhiju/rhiju_python | f0cab4dfd4dd75b72570db057a48e3d65e1d92c6 | eeab0750fb50a3078a698d190615ad6684dc2411 | refs/heads/master | 2022-10-29T01:59:51.848906 | 2022-10-04T21:28:41 | 2022-10-04T21:28:41 | 8,864,938 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | #!/usr/bin/python
#Currently only setup for RNA
from sys import argv
from os import system
import string
files = argv[1:]
convert = 0
if files.count( '-convert'):
convert = 1
del( files[ files.index('-convert') ] )
tinker_name_convert = { ' A':' A', ' C':' C',
... | [
"rhiju@stanford.edu"
] | rhiju@stanford.edu |
82a0da06bcde156af6eb997f83979be0a263dbd3 | f5efd53d4f0f4ed1ad4cfb1feeac9680d5365d63 | /simple_settings/core.py | 146224fc95e9cd708447c8a3b6eae75b8f307534 | [
"MIT"
] | permissive | pombredanne/simple-settings | 365d4015b86a2784bff7fe382e4f166fccc342fa | d94a8e0da617bb868fb45755a96677780cfd341e | refs/heads/master | 2021-01-23T02:48:32.359681 | 2016-04-08T03:50:37 | 2016-04-08T03:50:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | # -*- coding: utf-8 -*-
from copy import deepcopy
import os
import sys
from .special_settings import process_special_settings
from .strategies import strategies
class LazySettings(object):
"""
LazySettings is the main class of simple-settings
To use just create a instance and access the attributes
o... | [
"drgarcia1986@gmail.com"
] | drgarcia1986@gmail.com |
4758ed1b94063384c0e35b14b2dae011e8eb4d08 | 24d070c6410fdf7212c4c37c2fadc932cd4e8aec | /trac/notification/tests/__init__.py | 795a9c93aee2c7573c24d437de7b58ace7a20c39 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | clubturbo/Trac-1.4.2 | 4f111e8df9e8007a0e02080bec560361b25fc11c | 254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78 | refs/heads/master | 2023-01-20T16:20:44.724154 | 2020-12-03T08:57:08 | 2020-12-03T08:57:08 | 317,922,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2020 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at https://trac.edgewall.org/wiki/TracLicense.
#
# This soft... | [
"jonn@mindhunterx"
] | jonn@mindhunterx |
f2d744a2870fdaf4d9b6a98b410bc2ca06c5500f | c0950683d84a3c5999a28ac32668e8dbd159e036 | /bvpl/bvpl_octree/PCA/pca_global/combine_stats_pairwise.py | 6846355dd6e48739c7f4227ee6a89a5bce225def | [
"BSD-3-Clause"
] | permissive | mirestrepo/voxels-at-lems | 0a88751680daa3c48f44f49bb4ef0f855a90fa18 | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | refs/heads/master | 2021-01-17T07:26:12.665247 | 2016-07-20T17:49:26 | 2016-07-20T17:49:26 | 3,919,012 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,200 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 14, 2011
@author:Isabel Restrepo
Computes sample data mean and scatter. Each block is processed in a separate thread.
"""
import os;
import bvpl_octree_batch
import multiprocessing
import Queue
import time
import random
import optparse
import sys
from ... | [
"isabelrestre@gmail.com"
] | isabelrestre@gmail.com |
56a62ced4732996353668428e8ed66c48239a515 | 720126354851961926277c61f41318184c79fad2 | /venv/lib/python3.8/site-packages/pm4py/objects/conversion/log/variants/to_event_stream.py | 62d2d142e85d930e8305e56480418b6531b33fca | [] | no_license | yclei/co-co-eaa | c4057025e9b91e6af01d2765196df743bfe5985d | aeb6d42ab3ce4bc83b08a1ec9a4a3d6d3da380b4 | refs/heads/main | 2023-03-12T14:49:03.972865 | 2021-03-03T22:38:48 | 2021-03-03T22:38:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,446 | py | '''
This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).
PM4Py is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... | [
"javetter@mail.uni-mannheim.de"
] | javetter@mail.uni-mannheim.de |
dc36945d27ebcc8f09ba2f2809b18f3478bb7404 | 01b88caceec1302ce8fbdb90063091dff5a1ccb2 | /zadanie/users/forms.py | d7e7972fa937e7d313e577a4871125fd69b5bb4d | [
"MIT"
] | permissive | szymanskirafal/zadanie | 9f2ce174eca8e783427656e45f3c0488457bcf17 | 8668976955eeea45e4abec673ba5a6c4f3848e16 | refs/heads/master | 2020-04-15T05:30:59.296423 | 2019-10-06T19:46:31 | 2019-10-06T19:46:31 | 164,426,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django_registration.forms import RegistrationForm
from .models import CustomUser
class CustomUserForm(RegistrationForm):
class Meta(RegistrationForm.Meta):
model = CustomUser
clas... | [
"r.szymansky@gmail.com"
] | r.szymansky@gmail.com |
e89316ca381859f3108995eb649e6e7e4af6123a | f0d1bfb45ff5fad468270b586f4cebc3aa73da10 | /6-bookstore-BooksApp/books/admin.py | 815ca851bba96f198b12e3c5b55ef7e4afe21470 | [] | no_license | D-GopalKrishna/Django-with-Docker | 28a87a94fe224af9a1d9e3d1ef5df8c48ace6622 | f3241ce01e3c6dc30be4f565037723f710619aa8 | refs/heads/master | 2023-03-01T21:29:58.106486 | 2021-01-29T09:27:34 | 2021-01-29T09:27:34 | 331,938,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from django.contrib import admin
from .models import Book
# Register your models here.
## Which field to be displayed in admin
class BookAdmin(admin.ModelAdmin):
list_display = ("title", "author", "price")
admin.site.register(Book, BookAdmin) | [
"nikhil0223@gmail.com"
] | nikhil0223@gmail.com |
23617bb917805864bee62b5840b573dc60f99ab6 | 6f9a2561a94fb12e73ae81127c713d3fcae4e5ce | /backend/task_category/admin.py | 08f0b9269691f93e2f3432556217e5c3db36b921 | [] | no_license | crowdbotics-apps/altinminer-31819 | 89d4ab3d55de8df4c5b9464ca06d88792d024ad3 | b16e7e3c98cdde00c14d106b6973f4ce27107a80 | refs/heads/master | 2023-08-23T15:06:32.202864 | 2021-11-03T15:50:59 | 2021-11-03T15:50:59 | 424,285,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.contrib import admin
from .models import Category, Subcategory
admin.site.register(Subcategory)
admin.site.register(Category)
# Register your models here.
| [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e0ee978eca2ae564ca1aa0d744ec8e8f79a7adea | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/5976023/snippet.py | f0ac42a49ac34d9f2a1e143e94f1c8b965c6cd2f | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,157 | py | #!/usr/bin/env python
import shlex
import subprocess
import datetime as dt
from sys import argv, exit
from os import fork
import time
def usage():
print('Usage: %s HH:MM [custom message]' % argv[0])
def sleep(seconds):
'''Wait!!!'''
print('Sending alert in %s seconds' % seconds)
time.sleep(seconds)
... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
6f9a8fa452503565ad298687d037963c1ed7915a | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/twisted/trial/_dist/distreporter.py | cfc10a2151d696a2456d2e1c75229b1be2ab6562 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | # -*- test-case-name: twisted.trial._dist.test.test_distreporter -*-
#
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
The reporter is not made to support concurrent test running, so we will
hold test results in here and only send them to the reporter once the
test is over.
@sinc... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
842755350cfe0da6cde4b27727b69e192af3fc9d | 7685d56c9e0f0e0bd118f657e039c508a02f1f9a | /test/test_sos_kernel.py | c1196a553eee87752fef02c7c01644de59923831 | [] | no_license | neuroradiology/sos-notebook | a08fb1979ab2adcb85b33fc5dd4cff53d9cd4fc2 | 1ccc522ab6bf2a52f3f2a77c35b324f37a3a744a | refs/heads/master | 2021-08-22T23:55:51.236751 | 2017-12-01T19:39:58 | 2017-12-01T19:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,038 | py | #!/usr/bin/env python3
#
# This file is part of Script of Scripts (SoS), a workflow system
# for the execution of commands and scripts in different languages.
# Please visit https://github.com/vatlab/SOS for more information.
#
# Copyright (C) 2016 Bo Peng (bpeng@mdanderson.org)
#
# This program is free software: you c... | [
"ben.bog@gmail.com"
] | ben.bog@gmail.com |
a60e90ca97af9450e1d64d7855363400076f8369 | 28a124b6a2f22a53af3b6bb754e77af88b4138e1 | /DJANGO/WEB_CV_GENERATOR/cvgenerator/cvgenerator/urls.py | 1b2f1134de08b9711a3dba38a3f80e058b960baf | [] | no_license | mebaysan/LearningKitforBeginners-Python | f7c6668a9978b52cad6cc2b969990d7bbfedc376 | 9e1a47fb14b3d81c5b009b74432902090e213085 | refs/heads/master | 2022-12-21T03:12:19.892857 | 2021-06-22T11:58:27 | 2021-06-22T11:58:27 | 173,840,726 | 18 | 4 | null | 2022-12-10T03:00:22 | 2019-03-04T23:56:27 | Python | UTF-8 | Python | false | false | 1,152 | py | """cvgenerator 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-b... | [
"menesbaysan@gmail.com"
] | menesbaysan@gmail.com |
9feed63451bef102014e1db4b7b1534f914f8391 | 1bad7d2b7fc920ecf2789755ed7f44b039d4134d | /ABC/135/B.py | 3e3f063bc57addbf1c942e881e1f979b084a9a58 | [] | no_license | kanekyo1234/AtCoder_solve | ce95caafd31f7c953c0fc699f0f4897dddd7a159 | e5ea7b080b72a2a2fd3fcb826cd10c4ab2e2720e | refs/heads/master | 2023-04-01T04:01:15.885945 | 2021-04-06T04:03:31 | 2021-04-06T04:03:31 | 266,151,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | a=int(input())
count=0
b=list(map(int,input().split()) )
for i in range(0,len(b),1):
if i+1!=b[i]:
count+=1
if count<=2:
print("YES")
else:
print("NO") | [
"kanekyohunter.0314@softbank.ne.jp"
] | kanekyohunter.0314@softbank.ne.jp |
30cb4ecdef0236525abc70a580ffb689dce821cd | c51eef37bb983a9c35635c7ccc96a0cf689a7438 | /lecture/lecture_gn/week5/jolse_stage.py | 7b420f0824f38ff1ef1f0e04dd3016bdfb4f72b5 | [] | no_license | Kyeongrok/python_crawler | 0a717b43be36584af1b0f7c1ad0c79108a5d11e0 | 5a5da8af7bb080f752a9a066741ac8adab136a3a | refs/heads/master | 2022-09-13T03:15:08.053639 | 2022-08-02T15:45:03 | 2022-08-02T15:45:03 | 124,719,435 | 40 | 34 | null | 2019-02-27T08:29:52 | 2018-03-11T03:20:32 | HTML | UTF-8 | Python | false | false | 444 | py | import libs.jolse.jolse_parser as parser
def getProdList(fileName):
file = open(fileName, encoding="utf-8")
str = file.read()
prodList = parser.parse(str)
return prodList
prodList1 = getProdList("./troublecare_1.html")
prodList2 = getProdList("./troublecare_2.html")
mergedList = prodList1 + prodList2... | [
"oceanfog1@gmail.com"
] | oceanfog1@gmail.com |
3c1f0f8a2f53aec32ae5e88a968590a921524277 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /fitting/exportFittingUtil.py | aed075f76951553f3448a3a7117b1030d7f2385a | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | #Embedded file name: fitting\exportFittingUtil.py
"""
This file contains some utility functions for exporting fitting in EFT format
It assume the following order, with the slot location separated by one linebreak
low slots
mid slots
high slots
rig slots
subsystem slots
drones
items i... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
e8940c78beb84523da7d02ce3942fc7fa37bedd6 | 3060b94f8770ae5047fd9797097d88dfa67c5077 | /py4seo/Код с занятий/lesson2/google_with_similar.py | 44e1fe68a22919de8720aa0f49730d70e1ce5ef3 | [] | no_license | vvscode/py--notes | 8758d532266e8f39857eb8474ab05e9b8cab3841 | 75ddb6608084eb0983ec061f1fc9d3ba75781d46 | refs/heads/master | 2023-05-05T21:25:11.932183 | 2020-01-05T20:06:09 | 2020-01-05T20:06:09 | 117,715,579 | 1 | 0 | null | 2023-04-21T20:44:33 | 2018-01-16T17:18:13 | HTML | UTF-8 | Python | false | false | 593 | py | from pprint import pprint
from requests_html import HTMLSession
keyword = input('Введите ключевое слово: ')
session = HTMLSession()
resp = session.get(
f'https://www.google.com/search?q={keyword}&num=100&hl=en')
links = resp.html.xpath('//div[@class="r"]/a[1]/@href')
domains = [x.split('/')[2] for x in links if ... | [
"v.vanchuk@tut.by"
] | v.vanchuk@tut.by |
882273dd8aabbbca5590d4a7b521ff9e8bea09ca | 6c8f3ab5f952d986a17edda582c5a039bf65c632 | /django/auth_user_project/auth_user_project/settings.py | b8b7c819e5615a99f8bd1302ffa966a537b87832 | [] | no_license | phillipn/coding_bootcamp_projects | 3d3bd697728dd4502267e0cd2be7a090952029a8 | 278f96df9d256364583654a00fe585d474ea86a1 | refs/heads/master | 2021-01-17T17:30:14.607944 | 2017-03-19T18:12:32 | 2017-03-19T18:12:32 | 82,971,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | """
Django settings for auth_user_project project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
... | [
"phillipn101@gmail.com"
] | phillipn101@gmail.com |
92778cc747a3cd6dee053f7284def1ac1f5e5fe6 | 17f1811abda6c828460b77f460671f9c2f464204 | /leetcode/largest_number.py | 3c17465e72318327c01ca8b5e0fae1fea78975e4 | [] | no_license | rishabhranawat/challenge | f10f69fc30881a0571c4321b466a89aeeb06e568 | e836343be5185f8843bb77197fccff250e9a77e3 | refs/heads/master | 2021-01-21T15:13:47.590675 | 2020-04-25T15:26:42 | 2020-04-25T15:26:42 | 91,833,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | class Solution:
def compare(self, n1, n2):
if(n1 + n2 > n2 + n1):
return False
elif(n1 + n2 < n2 + n1):
return True
def largestNumber(self, nums):
nums = [str(x) for x in nums]
for i in range(0, len(nums), 1):
for j in range(i, len(nums), 1):
if(self.compare(nums[i], nums[j])):
temp = nums[... | [
"rishabhranawat12345@gmail.com"
] | rishabhranawat12345@gmail.com |
874566cff529b9913c52b638ce6cad8206c4b1da | de79dd7ff6512318087dade18f90436f2b395ae7 | /pubbot/education/tests/test_models.py | b25635cbbf8357a1ce6363e5d76ac9f3099dc9d3 | [] | no_license | pubbothq/pubbot | ff893b3fc73fc050e974373d547762ec4683a480 | 71e5e554ae9331075a114e88949c7118e60dff0e | refs/heads/master | 2021-08-10T00:20:25.981547 | 2015-02-06T16:00:53 | 2015-02-06T16:00:53 | 13,468,162 | 0 | 0 | null | 2021-06-10T18:55:55 | 2013-10-10T10:14:34 | Python | UTF-8 | Python | false | false | 595 | py | from django.test import TestCase
from django.core.exceptions import ValidationError
from pubbot.education.models import Education
class TestEducationModel(TestCase):
def test_as_str(self):
e = Education.objects.create(
trigger='foo',
response='bar',
probability=0.5,
... | [
"john.carr@unrouted.co.uk"
] | john.carr@unrouted.co.uk |
4f4880b747bfd351f9375f17b9dd07641ab62c4a | dc329486daa460d67b22679318a2f81fe2be11b3 | /07/test_decorator.py | 451c5e7aabb5603b5098fb34ed861c08428f16ec | [] | no_license | mcfee-618/FluentPy | 0a3cb553d4ab46283216f1b9f31d9ae266fa6a05 | e323ff58928860bfc31116096d98e6a12c00ac72 | refs/heads/master | 2023-02-04T16:18:36.012958 | 2020-12-25T06:41:54 | 2020-12-25T06:41:54 | 273,633,052 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #coding:utf-8
"""
@author: mcfee
@description:
@file: test_decorator.py
@time: 2020/7/6 下午12:02
"""
def d1(func):
def inner(*args):
print("d1")
func(args)
return inner
def d2(func):
def inner(*args):
print("d2")
func()
return inner
@d1
@d2
def test():
print("22")... | [
"feipeixuan@163.com"
] | feipeixuan@163.com |
3ac1d44e9f8295e1e8e69f64342028b586e6e91c | 237a97303d7b3f4df7b5a43c46a8f6313acd0814 | /conanfile.py | 49865d5c74e2d8a9cf1cecb84940230e32979fa7 | [
"BSD-3-Clause"
] | permissive | qcscine/xtb_wrapper | a0428e1d016e254499988b9c72bf28238ce3b5b1 | 9d56c29df0fc58ffc8af8aeef3651c454c24b954 | refs/heads/master | 2023-05-28T14:52:20.535187 | 2023-05-12T06:57:33 | 2023-05-12T06:57:33 | 436,606,433 | 1 | 2 | BSD-3-Clause | 2022-04-13T10:49:36 | 2021-12-09T12:20:43 | C++ | UTF-8 | Python | false | false | 945 | py | from dev.conan.base import ScineConan
class ScineXtbConan(ScineConan):
name = "scine_xtb_wrapper"
version = "2.0.0"
url = "https://github.com/qcscine/xtb_wrapper"
description = """A wrapper around xtb (https://github.com/grimme-lab/xtb),
it exports GFN0-xTB, GFN1-xTB (formerly GFN-xTB), GFN2-xTB, and ... | [
"scine@phys.chem.ethz.ch"
] | scine@phys.chem.ethz.ch |
614d670cd961697cd28fdec42daf509b3d083518 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/SBSteat_20190605143050.py | 20df4d75e2b1044094be351db2fb84971174eae7 | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | def SBS(A,B):
if A==0 or B ==0:
return 0
elif set(A)<=set(B) or set(B)<=set(A):
return 1
else:
return len(set(A)&set(B)) /len(set(A)|set(B))
def StrToList(A):
C=[]
for i in A:
C.append(i)
return C
import re
f = open('D:\DeepLearning ER\Z1006014.txt','r',errors=... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
d6af177ea5cf4a6c31c9bf621ceaf800e0af28ee | 94edd77768815a784062485ae2a474465ca5fb63 | /imbi/endpoints/fact_type_enums.py | c23e8a3975986a29a51491dbf0d8eeda21f5b316 | [
"BSD-3-Clause"
] | permissive | joshbenner/imbi | c4e11a47fc445e96de67c37bc459b39296c032a0 | 6c22a0f5ecc7e1f8bef2062c65bf5e8a89289c64 | refs/heads/main | 2023-05-04T19:00:48.020036 | 2021-05-28T14:48:50 | 2021-05-28T14:48:50 | 372,283,545 | 0 | 0 | BSD-3-Clause | 2021-05-30T18:05:59 | 2021-05-30T18:05:58 | null | UTF-8 | Python | false | false | 1,716 | py | import re
from imbi.endpoints import base
class _RequestHandlerMixin:
ID_KEY = ['id']
FIELDS = ['id', 'fact_type_id', 'value', 'icon_class', 'score']
GET_SQL = re.sub(r'\s+', ' ', """\
SELECT id, fact_type_id, created_at, created_by,
last_modified_at, last_modified_by, value, ic... | [
"gavinr@aweber.com"
] | gavinr@aweber.com |
746dd5639295c471fd891a96444729209ba4b883 | b3c3a810d48b02e40685f57d346fd9c0f2237a9e | /Python Essentials/4.0 For Loops/09. Left and Right Sum.py | 965597214ba5f9d36fdacda5232afab49ad6de75 | [] | no_license | byAbaddon/Essentials-Course-with----JavaScript___and___Python | 7ef8112edafd6a2e2cef82c7709f974a67c64cc0 | 5194d9e74c2aa186e5571745f8931f31595d4b99 | refs/heads/main | 2023-03-27T23:23:18.426633 | 2021-04-05T21:09:06 | 2021-04-05T21:09:06 | 349,848,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | loop = int(input())
num_list = [int(input()) for _ in range(loop * 2)]
left_sum = sum(num_list[0:loop])
right_sum = sum(num_list[loop:])
print(f'Yes, sum = {left_sum}' if left_sum == right_sum else f'No, diff = {abs(left_sum - right_sum)}')
'''
2
10
90
60
40
#Yes, sum = 100
'''
| [
"noreply@github.com"
] | byAbaddon.noreply@github.com |
78a9baf6e85c97b8edbe26e27fafcfc39652abf7 | accc9921ffb9761cd235e40aefdaa577047ec01a | /AutomationScripts/Manage Files Accordingly/manage _files_accordingly.py | 1a27c88d01c5d9dc4724052ad789bec0046f8d3c | [
"MIT"
] | permissive | whyadiwhy/Awesome_Python_Scripts | 0c43dbdef66ec33407c7abe7ab5bae9ea8b4c67e | fe6300d53b465e1f902c183491808771cf1b2db0 | refs/heads/main | 2023-07-12T20:56:13.995877 | 2021-08-29T12:20:58 | 2021-08-29T12:20:58 | 400,765,524 | 6 | 0 | MIT | 2021-08-28T10:33:33 | 2021-08-28T10:33:33 | null | UTF-8 | Python | false | false | 1,759 | py | # Import the following modules
import os
import time
import shutil
import datetime
import glob
# Change the directory and jump to the location where you want to arrange the files
os.chdir(r"C:\Users\Dell\Downloads\FireShot")
all_files = list(os.listdir()) # List the directories and make a list
outputs = o... | [
"noreply@github.com"
] | whyadiwhy.noreply@github.com |
30f392b755419090b78af85c0dfd77f4dd5602b6 | 9b8e2992a38f591032997b5ced290fe1acc3ad94 | /brutelcs3.py | db5e8ca7ded7da7f3dafe068b685545399f4ac1f | [] | no_license | girishdhegde/aps-2020 | c694443c10d0d572c8022dad5a6ce735462aaa51 | fb43d8817ba16ff78f93a8257409d77dbc82ced8 | refs/heads/master | 2021-08-08T04:49:18.876187 | 2021-01-02T04:46:20 | 2021-01-02T04:46:20 | 236,218,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | t = int(input())
mv = {'A': 0, 'B': 1, 'C': 2, 'D': 3}
price = [25, 50, 75, 100]
total = 0
comb = []
idx1 = [0, 1, 2, 3]
for i1 in idx1:
idx2 = [0, 1, 2, 3]
idx2.remove(i1)
for i2 in idx2:
idx3 = [0, 1, 2, 3]
idx3.remove(i1)
idx3.remove(i2)
for i3 in idx3:
idx4 ... | [
"girsihdhegde12499@gmail.com"
] | girsihdhegde12499@gmail.com |
6f7d6264de6ac4562ca25ef1b3dc9c9000ee15d4 | 8c28ba34703060c6c7a4fae702ab6700bf0fbd27 | /SeleniumBuiltins/DragNDrop.py | 80627af2c40c0c7f39d12068f354667674016a82 | [] | no_license | aravindanath/Target2020PyAuto | 6256c297435999579bdcb1b571522922f6d4e7ef | 413ef74acc1010d58730e1ef9c9030c904bf9e6b | refs/heads/master | 2020-12-09T16:49:22.797228 | 2020-03-31T03:44:25 | 2020-03-31T03:44:25 | 233,361,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py |
from browserLaunch import launchChrome as lp
import time
from selenium.webdriver.common.action_chains import ActionChains
lp.driver.get("http://the-internet.herokuapp.com/drag_and_drop")
src =lp.driver.find_element_by_css_selector("#column-a")
dec = lp.driver.find_element_by_css_selector("#column-b")
time.sleep(2)... | [
"aravindanath86@gmail.com"
] | aravindanath86@gmail.com |
109b79d52991a4f60aa48045850ded8219a511a8 | 0a380d4e1a9f21504b0defe50ff7f0a0e5df60ae | /code/algorithm/bfs/02_密码锁.py | 834df5ac79314c29145bfd1f46b3985a3cbc2dff | [] | no_license | fadeawaylove/interview_mkdocs | a23331f0917cf23eb6ec6912d5b8d4872217b54c | 116e84e41750b8e62e630deceda2e61589c66a3c | refs/heads/master | 2023-04-28T15:14:17.976754 | 2021-05-08T09:10:26 | 2021-05-08T09:10:26 | 297,905,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | class Solution:
def openLock(self, deadends: List[str], target: str) -> int:
q = ["0000"]
visited = []
cnt = 0
while q:
sq = len(q)
for i in range(sq):
num = q.pop(0)
if num in deadends:
continue
... | [
"dengrt@akulaku.com"
] | dengrt@akulaku.com |
938ab435c7e1507de44d96964040b5e0ddc54585 | b5bde703700ccf5b575f2382d357c0d2f5bd306c | /code/.metadata/.plugins/org.eclipse.core.resources/.history/49/60f2b75269f30014128189d707139bfe | d47938563ff240229824c2759953b2c6ad7f50fe | [] | no_license | lordwarlock/IRFinalProj | 6a4a4a8d880f27fcd38054125c5e695c179863d6 | cc2b3003fb41a63cb85c84bbdf13c20d8a7e1cba | refs/heads/master | 2016-08-07T08:52:46.564262 | 2015-05-06T21:48:42 | 2015-05-06T21:48:42 | 33,019,191 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,558 | #!/usr/bin/python
'''
Created on Apr 25, 2015
Defines the general behavior that can be used by all cgi search modules.
'''
import unicodedata
import cgi
import cgitb
cgitb.enable()
def receive_data():
'''Receive and return the cgi data from web-page.'''
print 'Content-Type: text/html\n\n'
dat... | [
"apple@Junchao.local"
] | apple@Junchao.local | |
0d5b199e3403fbb09cf0d47e3a0592be9d880988 | ea91ea3ef298b01fac1fd457348625033cd41005 | /contingent/migrations/0006_auto_20160218_0815.py | be42f52452fb87a52400e3cc27c1c2dbe9f97819 | [] | no_license | khokhlov/msap | d85700a2685ff7357e0fccc42ce0b0f211b25369 | 788a709f5fb59fcbdc5b001cdbe02c184040e2f7 | refs/heads/master | 2021-01-10T08:25:29.211491 | 2018-02-06T13:33:54 | 2018-02-06T13:33:54 | 49,502,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-18 08:15
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('contingent', '0005_studentsgroup_monitor'),
]
operations = [
migrations.AlterModelOp... | [
"kolya.khokhlov@gmail.com"
] | kolya.khokhlov@gmail.com |
7e39cb11c0ea4ed303c6557e14235fb1c9ca5e69 | d788892704e618c3f613a5641e10908d63feb659 | /docker/slovnet-ner-bert/app.py | 12d8273a05579e4725f9417ee32e34c84a389b68 | [
"MIT"
] | permissive | natasha/slovnet | a4a4d664cbda72d36bc7d6d49881266c574bddce | 4b46dc497b586e106258819c23be28c277efac97 | refs/heads/master | 2023-08-09T04:15:03.635410 | 2023-07-24T09:48:01 | 2023-07-24T09:48:01 | 205,827,805 | 201 | 22 | MIT | 2023-01-23T07:59:39 | 2019-09-02T09:56:37 | Python | UTF-8 | Python | false | false | 2,197 | py |
from os import getenv
import logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)-15s %(message)s'
)
log = logging.info
from aiohttp import web
import torch
torch.set_grad_enabled(False)
from slovnet.const import PER, LOC, ORG, CUDA0
from slovnet.vocab import (
BERTVocab,
BIOTagsVoca... | [
"alex@alexkuk.ru"
] | alex@alexkuk.ru |
3dbd9b9bbae31b3baa2abe997791673451838e38 | 41d30922cf80e0148161634d0b45e56c27f85d9b | /virtual/lib/python3.6/site-packages/pylint/reporters/text.py | ce741740b6e390afa870a0f404c720a8a579357d | [
"MIT"
] | permissive | petermirithu/hooby_lab | fb4201a4c88cbd8592ac2faba837c3edfe409ab4 | ffd641948bc2d2539649ec747114c78b5ad105e7 | refs/heads/master | 2022-12-09T12:02:58.359499 | 2020-06-24T18:44:29 | 2020-06-24T18:44:29 | 235,025,514 | 2 | 0 | MIT | 2022-11-22T04:57:34 | 2020-01-20T05:28:06 | Python | UTF-8 | Python | false | false | 7,930 | py | # Copyright (c) 2006-2007, 2010-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
# Copyright (c) 2012-2014 Google, Inc.
# Copyright (c) 2014 Brett Cannon <brett@python.org>
# Copyright (c) 2014 Arun Persaud <arun@nubati.net>
# Copyright (c) 2015-2018 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2015 Flori... | [
"pyra_m.k@yahoo.com"
] | pyra_m.k@yahoo.com |
e7e4014a7222d74616f5a9cfaa81d4b2a9ad676e | 5f3c8eddb8c5a14fb3b5931f332d401207666036 | /src/core/prometheus/server/socketserver/tcp.py | 79c9c640f979c24f4dd7892145e8d9c6c1d7a540 | [
"Apache-2.0"
] | permissive | hwinther/lanot | dec8fe48efb6245af009bedf65b2bc089e92efa0 | f6700cacb3946535081624467b746fdfd38e021d | refs/heads/master | 2021-03-24T12:02:47.530833 | 2019-05-01T11:56:05 | 2019-05-01T11:56:05 | 91,605,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,106 | py | # coding=utf-8
import socket
import gc
import uos
import prometheus
import prometheus.server.socketserver as socketserver
import prometheus.logging as logging
import prometheus.psocket
gc.collect()
shell_enabled = True
class TcpSocketServer(socketserver.SocketServer):
def __init__(self, instance, socketwrapper=N... | [
"hc@wsh.no"
] | hc@wsh.no |
57c570e62a046a8a396e9d87ea27b2795c2b9684 | 8a62da2d9c1ac404c5002f39163c1fa8675ac573 | /Scripts/scripts/TC_AD_Bluetooth_7_05_OPP_Incoming_Transfer_Single_Small_File_All_1.py | 0460f2a19f22c5eb09e49aa08a014145a47f002e | [] | no_license | evijaythegr8/Applications | 210c0cf432d3366571daee5f34f477a5c6247c99 | f85d7171ae2a177660dc5c5be49575fb52eb849b | refs/heads/master | 2021-01-22T07:04:11.509844 | 2014-04-20T11:15:53 | 2014-04-20T11:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,565 | py | #
#=BEGIN
#
# This file is part of the Bluetooth use-case verification
#
# Copyright (C) ST-Ericsson SA 2010. All rights reserved.
#
# This code is ST-Ericsson proprietary and confidential.
# Any use of the code for whatever purpose is subject to
# specific written permission of ST-Ericsson SA.
#
#=END
#
import setup_p... | [
"evijaythegr8@gmail.com"
] | evijaythegr8@gmail.com |
b74dd042bfec62027021ee0e4e158cd2720092de | 0754e2e7aa1ffb90b54d563ce5a9317e41cfebf9 | /ml/m08_wine4.py | 0d4fea9468ee01402c905c26fce9a9de368aac6d | [] | no_license | ChaeMyungSeock/Study | 62dcf4b13696b1f483c816af576ea8883c57e531 | 6f726a6ecb43387e4a3b9d068a9c491b115c74c0 | refs/heads/master | 2023-01-24T20:59:52.053394 | 2020-12-07T14:54:34 | 2020-12-07T14:54:34 | 263,255,793 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | import pandas as pd
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score
# 와인 데이터 읽기
wine = pd.read_csv('./data/csv/winequality-white.csv', header=0, sep=';', encoding='cp949')
y = wi... | [
"noreply@github.com"
] | ChaeMyungSeock.noreply@github.com |
5f7df734647bc8e514b56e4e339644841c45df29 | 95125609e7a5e4366a38c2a10b268a2dafe1cd06 | /leonardo_module_kkadavy/forms.py | 843d7613e29cd673204e2df8dd7a593e0a80fbd8 | [
"Apache-2.0"
] | permissive | dresl/leonardo-module-kkadavy | 5a1148c7c0920ef190ad3ae638e177d97deb223a | b25e0380d7f474b85855a326883ce0e8771e25f0 | refs/heads/master | 2020-06-13T16:48:54.839558 | 2019-09-19T13:08:40 | 2019-09-19T13:08:40 | 75,524,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,155 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from django.utils import timezone
from crispy_forms.layout import \
HTML, Layout, Field, Fieldset, MultiField, Div
from crispy_forms.bootstrap import PrependedText
from django.contrib.auth import authenticate, get_user_model, login
from django.contrib... | [
"nikicresl@gmail.com"
] | nikicresl@gmail.com |
1cbaf925b7a9a722997783a5a48da94005c6487b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02662/s211721490.py | 276e7a0a5252daf06c76097a0ce16971c02e726b | [] | 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 | 459 | py | def main():
MOD = 998244353
N, S = list(map(int, input().split()))
A = list(map(int, input().split()))
dp = [[0] * (S + 1) for _ in range(N + 1)]
dp[0][0] = 1
for i, a in enumerate(A):
n = i + 1
for s in range(S + 1):
dp[n][s] += 2 * dp[n - 1][s]
if s - a ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7e7ddd0e57ec850e6e9c1beafe4408596b156f3e | 9cd92c16ef7dbba23dd6b888f87b50134220380d | /statusgenerator/refresh.py | ea62912d2da16ae762cde8293b2027237946bc92 | [
"MIT"
] | permissive | bismuthfoundation/Bismuth-Voting | 6b21c728646f1b0bc75f497bc07b87993bc54231 | d16a15ad19853205202e7aedca6ea16137449273 | refs/heads/master | 2020-07-25T19:54:26.540768 | 2019-11-01T20:16:07 | 2019-11-01T20:16:07 | 208,408,309 | 5 | 1 | MIT | 2019-10-18T08:39:38 | 2019-09-14T07:58:12 | JavaScript | UTF-8 | Python | false | false | 7,796 | py | #!/usr/bin/env python3
"""
Extract motions from the chain.
Requires a local full node
"""
import click
import json
import sqlite3
import sys
from os import path
from time import time
from base64 import b64encode, b64decode
sys.path.append("../")
from bismuthvoting.derivablekey import DerivableKey
__version__ = "0.... | [
"dev@eggpool.net"
] | dev@eggpool.net |
75ba837bbc102c25af5e7912f4a08c15e288e853 | 5e2284bff015e6b03e4ea346572b29aaaf79c7c2 | /correct_programs/ethz_eprog_2019/exercise_07/problem_04.py | 949b34abb499166592dd8f5713fe62fb157a139c | [
"MIT"
] | permissive | LaurenDebruyn/aocdbc | bbfd7d832f9761ba5b8fb527151157742b2e4890 | b857e8deff87373039636c12a170c0086b19f04c | refs/heads/main | 2023-06-11T23:02:09.825705 | 2021-07-05T09:26:23 | 2021-07-05T09:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | """
Write a program to draw a tree recursively.
Each branch forks in two, one sub-branch that goes clockwise and the other that goes
counter-clockwise. The tree is drawn in multiple steps. Each step is defined by a tuple
``(x, y, alpha, l)``:
* Starting point of the actual segment ``(x, y)``,
* The direction of the s... | [
"noreply@github.com"
] | LaurenDebruyn.noreply@github.com |
9ea44d6f5945eb0395ddca06889a653b20c46e6b | bd0e0540e14bb5765928da97a71771878f8e9e59 | /returns/pointfree.py | cff63dcf53a5c35a530d8b5723f51b4c485610da | [
"BSD-2-Clause"
] | permissive | dublt696/returns | 5d3f7fe729eb504e42eec60e798cab7e5cd8b12e | 6fc0c15ec65b3ce7cafa19697346b7362b03a05d | refs/heads/master | 2022-08-21T15:13:09.397403 | 2020-05-30T08:15:23 | 2020-05-30T08:15:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | from returns._generated.pointfree.apply import _apply as apply
from returns._generated.pointfree.bind import _bind as bind
from returns._generated.pointfree.bind_async import _bind_async as bind_async
from returns._generated.pointfree.bind_awaitable import (
_bind_awaitable as bind_awaitable,
)
from returns._genera... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
cc49e40dbe64dabaadc4f0c13930bd76eed86903 | 6371aa7328246bd2770d5a31361768318e91a1ed | /algo/filter.py | e15e1b0fc5c30ee6a8d2108e88b2b6468a843328 | [] | no_license | PasaOpasen/NG2021 | 464032c287bf377fb0ae946c6e3b042f19af1fc5 | 0a30b379e36e0d40004c99a356f818102074a10c | refs/heads/main | 2023-04-19T08:42:48.152031 | 2021-05-02T08:59:08 | 2021-05-02T08:59:08 | 359,903,254 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py |
import os
import socket
import numpy as np
import pandas as pd
def simple_filter(df, my_socket = None):
"""
базовая фильтрация
"""
my_socket = socket.gethostbyname(socket.gethostname()) if my_socket is None else my_socket
data = df[df['Src IP Addr'] != my_socket]
data = data[data['Proto']... | [
"qtckpuhdsa@gmail.com"
] | qtckpuhdsa@gmail.com |
d1162e3faa2057ebc36b6a2cdeefc8ba517fe3d3 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYBBHToTauTau_M-250_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467499/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_13/run_cfg.py | fc18a791cdde38e50107b20c0bfa090eba02eeca | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYBBHToTauTau_M-250_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467499/HTT_24Jul_newTES_manzoni_Up_Jo... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
f42be0825f831246d8fb0dae883522ca8281bbba | 1785ce8f49b0a253a2980d37676c62dbb4955d23 | /2021 prep/zigZagOrder.py | 56485838613e55ed48f28fc7d9f7c0c4805fb518 | [] | no_license | BassP97/CTCI | 29aca0913f39fc24c281f9cffb255a8e4c2f0472 | 6ca635efd0cacb56e7a117f6636b6126ddc8ea5b | refs/heads/master | 2023-04-08T17:25:58.853342 | 2021-04-17T22:25:20 | 2021-04-17T22:25:20 | 185,297,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | """
Given a binary tree, return the zigzag level order traversal
of its nodes' values. (ie, from left to right, then right to
left for the next level and alternate between).
For example:
Given binary tree [3,9,20,null,null,15,7],
3
/ \
9 20
/ \
15 7
return its zigzag level order traversal as:
[
... | [
"bass_p1@denison.edu"
] | bass_p1@denison.edu |
968b5e814c0087c7c61af48abdc3a7f41e436ae9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_158/962.py | c6bbcbb1915f88d4cfde20df6d66bc4fda2bdadf | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | __author__ = 'Tony'
def WTF(inty):
f = open('my.out','a')
f.write(inty+'\n') # python will convert \n to os.linesep
f.close()
with open("D-small-attempt0.in") as f:
content = f.readlines()
numOfTests = content[0]
for testNum in xrange(1,int(numOfTests)+1):
game = content[testNum].split(... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
943dc1ca1d4d011b42e5d5b42e27204e9e7832a3 | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/KhanAcademy/Users/GetVideo.py | 8cf670f81e3589e3aab4be29587f76fcd50bc386 | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,340 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# GetVideo
# Retrieves user data about a specific video, such as amount of video watched, points received, etc.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache Licen... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
af740d6a2cbe8d478a694e298fbca06f909c17a0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_favourites.py | 995392620bc51e4572f12118734d43a1e8d89e60 | [
"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 | 269 | py |
from xai.brain.wordbase.adjectives._favourite import _FAVOURITE
#calss header
class _FAVOURITES(_FAVOURITE, ):
def __init__(self,):
_FAVOURITE.__init__(self)
self.name = "FAVOURITES"
self.specie = 'adjectives'
self.basic = "favourite"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e1c0b5a1f6a120ff511a89de7f26a440cf8f0bc1 | cd2d6a91e38992019321831dcc2ed94ada86d931 | /scrappy/cian/cian/spiders/services.py | 72664f8219bfb7e5fd88776545a68d9a4353b9dd | [] | no_license | SilentLords/DomProd | d82701057f3656e5023d7b9cfede78b56ed5fd10 | 6e70a6fa098e1fc6ba7181812bdf415477f236ee | refs/heads/master | 2022-12-24T18:03:16.217646 | 2020-09-15T16:58:54 | 2020-09-15T16:58:54 | 288,440,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | import requests as r
API_KEY = '0524ce2f-6067-4ba3-9506-6268f7348498&'
def get_cord(address):
req = r.get(
f'https://geocode-maps.yandex.ru/1.x?geocode={address}&apikey={API_KEY}&format=json')
decoded_hand = req.json()
x = float(
decoded_hand['response']['GeoObjectCollection']['featureMem... | [
"root@domafound.ru"
] | root@domafound.ru |
69ea781235a7d03a558e83ff3d77feb6096b37ce | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /for_games/Salt and Sanctuary parse bosses saltandsanctuary.fandom.com/export_to_json.py | 2c9f8e7d1c6224e34046c0066954242fa4746339 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 2,072 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import os
import json
from utils import get_bosses, convert_bosses_to_only_name
def export_to_json_str(bosses: dict[str, list[str]]) -> str:
return json.dumps(bosses, ensure_ascii=False, indent=4)
def export_to_json(file_name: str, bosse... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
a94a8c79c47d1f42349761b04e71abab53a804c6 | 1a114943c92a5db40034470ff31a79bcf8ddfc37 | /GetWebData.py | a5507333fb1585376b7ac28f566e4bdff54587dc | [] | no_license | renwl/mylinux | 1924918599efd6766c266231d66b2a7ed6f6cdd1 | 0602fc6d2b0d254a8503e57310f848fc3e1a73b4 | refs/heads/master | 2020-07-10T22:12:03.259349 | 2017-01-02T12:32:04 | 2017-01-02T12:32:04 | 66,467,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,311 | py | #coding=utf-8
# 导入模块 urllib2
import urllib.request, urllib.error, urllib.parse
... | [
"wenliang.ren@quanray.com"
] | wenliang.ren@quanray.com |
d8e57c6ea473e294a60adc87f24aeba70eaa3e5e | 43d7028644edfd61b6aa330e01993ac7af4adb9f | /filehandler/csvexport.py | 12534f54c3779e5b7db441ca49985ed5879cf03c | [] | no_license | igortereshchenko/python_lesson_1 | 8f6ca63c7757b2cb6c4f15ea6176f7cfa640890b | df89be1dab41ce5d3741d8fbf4335bb00abc84b5 | refs/heads/master | 2022-11-06T18:56:39.860860 | 2020-06-25T12:47:52 | 2020-06-25T12:47:52 | 274,914,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | import csv
from filehandler.csvimport import importHumans as ih
# list of humans
data = ih('../data')
with open('export.csv','w',newline='') as file:
writer = csv.writer(file)
for human in data.values():
for row in human.toList():
writer.writerow(row)
| [
"tereshchenko.igor@gmail.com"
] | tereshchenko.igor@gmail.com |
72e16131b3138afead316f2b27fe6264475f8df2 | 23130cd12e38dbce8db8102810edaad70b240ae2 | /lintcode/106.py | 2c9498c0ff10df07344ec0d0fd7d5aaded4a952c | [
"MIT"
] | permissive | kangli-bionic/algorithm | ee6687c82101088db20f10fb958b4e45e97d3d31 | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | refs/heads/master | 2023-01-05T09:29:33.204253 | 2020-10-25T17:29:38 | 2020-10-25T17:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | """
106. Convert Sorted List to Binary Search Tree
https://www.lintcode.com/problem/convert-sorted-list-to-binary-search-tree/description
九章高频题班
因为是平衡树编辑的问题,自然想到了分治。
合并操作: 左边变成BST + root + 右边变成BST.
每一层O(1), 总共log(N)曾,所以O(logN), 但是,每一次合并并非O(1), 因为找linkedlist中点就需要O(N),
所以复杂度是 O(NlogN)。这时候就想,有没有办法所幸每次把结束的点传回去,这样我下次直接从那个点开... | [
"hipaulshi@gmail.com"
] | hipaulshi@gmail.com |
5edcc0d63bc906c762ec5791107883671d09f340 | 2af4823ae83fbcc780ef538bd02fa5bf3a51208c | /ABC170/E.py | 5e507f922e92e313b68863fe60d40f45f2456a0a | [] | no_license | jre233kei/procon-atcoder | 102420cc246a5123ac9774f8b28440f1d8b70b0f | c463c9c92d45f19fba32d0c8a25f97d73db67bc5 | refs/heads/master | 2022-12-04T09:30:39.271433 | 2020-08-14T11:38:46 | 2020-08-14T11:38:46 | 276,779,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
import math
n=ni()
a=sorted(nl())
sa = []
ans=0
last=-1
cnt=0
for i in range(n):
if a[i]!=last:
cnt=0
last=a[i]
else:
cnt+=1
if cnt <= 2:
sa.append(a[i])
l =len(sa)
for i in range... | [
"jre233kei+github@gmail.com"
] | jre233kei+github@gmail.com |
1925472472f880e9452ca4ddd9b967a58cf8d377 | 6e9ae6159f53c3d9c554032fd2811e975e7765b8 | /iscom/iscom/settings.py | 95dc26dfccaa9e979ac4dbbce472e90304b8db56 | [] | no_license | david30907d/iscom_crawler | afa79cfdaa6e23de8e4f7bd11daa3c729819b85f | 248320c4c05d40d29f908263f03b7b20ea09ae0d | refs/heads/master | 2021-05-15T12:05:59.490594 | 2018-02-07T13:20:02 | 2018-02-07T13:20:02 | 108,394,836 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | # -*- coding: utf-8 -*-
# Scrapy settings for iscom project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"davidtnfsh@gmail.com"
] | davidtnfsh@gmail.com |
a9a94a739959ef1447ef84cc17b7282eabd77373 | 44d8042c77a8f18c03bec92b619425a0787e3ddb | /Classes/py3interm/EXAMPLES/QT/qt_selectables.py | 0bb3fb5d3eb68a4b31c7211e41d3877310d5c51a | [] | no_license | Jgoschke86/Jay | 3015613770d85d9fa65620cc1d2514357569b9bb | 9a3cd87a5cff35c1f2a4fd6a14949c6f3694e3e2 | refs/heads/master | 2023-05-26T15:49:08.681125 | 2023-04-28T22:16:09 | 2023-04-28T22:16:09 | 215,616,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/env python
#
# (c) 2013 John Strickler
#
# Selectables
#
########################################
import sys
from PyQt4.QtGui import QMainWindow, QApplication
from ui_selectables import Ui_Selectables
class SelectablesMain(QMainWindow):
def __init__(self):
QMainWindow.__init__(self)
... | [
"56652104+Jgoschke86@users.noreply.github.com"
] | 56652104+Jgoschke86@users.noreply.github.com |
00e6707a640cf47e63a6fbe277bdeb06a05100ad | 7548d516ccbca84dee02c5ec1c13cca3f355d15f | /raic2018/common/vec3.py | 251e76051f0e576f14c8544981dd91b170589105 | [] | no_license | SSS135/raic2018 | 073099119d66a54647f18be6f67a170ea383e554 | 98ca12a61728140e2fe00207e92a2fc274bf2f5f | refs/heads/master | 2020-04-13T12:24:35.779958 | 2019-06-03T08:48:47 | 2019-06-03T08:48:47 | 163,201,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,391 | py | import math
class Vec3():
def __init__(self, x=0.0, y=0.0, z=0.0):
if isinstance(x, list) or isinstance(x, tuple):
x, y, z = x
self.x = x
self.y = y
self.z = z
@property
def magnitude(self):
return math.sqrt(self.x * self.x + self.y * self.y + self.z * ... | [
"sss13594@gmail.com"
] | sss13594@gmail.com |
b822c8fbb8578eea430626fe3d335612bf8d83d0 | 08c8bf9ea15094eee96df1a42d1d222362b5dc7a | /src/dicom_parser/utils/siemens/messages.py | 171ecff803804bda1ce8718ba6bc682ddbfd4dae | [
"MIT"
] | permissive | open-dicom/dicom_parser | 51801fc9e86379e470308b28f05b9520315c82fc | 8f9224dfb1e12ee52aa17d520f10e169fe400391 | refs/heads/main | 2023-04-07T01:21:31.390019 | 2023-03-15T12:48:23 | 2023-03-15T12:48:23 | 241,392,223 | 12 | 9 | MIT | 2023-03-15T12:48:27 | 2020-02-18T15:09:51 | Python | UTF-8 | Python | false | false | 1,745 | py | """
Messages for the :mod:`~dicom_parser.utils.siemens` module.
"""
#: Message to display for invalid BandwidthPerPixelPhaseEncode value type.
from typing import Any, Iterable
BANDWITH_PER_PIXEL_TYPEERROR: str = "BandwidthPerPixelPhaseEncode must be of type float or bytes, got {bad_type}!"
#: Message to display when... | [
"z.baratz@gmail.com"
] | z.baratz@gmail.com |
d8d9b027b6980ac6c58a2ee27363285a3e4115c0 | f96c11b0a5e8ebe6570b5ef8660f0c6a01a863da | /chartnew/tests.py | 49c89f6c435267331c9bc3b788a555236e58beb3 | [] | no_license | Murthysagi/django-test | 6c9adddf61adfca3678dac5eccd2aaf089e10a7a | 0d26f0d9cdcdd87e0d0d63463e7b558b32ec6305 | refs/heads/master | 2020-03-16T20:13:11.359957 | 2018-05-14T14:36:46 | 2018-05-14T14:36:46 | 132,950,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | from django.test import TestCase
import json
from django.test import TestCase
from django.core.urlresolvers import reverse
from demoproject._compat import decode
class LineChartJSTestCase(TestCase):
def test_line_chartjs(self):
resp = self.client.get(reverse('line_chart'))
self.assertContains(re... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
e255eb7d76279a37b42a9e7272ab5f9f6467cfd9 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/jedi/third_party/typeshed/stdlib/3/multiprocessing/pool.pyi | 7a31051fbf5474931d2d4df3c8d993bbae30c5cf | [
"MIT",
"Apache-2.0"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 3,224 | pyi | import sys
from typing import Any, Callable, ContextManager, Generic, Iterable, Iterator, List, Mapping, Optional, TypeVar
if sys.version_info >= (3, 9):
from types import GenericAlias
_PT = TypeVar("_PT", bound=Pool)
_S = TypeVar("_S")
_T = TypeVar("_T")
class ApplyResult(Generic[_T]):
def get(self, timeout... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
5298a4333376bb7e763e093ab1074bfad9df8be5 | 2b0a8a94692e93a6fc6b24374487fbde82a8d6ee | /DccKP/PySpark/Cojo/LargestDataset/gatherLargestDatasetVariants.py | da51560cb80cc3fc7d02fb1a61a6c0bcc696fc77 | [] | no_license | marcduby/MachineLearningPython | 5b59293489f7a7c2002815f8a3f44ce17a051c0c | 8cc37fea87723acbe011e32b7a6c6f9f37379e10 | refs/heads/master | 2023-08-31T20:26:36.581931 | 2023-08-30T17:56:13 | 2023-08-30T17:56:13 | 163,126,454 | 0 | 2 | null | 2023-02-16T00:52:04 | 2018-12-26T02:19:11 | Jupyter Notebook | UTF-8 | Python | false | false | 5,077 | py | # imports
import argparse
from pyspark.sql import SparkSession
from pyspark.sql.types import IntegerType
from pyspark.sql.functions import col, input_file_name, regexp_extract, lit
def main():
"""
Arguments: phenotype
"""
opts = argparse.ArgumentParser()
opts.add_argument('phenotype_arg')
# p... | [
"mduby@broadinstitute.org"
] | mduby@broadinstitute.org |
3b0e17d8d183567eb558251f894b15256e073074 | c2fe5fdfd9f57cfb6a848ede4b733d11e717ccc7 | /tests/protocols/command_test.py | a6781c0faa78883989b9f6d6e6d957fa10b10fca | [] | no_license | wma8/SeniorDesign | 8e26b70e8010ba42f599a56544b1de2fc914d138 | d8ee7c1608cad88f7c64410de49a07bf7b621be0 | refs/heads/master | 2022-03-19T12:40:40.600516 | 2019-08-07T13:03:58 | 2019-08-07T13:03:58 | 201,042,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | import unittest
from readop.protocols.command import Cmd
class TestCmd(unittest.TestCase):
def setUp(self):
# Runs a simple command
self.command = Cmd("echo Hello")
def test_command_output(self):
# Tests for the correct output
self.assertEqual(self.command.stdout, b'Hello... | [
"wma8@ncsu.edu"
] | wma8@ncsu.edu |
117316959855c721764aa70b0a660ceefc54e3e8 | d2cbe0b5a50ca6b161ad2d6cf31d8a0434f09829 | /users/forms.py | c8d91e2d0f290c0369d4fd15c44c027e2045d4dd | [] | no_license | HeeeeeJinJeong/fc_tistory | dd02b5713cb03ac28dbf3b42b90f17717e1228fb | 534232a17b942deece12acee4b4834c414b760dc | refs/heads/master | 2022-12-19T01:53:03.103207 | 2019-10-07T06:00:10 | 2019-10-07T06:00:10 | 204,851,743 | 0 | 0 | null | 2022-12-04T14:55:50 | 2019-08-28T05:01:56 | JavaScript | UTF-8 | Python | false | false | 705 | py | from django import forms
from .models import User
class RegisterForm(forms.ModelForm):
# 회원가입 폼
# 장고에서는 HTML 입력요소를 widget(위젯)이라고 말한다.
password = forms.CharField(label='password', widget=forms.PasswordInput)
confirm_password = forms.CharField(label='confirm password', widget=forms.PasswordInput)
c... | [
"misakiyoshikuni@gmail.com"
] | misakiyoshikuni@gmail.com |
ee20087c4634c03f6d2bdaee46e6703a48858f38 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /H9gjahbSRbbGEpYta_10.py | d7d7346d28ff2fed69d32b59dedd7ac32491a960 | [] | 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 | 410 | py | """
Create a function that takes two numbers `n1` `n2` and multiplies them
**without using** `*`.
### Examples
multiply(3, 2) ➞ 6
multiply(4, 10) ➞ 40
multiply(-2, 4) ➞ -8
### Notes
Do not use `*` for this challenge.
"""
def multiply(n1, n2):
product = 0
for i in range(abs(n1)):
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
31e2a6f91f441601f055a5f8f5c697569277f41f | 08a68e32dc80f99a37a30ddbbf943337546cc3d5 | /.history/count/urls_20200419185826.py | 9ed460e0936e3edf748b0ec5f8af899c8124b48f | [] | no_license | Space20001/word-count-project | dff1b4b44d2f7230070eef0d95dd968b655d92f7 | 795b5e8ad5c59109e96bf7a8e9192efaefa7770e | refs/heads/master | 2022-04-20T17:54:05.511449 | 2020-04-20T15:25:46 | 2020-04-20T15:25:46 | 257,327,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home),
path('', views.about, name='about')
]
| [
"steve.h@blueyonder.com"
] | steve.h@blueyonder.com |
17082ac538bc0065975b825ad25fa747b9c8ad65 | 7fa3038e6870a2e77bc9ce2c6a6b1326bf0d1659 | /sw/middleware.py | 5c76351761dc1af043e87bd9b28f80113c5d67ef | [
"Apache-2.0"
] | permissive | snswa/swsites | 63c54415c26e5bcdba2b8ac9b0dbac66d9e444ac | 4eaf79de924efd257d68fbea88df20546a711c02 | refs/heads/master | 2020-06-01T14:09:00.153618 | 2011-05-03T23:10:32 | 2011-05-03T23:10:32 | 1,056,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | from django.conf import settings
from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse
from django.http import HttpResponseForbidden, HttpResponseRedirect
class HqPredicateMiddleware(object):
def process_view(self, request, view_func, view_args, view_kwargs):
lo... | [
"gldnspud@gmail.com"
] | gldnspud@gmail.com |
c635cbcc9c0b486943b78e74b012ac67e5add0f9 | 338694ee6e7af96b1483f3e5a8a504112fa99fe7 | /tensorflow/python/autograph/pyct/error_utils.py | 7595f28b8d7fed91f4b61cc7abb167e0d85950d1 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | harishsg99/tensorflow | 3165919d77a2680c8c089a58bd2c39642780f56d | 4f5a6e748eb8fb16d10738b7d1c2c95d5e6c008c | refs/heads/master | 2023-07-19T23:33:05.536956 | 2021-08-18T18:06:23 | 2021-08-18T18:06:23 | 397,690,438 | 1 | 0 | Apache-2.0 | 2021-08-18T18:18:32 | 2021-08-18T17:54:59 | C++ | UTF-8 | Python | false | false | 7,465 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
e37c7100922806b155fe506ef36b29906a33b691 | 033b29b6b1538d10e060e5734a1d7488a3fa03b4 | /13-op-overloading/bingoaddable.py | 976aed9d2deae222ae5bdba7dbede25615f4f22d | [
"MIT"
] | permissive | yuechuanx/fluent-python-code-and-notes | f99967416abc9c46be50d95f822b2ef3609f2d2d | 2ae19fff8e1d292c6e8d163c99ca63e07259499c | refs/heads/master | 2023-08-09T22:14:22.985987 | 2022-08-28T09:06:32 | 2022-08-28T09:06:32 | 229,009,764 | 2 | 0 | MIT | 2023-07-20T15:11:59 | 2019-12-19T08:30:28 | Jupyter Notebook | UTF-8 | Python | false | false | 2,022 | py | """
======================
AddableBingoCage tests
======================
Tests for __add__:
# BEGIN ADDABLE_BINGO_ADD_DEMO
>>> vowels = 'AEIOU'
>>> globe = AddableBingoCage(vowels) # <1>
>>> globe.inspect()
('A', 'E', 'I', 'O', 'U')
>>> globe.pick() in vowels # <2>
True
>>> len(globe.i... | [
"xiaoyuechuanz@163.com"
] | xiaoyuechuanz@163.com |
2855032ddd06564a717fd964a1cbfb0c1828c0d4 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-recommender/samples/generated_samples/recommender_v1beta1_generated_recommender_get_insight_type_config_async.py | 19e3a454d6341f4cafda8af2264f3849a6e1debd | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,934 | 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 |
8e2037235b2881639c0cd94156b4f629a4a3eaea | 0e3cf95b4b4fd60fffeace36760f4a7e5ad0d9e6 | /python/WTauFakeRateAnalysis.py | ccb47f220dca6c1a7c9da2e2f0f47b4b98857ce7 | [] | no_license | cbbrainerd/DevTools-Analysis | 8f1a282db50c559ca6a983ee6387d29a0cc9cabc | 1b6557a7635d2f929ef8118c150b5725ef683caa | refs/heads/master | 2021-01-25T10:50:54.942075 | 2017-08-23T21:08:41 | 2017-08-23T21:08:41 | 93,889,116 | 0 | 0 | null | 2017-06-09T19:06:01 | 2017-06-09T19:06:01 | null | UTF-8 | Python | false | false | 7,168 | py | #!/usr/bin/env python
import argparse
import logging
import sys
from DevTools.Analyzer.utilities import getTestFiles
from AnalysisBase import AnalysisBase
from utilities import ZMASS, deltaPhi, deltaR
from Candidates import *
import sys
import itertools
import operator
sys.argv.append('-b')
import ROOT
sys.argv.pop... | [
"dntaylor@wisc.edu"
] | dntaylor@wisc.edu |
a1495ee7b6c0b73a603e241148c300a356c5d09b | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res_bw/scripts/client/bwobsolete_helpers/pygui/console.py | b8d60dc00c4c2103a05c5fcd7edb51322b536b52 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 6,549 | py | # 2015.11.18 11:59:49 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/bwobsolete_helpers/PyGUI/Console.py
import BigWorld, GUI
import Keys
import math
from Listeners import registerDeviceListener
from PyGUIBase import PyGUIBase
MAX_HISTORY_ENTRIES = 50
class Console(PyGUIBase):
factoryString = 'PyG... | [
"info@webium.sk"
] | info@webium.sk |
13251e9c91d953da298ee4505bcc9dd4fe5517d1 | 56b1ffb1d40155cde93420f43d04fbb15e832bdb | /robustness_metrics/metrics/retrieval_test.py | 557daee2a5861d891257ec2e0aab07b5cc082b3e | [
"MIT",
"Apache-2.0"
] | permissive | panford/robustness_metrics | 9bc382bb4f8a298fc6cbf1e709101fd674828b6c | 1ee550e0bf4ed5d479be0426956dc2fa758a820e | refs/heads/master | 2023-08-12T14:48:02.796169 | 2021-09-24T17:58:41 | 2021-09-24T17:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,477 | py | # coding=utf-8
# Copyright 2021 The Robustness Metrics 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 appli... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
99a370d23eb523c08a0febed824f06079d873f56 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03475/s512197521.py | 1394e77382709a812e44b365bffcede44fcec60c | [] | 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 | 439 | py | n = int(input())
csf = [list(map(int,input().split())) for _ in range(n-1)]
for i in range(n):
time = 0
while True:
if i == n-1:
print(time)
break
if time < csf[i][1]:
time = csf[i][1] + csf[i][0]
else:
if time%csf[i][2] == 0:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
df8f2627afc2623c102f1d70226e4cf53c6806a8 | f5be48889917c9d7e13a29ce3da74a9b3f48d88f | /backend/out_shot_20839/settings.py | 56eaa6d50cfedffe771e8b18efdfd6e17ee9efa1 | [] | no_license | crowdbotics-apps/out-shot-20839 | 98ca54e28d657e1d580abd8db77cd971f6800afa | b4c69da44bf1254dadbb90a919fefd82276f2f14 | refs/heads/master | 2022-12-20T20:55:22.714399 | 2020-09-29T19:03:40 | 2020-09-29T19:03:40 | 299,711,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,886 | py | """
Django settings for out_shot_20839 project.
Generated by 'django-admin startproject' using Django 2.2.2.
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/
"""
impor... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2a0bbed4942b6037e471fd421e229e12c9c64eee | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03017/s376752584.py | 5c48975869a639fc37697b6bb740cf6405d0b90a | [] | 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 | 175 | py | N, A, B, C, D = map(int, input().split())
S = input()
if '##' in S[A-1:max(C, D)]:
print('No')
elif C < D or ('...' in S[B-2:D+1]):
print('Yes')
else:
print('No')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d38f6852f4aaa76c6df41b9c1b41c2e15934144f | 5f22ddbd3eeb99709e43e7b9a7958c9987c7efa4 | /interview_bits/level_6/06_dp/12_multiply_dp/01_unique-binary-search-trees-ii.py | 997eb96caabbaf181056b286a7985bd945c7a741 | [] | no_license | salvador-dali/algorithms_general | 04950bd823fc354adc58a4f23b7d2f3d39664798 | aeee3356e2488c6fab08741b1ac26e8bd5e4ac0d | refs/heads/master | 2020-12-14T06:24:10.466601 | 2016-07-17T06:00:17 | 2016-07-17T06:00:17 | 47,397,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | # https://www.interviewbit.com/problems/unique-binary-search-trees-ii/
def catalan(n):
prev = 1
for i in xrange(n):
prev = prev * 2 * (2 * i + 1) / (i + 2)
return prev | [
"dmytro@knowlabs.com"
] | dmytro@knowlabs.com |
160b3cd823670faf3afbfaf4c130d2f5940cfa11 | 4d01bd8003ac64b2a688db12108b472387c999c4 | /level4_2.py | a8a33972d786f4502ecad112c006ece6cc959b21 | [] | no_license | BlackHat-S/PWN | 2ef6aa7db3baafe009ac31631bdaffaf043f3b85 | cde1f9ee3258aa56c2634995d5baec14b500a399 | refs/heads/master | 2021-01-07T00:44:20.208899 | 2020-03-21T04:16:14 | 2020-03-21T04:29:47 | 241,529,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | from pwn import *
io=remote("pwn2.jarvisoj.com",9880)
elf=ELF("./level4")
vulner_function_address=0x804844B
write_plt=elf.plt["write"]
read_plt=elf.plt["read"]
bss_addr=0x0804a024
def leak(address):
payload="a"*0x88+"aaaa"+p32(write_plt)+p32(vulner_function_address)+p32(1)+p32(address)+p32(4)
io.sendline(payloa... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
0fb156d73951286ad26e45cdbdf70ade209dd962 | dc76fa9b80622185c12c5ae4159352450b1e5fd8 | /stacktrace/tools/timer.py | 46bc6592c70e076aaa35173db2f21c08620d4551 | [] | no_license | numba/stacktrace | dc90285b784ef1dc5dbd9782f47fb29362208e8c | 1c10caffcaea8b02862063e6fd132d4ed2a8c634 | refs/heads/master | 2023-07-07T13:38:34.267208 | 2019-04-11T14:26:21 | 2019-04-11T14:26:21 | 146,798,503 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | from __future__ import division
import threading
import time
from stacktrace.basic import DEFAULT_MAXDEPTH, get_thread_stack
from stacktrace._docutils import apply_doc
@apply_doc
class Timer(object):
"""A Timer object that repeatedly invoke backtrace on a target thread
at a given frequency.
Parameters
... | [
"michael.lam.sk@gmail.com"
] | michael.lam.sk@gmail.com |
f550f40885387d6c86777f80858837f34c72b19b | 056adbbdfb968486ecc330f913f0de6f51deee33 | /293-flip-game/flip-game.py | 1207b74efa407c3cf69d09c754daef4c378b48af | [] | no_license | privateHmmmm/leetcode | b84453a1a951cdece2dd629c127da59a4715e078 | cb303e610949e953b689fbed499f5bb0b79c4aea | refs/heads/master | 2021-05-12T06:21:07.727332 | 2018-01-12T08:54:52 | 2018-01-12T08:54:52 | 117,215,642 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | # -*- coding:utf-8 -*-
#
# You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take turns to flip two consecutive "++" into "--". The game ends when a person can no longer make a move and therefore the other person will be the ... | [
"hyan90@ucsc.edu"
] | hyan90@ucsc.edu |
f5f41d8992a1fb0a66768e8aadd7526de3f5a8e1 | 3d96cee3f0c986c7195e7677d85e91dc837d8dd4 | /Web/B/5/5.7/tasks.py | 3aa6e8404cd6437bccd55aaadb7ed2c4ea5c9a7e | [] | no_license | dannycrief/full-stack-web-dev-couse | 7faffe1c9e6c39baf03d6ee54f716e4f8b4c8733 | 0b22bc84742d8e78bd6a2e03adfbc44137f3d607 | refs/heads/master | 2023-01-12T09:25:16.378035 | 2021-03-21T16:51:18 | 2021-03-21T16:51:18 | 220,825,261 | 0 | 1 | null | 2023-01-05T12:57:14 | 2019-11-10T17:34:02 | Python | UTF-8 | Python | false | false | 983 | py | # Fizz if % 3 == 0
def fizz_or_buzz(number):
if number % 3 == 0 and number % 5 == 0:
return "FizzBuzz"
elif number % 5 == 0:
return "Buzz"
elif number % 3 == 0:
return "Fizz"
else:
return "FUCK"
for i in range(100):
print("Number is: " + str(i), fizz_or_buzz(i))
#... | [
"step.kozbvb@gmail.com"
] | step.kozbvb@gmail.com |
b2ddf07b1b86500159769a14e2c0ff78e472de38 | d0ee60149444d74cefef575b3c593496061dc6fe | /scripts/hiercluster/labelmodelfromann.py | 35c4752326c6e39fe4acbcc87ae88ab9572c6f17 | [] | no_license | isi-nlp/unitok | 0c12f0bc6dd15e5faaf9a4036e2c7a86df45de3e | 93a7d985fa632ed24722c524663f8f01cf32ea61 | refs/heads/master | 2021-01-15T15:36:40.336623 | 2016-10-15T00:23:45 | 2016-10-15T00:23:45 | 46,525,737 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | #!/usr/bin/env python3
import argparse
import sys
import codecs
if sys.version_info[0] == 2:
from itertools import izip
else:
izip = zip
from collections import defaultdict as dd
import re
import os.path
import gzip
import unicodedata as ud
import numpy as np
from sklearn.feature_extraction import DictVectorizer
fr... | [
"jonmay@isi.edu"
] | jonmay@isi.edu |
a39b9cb9f6a407807f7e266ba2dcf9da96b4ba90 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-NetworkExtension/PyObjCTest/test_neappproxyprovidermanager.py | 1ec28565238e56ffe56e7e8fb111b09b8bc47ff6 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 363 | py | from PyObjCTools.TestSupport import TestCase, min_os_level
import NetworkExtension
class TestNEAppProxyProviderManager(TestCase):
@min_os_level("10.11")
def testMethods(self):
self.assertArgIsBlock(
NetworkExtension.NEAppProxyProviderManager.loadAllFromPreferencesWithCompletionHandler_,
... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.