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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b37f895272fe9ce06955d7b936817d700139e72a | 85af4750761974dd406edf614cfe74d0cfc5ba6f | /apps/events/urls.py | 9792feda042b82f7ef2493f8b7960fc6a11178b1 | [] | no_license | Comunidad-de-Programadores/Team-Vue-14-Comfeco-Backend | ebdf9724b6963629c887370d2ddfb7ced072854e | e14856fe6d7b49289cd8cf4bca7e98556ec1ec96 | refs/heads/main | 2023-03-22T00:57:55.189866 | 2021-03-19T13:37:01 | 2021-03-19T13:37:01 | 337,901,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.urls import path
from .views import EventAPI, EventRegisterUserAPI
app_name = 'events'
urlpatterns = [
path('events/', EventAPI.as_view()),
path('events/add-user/', EventRegisterUserAPI.as_view()),
] | [
"danielhuamani15@gmail.com"
] | danielhuamani15@gmail.com |
b8ed15ae2921f0d3dd34110d4bfd6c0e46eba109 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03523/s088476667.py | 819fafae9301d369dfd8d5027f9fcd5850eb1769 | [] | 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 | 318 | py | s = input()
t = "AKIHABARA"
idx = 0
ng = 0
for i in range(len(t)):
if t[i] == s[idx]:
idx += 1
elif t[i] != "A":
ng = 1
break
if idx == len(s):
if i < len(t) - 2:
ng = 1
break
if idx != len(s):
ng = 1
if ng:
print("NO")
else:
print("YES")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3bbb7f20acf87863d36b1be4e4af6f36182315b9 | d9eef8dd3489682c8db41f2311e3058d1f369780 | /.history/abel-network-files/mcmc_alg_implementation_gt_20180625115302.py | 76ed7cd8eee3649c8ae2f10506ecb43eb47b263f | [] | no_license | McKenzie-Lamb/Gerrymandering | 93fe4a49fe39a0b307ed341e46ba8620ea1225be | b7a7c4129d6b0fcd760ba8952de51eafa701eac3 | refs/heads/master | 2021-01-25T06:06:43.824339 | 2018-10-16T14:27:01 | 2018-10-16T14:27:01 | 93,526,515 | 0 | 0 | null | 2018-07-12T19:07:35 | 2017-06-06T14:17:47 | Python | UTF-8 | Python | false | false | 2,245 | py | # Author: Abel Gonzalez
# Date: 06/22/18
#
# Description:
# This program aims to implement the Markov Chain Montecarlo Simulation
# algorithm explained by Benjamin Fifield Michael Higgins Kosuke Imai
# and Alexander Tarr using graph tool
import random
import numpy as np
import graph_tool.all as gt
from pathlib import P... | [
"gonzaleza@ripon.edu"
] | gonzaleza@ripon.edu |
3d7f5b7c9bbc133bb1498c88db352ef681d16145 | d2a181395347b6b7308cdbd9a411c79775a035c8 | /pytorch_lightning/loops/evaluation_epoch_loop.py | d42a8941630a1935889dcfd7d6e646350d5c1775 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | rephrase-ai/pytorch-lightning | d30d552288d1bf6f65a605e5c8893583ecc58862 | 8bd7b1bdd7d3f723822e78908033cf0a6743713a | refs/heads/master | 2023-06-06T11:32:41.765882 | 2021-06-23T12:09:53 | 2021-06-23T12:09:53 | 291,268,679 | 2 | 0 | Apache-2.0 | 2020-08-29T12:38:33 | 2020-08-29T12:38:32 | null | UTF-8 | Python | false | false | 10,380 | py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"noreply@github.com"
] | rephrase-ai.noreply@github.com |
2f2711dfab08ed57a70f47de9013921e919d5079 | e0af3e5600de07a69edc8e3b4e254e86d6183c12 | /normalized-plots-mjj.py | 078d9aaa68d11da659ef36a563cc0144934e4ef9 | [] | no_license | daniSchaefer/scipts | 320100dddb903e6d5915826012f0f9914c33954a | 01f1663ec2619afc4d160c4c90d87106186341f3 | refs/heads/master | 2021-01-09T05:45:44.141287 | 2017-07-25T12:22:34 | 2017-07-25T12:22:34 | 80,827,892 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,053 | py | import time
import CMS_lumi, tdrstyle
from ROOT import *
tdrstyle.setTDRStyle()
CMS_lumi.lumi_13TeV = ""
CMS_lumi.writeExtraText = 1
CMS_lumi.extraText = "Simulation Preliminary"
CMS_lumi.lumi_sqrtS = "13 TeV" # used with iPeriod = 0, e.g. for simulation-only plots (default is an empty string)
iPos = 0
if( iPos==0 ): ... | [
"dschafer@cern.ch"
] | dschafer@cern.ch |
216d05d4d1d29d57c62f021b9e262ac2fb2c3be3 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2708/60705/293948.py | 4ceef869738bd406c6e08d79809ac00119cc9493 | [] | 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 | 267 | py | l = input()
l2 = input()
l2 = input()
if l == "3 5 7":
if l2 == "C 1 2":
ans = [3,3,0]
elif l2 == "C 1 5":
ans = [2, 2, 0]
elif l == "5 6 3":
# print(l2)
if l2 == "C 1 5":
ans = [2]
else:
print(l)
for i in ans:
print(i) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0454a8058438c916e98c035cbc2aa900ec35ede5 | 1b670dce7721a9343be40400dd758c8442c4d2ff | /main/migrations/0008_auto_20210407_1231.py | ce596ed83b7905364f84da0873b25d9dacd714bb | [
"MIT"
] | permissive | stephenndele/projects-app | 7210ad47be466baf2578d1cf751aa5a9ec70c125 | 44cb6cdd2facea942eaf3e8a15d7d0e35704f85e | refs/heads/main | 2023-03-28T19:52:58.508850 | 2021-04-09T09:06:21 | 2021-04-09T09:06:21 | 353,933,123 | 0 | 0 | null | 2021-04-06T14:34:47 | 2021-04-02T06:51:42 | Python | UTF-8 | Python | false | false | 1,008 | py | # Generated by Django 3.1.7 on 2021-04-07 12:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0007_auto_20210407_1156'),
]
operations = [
migrations.AlterField(
model_name='review',
name='content_rating... | [
"stephenndele09346@gmail.com"
] | stephenndele09346@gmail.com |
54308dad2437c3480ee18435107c3ae85ce0c814 | 8eff2593ef44b3bdb8dda8678eb051e58b4b5129 | /myenv/lib/python3.5/site-packages/boltons/typeutils.py | cae1231818ec5b6f091e8fe46337bdfec410c725 | [
"MIT"
] | permissive | rupeshparab/techscan | 08391c26c7916dd397527e1da8f91b4aa78bc96e | ce2558602ddad31873d7129f25b1cc61895b9939 | refs/heads/master | 2022-12-11T03:33:07.533280 | 2017-09-03T17:48:57 | 2017-09-03T17:48:57 | 102,280,759 | 1 | 1 | MIT | 2022-12-08T00:36:08 | 2017-09-03T17:11:16 | Python | UTF-8 | Python | false | false | 3,759 | py | # -*- coding: utf-8 -*-
"""Python's built-in :mod:`functools` module builds several useful
utilities on top of Python's first-class function support.
``typeutils`` attempts to do the same for metaprogramming with types
and instances.
"""
from collections import deque
_issubclass = issubclass
def make_sentinel(name=... | [
"rupeshparab.rp@gmail.com"
] | rupeshparab.rp@gmail.com |
462a3d0381d7934d898313a17175bfb1d504ecf1 | cc596b675fd49bac4246a59c48f175cd9fa070ca | /new/termEval/evalMono&Multi.py | 133a708bff71d411ba0530cb0ab6c581cdffa26b | [] | no_license | ipeknurkaraman/DeepLearningScientificTerminology | f2b6d86868bae00ece5807a0566736b12ba4caad | 2693a7c6147861c6a44d7864a68bd7133581fe5f | refs/heads/master | 2023-05-05T13:05:05.325178 | 2021-05-28T14:43:07 | 2021-05-28T14:43:07 | 323,090,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,322 | py |
# termsGoldFile_EN = open('/home/ikaraman/Desktop/oxfordDictionary/biologyOxford.txt', 'r')
termsGoldFile = open("/home/ikaraman/Desktop/tubaDictionary/Electronic_tr.txt", 'r')
FIELD_NAME = "foodscience"
monoFile= open('/home/ikaraman/Downloads/Electronic_20_trTerms_tr.txt', 'r');
multiFile= open('/home/ikaraman/Do... | [
"123"
] | 123 |
cd6ee83a491066d7955b8317bb62e6e25890b768 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_44/60.py | 42472bced8f98cad3a382bcdcc46ef3955047bb5 | [] | 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,030 | py | import sys
from numpy import array
from numpy.linalg import norm, solve, LinAlgError
input = sys.stdin
#input = open('B-sample.in')
T = int(input.readline().strip())
def input_case(input):
flies = []
N = int(input.readline().strip())
for i in range(N):
flies.append(map(float, input.readline().spl... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3be2159edb45d91362914ec03cb61cedc85742d0 | 86dc81e21f5b9e784dd087666d4d980c34781536 | /tcp_client_basic.py | 5863171412e9fce3c40412fd8de1fb30a4855f1d | [] | no_license | sheltie03/udp_python | 37b4e1f3377979c26e247a020efb958b3dfc28e5 | cb0551fc4026a3baff968e81b758ea4d7d7e5fd6 | refs/heads/master | 2021-07-09T15:37:46.684924 | 2017-10-02T08:06:25 | 2017-10-02T08:06:25 | 105,496,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # -*- coding:utf-8 -*-
import socket
import base64
def main():
host = "127.0.0.1"
port = 4000
last_msg = '.'
res_msg = ''
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect((host, port))
client.send('..')
res_msg = client.recv(4096)
print res_msg
wh... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
dfa376475e11ef1516be44ee25a5de5fc1886c98 | 6eb56f2e3f14f2373be07fe95b1c6fedf1e2d49f | /month02/multiprocessing/Queue/homework-demo/chat_client.py | cd14fd76fe0081b235fd2c96e6d41207744ecd44 | [
"Apache-2.0"
] | permissive | chaofan-zheng/python_leanring_code | fe22b0370cadebf7456477269aff4a35cef0eb41 | 0af44ff39b9ded2c1d2cc96c6d356d21170ac04d | refs/heads/main | 2023-02-28T07:56:46.457552 | 2021-02-10T15:08:33 | 2021-02-10T15:08:33 | 323,584,115 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | """
chat room 客户端程序
"""
from socket import *
from multiprocessing import Process
import sys
# 服务器地址
SERVER_ADDR = ("117.78.6.6", 8888)
# 子进程接收
def recv_msg(sock):
while True:
data, addr = sock.recvfrom(1024 * 10)
# 整理打印内容
msg = "\n" + data.decode() + "\n发言:"
print(msg, end="")
... | [
"417355570@qq.com"
] | 417355570@qq.com |
83a0e954c638ddc9ffd2e399282eb84a55b2f1b0 | d47aaa223c4ee2abc92cb1818cf060207bdd010c | /spotty/providers/aws/aws_resources/volume.py | e5109242c410c91e49453e2dd228f39a8651b598 | [
"MIT"
] | permissive | vexcel-data/spotty | 2d5b25f1bc21a6a5d312edd4cfd1b25ee833e9c6 | f6d56129a088908a5b8dcf303867af85e3bdf325 | refs/heads/master | 2022-10-20T18:50:41.103940 | 2020-06-18T09:03:41 | 2020-06-18T09:03:41 | 270,844,807 | 0 | 0 | MIT | 2020-06-19T09:57:01 | 2020-06-08T22:25:59 | Python | UTF-8 | Python | false | false | 1,829 | py | from spotty.providers.aws.aws_resources.snapshot import Snapshot
class Volume(object):
def __init__(self, ec2, volume_info):
self._ec2 = ec2
self._volume_info = volume_info
@staticmethod
def get_by_name(ec2, volume_name: str):
"""Returns a volume by its name."""
res = ec2... | [
"apls777@gmail.com"
] | apls777@gmail.com |
07c2adb1c3f7cfb1c59bf70f1346f52d937c1b48 | 0fc80c8262204a0c3cbe49e8c0a1c8cd243a555b | /py/crop_images.py | d06d777cd1fe00edda71991297115bc8aaada2ca | [] | no_license | tom-uchida/Analyze_Intermediate_Images | 32758a40d6ff504cbbadfc5aca3c661805230d45 | facb59810a828db38687e9518da4ee1ca051a797 | refs/heads/master | 2021-06-26T08:57:37.254800 | 2020-12-15T13:35:14 | 2020-12-15T13:35:14 | 180,596,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | # 画像を複数枚読み込み,全ての画像に対してクロッピングをおこなうプログラム
# 2019/07/12
import cv2
import numpy as np
import sys
args = sys.argv
# Check arguments
import sys
args = sys.argv
if len(args) != 3:
print("\nUSAGE : $ python crop_images.py [input_images_path] [repeat_level]")
print("EXAMPLE : $ python crop_images.py OUTPUT/LR100/ ... | [
"tomomasa.is.0930@gmail.com"
] | tomomasa.is.0930@gmail.com |
4174187efc5bd360d4dfd707d570eeae1d84b955 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/348/101709/submittedfiles/principal.py | 8972d1c5a0ef5c6f2536dee3feaac525e9db289f | [] | 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 | 824 | py | # -*- coding: utf-8 -*-
from os import system as sy
from time import sleep as slp
import termios
while True:
x = input('Informe o valor em binário: ')
expoente = 0
total = 0
for numero in range(len(x)-1, -1, -1):
print(total)
total += int(x[numero])**expoente
expoente += 1
pr... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
de0d6f197fd837f7bcd75822a970011bb052a3c4 | f669b07bf4e1047c7fa4f36983f5d8d9f607a42c | /.metadata/.plugins/org.eclipse.core.resources/.history/d2/f0d44054059000161aace3ce0a3d140b | 8d754134b6db2925157cc01055c3c81e9013f02a | [] | no_license | tca85/python | d07b4453b38b5c5a024e2a6f8b8795dac6d928b1 | 436a23250539ef8055f817ada20cb21eab65cc42 | refs/heads/master | 2021-01-10T22:53:01.118480 | 2016-10-24T21:46:59 | 2016-10-24T21:46:59 | 70,340,585 | 1 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 631 | #!/usr/bin/python
# -*- coding: latin1 -*-
'''
Created on Oct 11, 2016
@author: tca85
'''
class Cadastro():
#-----------------------------------------------------------------------------------------
def nome(self, nomes):
print 'Digite o nome:'
nome = raw_input()
nomes.append... | [
"thiago.alves.85@gmail.com"
] | thiago.alves.85@gmail.com | |
f1d1a7c494a4fa46826f69f22793bb5b922cb62a | 010c5fbc97731286be00028ff33fc981d943bca3 | /primal/src/code/impute/impute/data/io_pedigree.py | 38b628122d3f217360e2a6ae3004a5be814d4969 | [] | no_license | orenlivne/ober | 6ce41e0f75d3a8baebc53e28d7f6ae4aeb645f30 | 810b16b2611f32c191182042240851152784edea | refs/heads/master | 2021-01-23T13:48:49.172653 | 2014-04-03T13:57:44 | 2014-04-03T13:57:44 | 6,902,212 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,328 | py | '''
============================================================
Read and write Pedigree objects to/from PLINK TFAM files.
Created on May 31, 2012
Rerganized on August 4, 2012
@author: Oren Livne <livne@uchicago.edu>
============================================================
'''
import numpy as np, networkx as nx, u... | [
"oren.livne@gmail.com"
] | oren.livne@gmail.com |
0f349a4ad194300a5d2f0edd546d70a16138fe5d | ee60826e497510c604284de36b118f35f8a93f2f | /spiders/moe/all/yunnan.py | f7ba6d05312c1dee3852ed9f01f4587c9eb0d304 | [
"Apache-2.0"
] | permissive | kis307887597/policy_crawl | 1c186d6502754e37e44ddb78ebf8e2702b1592be | e5f7612163c00049f2e6859e81babb3e0f30aca4 | refs/heads/master | 2022-04-11T19:42:17.041897 | 2020-04-03T08:36:41 | 2020-04-03T08:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | import re
import time
from pyquery import PyQuery as pq
from policy_crawl.common.fetch import get,post
from policy_crawl.common.save import save
from policy_crawl.common.logger import alllog,errorlog
def parse_detail(html,url):
alllog.logger.info("云南省教育厅: %s"%url)
doc=pq(html)
data={}
data["title"]=d... | [
"824007714@qq.com"
] | 824007714@qq.com |
2fea792880bab42a2c3747f2020317ec6594523a | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/network/v20210301/p2s_vpn_gateway.py | 963a595eb386b520f13c2af5706b36ed0f4f92de | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,872 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
0879e32f2bbc9068c5e3899dc64ba580e4751147 | 9d7d2163ff473ce8f1376d454c7fbbe5c1934db4 | /get_break_high_low.py | 8aee96712b183a4941e56028cb45398fb15d6b15 | [] | no_license | vxzhong/stock | 8cba648300b63a14cf0ec7e07f05379e6d8dfe81 | ba1c0afa6a67ae0927b75f2c90878c1e2cd32d08 | refs/heads/master | 2023-01-23T01:46:54.752526 | 2020-11-16T00:49:53 | 2020-11-16T00:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,696 | py | # -*-coding=utf-8-*-
import time
__author__ = 'rocky'
# 获取破指定天数内的新高 比如破60日新高
import tushare as ts
import datetime
import pandas as pd
from settings import DBSelector,_json_data
import pymongo
from config import token
# from filter_stock import Filter_Stock
db = DBSelector()
INFO = _json_data['mongo']['arm']
host = IN... | [
"jinweizsu@gmail.com"
] | jinweizsu@gmail.com |
054b87eb98d138887613497b97ea86fe7b0509d5 | 69b528824f26759bba1e2dbf24818f05237f3c68 | /mtrl/env/types.py | 8801b8c889edc91e7b76072e33dfa6a36e6aeeaf | [
"Python-2.0",
"MIT"
] | permissive | RL-code-lib/mtrl | c8bcb3dcc39240ea4f7bf1c919e2248f5b2ef70f | 184c7d39db21acc505cf7094ed87cd28a1735105 | refs/heads/main | 2023-06-04T12:27:29.836272 | 2021-06-29T10:46:37 | 2021-06-29T10:46:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
"""Collection of types used in the env."""
from typing import Dict, Union
import numpy as np
from gym.vector.async_vector_env import AsyncVectorEnv
from mtrl.utils.types import TensorType
EnvType = AsyncVectorEnv
TaskObsType = Union[TensorType]... | [
"sodhani@fb.com"
] | sodhani@fb.com |
d5fc7e04623e5efcedc59d6f08287d685fd6af6f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/18/usersdata/94/6351/submittedfiles/maiormenor.py | 90dabcd7eb62a8f635262a01db0483db76b50a35 | [] | 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 | 767 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a = input('Digite o número 1: ')
b = input('Digite o número 2: ')
c = input('Digite o número 3: ')
d = input('Digite o número 4: ')
e = input('Digite o número 5: ')
if a<b and a<c and a<d and a<e:
print ('%d'%a)
if b<a and b<c and b<d and b<e:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0007bc3de88f75081188afb7ce54c68b930dc466 | f3693916a8b118bf139364604dac3f51235ed613 | /functional/Components/RequestID/DiagnosticsRequestID_GET/test_TC_46653_Diagnosis_GET_Both_Group_Cleint_Result_Succeeded_In_Audience.py | 9dcc37eaa53d705ca8479b8cca599d09999c38fc | [] | no_license | muktabehera/QE | e7d62284889d8241d22506f6ee20547f1cfe6db1 | 3fedde591568e35f7b80c5bf6cd6732f8eeab4f8 | refs/heads/master | 2021-03-31T02:19:15.369562 | 2018-03-13T02:45:10 | 2018-03-13T02:45:10 | 124,984,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | # -*- coding: UTF-8 -*-
"""PFE Component Tests - Diagnosis.
* TC-46653 - Diagnosis GET:
Verify that client result is displayed as 'Succeeded' in audience if both the groups result 'Succeeded' using request GET /diagnostices/requestId.
Equivalent test CURL command:
curl -H "Host: <client_host>" -H "Authorizati... | [
"mbehera@qumu.com"
] | mbehera@qumu.com |
9848a9dd6bc45b8e296f462d26e531cf20c0e588 | 3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2 | /src/Week1/Homework/fabricExcess.py | 9db3ddb01f22f2d25e34fc461caa71c42200fe52 | [] | no_license | theguyoverthere/CMU15-112-Spring17 | b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8 | b8287092b14e82d2a3aeac6c27bffbc95382eb34 | refs/heads/master | 2021-04-27T08:52:45.237631 | 2018-10-02T15:38:18 | 2018-10-02T15:38:18 | 107,882,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py | import cs112_s17_linter
import math
def fabricYards(inches):
return math.ceil(inches / 36)
def fabricExcess(inches):
return (fabricYards(inches) * 36) - inches
def testFabricExcess():
print('Testing fabricExcess()... ', end='')
assert(fabricExcess(0) == 0)
assert(fabricExcess(1) == 35)
assert... | [
"tariqueanwer@outlook.com"
] | tariqueanwer@outlook.com |
f17d38109342d2cd80deafd0927f9733d67e18a9 | 440ea5448b95cf2eca88e0e3f8c78e6d1de2ebf1 | /backend/users/migrations/0002_auto_20200811_1722.py | c88097a5a94e9c3ffe7dfa49a788b84fbe4dd4eb | [] | no_license | crowdbotics-apps/plant-pals-19499 | fcad5346815487ac6b5cea2ab2357bb4a2ad5356 | adaeef28f8d0e35cf5e27e5d8d60083f0f8e7b11 | refs/heads/master | 2022-12-14T00:45:55.667349 | 2020-09-25T19:46:51 | 2020-09-25T19:46:51 | 286,804,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # Generated by Django 2.2.15 on 2020-08-11 17:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='email',
field... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
cc8bd1d028dde2e21e9fb287a66e37c09bb42084 | ffb8fb6e9494117f1e5c98c067df86e7f1c3d1c7 | /day028/client01.py | 07aa55d97c19bbde12ea3cab680d0ae8a6240933 | [] | no_license | anliu520/pyprogram | b4f56fa3bc18c2475dd6fb27d05d6017bfe5977c | f72c7b66fd5671c5f217f37e13b23720a5f7f4a4 | refs/heads/master | 2021-04-23T03:09:44.445763 | 2021-01-23T10:04:01 | 2021-01-23T10:04:01 | 249,892,917 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #Author:Anliu
import socket
def fun_client():
c = socket.socket()
#c.connect(("127.0.0.1",9999))
c.connect(("127.0.0.1",9898))
while True:
#cmd = input(">>>:")
cmd = "this is a test"
c.send(cmd.encode())
mgs = c.recv(1024)
print(mgs)
for i in range(10):
fun_... | [
"ljwenjie66@163.com"
] | ljwenjie66@163.com |
7a809c6de4c423f4a74dc1092e553f028b73b1ed | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4187/codes/1716_2497.py | 9781a08e3904d442b6cf7275aecd15ca9c53f74f | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Instituto de Computacao - UFAM
# Lab 04 - Ex 04
# 20 / 06 / 2016
qi = float(input("Quantia inicial: "))
tempo = int(input("Tempo de investimento: "))
juros = 4.0
saldo = qi # Variavel acumuladora
# Valor inicial da variavel contadora
t = 0
# Atualizacao de saldo
while (t < tempo):
rend = saldo * juros/100
sal... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
8b5c19e2d731c4d2663c82a77f149d8550afa377 | 8c4af05e0257661195c95b0b9e0873eeb6391dab | /packages/python-packages/protocol-stub-generator/autorest_vendor/autorest/codegen/models/lro_paging_operation.py | 58086bc999b877958292149e7c6c24684a942d25 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Azure/azure-sdk-tools | 6d171054800807fcbe7b8b878c5903a202d31faa | 2dce521dedc3f5169007d4c481ae8ec077be4450 | refs/heads/main | 2023-09-01T00:00:32.662190 | 2023-08-31T22:21:44 | 2023-08-31T22:21:44 | 170,592,186 | 113 | 174 | MIT | 2023-09-14T21:53:41 | 2019-02-13T22:55:46 | C# | UTF-8 | Python | false | false | 945 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from .impo... | [
"noreply@github.com"
] | Azure.noreply@github.com |
afb9ba16d3585ad25b27d58e9e91e5852487dfe1 | 3c472baebce7f000051a06994fec905af6f3011e | /pytorch3d/renderer/mesh/rasterize_meshes.py | e10ff92bff3f0c6c04a5ae486cb81227da32b643 | [
"BSD-3-Clause"
] | permissive | fdarmon/pytorch3d | 06deddd8be533b07c21d8f6185b2f6930650fe08 | a5cbb624c1b74ea319bcd9d40697d9bf9a6c0bcd | refs/heads/main | 2023-08-16T10:51:33.003856 | 2021-09-30T12:09:12 | 2021-09-30T12:10:18 | 392,967,343 | 1 | 0 | NOASSERTION | 2021-08-05T08:36:53 | 2021-08-05T08:36:52 | null | UTF-8 | Python | false | false | 31,071 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from typing import List, Optional, Tuple, Union
import numpy as np
import torch
from pytorch3d import _C
from ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4562045cb3d5f5f996291a7bd8b6b1b94efb7992 | 60e26e2c6e1fe185f0af2065cb4fd4d6d506504e | /engine/urls.py | e055cdc71745b61be0ecdf3af46d9c3ae29022a9 | [
"BSD-3-Clause"
] | permissive | NamoxLabs/BlogEngine | 4887df1078e4b15bc44c51b9b8c2d8b1e8a6aca4 | 741549e78b58bbc857e9dcecd88034de49d73304 | refs/heads/master | 2023-05-12T08:38:36.811094 | 2020-12-10T01:36:59 | 2020-12-10T01:36:59 | 155,762,174 | 1 | 2 | BSD-3-Clause | 2023-04-29T18:53:41 | 2018-11-01T19:00:48 | Python | UTF-8 | Python | false | false | 2,648 | py | """engine URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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-based ... | [
"giovanniyatze@gmail.com"
] | giovanniyatze@gmail.com |
9914e33e63dbc39406b6fc65d839dce968e83cd6 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python-flask/generated/openapi_server/models/com_adobe_cq_wcm_jobs_async_impl_async_move_config_provider_service_properties.py | 924dfaa6f9427c09a5e60eaeb950b5bf61d06ac4 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 5,130 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.config_node_property_boolean import ConfigNodePropertyBoolean # noqa: F401,E501
from ope... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
25a32a664f4d3955ae377b5393307679a265e698 | 1ef2ba20621b37fa7ce3e4222b4bd96a261fc071 | /gdsvm/optimizers/adam.py | c6611af4a3b95a301dd5de0f8084189e88b8ce8a | [] | no_license | icannos/online-optimization | 6414493f26acfa4b9d97445d5bff405ff5eefbe8 | e887990f0b04211f571f3a440e8e11456db22964 | refs/heads/master | 2021-04-02T17:53:02.248488 | 2020-03-27T14:28:54 | 2020-03-27T14:28:54 | 248,303,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | import numpy as np
from collections import defaultdict
def adam_step(t, w, grad, hyperparams, parameters, proj=None):
"""
:param t: number of that timestep
:param w: the parameters to update (w for weights)
:param grad: the gradient vector of the model
:param hyperparam: dict which contains the hy... | [
"maxime.darrin@ens-lyon.fr"
] | maxime.darrin@ens-lyon.fr |
f86a768703dc6ec3342374f8e63713a19725159f | faffab1f3fc53c0284d55f4377ec3c2955045809 | /ml/rl/workflow/parametric_dqn_workflow.py | 53e4d970133f624fa5f7216c47e5864789ddc0ea | [
"BSD-3-Clause"
] | permissive | cnishaanntt/Horizon | 72c44b063de4cb349b622f109c134cb5ecbba1fe | 0656a4b53d8d40234757b1b46e8d0e21ed80c052 | refs/heads/master | 2020-04-18T17:51:01.336666 | 2019-01-25T17:24:19 | 2019-01-25T17:26:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,723 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import logging
import sys
import time
import numpy as np
from ml.rl.evaluation.evaluation_data_page import EvaluationDataPage
from ml.rl.evaluation.evaluator import Evaluator
from ml.rl.preprocessing.preprocessor import Pre... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f2cc944f32a8c4cf0f0f94acee13b019096a2a61 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_277/ch21_2020_03_04_17_16_43_092996.py | 9f82e910ecb446868ed36346e83ccb18bfb42ad7 | [] | 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 | 165 | py | def soma(x, y, z, o):
w=x+y+z+o
return w
a =int( input("horas"))*60*60
b =int( input("minutos"))*60
c=int(input("dias"))*24*60*60
d=int(input('segundos'))
| [
"you@example.com"
] | you@example.com |
88cf6f2b1b94bfc081f8e596f4a39cd4b48075e6 | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/future/builtins/__init__.py | 0db66084d598f46391dfa79d191fb645c6a4007a | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 1,666 | py | """
A module that brings in equivalents of the new and modified Python 3
builtins into Py2. Has no effect on Py3.
See the docs `here <http://python-future.org/what-else.html>`_
(``docs/what-else.rst``) for more information.
"""
from future.builtins.iterators import filter, map, zip
# The isinstance import is no lon... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
b52cc1e69503cf44c86c54d3d5743d5a7bb80531 | 552518c477195684ca3aeda047ef6997d6f249d5 | /myshop/shop/migrations/0032_contact.py | 12f3ba4b1f738ec3b1f58083d5452d6f7303018b | [] | no_license | danielspring-crypto/yatecommerce | 37a13b3fffb518bfdd66054c6d2c8efe16517098 | 2d80115a6cc86836663aa69fa9cb703807af9aa1 | refs/heads/main | 2023-02-21T02:57:10.769809 | 2021-01-20T20:55:13 | 2021-01-20T20:55:13 | 323,418,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # Generated by Django 2.0.8 on 2021-01-11 08:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0031_term'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('sno', model... | [
"borncode3@gmail.com"
] | borncode3@gmail.com |
8e704916db12840f9eaf069e9d3fb7f66aefcf58 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/q-i.py | c18111d1e67225e79578c2e01b867c26ac24d219 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
cd258955afdd35372f2ba8555c9fbc94910107f1 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/age_sex_20190618143753.py | c7dee6bf630064b32bbd4a47a69fa32ab3345a61 | [] | 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 | 1,340 | py | # -*- coding:utf-8 -*-
import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR-all')#txt目录提取
for emrtxt in emrtxts:
f = open(emrtxt,'r',errors="ignore")#中文加入errors
emrtxt = os.path.basename(emrtxt)
emrtxt_s... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
9025541313b41a62c2d6c8fcb4758b6051c3f5be | caf5ac28447b15176d43acdee5b2a57cd457fe83 | /allpaths.py | 6d0d2a474e6c8550a30ed2c2774697e4ade9fdfa | [
"Apache-2.0"
] | permissive | eruffaldi/fuseexp | b2f3e0116c40d115df177252bc936d298965b0b2 | 682d2ed220d1616be626c877ce70e0039e6bf783 | refs/heads/master | 2021-03-24T12:33:18.400813 | 2017-08-27T14:14:13 | 2017-08-27T14:14:13 | 101,555,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,310 | py | #!/usr/bin/env python
#
# Experimental FUSE: union all listing
# Emanuele Ruffaldi 2017
#
#
# file located in two
# /PATH/FILE/@0 -> symbolic link to effective
# /PATH/FILE/@2 -> symbolic link to first
#
# TODO: update part of three -> suffixe tree instead of self.paths
from __future__ import with_statement
import ... | [
"emanuele.ruffaldi@gmail.com"
] | emanuele.ruffaldi@gmail.com |
c6fc6fa8931cfccb033d49c2aeb12801762d64aa | da95fd868469535e8223059ddb69f9799b984b7a | /506/models.py | ab3f6d4f19db9877827b843d0755c20c58f29622 | [
"MIT"
] | permissive | kaixiang1992/python-flask | f2c794475e4a8f89d359959774778ac4c536c406 | 2b4c597d83f5a6ed662d42d7ff692e563a9adbf8 | refs/heads/master | 2020-12-27T11:52:45.213882 | 2020-03-29T09:00:54 | 2020-03-29T09:00:54 | 237,893,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from exts import db
from datetime import datetime
# TODO: 定义User模型
class User(db.Model):
__tablename__ = 'user'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.String(50), nullable=True)
age = db.Column(db.Integer, nullable=False)
create_time = db.Column(db.DAT... | [
"49449720+kaixiang1992@users.noreply.github.com"
] | 49449720+kaixiang1992@users.noreply.github.com |
81ca109e3a4f5596f3a5edfc0d2c272a12a26e30 | 49920d9e1bf9c579dc08cc297f08f0d36803a2bf | /banners/migrations/0001_initial.py | 1958b9a00469824e5d32f656d881438785af53b5 | [] | no_license | grengojbo/django-banners | 8c66bf723cab24bf1806b506526d1197f4a90781 | b8473dc19140b62c71fc6cbc947d9d7f198fb752 | refs/heads/master | 2021-01-16T20:01:21.547985 | 2013-11-13T23:32:04 | 2013-11-13T23:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,557 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'BannerSize'
db.create_table(u'banners_bannersize', (
(u'id', self.gf('django.db.m... | [
"oleg.dolya@gmail.com"
] | oleg.dolya@gmail.com |
5f66eff8769c296c1e343b5808b4b02e856043f7 | 4365ecc6358dae7aedb01a63a182dfa4a9ba2ab8 | /apps/api/migrations/0016_auto_20200608_2326.py | 68e46601b1659603a2deb74a8200b5fad88fb023 | [] | no_license | miguepoloc/boya | 3dd97891529bdf34b538398b830f70c67d3865d6 | 0f6ae96887e64c7badb4ba688043f327ee5b37d3 | refs/heads/master | 2022-05-13T11:27:32.184994 | 2020-07-10T18:28:30 | 2020-07-10T18:28:30 | 242,760,173 | 0 | 0 | null | 2022-04-22T23:06:02 | 2020-02-24T14:40:03 | JavaScript | UTF-8 | Python | false | false | 830 | py | # Generated by Django 2.2.10 on 2020-06-08 23:26
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('api', '0015_auto_20200608_2235'),
]
operations = [
migrations.AlterField(
model_name='chequeo',
... | [
"miguepoloc@gmail.com"
] | miguepoloc@gmail.com |
1675a61697d69da19c77a30ebae10e3b44074891 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/python/autograph/converters/control_flow_test.py | a3642436ad3c4220c641636500a3d110d6ac6219 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 13,534 | 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... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
7dad0e8bd0aab419782ac87fb5b9cf2e210a70bb | f4eb1cbbd5da82bdc9fa97b48ccec9d535be966f | /src/gevt/gevt.py | 7bbdb5d4b946dfcdf750f6f78b590aa1904fafe4 | [
"MIT"
] | permissive | seb5g/gevt | 62b1f1641e90cd800020351419f5f86bbec7da45 | 7e1035b213a74413f444871e1f2689f2edeb1773 | refs/heads/master | 2021-10-30T09:18:24.122285 | 2021-09-30T09:45:10 | 2021-09-30T09:45:10 | 160,070,563 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126,723 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 24 21:50:38 2018
@author: Sébastien Weber
"""
import sys
import os
from pathlib import Path
import codecs
path_here = os.path.split(__file__)[0]
sys.path.append(path_here)
from dateutil.parser import parse
import csv
from PyQt5 import QtWidgets, QtCore, QtGui
from PyQt... | [
"seba.weber@gmail.com"
] | seba.weber@gmail.com |
2f8941b95d7a75920a53030b83f2c97b4e2dd24b | 78f3fe4a148c86ce9b80411a3433a49ccfdc02dd | /2017/10/imperial-diets-20171026/graphic_config.py | 4ffc8fe6134ed3b57086b0ee793cd65ab70e9824 | [] | no_license | nprapps/graphics-archive | 54cfc4d4d670aca4d71839d70f23a8bf645c692f | fe92cd061730496cb95c9df8fa624505c3b291f8 | refs/heads/master | 2023-03-04T11:35:36.413216 | 2023-02-26T23:26:48 | 2023-02-26T23:26:48 | 22,472,848 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
import base_filters
COPY_GOOGLE_DOC_KEY = '17I12gohwwd9wm_v9UuOHP0EIp-0IgCre89KHzgefWbU'
USE_ASSETS = False
# Use these variables to override the default cache timeouts for this graphic
# DEFAULT_MAX_AGE = 20
# ASSETS_MAX_AGE = 300
JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
| [
"ahurt@npr.org"
] | ahurt@npr.org |
837a356d4d86e3ed73b038de93eb354346511c11 | 85bf9a13bf62c1f074894d134c23dd992ae8688c | /companies/facebook/p140/ZhaoSolution.py | 2da086ce3f2ab6dcebb41b69434d6b561f673068 | [] | no_license | pololee/oj-leetcode | 4cca3d309b2c9931d15d3cec4b07b5d9d22733ef | 78a8b27ee108ba93aa7b659665976112f48fc2c2 | refs/heads/master | 2020-06-21T02:15:26.882273 | 2020-02-06T04:56:21 | 2020-02-06T04:56:21 | 197,320,113 | 0 | 0 | null | 2020-02-06T04:56:23 | 2019-07-17T05:20:02 | Python | UTF-8 | Python | false | false | 1,300 | py | class ZhaoSolution:
def wordBreak(self, s, wordDict):
"""
:type s: str
:type wordDict: List[str]
:rtype: List[str]
"""
wordDict = set(wordDict)
solutions_map = dict()
return self.work_break_dfs(s, wordDict, solutions_map)
def work_break_dfs(se... | [
"pololee1990@gmail.com"
] | pololee1990@gmail.com |
d2686c472f20b73824bd2fbfad29b5898370b662 | 4935844c2139585e84961bdcf391f9d1c4a80fb5 | /python/Administration/Timesheet Calculator v2/Timesheet Calculator v2/test/parser/holiday_parser_test.py | 245ea70c207d2057637056d968518681c6672193 | [] | no_license | JKCHacking/PTCC_SCRIPTS | 4666aa29bdb93b00495193d36203be59b4356e4f | e3aa120f504d9b2c59ce741c6c42c3d5e12d191b | refs/heads/master | 2023-08-30T23:43:25.840705 | 2023-08-21T05:12:11 | 2023-08-21T05:12:11 | 241,763,400 | 3 | 1 | null | 2022-11-22T10:36:42 | 2020-02-20T01:10:07 | Python | UTF-8 | Python | false | false | 1,490 | py | import os
import unittest
from src.utils.constants import Constants
from src.parser.holiday_parser import HolidayParser
class HolidayParserTest(unittest.TestCase):
def test_holiday_parser_001(self):
expected_holidays = [
"January 01, 2021",
"April 01, 2021",
"April 02, ... | [
"joshnee.kim.cunanan@gmail.com"
] | joshnee.kim.cunanan@gmail.com |
4cfa4c956cc131cdf13eb6488476ea729077f3e7 | 4de7f2e669126200d6c7dec0299fdc2b03b97b0a | /project-examples/barnettech/PythonJSFinalPRojectII/manage.py | 1f19a10d4421f4d6694b1d6e546ba0c7878d2551 | [] | no_license | Yoimer/cs50-lecture-folders | a81a21a9683967c9839585e21e359b7381efb58f | 0cf9a7eb7075cd116fa4638a44d3412bc5386577 | refs/heads/master | 2022-12-14T05:09:45.217160 | 2019-07-07T06:42:08 | 2019-07-07T06:42:08 | 151,802,954 | 3 | 0 | null | 2022-12-08T01:47:28 | 2018-10-06T03:56:01 | HTML | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "retrogaming.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that ... | [
"ydrf19@gmail.com"
] | ydrf19@gmail.com |
be8fdb637b3935408a2b99de92c5a10cbe733638 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03651/s374895368.py | f389316b37f0f448920d67e718b33ed65afd18df | [] | 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 | 284 | py | from math import gcd
def main():
n, k = map(int, input().split())
a = list(map(int, input().split()))
g = a[0]
for i in range(1, n):
g = gcd(g, a[i])
if k <= max(a) and k % g == 0:
print("POSSIBLE")
else:
print("IMPOSSIBLE")
if __name__ == "__main__":
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
307860a9fa44a7f78ac0264ef70e4ec58196960d | 38c10c01007624cd2056884f25e0d6ab85442194 | /ui/webui/resources/js/chromeos/compiled_resources.gyp | 05e7e0a9be956737b15606242fa2f2891846f1e4 | [
"BSD-3-Clause"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 481 | gyp | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'ui_account_tweaks',
'variables': {
'depends': [
'../compiled_resources.gyp:cr',
... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
7555e2f9419240c598eddada5a77864cc8e05990 | 61ef327bd1d5ff6db7595221db6823c947dab42b | /FlatData/DefaultParcelExcelTable.py | 79666764aaf8e5162cc09e233f6e4bc421f47746 | [] | no_license | Aikenfell/Blue-Archive---Asset-Downloader | 88e419686a80b20b57a10a3033c23c80f86d6bf9 | 92f93ffbdb81a47cef58c61ec82092234eae8eec | refs/heads/main | 2023-09-06T03:56:50.998141 | 2021-11-19T12:41:58 | 2021-11-19T12:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FlatData
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class DefaultParcelExcelTable(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffer... | [
"rkolbe96@gmail.com"
] | rkolbe96@gmail.com |
fdf8f9aca5a182a206d67141bcd975d7f90fe053 | 5b9ac627bf39b01917f75d18d8ca83211a04c718 | /cahoots/parsers/programming/__init__.py | 5e4fe96b26329beb68688dbff12f7f1c91146379 | [
"MIT"
] | permissive | SerenitySoftware/cahoots | dbfa109e4c65d20ef01c2d97d3087e7a8aede838 | 866336c51436343ff5e56f83f89dddc82a5693a3 | refs/heads/master | 2021-05-28T20:00:32.827485 | 2015-08-23T00:31:11 | 2015-08-23T00:31:11 | 21,884,335 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,090 | py | """
The MIT License (MIT)
Copyright (c) Serenity Software, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, m... | [
"ryan.vennell@gmail.com"
] | ryan.vennell@gmail.com |
cb531a0dcc0b11820269635458e824b6d3a23642 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_shrimps.py | e669f7226c0e2229960c9115b132d04979ebfc18 | [
"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 | 238 | py |
from xai.brain.wordbase.nouns._shrimp import _SHRIMP
#calss header
class _SHRIMPS(_SHRIMP, ):
def __init__(self,):
_SHRIMP.__init__(self)
self.name = "SHRIMPS"
self.specie = 'nouns'
self.basic = "shrimp"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9a09ed9b8bb54dde81516ed1013dc31371cfa9cc | b34ae5dc3310ef46341d19c404f91d5a8deb5af0 | /firstapp/polls/urls.py | 24fb7fbc1548ed537b61d5231ef1a72e380a0d29 | [] | no_license | RodrigoSierraV/Django | 8b14e0441f638f87c910d8e83c62c92df3c9f52f | f0e75c95137ba7c2ba0a201a25574906ff84fcf7 | refs/heads/master | 2022-09-27T21:36:31.846864 | 2020-04-12T02:04:18 | 2020-04-12T02:04:18 | 216,306,795 | 0 | 0 | null | 2022-09-13T23:03:44 | 2019-10-20T04:21:54 | Python | UTF-8 | Python | false | false | 684 | py | from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
# ex: /polls/
#path('/', views.index, name='index'),
path('/', views.IndexView.as_view(), name='index'),
# ex: /polls/5/
#path('/<int:question_id>/', views.detail, name='detail'),
path('/<int:pk>/', views.Detai... | [
"735@holbertonschool.com"
] | 735@holbertonschool.com |
457274b955dce2d8706a041dc932de1b70a2ec74 | 3d4a890a2a267019c77a0e9d7198c9fd33e937b8 | /setup.py | d44047eaa96142115fe62adb43ee4787e31acf59 | [
"MIT"
] | permissive | alexm98/stac-sentinel | 7a0bdac16d375ce565a6eb589f11a47912c287f5 | 5cef8ac88f403e9d1879059dd5a9295ef190897b | refs/heads/main | 2023-03-17T12:47:27.490254 | 2021-03-18T06:18:28 | 2021-03-18T06:18:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
from imp import load_source
from os import path
import io
__version__ = load_source('stac_sentinel.version', 'stac_sentinel/version.py').__version__
here = path.abspath(path.dirname(__file__))
# get the dependencies and installs
with io.open(path.join... | [
"matt.a.hanson@gmail.com"
] | matt.a.hanson@gmail.com |
f0c7d3c69ac22e4c277f20d432d3c3994a32eba0 | 6b233b45ac4ae18711a7f8a7730eebcf7e4e80ed | /AdHoc/forpeter.py | 17ad035613a10b5ad39438769ee3cf04fbed71f9 | [] | no_license | petervanya/PTFEsim | 251b7501a48ab05245c778be0f39b9bacd821348 | 509ef87df647f5c1231efbbc0d0a84add1da28d6 | refs/heads/master | 2021-01-21T04:51:05.644202 | 2016-07-20T16:32:34 | 2016-07-20T16:32:34 | 46,088,758 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | #!/usr/bin/env python
"""
Andrew's mapping to nearest image borrowed from DL_Poly
06/04/16
"""
import numpy as np
import sys
def invertcellmatrix(cell):
"""
invert the matrix corresponding to the 1-d array cell for nearest image mapping
"""
invcell = np.zeros(9, dtype=float)
# adjoint
invcell... | [
"peter.vanya@gmail.com"
] | peter.vanya@gmail.com |
7fe4b5e0f0f573023cf983f362d710daa488417b | ae79aa8458230fe2331b267308a29adff215bbfe | /armi/physics/neutronics/const.py | 12b0d60422af4f5552115d62c9e4d7ef885d4149 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | paulromano/armi | 3727cf3c52de5e412e8db4d5bf5d9998a720616c | 6c4fea1ca9d256a2599efd52af5e5ebe9860d192 | refs/heads/master | 2023-01-10T05:43:27.691791 | 2020-08-07T00:33:35 | 2020-08-07T00:33:35 | 285,824,692 | 1 | 0 | Apache-2.0 | 2020-08-07T12:32:54 | 2020-08-07T12:32:53 | null | UTF-8 | Python | false | false | 693 | py | # Copyright 2019 TerraPower, 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 agreed to in writi... | [
"ntouran@terrapower.com"
] | ntouran@terrapower.com |
37189cd4a5d0e6abcb24a22a3ed17d9904f47862 | 0eb6c70503c680ebec415016ff1b0cfac92486ca | /lincdm/managers.py | daae4b0bbf4916e4c275fde530a4b3bdf5c9ef0b | [] | no_license | alexliyu/lincdm | c8b473946f59aca9145b3291890635474f144583 | eab93285f0b03217ea041a7910edae7e00095cd8 | refs/heads/master | 2020-12-30T10:50:05.248988 | 2011-08-09T15:52:38 | 2011-08-09T15:52:38 | 1,464,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | """Managers of Lincdm"""
from datetime import datetime
from django.db import models
from django.contrib.sites.models import Site
from lincdm.publisher.manage import PublisherManager
DRAFT = 0
HIDDEN = 1
PUBLISHED = 2
def tags_published():
"""Return the published tags"""
from tagging.models import Tag
fro... | [
"alexliyu2012@gmail.com"
] | alexliyu2012@gmail.com |
a63df9425df2caae3ff5d5b438aad7a593d1bb0f | 350696afebfe7ba96024d94a28afdc3832ec6134 | /warm_up/03_jumpingOnClouds.py | 5c5f3dff6ca8ff23782a6c63277969b6afd9dfdf | [] | no_license | xiaoxue11/hank_practice | 9ad17c0c2934129ccef9c2128d77dbc026aed627 | 76deaac4297e39406defb8c16d97f0cc0b1454e4 | refs/heads/master | 2020-11-24T18:49:44.447118 | 2019-12-20T20:15:56 | 2019-12-20T20:15:56 | 228,298,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | def jumping_on_clouds(c):
length = len(c)
i = 0
step = 0
while i < length-2:
if c[i+2] == 0:
step += 1
i += 2
elif c[i+1] == 0:
step += 1
i += 1
else:
return 'game is over'
if i == (length - 2):
return step+1... | [
"xuezhang0111@gmai.com"
] | xuezhang0111@gmai.com |
24478a6bb65ea7460d79d47e500a67d28e623bf4 | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/common/Lib/encodings/cp866.py | 8642fc52c9e7d73fbd0cc7464dca80ac31965c70 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 6,771 | py | # 2017.08.29 21:56:36 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/encodings/cp866.py
""" Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP866.TXT' with gencodec.py.
"""
import codecs
class Codec(codecs.Codec):
def encode(self, input, errors = 'strict'):
return co... | [
"info@webium.sk"
] | info@webium.sk |
a5124ab8bfc5a078933328554cb58083c4709371 | 33c1b08af41a03d51503e3141c74cb2c7de22bcc | /scripts/4-printDistMatrix.py | e255fd53152602aa209e23ffd443c96c48ac30e7 | [] | no_license | jameshughes89/SmartwatchGPModelling | cfadc6c0f13de20cab5e7ebb213c51e017259224 | 15cc36adce487c0901b0eefd245316ea01fd8594 | refs/heads/master | 2021-01-17T20:50:53.179303 | 2017-06-27T18:03:05 | 2017-06-27T18:03:05 | 95,586,357 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,266 | py | '''
prints the distance matrices based on script 3
'''
import numpy as np
import csv
import sys
from math import *
import matplotlib
import matplotlib.pylab as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
#TIME = '10s'
#TIME = '20s'
TIME = 'all'
tasks = ['Down', 'Up', 'Walking', 'Jogging', 'Running']
... | [
"JamesHughes89@Gmail.com"
] | JamesHughes89@Gmail.com |
653c94b3aa10c51b5f0cf6215c5232dcb46c4b03 | 56169cc42c21baeb0773a11f9dc2d14bc873e094 | /konkursy/02_2003/02_2/MASKA.py | c461b6c3ebd89bd485c2079afabb1e4262d2a9d7 | [] | no_license | PROGRAMMINinGPYTHON/minilogia | cc1842bb1e5a388c6d7c71bb7b8412776c1ed26b | 346b97671a72046d45e1736b11ba360a92f32c6f | refs/heads/master | 2021-07-09T00:47:11.406056 | 2021-03-28T11:19:13 | 2021-03-28T11:19:13 | 234,959,810 | 0 | 0 | null | 2020-03-21T19:07:48 | 2020-01-19T20:19:22 | Python | UTF-8 | Python | false | false | 3,083 | py | from turtle import *
global a
a = 50
def MASKA():
pu()
setpos(-150,150)
pd()
fillcolor("black")
begin_fill()
setheading(0)
fd(6*a)
rt(90)
fd(6*a)
rt(90)
fd(6*a)
rt(90)
fd(6*a)
end_fill()
kwadrat()
setheading(0)
fd(a)
lt(90)
fd(0.5*a)
rt(90... | [
"59664343+PROGRAMMINinGPYTHON@users.noreply.github.com"
] | 59664343+PROGRAMMINinGPYTHON@users.noreply.github.com |
6bec004980500c42d81765e3633e9a87c382b82b | 6cbaade56c5db347d1be9a3422a69af52df39b97 | /python_workspace/3_bigdata/02_Standardization_Analysis/1_CSV/2csv_reader_parsing_and_write.py | 3698f52e0211f4dd8ae762d4c43ae511ea4051e1 | [] | no_license | baewonje/iot_bigdata_- | b54e3772f64b9695efee8632183590628b679e11 | 2ce1af67d2f05abeb2ecd442b7299f349bdb9753 | refs/heads/master | 2020-09-06T09:53:53.018320 | 2019-12-06T08:19:33 | 2019-12-06T08:19:33 | 220,390,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | #목적 : 기본 파이썬 csv 모듈을 활용하여 csv 파일 읽고 쓰기
import csv
import sys
input_file = sys.argv[1]
output_file = sys.argv[2]
with open(input_file, 'r', newline='') as csv_in_file:
with open(output_file, 'w', newline='') as csv_out_file:
filereader = csv.reader(csv_in_file, delimiter=',')
filewriter = csv.writer... | [
"50129576+baewonje@users.noreply.github.com"
] | 50129576+baewonje@users.noreply.github.com |
1ced6c3fce72002eeee5b1820468cc5b0c2ade2b | be5d853783fab4162981c460c35856bf44bf2148 | /mayan/apps/lock_manager/backends/model_lock.py | e44453a523ce22cdca663ae06ff5a2ee025a7c88 | [
"Apache-2.0"
] | permissive | Hita-K/Mayan-EDMS | 50900189cf504807aa6e41d72fd8e4fc50d5d5b3 | a5b691b28f765d9eea7bf6b2016657c943fbbe4a | refs/heads/master | 2023-08-29T08:20:58.859259 | 2021-11-08T04:40:39 | 2021-11-08T04:40:39 | 295,247,959 | 0 | 0 | NOASSERTION | 2021-11-08T04:40:40 | 2020-09-13T22:21:57 | Python | UTF-8 | Python | false | false | 897 | py | from django.apps import apps
from .base import LockingBackend
class ModelLock(LockingBackend):
@classmethod
def acquire_lock(cls, name, timeout=None):
super(ModelLock, cls).acquire_lock(name=name, timeout=timeout)
Lock = apps.get_model(app_label='lock_manager', model_name='Lock')
retu... | [
"roberto.rosario.gonzalez@gmail.com"
] | roberto.rosario.gonzalez@gmail.com |
94035fe267b43ab7a731ff3e71c4ce359e2dcfdf | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /assessment_plan_modeling/ap_parsing/ap_problems_action_items_annotator_test.py | 6e66b7b41f6acd0f6eb0b58fc80d78386576638d | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 9,186 | py | # coding=utf-8
# Copyright 2023 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 |
b6bc6f262ad6bcccebce6a8531cf6ff01b692a52 | 355f4a4c9013c0e79dd2935463888bd4b17ff8fd | /src/LuxFire/Database/Create.py | 1f142a1396e888a982cdcce75ae7ad61e905d339 | [] | no_license | LuxRender/LuxFire | d8fdb834af0ab3649c5c4befc4fc23b9f98b05f8 | 60a7788dbaf9cf68c0a5252fcde7fba84c3693d4 | refs/heads/master | 2021-01-03T13:59:33.488920 | 2011-01-05T16:46:28 | 2011-01-05T16:46:28 | 240,095,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,456 | py | # -*- coding: utf8 -*-
#
# ***** BEGIN GPL LICENSE BLOCK *****
#
# --------------------------------------------------------------------------
# LuxFire Distributed Rendering System
# --------------------------------------------------------------------------
#
# Authors:
# Doug Hammond
#
# This program is free software;... | [
"devnull@localhost"
] | devnull@localhost |
de20e5609f3b618c0f15112119cc7e85ac16ff09 | 07504838d12c6328da093dce3726e8ed096cecdb | /pylon/resources/datapoints/length_kilo.py | ea6a5e70ca55804f28b1b2f24a670bc3a2be1489 | [] | no_license | lcoppa/fiat-lux | 9caaa7f3105e692a149fdd384ec590676f06bf00 | 7c166bcc08768da67c241078b397570de159e240 | refs/heads/master | 2020-04-04T02:47:19.917668 | 2013-10-10T10:22:51 | 2013-10-10T10:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | """length_kilo standard datapoint type, originally defined in resource file
set standard 00:00:00:00:00:00:00:00-0. """
# Copyright (C) 2013 Echelon Corporation. All Rights Reserved.
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files... | [
"lcoppa@rocketmail.com"
] | lcoppa@rocketmail.com |
e99f8442eb951fc79e9fbeace152eb9b4ccea911 | 129d0272314aae880c88280008b4ce01049e34ef | /randori/socialnet/views/helper.py | f0aa41a7e726a67e895ebc72002a8e9124668ddc | [] | no_license | fstakem/Amphora | 4eacab3c3af33dd8e3dd0121f3d05dce81abeddb | f4164e583db18e8947a5f5f79ca13d861c351694 | refs/heads/master | 2021-01-15T20:38:11.169657 | 2014-02-05T14:31:31 | 2014-02-05T14:31:31 | 13,034,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # +++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++
#
# File: helper.py
# By: Fred Stakem
# For: Private Research
# Date: 12.5.13
#
# +++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++
# Librarys
# App imp... | [
"fstakem@gmail.com"
] | fstakem@gmail.com |
929d04bf395067042ae16b95af80ba096df683ea | 4c5d113b19bf8d55d2d94fe7dc08fd90e0152174 | /thor/orbits/residuals.py | 618725d1cc48d212e5e75a74f10de765a7316cd9 | [
"BSD-3-Clause"
] | permissive | swipswaps/thor | f4b2b956fbd71c3fa4a84d457ff67f158d9e9c21 | d3d1dcbe86f67a62c90b4cde3fc577e414825cf2 | refs/heads/master | 2023-04-05T11:48:31.884619 | 2021-02-12T19:38:23 | 2021-02-12T19:38:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,836 | py | import numpy as np
from scipy.stats import chi2
from scipy.spatial.distance import mahalanobis
__all__ = [
"calcResiduals",
"calcSimpleResiduals",
"calcProbabilisticResiduals"
]
def calcResiduals(
coords_actual,
coords_desired,
sigmas_actual=None,
covariances_actual=None,... | [
"moeyensj@gmail.com"
] | moeyensj@gmail.com |
32375f1c436182dac081e9b673c8bcc560993318 | 4df32cdc140f3a15c9a540787241c513ff4652a4 | /exercicios_resolvidos3/exercicios3/capitulo 07/exercicio-07-05.py | 4a18298dcca6f54b4c0ab6e0cdbdbcec9667148a | [
"MIT"
] | permissive | tiagosm1/Python_Nilo_Ney | 04039c4a9294d480b0493d71e46cc850168c5365 | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | refs/heads/main | 2023-02-18T22:07:46.696674 | 2020-12-23T11:27:30 | 2020-12-23T11:27:30 | 317,965,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2020
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"72826762+tiagosm1@users.noreply.github.com"
] | 72826762+tiagosm1@users.noreply.github.com |
6cfc3f1a416db76904e5a27c3420fac4cb43e860 | bad262986176a6b7a297928ff098801db68b0f16 | /ayush_crowdbotics_197/wsgi.py | a9bdc05109482ae553161f092de7a232ead881f0 | [] | no_license | payush/ayush-crowdbotics-197 | 0bd1ad8f207256be4ad0fde706a217f0e368824f | 7ed9b5484a62ec40e87ab8e94f1c962423b44c93 | refs/heads/master | 2020-03-23T09:39:24.652462 | 2018-07-18T07:56:59 | 2018-07-18T07:56:59 | 141,401,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | """
WSGI config for ayush_crowdbotics_197 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
109bf775604f42682c6630b7fa71936a596e1503 | c9cfc20f4ae7e5eacc968eb7b22d3d0395799e68 | /fulfill/qa-model/docqa/config.py | da3bc29d651fe2328526eb1dbbc70201aa2a6067 | [
"Apache-2.0"
] | permissive | yhylord/utext | f2c5288087455e0013d228183beceb7822bb80d9 | e09cb46e71a61c32b02feb2af415fb067aa49340 | refs/heads/master | 2020-04-21T19:03:56.539980 | 2019-02-08T20:55:04 | 2019-02-08T20:55:04 | 169,793,070 | 0 | 0 | null | 2019-02-08T20:15:24 | 2019-02-08T20:15:24 | null | UTF-8 | Python | false | false | 591 | py | from os.path import join, expanduser, dirname
"""
Global config options
"""
VEC_DIR = join(".", "qa-model", "glove")
SQUAD_SOURCE_DIR = join(expanduser("~"), "data", "squad")
SQUAD_TRAIN = join(SQUAD_SOURCE_DIR, "train-v1.1.json")
SQUAD_DEV = join(SQUAD_SOURCE_DIR, "dev-v1.1.json")
TRIVIA_QA = join(expanduser("~")... | [
"shrivu1122@gmail.com"
] | shrivu1122@gmail.com |
6f1a20404e37b6595cabe6726d33313e2ca824eb | cbadf1c08435abc91bd221d2fd9d096717685cc0 | /codeforces/current/c1368d/task.py | 1730ca9901fcaafe7e7c01173d7ae9e88e66304c | [] | 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 | 802 | 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 + '\n')
def wi(n): sys.stdout.write(str(n) + '\n')
def wia(a): sys.stdout.write(' '.join([str(x) for x in a]) + '\n')
def sc... | [
"bdimonik@gmail.com"
] | bdimonik@gmail.com |
263d7f01368452fa80e118d4eaf73c8d392216c1 | 6e7e037c63a71fad935882b9204e923788e8d7cd | /Basic-Python/code/test_os/4.py | 49d07246d4452f89ecbf08de346f660f577e64e3 | [
"MIT"
] | permissive | AI-System/ai-learning-material-old | 93d219c11778b6a59bac5972c6a4341bf465910a | 1719f5b6ecb9b9caf485b9d806c1211b142b8ed5 | refs/heads/master | 2021-10-23T20:57:50.532039 | 2019-03-17T23:40:47 | 2019-03-17T23:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | import os
### 获取环境变量
p = os.getenv('PATH')
print(p)
print('')
### 获取当前路径 都是 .
cdir = os.curdir
print(cdir) # .
## 获取上层目录路径 都是 ..
pdir = os.pardir
print(pdir) # ..
### 获取path模块, os.path 是 os中的一个子模块,操作非常多,根据不同系统,输出不一样
pth = os.path
print(pth) # <module 'posixpath' from '/anaconda3/lib/python3.6/posixpath.py'>
##... | [
"johnnynode@gmail.com"
] | johnnynode@gmail.com |
c93b8a08687c85765f5e5713bd60a16c9f1e0451 | 7bb34b9837b6304ceac6ab45ce482b570526ed3c | /external/bluetooth/bluez/test/apitest | b1c3f103e9892dfcd6147c36b21ff3846e473c2a | [
"GPL-2.0-or-later",
"GPL-2.0-only",
"Apache-2.0",
"LGPL-2.1-only",
"LGPL-2.1-or-later"
] | permissive | ghsecuritylab/android_platform_sony_nicki | 7533bca5c13d32a8d2a42696344cc10249bd2fd8 | 526381be7808e5202d7865aa10303cb5d249388a | refs/heads/master | 2021-02-28T20:27:31.390188 | 2013-10-15T07:57:51 | 2013-10-15T07:57:51 | 245,730,217 | 0 | 0 | Apache-2.0 | 2020-03-08T00:59:27 | 2020-03-08T00:59:26 | null | UTF-8 | Python | false | false | 18,029 | #!/usr/bin/env python
import dbus
import dbus.decorators
import dbus.glib
import gobject
import sys
import getopt
from signal import *
mgr_cmds = [ "InterfaceVersion", "ListAdapters", "DefaultAdapter" ]
mgr_signals = [ "AdapterAdded", "AdapterRemoved" ]
dev_cmds = [ "GetAddress",
"GetVersion",
... | [
"gahlotpercy@gmail.com"
] | gahlotpercy@gmail.com | |
fd5ced83c0490036ce813e57cb08ad99b5fec8aa | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/length_20200530002245.py | 8e757183f13946a660d46604f7878e081c0ad4ed | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | def removeDuplicates(nums):
i = 0
while i < len(nums):
print('index of i',i,'i---------->','nums at i',nums[nums[i]])
j = i+1
while j< len(nums):
print('index of j',j,'j---->','nums at j',nums[nums[j]])
if nums[i] == nums[j]:
print(nums[i],'----wa... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
e8b6ef0c71b527bb068a50f496969d00c6dbef80 | 4512cdbf79368d9a4948d2e945e0f951a8af2cc5 | /an introduction to interactive programming in python/01_Rock-paper-scissors-lizard-Spock.py | 005944677195e5477ba8805690afe2a174a89fae | [] | no_license | teinhonglo/Python | 80d2223cd8d1253f2eed2562d5522a00d6e7d88e | cff40f13befa42bf2d9a03c2c7f2224712c04e75 | refs/heads/master | 2021-01-01T05:42:30.068200 | 2016-12-28T04:29:41 | 2016-12-28T04:29:41 | 58,315,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,492 | py | # Rock-paper-scissors-lizard-Spock template
import random
# The key idea of this program is to equate the strings
# "rock", "paper", "scissors", "lizard", "Spock" to numbers
# as follows:
#
# 0 - rock
# 1 - Spock
# 2 - paper
# 3 - lizard
# 4 - scissors
# helper functions
def name_to_number(name):
# delete the fo... | [
"teinhonglo@gmail.com"
] | teinhonglo@gmail.com |
ab97cfdc5a3676752e28d44ead35f9c619088ab6 | 2728543f61eb17dcccca9853ba6e6d2d932c8f8e | /src/python/unapy/scan.py | 3c485109066697819891a08a821479fcfd9b44dc | [
"MIT"
] | permissive | bewest/unapy | 7a77afb841e354de5943f4bdfe9a08f1d3f49c88 | cc55cfb90f38c7ac01ef244cc4b3509e4426b0e4 | refs/heads/master | 2016-09-11T06:09:39.908520 | 2012-06-17T23:10:20 | 2012-06-17T23:10:20 | 2,311,697 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | #! /usr/bin/env python
"""\
Scan for serial ports. Linux specific variant that also includes USB/Serial
adapters.
Part of pySerial (http://pyserial.sf.net)
(C) 2009 <cliechti@gmx.net>
Modified 2011 <bewest@gmail.com>
"""
import serial
import logging
import glob
import time
logger = logging.getLogger(__name__)
GLOB_... | [
"bewest@gmail.com"
] | bewest@gmail.com |
98a3aacfcfc80f6aa93b80beab56844e48abfedf | 401fc99cefe615f8ebefb6dd9c2b043c506f5bd0 | /tests/datasets/test_helpers.py | eefa5515f9651e6186e3601a790c2b87747e7326 | [
"MIT"
] | permissive | atviriduomenys/spinta | 0f85496860ebbcecfccd8dde2bf219564ee66baa | 1fac5b6b75ec65188d815078fd135bc05d49b31c | refs/heads/master | 2023-09-02T13:22:58.411937 | 2023-08-18T12:59:17 | 2023-08-18T12:59:17 | 168,724,854 | 12 | 4 | MIT | 2023-09-14T13:29:39 | 2019-02-01T16:16:11 | Python | UTF-8 | Python | false | false | 521 | py | import pytest
from spinta import spyna
from spinta.core.ufuncs import asttoexpr
from spinta.core.ufuncs import unparse
from spinta.datasets.helpers import add_is_null_checks
@pytest.mark.parametrize('a, b', [
('a=42', 'a=42'),
('a.b', '(a.b=null|a.b)'),
('a.b=42', '(a.b=null|a.b=42)'),
('a.b=42&x.y=4... | [
"sirexas@gmail.com"
] | sirexas@gmail.com |
cb5a5804bb183bc265560bb39dfd0fa084dcb191 | e59f696a96f216cdeea8d638f05b75bb0c26ef55 | /4 Python_Programs/Programs to demo python concepts/dictionary6.py | 84c9df554a7d53fe7bfd6e524ff0c3aa5669335e | [] | no_license | Aditya-A-Pardeshi/Coding-Hands-On | 6858686bdf8f4f1088f6cc2fc0035a53c4875d81 | 0d72d45e92cb0698129636412f7bf5a8d865fd2f | refs/heads/main | 2023-05-29T05:35:34.052868 | 2021-06-14T18:52:57 | 2021-06-14T18:52:57 | 376,928,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | names={1:"aditya",2:"pruthvi"}
print(names)
names[3]="vaibhav"
print(names)
print(names.keys())
print(names.values())
print(names.items())
print(names.pop(3))
print(names)
names.popitem()
print(names)
car = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
car.update({"color": "White"})
print(car)
| [
"adityapardeshi0078@gmail.com"
] | adityapardeshi0078@gmail.com |
e705ef5f50be7cb5a0eb51a895c1f5da236cff84 | 8ae2dc044d056cb9a4b0cd25fbaed977288ba926 | /Django_Assignments/Courses/apps/courses/views.py | a48c8c19c36d3622aec0421f8059b4c959d4a3dc | [] | no_license | februarypython/Alex_Green | 17a3c79d4e1eb751e6b5d76b2ab036506ba43a12 | ad72d761c33708d80200ee896e1d145fd74009c1 | refs/heads/master | 2021-04-30T05:06:31.439798 | 2018-04-03T20:54:02 | 2018-04-03T20:54:02 | 121,407,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect
from .models import Course, Description
# Create your views here.
def index(request):
context = {
"all_courses":Course.objects.all()
}
return render(request, 'courses/index.html', context)
de... | [
"alexkenta@gmail.com"
] | alexkenta@gmail.com |
d92f27ca9d535abe6cdf6d08ac7834185ea6ecfa | c96d2830ab41eeeecbcdce547290f309f416db7d | /scripts/autogen.py | 7a44fa1223b136888a0b7f2a0db17790f0c7c73f | [
"Apache-2.0"
] | permissive | sts-sadr/keras-io | cdb931e06b352ed22ddcde970f9ab15fb8fdf767 | a3bb3dc49b8eb0ebbe8a5d91329f8378eacdd7d4 | refs/heads/master | 2022-06-10T15:09:33.922323 | 2020-05-09T03:36:24 | 2020-05-09T03:36:24 | 262,610,212 | 1 | 0 | Apache-2.0 | 2020-05-09T16:18:25 | 2020-05-09T16:18:24 | null | UTF-8 | Python | false | false | 32,863 | py | """Documentation generator for Keras.io
USAGE:
python autogen.py make
python autogen.py serve
DEPENDENCIES:
pygments
jinja2
markdown
requests
mdx_truly_sane_lists
"""
import shutil
import string
import copy
import json
import re
import os
import sys
from pathlib import Path
import http.server
import socketserver
i... | [
"francois.chollet@gmail.com"
] | francois.chollet@gmail.com |
24594c10ce7472cfce509ac5d43af044c92da390 | dd745566ceee1760c714b17cabd50d2a0a919747 | /Stream-Three/django_todo_project/curl-and-postman/django_todo_project/todo/views.py | ca7730f7f4e46c4932b56caa156d83e5de5bdf1f | [] | no_license | hyohannesgithub/full_stack_solutions | 668fc9de020aa8aa18c64d38d13ca6bfcac12278 | e572d6154c3d63681c124698d7962905f1384671 | refs/heads/master | 2021-01-13T02:53:27.623809 | 2017-01-04T02:49:30 | 2017-01-04T02:49:30 | 77,099,093 | 1 | 0 | null | 2016-12-22T01:24:02 | 2016-12-22T01:24:01 | null | UTF-8 | Python | false | false | 1,191 | py | from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import status
from .serializers import TodoSerializer
from .models import Todo
class TodoView(APIView):
serializer_class = TodoSerializer
def get(self, request, pk):
if pk is not None:
todo = Todo.object... | [
"aaronsnig@gmail.com"
] | aaronsnig@gmail.com |
865bdc4bf45e69f9fff2ccc9dfa07027b7990d5d | 611751253f4b87531f0665464185f0675180c6da | /common/FutuOpenDUtil/StockPolygon.py | 83f611a43661fedcfdb35287add7a41cc276a95e | [] | no_license | xiaoshitoucoding/Quantitative_Trading | 21a878bd71d49ae086352a3591ee0e1a3ec6a45a | 822d97afd0ed0987723b574c22d15cc1325c36ed | refs/heads/main | 2023-07-29T03:42:52.173767 | 2021-09-08T12:41:51 | 2021-09-09T03:27:46 | 394,282,403 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | from futu import *
import time
from Trade.KLManager import split_k_market
from Util.DateUtil import current_str_date
from Util import DateUtil
from Util import DbUtil
key="SjQ6xUW0XAivyp3VuRZ8Ld_WWjDhScfv"
from datetime import datetime,timedelta
from polygon import RESTClient
# from lib import mysql
import json
... | [
"1498053401@qq.com"
] | 1498053401@qq.com |
8e78f745c78549f7987d978c681b0be6d3100663 | 245e1eeabf37961917b951dabc79cf53f3ae4053 | /zopyx/txng3/core/ranking.py | 9f3b97504709cb1b7edcc73402eac59003561a99 | [
"ZPL-2.1"
] | permissive | zopyx/zopyx.txng3.core | 6a509575ba35822c282bc0427909c9f04748f920 | 29a861e3188ce18168dcd8cc042974c2c3094c78 | refs/heads/master | 2023-01-11T21:04:48.884095 | 2019-11-20T15:28:08 | 2019-11-20T15:28:08 | 7,081,556 | 0 | 5 | NOASSERTION | 2022-12-27T15:19:44 | 2012-12-09T18:01:17 | Python | UTF-8 | Python | false | false | 3,150 | py | ###########################################################################
# TextIndexNG V 3
# The next generation TextIndex for Zope
#
# This software is governed by a license. See
# LICENSE.txt for the terms of this license.
###########################################################################
"""
Cosine rank... | [
"yet@gmx.de"
] | yet@gmx.de |
7e09895dc24d4d3cb04770eb7aa216515086283e | da3ed8fc4d9d75af7db9f6b68ec6cc13755423e1 | /macros/doDGFakes.py | a16f4044d7a149f88ea716cf5645786699cbfd78 | [] | no_license | CeliaFernandez/LLP-genAnalyzer | 960c9629126b02aaf8e9e6e394013a3860e97160 | 32b1b4b4bf9b0c34e1b0f15f7c959e14e42ecf49 | refs/heads/master | 2023-03-14T07:40:51.593715 | 2021-03-05T10:30:13 | 2021-03-05T10:30:13 | 344,773,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,097 | py | import ROOT as r
from ROOT import gROOT, TCanvas, TFile, TGraphErrors, SetOwnership, TVector3
import math, sys, optparse, array, copy, os
import gc, inspect
import numpy as np
import include.Canvas as Canvas
####################################### CLASS DEFINITION #########################################
runnin... | [
"celia.fernandez.madrazo@cern.ch"
] | celia.fernandez.madrazo@cern.ch |
def085848cf8d9cf15ffe2f309251c8b2fef2a24 | 53b4a11b5004ecc3344c3d2b3ddcff0dd8405ce1 | /ch03/ex01.py | 3f6bf6dfce2279d512b9108944cde169aea4da7b | [] | no_license | brahim024/python-exc | 5585afb1bbc540bc116267009f30cb172175f7fd | 1bfe67051ffe541d72ca53afc28eb748e8cc45f3 | refs/heads/main | 2023-01-11T11:47:25.723521 | 2020-11-12T13:54:55 | 2020-11-12T13:54:55 | 312,007,060 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # Exercise 2: Rewrite your pay program using try and except so that your program handles non-numeric input gracefully by printing a message and exiting the
# program. The following shows two executions of the program:
# Enter Hours: 20
# Enter Rate: nine
# Error, please enter numeric input
# Enter Hours: forty
# Error... | [
"ifninos168@gmail.com"
] | ifninos168@gmail.com |
e98364aa6b9d14479ab43dbffdfdf8d10d18fba4 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/codeInsight/classMRO/UnresolvedClassesImpossibleToBuildMRO.py | 9514c0f316909536f1040f956c3e5f592d6b0705 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 450 | py | class EtagSupport(object):
pass
class LockableItem(EtagSupport):
pass
class Resource(LockableItem, _Unresolved):
pass
class CopyContainer(_Unresolved):
pass
class Navigation(_Unresolved):
pass
class Tabs(_Unresolved):
pass
class Collection(Resource):
pass
class Traversable(obje... | [
"andrey.vlasovskikh@jetbrains.com"
] | andrey.vlasovskikh@jetbrains.com |
27f503e7c422772c24ce153bc87b06880c9c658f | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/pip/_vendor/urllib3/connectionpool.py | 9d267409a6e90f974b9438072ffd9a1856404c88 | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:0fdf77b0a4b3da739ff1d65dd83e5c5284d90bafed2a0ad49b1ef6e089c85d36
size 35993
| [
"Nqk180998!"
] | Nqk180998! |
f241d32ef6def50c89e8b82878f13f7406953088 | e1a2b5ad3700032edd85a78501fed30cd4d7d120 | /Proyecto_Viva/apps/Territorio/models.py | 90ffe5874a791bdc445f2b0458ddc15194d9b930 | [] | no_license | yrrodriguezb/Proyecto_Viva | 714cca81288a28b11ea5b5e023a76391e308e13f | 1ef97b6184d2f417d3d1092b8de982fa3c934e99 | refs/heads/master | 2021-01-24T03:52:43.254028 | 2018-03-11T17:55:32 | 2018-03-11T17:55:32 | 122,910,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class Pais(models.Model):
codigo = models.CharField(primary_key=True, max_length=2, verbose_name="Código")
descripcion = models.CharField(max_length=254, verbose_name="Descripción")
class Meta:
db_table ... | [
"yrrodriguezb@gmail.com"
] | yrrodriguezb@gmail.com |
03ebe5c5ea3d84dc2b047821740065b9bff9eb61 | 4813839e2f0112f6c7760fc1743e2ff0e9ab58c9 | /src/ch4_auth/blog_explorer_with_auth.py | 09c9b17348e7dfe3afc26dcace0d3c259b759526 | [
"MIT"
] | permissive | penguinistakc/consuming_services_python_demos | 0a2c859f21fd4bd72b5435381c0f4364c7ec19a2 | 4990048ef3af872d76d43526e898805197b871a0 | refs/heads/master | 2023-06-03T17:50:57.724100 | 2021-06-25T18:59:14 | 2021-06-25T18:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py | import datetime
import requests
import collections
Post = collections.namedtuple("Post", 'id title content published view_count')
base_url = 'https://consumerservicesapi.talkpython.fm/api/restricted/blog/'
user = 'kennedy'
password = 'super_lockdown'
def main():
print("Blog explorer (requests version, with aut... | [
"mikeckennedy@gmail.com"
] | mikeckennedy@gmail.com |
62f49b178852b8683ad0d623e5544d427a42c51e | 902198ab44ff0c74f8176e3eb3c6850c67ece463 | /fwaas-service-chain/neutron-66/neutron/agent/linux/external_process.py | d0e9908802bc81f5ac8191f5cd514176895c1b26 | [
"Apache-2.0"
] | permissive | rajeshmohan/openstack | 7ca543e86ce5b18be9615590128bf2811c019ef5 | 19eaf41c20503a7320e9895271802d11675dae2f | refs/heads/master | 2021-03-12T20:29:20.842361 | 2014-09-12T00:48:08 | 2014-09-12T00:48:08 | 23,939,961 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2012 New Dream Network, LLC (DreamHost)
#
# 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/li... | [
"rajesh.mlists@gmail.com"
] | rajesh.mlists@gmail.com |
6f5432a4f987e6d8d31ed9f779525d0fd5446494 | e4f8b14cead542586a96bcaa75993b0a29b3c3d0 | /pyNastran/bdf/dev_vectorized/solver/solver_args.py | 0f6ed01a109f83da424cfa968f464854104d8881 | [] | no_license | afcarl/cyNastran | f1d1ef5f1f7cb05f435eac53b05ff6a0cc95c19b | 356ee55dd08fdc9880c5ffba47265125cba855c4 | refs/heads/master | 2020-03-26T02:09:00.350237 | 2014-08-07T00:00:29 | 2014-08-07T00:00:29 | 144,398,645 | 1 | 0 | null | 2018-08-11T15:56:50 | 2018-08-11T15:56:50 | null | UTF-8 | Python | false | false | 2,356 | py | import os
import sys
import pyNastran
from docopt import docopt
def run_arg_parse(mode=''):
msg = "Usage:\n"
msg += " pyNastran%s BDFNAME [--old=<OLD>] [--out=<OUT>]\n" % mode
msg += ' [--k=<K_MATRIX>] [--m=<MASS_MATRIX>] [--f=<F_MATRIX>]\n'
msg += ' pyNastran%s -h | --help\n' % mode
... | [
"mesheb82@abe5364a-6225-a519-111c-932ebcde5b3b"
] | mesheb82@abe5364a-6225-a519-111c-932ebcde5b3b |
7a38656ec08fafaf229f2aea73a9edb5a1544232 | eb7281135d73e253500421c0464329e12fcac3b1 | /honeybee/radiance/command/objview.py | 1b1ae167aa6ad0e7e951bf537dcbb797b7330fc7 | [] | no_license | ladybug-tools/honeybee-anvil | 8f1820e4d17ef2314a534bb1c0afa00569a62e89 | 5be53caaf412d247ca88c90ebe4e193b2ff7a780 | refs/heads/master | 2021-11-20T04:55:33.967003 | 2018-01-03T00:51:31 | 2018-01-03T00:51:31 | 114,935,599 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,718 | py | # coding=utf-8
from _commandbase import RadianceCommand
from ..datatype import RadianceBoolFlag, RadianceValue
from ..datatype import RadianceNumber
import os
from pyRad import objview
class Objview(RadianceCommand):
use_open_gl = RadianceBoolFlag('g', 'use GlRad(openGl) to render the scene')
hemisphere_up =... | [
"sadeghipour@gmail.com"
] | sadeghipour@gmail.com |
db56b49515c99f5b105ee5040f1e6eb905ce149e | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/semantic_segmentation/MMseg-swin/configs/convnext/upernet_convnext_xlarge_fp16_640x640_160k_ade20k.py | 1f61f957da7544ea96e2db56701db992b6cc66d5 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 5,002 | py | # -*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2017
# All rights reserved.
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
c1f6c0b59b12c09a72fc48b753314a517c22373f | e6556525bc4e1d056f70f5112ea5693c07ec3ea7 | /Day-095/assertion-2.py | d2a4879708f2b9b77cf0a0cfb0c82552a88e6944 | [
"MIT"
] | permissive | guliyo/100DaysofCode | f26bbaab31867f63a03e53aab83eb6594c29ef17 | 04c994572ef4fa3763304e01fcdae8b9aa028eca | refs/heads/master | 2020-08-04T18:27:22.885866 | 2019-08-27T06:06:14 | 2019-08-27T06:06:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python3
"""
Write an assert statement that triggers an AssertionError
if the variable spam is an integer greater than 10.
"""
def check_int(spam=None):
"""
IMPORTANT:
Note that we are asserting (forcing) a condition,
and the Assert kicks in when the condition is not satisfied.
Hence... | [
"arvimal@yahoo.in"
] | arvimal@yahoo.in |
2c6d01623e94fc77a9a75241cb078199ebaf144c | 796228e3c6b808bbdc3e5a47d828840fca8fe7d6 | /DoliotChat/chat/urls.py | 57098c25bfadb505fc64335c581ff4271e9182d5 | [] | no_license | sanix-sandel/DoliotChat | ddf32faf606c334da8b60493a079f294ba425cd8 | 4ab478b701c20c041f5d5d8bcb3d871d2fe3edac | refs/heads/master | 2021-10-19T17:33:21.338859 | 2019-02-22T12:17:27 | 2019-02-22T12:17:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from django.urls import path
from django.conf.urls import include
from rest_framework import routers
from .views import ThreadViewSet
router = routers.DefaultRouter()
router.register('thread',ThreadViewSet)
urlpatterns = [
path('',include(router.urls))
]
| [
"chamakhabdallah8@gmail.com"
] | chamakhabdallah8@gmail.com |
5d01db7a74ba02944aa2c3ec261663b9d6f18cec | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Control/xAODRootAccess/python/GenerateDVIterators.py | 6ebf40c1300d2f84d26213762aeb3e87e40ed060 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# $Id: GenerateDVIterators.py 728645 2016-03-09 12:19:46Z krasznaa $
#
# Module used to generate proper Python iterators for all the known
# DataVector container types.
#
# Pull in ROOT:
import ROOT
# Make sure that the transient trees are exp... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
95516f0bf69d8f3d326a65ee510313fb3396afc6 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/eqpt/egrbytes1h.py | a791cd19e8efe611e692dd90aea4cdfcb940a6e1 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 43,674 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
536c20be39bd906e5552d9c1b2846f730e09e8e1 | e8274f167fd219ef78241ba8ea89e5d5875ed794 | /cloud/cinder/cinder/tests/fake_driver.py | 3fe19f3b3d1331373c87741c8fd8424c58eb8293 | [
"Apache-2.0"
] | permissive | virt2x/folsomCloud | 02db0147f7e0f2ab0375faf4f36ca08272084152 | e6fd612dd77f35a72739cf4d4750e9795c0fa508 | refs/heads/master | 2021-01-01T17:26:28.405651 | 2013-10-17T12:36:04 | 2013-10-17T12:36:04 | 13,647,787 | 0 | 1 | null | 2020-07-24T08:25:22 | 2013-10-17T12:10:24 | Python | UTF-8 | Python | false | false | 3,494 | py | # Copyright 2012 OpenStack 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 a... | [
"quan.xu@intel.com"
] | quan.xu@intel.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.