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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5c7616aab880b8627ecf408e28c5d0fd92c361c3 | c54f5a7cf6de3ed02d2e02cf867470ea48bd9258 | /pyobjc/PyOpenGL-2.0.2.01/src/shadow/GL.3DFX.tbuffer.0001.py | e9fc25dbf782313f2fe2acf197b631a13a69c4d1 | [] | no_license | orestis/pyobjc | 01ad0e731fbbe0413c2f5ac2f3e91016749146c6 | c30bf50ba29cb562d530e71a9d6c3d8ad75aa230 | refs/heads/master | 2021-01-22T06:54:35.401551 | 2009-09-01T09:24:47 | 2009-09-01T09:24:47 | 16,895 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | # This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _tbuffer
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "this"):
if isinstance(value, class_... | [
"ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25"
] | ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25 |
7cd1a27a27d0669662e639931e57b15c76d48382 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/BuildLinks1.10/test_input/CJ_16_1/16_1_1_roy999_main.py | d064a2f9d473ab5a4c2b76814eef2cbb9857e32e | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 388 | py |
def process(input_file, out):
t = int(input_file.readline())
for i in range(1, t + 1):
line = input_file.readline().strip()
result = solve(line)
out.write("Case #%i: %s\n" % (i, result))
def solve(s):
li = [s[0]]
for c in s[1:]:
if c < li[0]:
li.append(... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
801203ff33777b339565f62d514f14301dc94b25 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/qumulo/azext_qumulo/aaz/latest/qumulo/__cmd_group.py | fabbbf233a1f1fca33e7e3fe0128b75b847faa29 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 594 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
12cdaf829a0bb0cf9396af90e035ecbb241bf6a3 | cf19e3a857d488ca449e515f641c686c7409fa87 | /C01-Python-Basics/13-C01P02/Solution01/solution.py | e603c40480ffc9c2f8355ab07cb8e5d1095d5c40 | [
"MIT"
] | permissive | CreeperBeatz/Python-101-Forever | c2133962c0bd50e09f58df3908c8c52234363b7b | 5b3e8706bec84104712d96419210a1e266b4d518 | refs/heads/master | 2023-06-07T07:53:23.796406 | 2021-07-05T14:19:33 | 2021-07-05T14:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # Video - https://youtu.be/PmW8NfctNpk
def sum_of_digits(n):
n = abs(n)
digits = []
char_digits = list(str(n))
for char_digit in char_digits:
digits.append(int(char_digit))
return sum(digits)
tests = [
(1325132435356, 43),
(123, 6),
(6, 6),
(-10, 1)
]
for n, expected in... | [
"radorado@hacksoft.io"
] | radorado@hacksoft.io |
49574c1f871402a4d3ddd50ed609a9a7baf3f6d9 | 76b4790cc405d8287fccfa2dd691f4415fc88a11 | /format/version/blurayversion.py | 97064f571b887faf7f9db879eea0cf2bb3d46f01 | [] | no_license | Nicba1010/blumount-python | 8131f6685469e73b05068c3e41c9b709ccc21a5a | 648c44b74617186172c767c66c98299e7688c056 | refs/heads/master | 2022-12-16T15:14:12.294720 | 2020-09-13T11:55:01 | 2020-09-13T11:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from aenum import Enum
class BluRayVersion(Enum):
VERSION_1 = "0100"
VERSION_2 = "0200"
VERSION_3 = "0300"
| [
"nicba1010@gmail.com"
] | nicba1010@gmail.com |
0c5769fd45ee518599738a13853fe563e251f03f | 529e713a78e82de2ae5d44cfb8ef209e0894d72a | /typer-cli-python/source_code_step_3/rptodo/cli.py | 89531fcd5bf31d59d49aa457dba1661b7d555049 | [
"MIT"
] | permissive | realpython/materials | cd2f548276be2c82f134ca03eadb1cd279e0f26e | d2d62756d3854f54a12a767f2bf9470486c0ceef | refs/heads/master | 2023-09-05T22:12:29.806738 | 2023-08-31T20:56:28 | 2023-08-31T20:56:28 | 132,374,697 | 4,678 | 6,482 | MIT | 2023-09-12T22:22:06 | 2018-05-06T20:46:18 | HTML | UTF-8 | Python | false | false | 1,423 | py | """This module provides the RP To-Do CLI."""
from pathlib import Path
from typing import Optional
import typer
from rptodo import ERRORS, __app_name__, __version__, config, database
app = typer.Typer()
@app.command()
def init(
db_path: str = typer.Option(
str(database.DEFAULT_DB_FILE_PATH),
"-... | [
"lpozor78@gmail.com"
] | lpozor78@gmail.com |
5f91e1a1b7cb3ff8938287fb6fb8a0b3e3c9cd66 | b4e4399f6d18ee83760604fc67c90d3f5eac52dd | /10 Days of Statistics/Day4.BinomialDistributionI.py | 165bbc7384022eb86ad2468c05a50783bcab3f4c | [] | no_license | angelvv/HackerRankSolution | 88415c3ace68ddc10c76ae8df43ab5193aa921d4 | 8b2c323507f9a1826b4156aeab94815f41b6fc84 | refs/heads/master | 2021-07-17T20:51:50.758364 | 2020-05-26T17:25:05 | 2020-05-26T17:25:05 | 167,896,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
boy,girl = list(map(float, input().split())) # or =[float(x) for x in input().split()]
pBoy = boy/(boy+girl)
# hard code calculation
p0Boy = (1-pBoy)**6
p1Boy = 6 * pBoy * (1-pBoy)**5
p2Boy = 6*5/2 * (pBoy**2) * ((1-pBoy)**4)
pAtLeast3Boy = 1 - p0Bo... | [
"angel.huang90@gmail.com"
] | angel.huang90@gmail.com |
70b366de4381df49308e12f0fad8a1925a18c1a7 | b6bb53780f3d186ccbc6a900a977a766b6ac4ffb | /doc/src/slides/src/solver.py | 3783db7b97e638d13cef6d46ee58fd929429c1bc | [
"BSD-3-Clause"
] | permissive | wolf9s/doconce | 1fa91766cad77dd16debade99e48954cfc7b6dee | 0c7fecb267502a74cdeb7d90100cd2bdc0701cc1 | refs/heads/master | 2021-01-17T15:44:51.703555 | 2015-09-28T07:59:41 | 2015-09-28T07:59:41 | 43,336,393 | 1 | 0 | null | 2015-09-29T01:02:48 | 2015-09-29T01:02:48 | null | UTF-8 | Python | false | false | 4,512 | py | from numpy import *
from matplotlib.pyplot import *
import sys
def solver(I, a, T, dt, theta):
"""Solve u'=-a*u, u(0)=I, for t in (0,T]; step: dt."""
dt = float(dt) # avoid integer division
N = int(round(T/dt)) # no of time intervals
T = N*dt # adjust T to fit time step dt... | [
"hpl@simula.no"
] | hpl@simula.no |
624ad33267ce9d85d2f3e6466b07a72980e4d01d | c8cee25ecb60ca3e6ce5e24c37db57f82f9858f6 | /Vision Artificial/Emparejamiento.py | 272fabf738a5fc92fc5a35e7e1cfddf092898c0c | [] | no_license | mecomontes/Python | a0b4a0b69ae33ad3623e908731710563392d1615 | daba4247cca90c43a979e3e3f292cd7b8951b3d0 | refs/heads/master | 2023-05-30T05:24:41.999196 | 2020-03-23T02:30:09 | 2020-03-23T02:30:09 | 249,317,310 | 1 | 0 | null | 2023-05-22T22:42:36 | 2020-03-23T02:29:38 | Python | UTF-8 | Python | false | false | 4,283 | py | """ Emparejamiento de plantillas
Teoría
El emparejamiento de plantillas (o template matching en inglés) es un método para buscar y encontrar la ubicación de una imagen de
plantilla en una imagen más grande. OpenCV viene con la función cv2.matchTemplate() para este pr... | [
"1574@holbertonschool.com"
] | 1574@holbertonschool.com |
13576721467bab9704a406a6cae793fe3350b13e | 576cc83449e10fd3f98281970c46016ea7a5aea2 | /Exercise_for_Job/华为牛客网/华为.py | e16a1edaa5afa95c959bd857bca6a52cf8e8b8f3 | [] | no_license | HotView/PycharmProjects | 215ab9edd341e3293daebcf86d97537f8cd28d75 | 61393fe5ba781a8c1216a5cbe7e0d06149a10190 | refs/heads/master | 2020-06-02T07:41:53.608742 | 2019-11-13T08:31:57 | 2019-11-13T08:31:57 | 191,085,178 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | data = input().split()
str_data = []
def constr(str):
count = 8-len(i)
con_str = ''
while(count):
con_str =con_str+'0'
count = count-1
return i+con_str
for i in data[1:]:
if len(i)<=8:
str_data.append(constr(i))
else:
while(len(i)>8):
str_data.append(i... | [
"864773190@qq.com"
] | 864773190@qq.com |
ee24487f3caeb07665544aa96a98f6b62d4090df | f2a623b5fe2bc6a8bcaa330d15a60b84c6dddc18 | /models/cnn_mine_gcn.py | b0e40d65f876e73398e4d9e726fa8b4886f81429 | [] | no_license | thilinicooray/VSRL | 6822c58a29b005dab39f2d62444234c2efa1eb9c | 15077ace266e75d1e704910ae1e69fbfdfc902aa | refs/heads/master | 2020-03-22T03:40:52.137380 | 2018-08-02T06:16:35 | 2018-08-02T06:16:35 | 139,445,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,292 | py | import torch
import torch.nn as nn
import torchvision as tv
import torch.nn.functional as F
from . import utils
import math
import torch.nn.init as init
import random
from .pygcn import gcn
from .action_graph import action_graph
from .faster_rcnn.utils.config import cfg
class resnet_modified_small(nn.Module):
def ... | [
"thilinicooray.ucsc@gmail.com"
] | thilinicooray.ucsc@gmail.com |
be9640eae3af444d57216e80c1f052482168c13c | 70765f8ede8f2f652ecd092cc5569d66026863d3 | /gate.py | 5a090e62bc4ec5c415a4801d83ec8dccc79f8870 | [] | no_license | sfd198977/RefinementTest | 237e8fc46902d3b6380913c17380279ba0ba9e1f | b3ca4d855467857fd269075ad2c40e55f7b459aa | refs/heads/master | 2020-03-27T08:59:41.536047 | 2017-11-01T11:29:20 | 2017-11-01T11:29:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,669 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# Author: Donny You(yas@meitu.com)
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.functional as F
import numpy as np
import torch.optim as optim
import math
class Downsampler(nn.Module):
def __init__(self):
super(Downsample... | [
"youansheng@gmail.com"
] | youansheng@gmail.com |
ebb69f7ee17d733cf4f31b161a6e6a4d3c547dc5 | 23fddc940a266c2d1d0e0b1687c36cdbcc9d54d9 | /app/login/model/manager.py | 5528fcd8f4ce6716526ba111e2d8e93647621f0f | [] | no_license | Cuick/traversing | 210fcfb1c780037de59343fffeb4fa4d3f2eae32 | c78982580af7f63c8bff4dcb37005b7f7c682b5b | refs/heads/master | 2021-01-10T17:38:37.899460 | 2016-11-18T06:06:55 | 2016-11-18T06:06:55 | 55,397,540 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | # -*- coding:utf-8 -*-
"""
created by sphinx on 18/9/14.
"""
import os
import json
import time
account_cache = {}
class ServerManager(object):
def __init__(self):
self._servers = {}
self._is_static = False
if os.path.exists('server_list.json'):
sl = json.load(open('server_list... | [
"zxzxck@163.com"
] | zxzxck@163.com |
63cbc8726893fed727dd884f838445cd7a2fd8e0 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /s3api_read_1/bucket-cor_get.py | 906435f85b7feabef6ef4ae7f3baf051c9a51d1e | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import read_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/get-bucket-cors.html
if __name__ == '__mai... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
b34c147b369988436ae350599d980ba016babbb4 | dd65b9bc9475a6cc58817fd45c078e5a6abae241 | /Tensorflow/car/web-tf2/gcf-packs/tensorflow2.0/source/tensorflow/_api/v2/compat/v1/test/__init__.py | bb58509c61e8cafbbf2c339d984a1ae2bc2e3996 | [] | no_license | jumbokh/gcp_class | 5b68192ab4ad091362d89ad667c64443b3b095bb | 0a8e2663bfb5b01ce20146da178fa0c9bd7c6625 | refs/heads/master | 2021-10-22T09:22:04.634899 | 2021-10-21T12:46:10 | 2021-10-21T12:46:10 | 228,617,096 | 8 | 7 | null | 2021-08-25T15:55:30 | 2019-12-17T12:58:17 | Python | UTF-8 | Python | false | false | 1,438 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Testing.
See the [Testing](https://tensorflow.org/api_guides/python/test) guide.
Note: `tf.test.mock` is an alias to the python `mock` or `unittest.mock`
depending on the python version... | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
bf244d1b65a6a4561dbd18468710c9bbcc05e83c | 3529ecaa44a53172094ba13498097057c8972723 | /Questiondir/655.print-binary-tree/655.print-binary-tree_112661405.py | c0358586c049dfc21db112211b47cf96f501e3f7 | [] | no_license | cczhong11/Leetcode-contest-code-downloader | 0681f0f8c9e8edd5371fd8d0a1d37dcc368566b6 | db64a67869aae4f0e55e78b65a7e04f5bc2e671c | refs/heads/master | 2021-09-07T15:36:38.892742 | 2018-02-25T04:15:17 | 2018-02-25T04:15:17 | 118,612,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def ht(self, root):
if root is None:
return 0
return 1 + max(self.ht(root.left), self.ht(root... | [
"tczhong24@gmail.com"
] | tczhong24@gmail.com |
3e08e5e55afb4c7621c582c8857f90a7fe2b2b29 | 0d24036dcf8736c0392a1ee1c2f3b45633221d8a | /etc/src/genpy-ipv4-ospf-oper/cisco_ios_xr_ipv4_ospf_oper/ospf/processes/process/default_vrf/areas/area/interface_briefs/interface_brief/ospf_sh_if_brief_pb2.py | 028ee948eb83579f5d6488f2d82242c9e7e73fc6 | [] | no_license | mspiez/telemetry_collector | c4b97c6686748fc20748898a25e9fc756d2d0b63 | 52ed12c06debfe04181f0bfea9854a66ed8bb3df | refs/heads/master | 2020-12-19T23:28:08.358956 | 2020-05-02T19:54:38 | 2020-05-02T19:54:38 | 235,883,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 15,817 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cisco_ios_xr_ipv4_ospf_oper/ospf/processes/process/default_vrf/areas/area/interface_briefs/interface_brief/ospf_sh_if_brief.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descri... | [
"mspiez@gmail.com"
] | mspiez@gmail.com |
901fc421da3ad2c486a8789dd60bf1740f10dabf | 8da76aabcf9cfea3478f56037edbb5fa1513140b | /tallsmall/production/tallsmall/account/.svn/text-base/models.py.svn-base | 0b5425bbac404be079a32c07f10089f307f8dc28 | [] | no_license | mikanyman/.virtualenvs-legacy | 039479f31f2ca9f9a3d3544d8837429ddd0a7492 | 5486128b5b3b7ddb9ec81d43e3bb601a23b4025a | refs/heads/master | 2020-12-31T07:10:07.018881 | 2017-02-01T02:16:55 | 2017-02-01T02:16:55 | 80,566,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,390 | """
#http://www.turnkeylinux.org/blog/django-profile
#http://docs.django-userena.org/en/latest/installation.html
from django.contrib.auth.models import User
from userena.models import UserenaLanguageBaseProfile
from django.db import models
#class UserProfile(models.Model):
class UserProfile(UserenaLanguageBa... | [
"mika.nyman@synapse-computing.com"
] | mika.nyman@synapse-computing.com | |
e08a02cbe98519c266ea2415228cd8b1314f6563 | 7cd2c3868d83be96f2699eeed4f6f4ae9dbf3a35 | /programmers/DFSorBFS/타겟넘버.py | 3e62a03c143dbc24cf8dad5323f0f1826310106e | [] | no_license | Kimyechan/codingTestPractice | 4189e97f8543b9afc87374539acb5d1cecf40ce6 | c9d3878eb0d47fab22151fc0d39eef1dfd2210b5 | refs/heads/master | 2023-06-09T14:34:55.984710 | 2021-06-27T18:30:45 | 2021-06-27T18:30:45 | 282,819,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import sys
import copy
sys.setrecursionlimit(100000)
operatorList = []
# def dfs(operators, count):
# if len(operators) == count:
# operatorList.append(copy.deepcopy(operators))
# return
#
# for x in [1, -1]:
# operators.append(x)
# dfs(operators, count)
# operators.p... | [
"vlvkcjswo7@naver.com"
] | vlvkcjswo7@naver.com |
b583fa1b34037eec42586638fbb6f6bdc628533d | 41de4210af23a8a8a3ca7dd090bb51faecf4a0c8 | /lib/python3.5/site-packages/statsmodels/discrete/tests/results/results_discrete.py | 53d2caf897ce0a673bf33158ff925a0e447ee2f1 | [
"Python-2.0"
] | permissive | randybrown-github/ziplineMacOS | 42a0c2bfca2a54baa03d2803dc41317647811285 | eb5872c0903d653e19f259f0800fb7aecee0ee5c | refs/heads/master | 2022-11-07T15:51:39.808092 | 2020-06-18T20:06:42 | 2020-06-18T20:06:42 | 272,631,387 | 0 | 1 | null | 2022-11-02T03:21:45 | 2020-06-16T06:48:53 | Python | UTF-8 | Python | false | false | 51,708 | py | """
Test Results for discrete models from Stata
"""
import os
import numpy as np
#### Discrete Model Tests ####
# Note that there is a slight refactor of the classes, so that one dataset
# might be used for more than one model
cur_dir = os.path.abspath(os.path.dirname(__file__))
class Anes(object):
... | [
"randybrown18@me.com"
] | randybrown18@me.com |
d4931041ad734c7569f7175eb78f7c7d99cff6c0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/322/103061/submittedfiles/principal.py | 80de3f765d209fcbcedb9c1411a4cfa34c140606 | [] | 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 | 90 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
i=0
while (i<10):
i+=1
print(i)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0f054b6e23fbaf3c471d841c202f72d1f2244345 | 62c523b000e43b41bcb2bc96259f2e0136e8548f | /src/data/data.py | 703cef216a5a30549d909773faa9f1b5d06e41ca | [] | no_license | OlofHarrysson/pytorch-foundation | d7e0bd6d4bdf52bcf65d0c6e370e8e78ee0219cd | 6632e5260302669c458dde28be47c03fed052e53 | refs/heads/master | 2021-10-07T22:46:05.674105 | 2021-01-27T19:20:22 | 2021-01-27T19:20:22 | 212,659,773 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | from torchvision import datasets
from torch.utils.data import DataLoader
from collections import namedtuple
from anyfig import get_config
from ..transforms import get_train_transforms, get_val_transforms
from ..utils.meta_utils import get_project_root
def setup_dataloaders():
dataloaders = namedtuple('Dataloaders'... | [
"harrysson.olof@gmail.com"
] | harrysson.olof@gmail.com |
51b475ef145277d90a9da2e2b9fd07047a6f501b | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/classification/LResNet100E-IR/prof.py | 7c2e0f01a90ddcd74354f146f728d0b9b6cc1964 | [
"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 | 4,277 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
f676137f1b3df9dd44c03457f8de846a6d8ac76e | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/4187084/snippet.py | 47fc8edb16f6917914298e0cefd3eb24d7a13d52 | [
"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 | 2,729 | py | # Name: EXIFmover.py
# Author: Brian Klug (@nerdtalker / brian@brianklug.org)
# Purpose:
# Move Files into directory based on EXIF data make and model
# Designed to un-clusterfuck the Dropbox camera upload directory which is a mess of every
# JPEG and PNG ever if you use it like I do on a bunch of phones, and thus tot... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
6cc8562d0421b4e61baf344ba161216a74b334cb | e802ed36cbfb55b87654b8aa7932ae2fc2ae7d43 | /u05ps02q03.py | 46947989451ecf5e42a777c1666b562aa1a090d4 | [] | no_license | maryammouse/cs101 | 29f493ab421117fb9bc038da4de7c5bdc29ca7ac | 6c15855c7cdc24972a0ff370d417c5de8278ce9c | refs/heads/master | 2016-09-01T22:34:16.016963 | 2014-05-26T21:54:49 | 2014-05-26T21:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | # Write a procedure, rotate which takes as its input a string of lower case
# letters, a-z, and spaces, and an integer n, and returns the string constructed
# by shifting each of the letters n steps, and leaving the spaces unchanged.
# Note that 'a' follows 'z'. You can use an additional procedure if you
# choose to as... | [
"stellanova@Maryams-MacBook-Air.local"
] | stellanova@Maryams-MacBook-Air.local |
fbee9da62d0a7ff55bff70fe12034d97b7805070 | 55ceefc747e19cdf853e329dba06723a44a42623 | /_CodeTopics/LeetCode_contest/weekly/weekly2021/248-[smallweek]/248_1.py | 0810c9fe1f89962d294e01c337639653707396fc | [] | no_license | BIAOXYZ/variousCodes | 6c04f3e257dbf87cbe73c98c72aaa384fc033690 | ee59b82125f100970c842d5e1245287c484d6649 | refs/heads/master | 2023-09-04T10:01:31.998311 | 2023-08-26T19:44:39 | 2023-08-26T19:44:39 | 152,967,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | class Solution(object):
def buildArray(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
n = len(nums)
res = [-1] * n
for i in range(n):
res[i] = nums[nums[i]]
return res
"""
https://leetcode-cn.com/submissions/deta... | [
"noreply@github.com"
] | BIAOXYZ.noreply@github.com |
71b966c7a8456e8f3cde13f79f2955b28d5a2c91 | d9b5fc6e35e56e182fe1bfe9bafd2562a5d9cf33 | /bluefly/areadetector_sim.py | 9e8a4cac9d449257fc4dc3b75dcff4ded04a82b3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | untzag/bluefly | 6406ef19b573c05a52bcd6cc53c27c5db1ca5cdf | 5f461998a3f629a5f07e8733ab937a0302fa92f6 | refs/heads/master | 2022-12-16T13:52:30.621420 | 2020-09-17T11:12:06 | 2020-09-17T11:12:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,981 | py | import asyncio
import h5py
import numpy as np
from bluesky.run_engine import get_bluesky_event_loop
from bluefly.areadetector import DetectorDriver, HDFWriter
from bluefly.motor import MotorDevice
from bluefly.simprovider import SimProvider
def make_gaussian_blob(width: int, height: int) -> np.ndarray:
"""Make ... | [
"tom.cobb@diamond.ac.uk"
] | tom.cobb@diamond.ac.uk |
f32cc6d452d796bbeeafae91e91b5870cf55b46f | 4f57124af46dd2a73166239df9c53af561d5f5d6 | /venv/bin/neutron | 1189e745b04479bcb9c4c7059039624328a25156 | [] | no_license | briankoco/cc-scripts | 5db6e8c498d8ff103cde6c7e4914620cc5bb2c52 | 51e78f88e96c51cc5d4c8fe6debae45ab1953724 | refs/heads/master | 2018-09-17T15:07:12.800875 | 2018-06-05T20:30:35 | 2018-06-05T20:30:35 | 120,139,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/Users/briankoco/cc-scripts/venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from neutronclient.shell import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"brian.kocoloski@wustl.edu"
] | brian.kocoloski@wustl.edu | |
35be7f5c28be793d70e91298fc6b79f1a31dec25 | 64cf985225d14e1954ed91e5a261a465a44b0cc5 | /mirror/mirror/settings.py | 225f4f100303392553e2236166673a8b2600eb68 | [] | no_license | pinewoods/back-to-game | dee3c76e85186c86c6feaa0bd56635c1e460e6f0 | 824734bbd2e235886e3cb8e30d587949896a0d7e | refs/heads/master | 2021-01-21T12:26:50.102778 | 2015-05-13T14:13:37 | 2015-05-13T14:13:37 | 34,489,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | """
Django settings for mirror project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"vido@usp.br"
] | vido@usp.br |
92d63691e4e9d10e1eea6a25f16402a6962731df | c61a28aba19f7cdf9a5127e8a782bf115c265e70 | /apps/recruitpro/recruitpro/recruitpro/doctype/territory/test_territory.py | 8009c125ad483c92f2292298cee52bee7615b914 | [
"MIT"
] | permissive | sharmilaviji/RecruitPRO-NEW | fa72c8fc00f469a41798b1047c11dcc470fbc495 | dcfaedebe56b45acd6ddcab7e24c939b853a2c8c | refs/heads/master | 2021-05-26T12:14:12.611154 | 2020-04-27T04:40:50 | 2020-04-27T04:40:50 | 254,125,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, teampro and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestTerritory(unittest.TestCase):
pass
| [
"sharmiviji1997@gmail.com"
] | sharmiviji1997@gmail.com |
29436f5e76326fb5b9a84bacfe0b06347836e309 | 8050ac9f2cb8cdad2cadea6c9038b96378cdff7e | /examples/tutorials/analysis-2d/ring_background.py | df2dd0fbab49bf43341c61af73687b95fa783d60 | [
"BSD-3-Clause"
] | permissive | luca-giunti/gammapy | 0d3af457d33e2c1f79d3bd054082decb6809f00f | 40fe44102105f6570cb4fd44deac2cccc98187c2 | refs/heads/master | 2023-02-21T15:57:57.973227 | 2022-09-22T20:39:33 | 2022-09-22T20:39:33 | 169,222,628 | 0 | 0 | null | 2019-02-05T10:24:00 | 2019-02-05T10:24:00 | null | UTF-8 | Python | false | false | 9,081 | py | """
Ring background map
===================
Create an excess (gamma-ray events) and a significance map extracting a ring background.
Context
-------
One of the challenges of IACT analysis is accounting for the large
residual hadronic emission. An excess map, assumed to be a map of only
gamma-ray events, requires a g... | [
"axel.donath@mpi-hd.mpg.de"
] | axel.donath@mpi-hd.mpg.de |
90840608526f68e58b13cf7c7de7a1412b61919a | 159cd20a8570f4acce8d32ed2d1b052be25e3936 | /exercises/models.py | b6f635bad52bf700883c097900546b6344241473 | [] | no_license | fredericosachweh/amostra2 | 95e717eb0ce7ef03326670326c00765ae8bc6a35 | e2d24a82462a735fc722f0b228be04a4495185c1 | refs/heads/master | 2021-01-17T14:48:32.079439 | 2014-10-09T00:08:29 | 2014-10-09T00:08:29 | 84,095,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,441 | py | from decimal import Decimal
import datetime
import random
from django.db import models
from django.contrib.sites.models import Site
from django.contrib.auth.models import User
from django.template.defaultfilters import floatformat
from django.utils import timezone
from django.utils.functional import cached_property
fr... | [
"frederico@turbosys.com.br"
] | frederico@turbosys.com.br |
43e980b35ac84de26ba65cce540a4d5a8ca11f20 | 6d2cf861c46230de97d5244b7915057419f8125d | /sdk/cognitiveservices/azure-cognitiveservices-language-textanalytics/samples/async_samples/sample_recognize_entities_async.py | 6111e4ec8f8009664718b89662fd6c86bef2616e | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | pombredanne/azure-sdk-for-python | 075bfef712c014445bacdef4dd05aacd82673dcc | ebd73c3fc22dcf17be2a903f32bdd95d9090f283 | refs/heads/master | 2020-10-01T15:56:00.475346 | 2019-12-11T21:31:24 | 2019-12-11T21:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,464 | 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.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | pombredanne.noreply@github.com |
7c13f5d302cee4d4a134bad26d56721e3d3d4450 | fb2a07bbf368076b83e31639c4152799fcccfdcd | /siteEtu/accountCreator.py | bac6f408ceb7f1c017bd05300e040e40f5634235 | [] | no_license | Trymal/TrombinoscopeCorrec | ae696473593c6d01b2533765c037e436f84fea98 | cebcfffa7df5a45d60da125b11523f933c0341e2 | refs/heads/master | 2022-07-08T08:21:07.441738 | 2020-05-10T15:51:48 | 2020-05-10T15:51:48 | 257,204,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import random
import hashlib
from setup import *
def saveAccount(account):
with open("./comptes.csv", "a") as fichier:
fichier.write(account)
nb_comptes = 150
m_hash = hashlib.sha256()
for nb in range(nb_comptes):
prenom = random.choice(PRENOMS)
nom = random.choice(NOMS)
filiere = random.... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
df11f48a42b4597d6517b5f0ba783ccce171f5c3 | 382df78024f588acea08039a0b0a9e24f297b6a3 | /python/pandas/ewma.py | bee90fab01dfaa6c378c98d0f5f613642413a4a8 | [] | no_license | id774/sandbox | c365e013654790bfa3cda137b0a64d009866d19b | aef67399893988628e0a18d53e71e2038992b158 | refs/heads/master | 2023-08-03T05:04:20.111543 | 2023-07-31T14:01:55 | 2023-07-31T14:01:55 | 863,038 | 4 | 1 | null | 2020-03-05T06:18:03 | 2010-08-26T01:05:11 | TeX | UTF-8 | Python | false | false | 275 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
ewma = pd.stats.moments.ewma
x = list(range(1, 50)) + list(range(50, 0, -1))
ma = ewma(np.array(x), span=15)
plt.plot(x, linewidth=1.0)
plt.plot(ma, linewidth=1.0)
plt.show()
plt.savefig("image.png")
| [
"idnanashi@gmail.com"
] | idnanashi@gmail.com |
0836dc0604cbb303c5dd9456b4ff69711997d47a | a4c04117685c3d28dd60bdfc45654cb2c935f746 | /rasterio_example.py | e5c89ffdf395eb38ede6fd20f40df78b4fb1d5d6 | [] | no_license | DKnapp64/General_Python_Codes | 1ca40779bb381d526d61c5d5fedcc76ae797c590 | 8d4669c82c17455640a0a3123f92760cd65cc26a | refs/heads/main | 2023-02-28T05:55:46.018482 | 2021-02-01T21:55:16 | 2021-02-01T21:55:16 | 335,077,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | import rasterio
import numpy
with rasterio.drivers():
with rasterio.open('baikal_subset.tif') as src:
b1, b2, b3, b4, b5 = src.read()
profile = src.profile
profile.update(
dtype=rasterio.float64,
count=1,
compress='lzw')
ndvi = numpy.zeros(b1.shape)
ndvi = (b1-b2)/(b1+... | [
"dknapp4@asu.edu"
] | dknapp4@asu.edu |
710b13be4f032fd0628dfcd05eec3fa390d50805 | 9b0f102588acdc125cf8d4dfa1e51dffe12e1f2f | /apps/trade/urls.py | e272b659438321b9cf37e506f4956b8d547cecd9 | [] | no_license | aurthurm/sagetrader | d6e8fc3df5847acc05d134e7a39797ca6258d4ef | 97ca91b4f460fdf83837244e1dc5517fc0d74850 | refs/heads/master | 2023-01-24T23:23:59.129638 | 2020-07-21T09:19:46 | 2020-07-21T09:19:46 | 165,684,233 | 1 | 0 | null | 2023-01-03T16:11:42 | 2019-01-14T15:23:52 | CSS | UTF-8 | Python | false | false | 1,019 | py | from django.urls import path, include
from .views import *
app_name = 'trade'
urlpatterns = [
path('dashboard/', Dashboard.as_view(), name='dashboard'),
path('statistics/member', Statistics.as_view(), name='member-statistics'),
path('trading-plan/update/', UpdatePlan.as_view(), name='update-plan'),
pat... | [
"aurthurmusendame@gmail.com"
] | aurthurmusendame@gmail.com |
7c91cb81835b975d6fc34bfe38d28812aecc2704 | b0cdbad299f6174bfdb0fba173dbcf3889b82209 | /Object Oriented Programming/oops/class_11.py | a4d0fb9c8a988a9e9eb3c05db8bf43193528c9e4 | [] | no_license | deesaw/PythonD-06 | a33e676f1e0cfc13b4ea645c8b60547b198239ac | 3c6f065d7be2e3e10cafb6cef79d6cae9d55a7fa | refs/heads/master | 2023-03-18T08:24:42.030935 | 2021-03-02T14:15:09 | 2021-03-02T14:15:09 | 343,797,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | #usage of super
# parent class
class Deer:
def __init__(self):
print("Deer is in forest")
def whoisThis(self):
print("Parent - Deer")
def jump(self):
print("Deer is jumping")
# child class
class Stag(Deer):
def __init__(self):
print("Stag is ready")
def who... | [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
b055b4c4e168f77967e6a90390a200084d7360a1 | 265b451de88d2cbc7cb7af24e42c78b128cd80ee | /SQL/group-by-time.py | e6bf6985cece32effe0706b8b63c7b57e2c4140a | [] | no_license | ryanchang1005/Django-lab | c967f0bf01fc1bc5727194bb036e6e378cfe075c | 9186c07177d6f563a8b8dcd00464ac741f736ce9 | refs/heads/master | 2023-06-30T03:44:37.749216 | 2021-08-03T03:06:01 | 2021-08-03T03:06:01 | 288,667,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | """
Group by minute
Input:
6 2020-12-09 09:29:04.215836
7 2020-12-09 09:29:18.682882
8 2020-12-09 09:29:19.831128
9 2020-12-09 09:29:34.918914
10 2020-12-09 09:29:37.036617
11 2020-12-09 09:29:38.672620
12 2020-12-09 09:29:40.311120
13 2020-12-09 09:29:40.820016
14 2020-12-09 09:29:4... | [
"ryan@maideax.com"
] | ryan@maideax.com |
63cd9f828d4d3281fe784bc4ca8745855af72fc0 | b95aa6509714fba3c404ecbc7a0bdc7a7788dab9 | /mycpp/cppgen_pass.py | e5c9db590e6952230b5c4e2f8c004085f99efc77 | [] | no_license | moneytech/oil | 6ba13ff30b94302afc9e58ed4d686971a148a1a0 | f9d72ea96d8535913232d2a286a520debed97323 | refs/heads/master | 2021-02-15T11:54:39.027780 | 2020-03-04T06:30:50 | 2020-03-04T06:30:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72,949 | py | """
cppgen.py - AST pass to that prints C++ code
"""
import io
import json # for "C escaping"
import sys
from typing import overload, Union, Optional, Any, Dict
from mypy.visitor import ExpressionVisitor, StatementVisitor
from mypy.types import (
Type, AnyType, NoneTyp, TupleType, Instance, Overloaded, CallableT... | [
"andy@oilshell.org"
] | andy@oilshell.org |
93bfabe4dfcefff36871c856a5090eb67cc0c941 | 4dd5dbebc7b7f6dbfcbd6cc662311c91ad6d47e9 | /AtCoder/ABC070A.py | 7d5a0d0a6b0207c1d07f1f9502b6357f7e80c41d | [] | no_license | sourjp/programming_contest | aa6925b3317bd3aeb646df93a611af1199bfc7aa | 2a50e1be45441789e81eb49bfdfc0c598d2a534b | refs/heads/master | 2021-04-01T05:08:44.097226 | 2020-08-20T13:01:55 | 2020-08-20T13:01:55 | 248,158,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | a, b, c = map(str, input())
if a == c:
print('Yes')
else:
print('No')
# print('Yes' if a == c else 'No') | [
"hiro0209.ki@gmail.com"
] | hiro0209.ki@gmail.com |
96ce5236d2509a84730721428f0aa0e3a53f1054 | 2d54ab7a1e829f89b554d6abc27527fdb38539ff | /run.py | ec5c92c704cc0c8aa94e6d0680f4482f76dfc1e3 | [] | no_license | zhtjtcz/Software-Backend | 1c3c73d8863d0d0df9cdfa08e4900f878127ed6c | ca865f1fe75493098050b236634f776f7b97d04d | refs/heads/main | 2023-06-07T06:28:05.345830 | 2021-06-17T16:30:47 | 2021-06-17T16:30:47 | 367,622,524 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import os
os.system("python manage.py makemigrations")
os.system("python manage.py migrate")
os.system("nohup python manage.py runserver 0.0.0.0:8000 & \n")
print("The backend is running!") | [
"18377221@buaa.edu.cn"
] | 18377221@buaa.edu.cn |
956d2b8dc4154b4476b17b8c513d88086fefd4be | b47c136e077f5100478338280495193a8ab81801 | /Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/register_unarystruct.py | 42858d8bc61cd90d8330727506be4c495ca3014f | [
"Apache-2.0"
] | permissive | IanSMoyes/SpiderPi | 22cd8747cc389f674cc8d95f32b4d86f9b7b2d8e | cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1 | refs/heads/master | 2023-03-20T22:30:23.362137 | 2021-03-12T17:37:33 | 2021-03-12T17:37:33 | 339,555,949 | 16 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
from board import SCL, SDA
from busio import I2C
from adafruit_bus_device.i2c_device import I2CDevice
from adafruit_register.i2c_struct import UnaryStruct
DEVICE_ADDRESS = 0x74 # device address of PCA9685 board
A_D... | [
"ians.moyes@gmail.com"
] | ians.moyes@gmail.com |
cedc2eac003eeb79ab64df271f1e9558adb34096 | 7b1543ec496a2aec2624bb0ef04ed5ecf944675a | /Histo/HistoAnalyzer/test/jetValidationWithPfAK5GoodEleLast_cfg.py | dae2fb2e28e3c6bbc04be02b18e62f48e145f398 | [] | no_license | iihe-cms-sw/VJets_TreeMaker5311 | 45954e62e289907384d187a76230b76f64cea62f | 8c37cf7241e58ee7d83bb261ebf9c9a237080eac | refs/heads/master | 2020-06-06T18:10:09.921453 | 2014-09-06T17:05:37 | 2014-09-06T17:05:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,404 | py |
import FWCore.ParameterSet.Config as cms
import os
process = cms.Process("JetValidation")
###################
##### Loading what we need!
###################
from PhysicsTools.PatAlgos.patTemplate_cfg import *
from PhysicsTools.PatAlgos.tools.trigTools import *
switchOnTrigger(process,sequence='patDefaultSequence',h... | [
"seva.tomislav@gmail.com"
] | seva.tomislav@gmail.com |
43fb565c520ceba642840b9e2be90020c32f9bab | 00ef8e1eb57b73427508b20aadf0266da6b1f900 | /rlf/rl/loggers/sanity_checker.py | b27b9192a2eb8ad7ad2c58c8f3ceb49e8e0e9079 | [
"MIT"
] | permissive | amy12xx/rl-toolkit | f4643935cc8afd960356bfeae74c233d2596dea9 | 8254df8346752ea0226ae2064cc1eabc839567b0 | refs/heads/master | 2023-08-14T00:56:52.270642 | 2021-09-28T15:59:32 | 2021-09-28T15:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,400 | py | from collections import defaultdict
import torch.nn as nn
def print_tensor(x):
if len(x.shape) > 1:
return str(x.view(-1, x.shape[-1])[0, :5])
else:
return str(x[:5])
class SanityChecker:
def __init__(self, should_check, is_verbose, stop_key, stop_iters):
self.is_verbose = is_verb... | [
"me@andrewszot.com"
] | me@andrewszot.com |
49a249a7ab9728cf12bc9b8176cd9f2b40792e1f | 553af2a9b110d54c0c2d972726f69ad9578f772f | /k2_domain/tests.py | 63942882cb5753b4c1bdf78693ee9e5f8bc64b29 | [] | no_license | simonemmott/k2 | 31ca9aca661e4a070ec3dfd6f6533abcc84ed883 | f455727c3f25dd2ad428c9c2936f05d94a62f843 | refs/heads/master | 2022-12-16T23:10:48.687149 | 2019-06-24T22:48:24 | 2019-06-24T22:48:24 | 192,113,010 | 0 | 0 | null | 2022-12-08T05:15:52 | 2019-06-15T18:47:55 | Python | UTF-8 | Python | false | false | 2,428 | py | from django.test import TestCase
from jinja2 import Environment
from k2.jinja2 import environment
from jinja2 import PackageLoader
import json
from k2_util import templates
from k2.settings import BASE_DIR
from posix import lstat
jinja2_env = environment(loader=PackageLoader('k2_domain', 'jinja2'))
def test_domain():... | [
"simon.emmott@yahoo.co.uk"
] | simon.emmott@yahoo.co.uk |
eab2e39b65e58dce27b14af21523d7b9932dfbcf | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/cellblender/bng/bng_operators.py | a10ca18c55f2aa90e867e4bc68e9c7d6f33991d3 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | import bpy
import os
import subprocess
from cellblender import cellblender_properties, cellblender_operators
#from . import net
# We use per module class registration/unregistration
filePath = ''
def register():
bpy.utils.register_module(__name__)
def unregister():
bpy.utils.unregister_module(__name__)
d... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
d40c9fe210c8f3cad3a2f5d0c8912bb687d1a187 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/subscription/v20191001preview/__init__.py | 809b67527e985eb66ca6611d911e43258c96a031 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 393 | 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! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .get_subscription_alias import *
from .... | [
"noreply@github.com"
] | morrell.noreply@github.com |
9e2cf686b700b1a54492e9adc5d477ec83e3fbad | eec698a1cb1b76a5f00ca51726bb7387104dbe89 | /backend/app/models/category.py | a5d236d50fa781ec1431eabd8c1822f4bc571eab | [] | no_license | MSurfer20/recommender-portal | 9450153e94f89785038918c29c227556df3636b4 | 02924c0d813af4ddb29041ccad34e57963e57168 | refs/heads/master | 2022-10-28T11:10:48.265123 | 2020-06-09T20:36:18 | 2020-06-09T20:36:18 | 267,325,013 | 1 | 0 | null | 2020-06-09T13:43:08 | 2020-05-27T13:20:46 | JavaScript | UTF-8 | Python | false | false | 1,119 | py | from enum import Enum
from pydantic import AnyUrl, Field
from typing import List, Optional
from bson.objectid import ObjectId
from .base import Base, ObjectID, MusicEnum, VideoEnum, CategoryEnum
class Category(Base):
"""Category definiton"""
id: CategoryEnum = Field(None, alias="_id")
class ItemBase(Base)... | [
"pkrockstar7@gmail.com"
] | pkrockstar7@gmail.com |
468e1bd89d23c215a903bc44ce45617e25a3f400 | c3787b68c6276a2dd10008f609e6091ecbcca0b0 | /two_pointers/triplets_smaller_sum.py | 138fbcefec62ae14e4e1f8c54378519a6183ac46 | [
"MIT"
] | permissive | cosmos-sajal/ds_algo | 45afc8470c2b32fc56041bfbca8acb886cb70864 | d01912b8c42d8465660cee04e7648731c9acbaff | refs/heads/master | 2022-11-06T15:44:25.030664 | 2020-06-20T16:59:56 | 2020-06-20T16:59:56 | 263,012,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # https://www.educative.io/courses/grokking-the-coding-interview/mElknO5OKBO
def triplet_with_smaller_sum(arr, target):
arr.sort()
arr_len = len(arr)
result = 0
for i in range(arr_len - 1):
ptr1 = i + 1
ptr2 = arr_len - 1
sum = target - arr[i]
while ptr1 < ptr2:
... | [
"sajal.4591@gmail.com"
] | sajal.4591@gmail.com |
9274b3b36010b8ebad3d07e1d6dd9345b598c5df | 5cf0842f3c066b2dbbea703bfff9e90b69905937 | /neurodsp/tests/test_utils_outliers.py | 09058cbc0b8443cc26506d563be3579b51a623c6 | [
"MIT"
] | permissive | srcole/neurodsp | 9e880c990587e928e3cc550fef53f5bb1d112bfa | 6b500d967a2ca63b62d07ab345e021f15e53be6a | refs/heads/master | 2021-05-23T05:48:06.916165 | 2019-06-14T03:44:06 | 2019-06-14T03:44:06 | 94,925,277 | 1 | 0 | null | 2017-08-30T18:30:22 | 2017-06-20T18:58:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,261 | py | """Tests for outlier related utility functions."""
import numpy as np
from numpy.testing import assert_equal
from neurodsp.utils.outliers import *
###################################################################################################
######################################################################... | [
"tdonoghue@ucsd.edu"
] | tdonoghue@ucsd.edu |
019daba148c86709b395b3909db8a86a6c9a1bd3 | bda7a0576e17fe417175680b5698635b876c8091 | /users/migrations/0002_auto_20200219_1614.py | b420d734a989b370f84149c8b0aed3a478f4ff1b | [
"Apache-2.0"
] | permissive | Robotix-NITRR/RobotixWeb2021 | 56bb66667e5bd106930138f7ed69afeee609fe59 | 7f66a0dd5c54c44e6a128d8139d6bfd1135580f9 | refs/heads/master | 2023-04-04T09:59:53.961189 | 2021-04-12T12:07:25 | 2021-04-12T12:07:25 | 334,345,468 | 0 | 2 | Apache-2.0 | 2021-01-30T08:26:24 | 2021-01-30T06:31:56 | Python | UTF-8 | Python | false | false | 541 | py | # Generated by Django 2.1.7 on 2020-02-19 10:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='currency',
... | [
"nikhil0223@gmail.com"
] | nikhil0223@gmail.com |
d65d42379061c239c3e54ddd63c11dffd5c86e91 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-3/9e31bd9e2d6cba783883eb4905b19fcbe0ca5534-<backend_pyqt4_internal_check>-bug.py | 7487ccb89335c1e72c0ba32a5347a266fdafb3a0 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | def backend_pyqt4_internal_check(self):
try:
from PyQt4 import QtCore
except ImportError:
raise CheckFailed('PyQt4 not found')
try:
qt_version = QtCore.QT_VERSION
pyqt_version_str = QtCore.QT_VERSION_STR
except AttributeError:
raise CheckFailed('PyQt4 not correctl... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
407652123c34cc2bfd537335f227c65cefbb2c11 | f1af5236a561c07d1def8da8716be333e2fb896c | /test/Service/test_pack_unpack.py | 35fbd6df707d360ab26b285c2acb982ad03f3d84 | [
"Apache-2.0"
] | permissive | chryswoods/acquire | 1a9dbbfa0f82d761a314fd34b77c0ad982ff60e6 | fe4c9cb2b90374b386d5ea38e514faa96661701a | refs/heads/devel | 2022-12-22T08:29:52.155771 | 2022-01-11T11:34:02 | 2022-01-11T11:34:02 | 156,683,200 | 21 | 5 | Apache-2.0 | 2022-12-17T12:47:35 | 2018-11-08T09:35:59 | Python | UTF-8 | Python | false | false | 2,995 | py |
import pytest
from Acquire.Crypto import PrivateKey, get_private_key
from Acquire.Service import pack_arguments, unpack_arguments
from Acquire.Service import pack_return_value, unpack_return_value
from Acquire.Service import create_return_value
from Acquire.ObjectStore import string_to_bytes, bytes_to_string
import ... | [
"chryswoods@gmail.com"
] | chryswoods@gmail.com |
7014ef7a1f5107c645c6b794df58809717cbbcd7 | 2d47e5f7f358429ac46ed6bf61e8b8d68581dfeb | /cart/views.py | 3899a4bae7bb3e9e967e15dcfab285467cdcbbb8 | [] | no_license | hossamelneily/Freeshop | 7e24bbf6eb3668a121e9d6903347e6405295d589 | 48b1650164bad5f9691b11dc7f2377c800bd8240 | refs/heads/master | 2021-11-21T20:11:23.306946 | 2019-10-28T13:16:42 | 2019-10-28T13:16:42 | 144,614,064 | 1 | 2 | null | 2021-09-08T00:07:47 | 2018-08-13T17:46:42 | HTML | UTF-8 | Python | false | false | 5,513 | py | from django.shortcuts import render,redirect
from django.contrib.auth import authenticate , login , get_user_model
from django.conf import settings
# Create your views here.
from cart.models import cart
from products.models import product
from products.models import product
from orders.models import orders
from ecommer... | [
"hossamelneily@gmail.com"
] | hossamelneily@gmail.com |
20683b9d7eaaf6988c7944329dd9cec29ca2947e | bab737891a602e8afc8b6a132ace3f05c37999e4 | /blog/migrations/0009_auto_20170821_1442.py | d499a002ce2474ef9b550b762290ec0d1950cb34 | [] | no_license | lianchonghui/django-blog | 34ddf308d15adf633b10676f835f27dd94a457f0 | 53f395f1d2ad2e4cea1fe38b99db705bb7fb352e | refs/heads/master | 2021-09-09T15:33:40.171955 | 2018-03-17T14:24:05 | 2018-03-17T14:24:05 | 118,338,599 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,203 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-08-21 06:42
from __future__ import unicode_literals
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import blog
class Migration(migrations.Migration):
dependencies = [
('blog', '0008_... | [
"lianchonghui@foxmail.com"
] | lianchonghui@foxmail.com |
90bb6f2d6386a5ad0b37e43f530eb0556d348aa8 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/modules/network/netvisor/pn_ospfarea.py | 34739d451da56d21430f472be5da741f0e3d2cbd | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 6,375 | py | #!/usr/bin/python
""" PN-CLI vrouter-ospf-add/remove """
#
# This file is part of Ansible
#
# Ansible 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) any... | [
"sifang@cisco.com"
] | sifang@cisco.com |
52c0c13d7052ae235e036a5de1bc4bb4f2f89261 | a5a3ccf9feae3f5aa475153d92447f8f3ba8c013 | /data/kcbot.py | b5e78e6669e62e23f0901827fbc01946a7740baa | [] | no_license | waldenven/tsdata | 2a309d976ce2994c7cca8ad91e6287cb8180b8cf | a4229b7978f4c14ffc2201ea38a1a44e68dec130 | refs/heads/master | 2020-06-13T22:42:45.334001 | 2012-07-03T03:42:01 | 2012-07-03T03:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | import urllib, re
from datetime import datetime
from pandas import DataFrame, Series, read_csv
from BeautifulSoup import BeautifulSoup
from tsdata.data.basedata import basedata
def all_daily_urls():
url = 'http://www.kcbt.com/daily_wheat_price.asp'
f = urllib.urlopen(url)
txt = f.read()
f.close()
... | [
"none@none.com"
] | none@none.com |
9f73be10103f40ed4d479780397977619122dcb9 | 9947d1e328a3262a35a61385dc537c3dc557ab7d | /pythonnet/day3_PM/day3/recv_file.py | db7d06884dc73ce18d8d0d17c294d3419bf2c549 | [] | no_license | nuass/lzh | d0a7c74a3295523d1fe15eeaa73997fc04469f06 | 3cb1cf1e448b88ade226d113a7da4eab7bbb5c09 | refs/heads/master | 2021-02-06T06:10:32.772831 | 2019-06-10T08:54:49 | 2019-06-10T08:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | from socket import *
s = socket()
s.bind(('127.0.0.1',8888))
s.listen(3)
c,addr = s.accept()
print("Connect from",addr)
f = open('leg.jpg','wb')
while True:
data = c.recv(1024)
if not data:
break
f.write(data)
f.close()
c.close()
s.close()
| [
"1581627402@qq.com"
] | 1581627402@qq.com |
3bacc8c066e42bc4d4187216f852f631b9e01070 | e21ab91cf22bf8359831e974d49e1fd90b69197a | /tests/conftest.py | 3208b58757a89871d4e97393c3db78b2a76d169c | [
"BSD-3-Clause"
] | permissive | creamofclubs/odin | 9be21013a7d707aee978e83bc2cb9ef70f81befa | deb00b6af56d319a3e11f71dbee7d217c8713fae | refs/heads/master | 2023-08-12T04:06:34.791245 | 2021-09-06T03:11:55 | 2021-09-06T03:11:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import os
import sys
import datetime
HERE = os.path.abspath(os.path.dirname(__file__))
SRC = os.path.normpath(os.path.join(HERE, "..", "src"))
sys.path.insert(0, SRC)
import odin.datetimeutil
ARE_YOU_EXPERIENCED = datetime.date(1967, 5, 12)
MWT = odin.datetimeutil.FixedTimezone(-6, "Mountain War Time")
BOOM = dateti... | [
"tim@savage.company"
] | tim@savage.company |
10047578aaf146ba74d5f3a29732c1da9c35664d | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CIENA-CES-RSVPTE-MIB.py | 58dd142d71251b6a7644c3ba009df73d5dab4088 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 13,064 | py | #
# PySNMP MIB module CIENA-CES-RSVPTE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CIENA-CES-RSVPTE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:31:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
28248168d3c9bf357c416aec52b917287ae926cf | 158a327c3cbff52a607d4ec668c658f0d8d8eea8 | /DP/55. Jump Game.py | 13c37440c5ef1d510135f5ac8ff8bfe1773f858b | [] | no_license | smartwell/leet_niuke | f11cbf826f9b2b358b614a63200e93aef47054a2 | eb84aaa1248074dceda831f9385d68a24941fa04 | refs/heads/master | 2020-06-24T16:37:33.073534 | 2019-07-25T13:19:49 | 2019-07-25T13:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | ########################45##########################
def Jump(nums): #想象成这一步所能跳跃的范围,若最后终点在范围内则为最佳点 采用贪心算法 最优避免DP规划导致多余计算
n,fir,end,count=len(nums),0,0,0 #count计步器 思路:fir0,end0中找到使其跳的最远的作为end1,fir1=end0+1,依照此规律知道某段firn,endn中的数超过n-1
while end < n-1: #n-1表示从0到len(nums)要完成的最少跳跃步... | [
"w5802022@gmail.com"
] | w5802022@gmail.com |
3d0f702ab540285b5e176f6222d8a3dc8c5a96d2 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_list_by_subscription.py | 175f92d2fd7668c287deb12c365d17aa8ed4f26b | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,527 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
c7e9e9554266187a384876586f55b405a1471944 | 9fd934751ef1d332b792d204df0757ed91f36ef6 | /route66_project/route66/views.py | b3e6cee4b0f257ed94d9ee9aff83c33beaa4838e | [] | no_license | cs-fullstack-2019-spring/django-intro2-routes-cw-cgarciapieto | e55fa7a7b4c9ef317b9c6e3db1a8ba8eaea7602c | f232f3125fce93c03e687940e10b22280ba1d0d0 | refs/heads/master | 2020-04-23T23:57:22.501082 | 2019-02-20T05:04:38 | 2019-02-20T05:04:38 | 171,550,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
# http response function
def goods(request):
return HttpResponse("Here you go, POKEMON FOREVER")
def joy(request):
return HttpResponse("This song drives me nuts")
def index(request):
return HttpResponse("t... | [
"cgarciapieto@gmail.com"
] | cgarciapieto@gmail.com |
189c925a75f59f6b8ae9d4cfeb0648a69fcff9a5 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/388.py | 94106f5f14c7292d2212da973bc6701dbe2060af | [] | 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 | 374 | py | def solve(s, k):
s = list(s)
k = int(k)
ans = 0
while s:
if s.pop() != '+':
if len(s) < k - 1: return "IMPOSSIBLE"
for i in range(1, k):
s[-i] = '-' if s[-i] == '+' else '+'
ans += 1
return ans
for i in range(1, int(input()) + 1):
prin... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6498e8c2aa931f3faecf9b2f1027d5f19f53e176 | d24a6e0be809ae3af8bc8daa6dacfc1789d38a84 | /other_contests/PAST2019/I.py | 1fe31e281c0bf9947e3edece5bda7e352ee8a741 | [] | no_license | k-harada/AtCoder | 5d8004ce41c5fc6ad6ef90480ef847eaddeea179 | 02b0a6c92a05c6858b87cb22623ce877c1039f8f | refs/heads/master | 2023-08-21T18:55:53.644331 | 2023-08-05T14:21:25 | 2023-08-05T14:21:25 | 184,904,794 | 9 | 0 | null | 2023-05-22T16:29:18 | 2019-05-04T14:24:18 | Python | UTF-8 | Python | false | false | 1,051 | py | def solve(n, m, s_list, c_list):
dp = [[sum(c_list) + 1] * (2 ** n) for _ in range(m + 1)]
dp[0][0] = 0
for i in range(m):
k = 0
s = s_list[i]
for p in range(n):
if s[- p - 1] == "Y":
k += 2 ** p
c = c_list[i]
for j in range(2 ** n):
... | [
"cashfeg@gmail.com"
] | cashfeg@gmail.com |
5fcafa9dc665d308fac15b10dc9dda4e4a8b26f0 | 45b64f620e474ac6d6b2c04fbad2730f67a62b8e | /Varsity-Final-Project-by-Django-master/.history/project/quiz/models_20210424121724.py | e9feec73e98c6b749012c04f069e8911025079ec | [] | no_license | ashimmitra/Final-Project | 99de00b691960e25b1ad05c2c680015a439277e0 | a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003 | refs/heads/master | 2023-04-11T06:12:35.123255 | 2021-04-26T15:41:52 | 2021-04-26T15:41:52 | 361,796,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,603 | py | from django.db import models
# Create your models here.
class Quiz(models.Model):
question = models.CharField(max_length = 500)
option1 = models.CharField(max_length = 20)
option2 = models.CharField(max_length = 20)
option3 = models.CharField(max_length = 20)
option4 = models.CharField(max_length =... | [
"34328617+ashimmitra@users.noreply.github.com"
] | 34328617+ashimmitra@users.noreply.github.com |
1d1d26c8fc8487564347ded0561a2639a59ac73e | 2fc1e3382ae1024b008004ef6302914b492f51e1 | /cos/models/const.py | ce15e48b226aeb7293242c88f466838c589fd636 | [] | no_license | tclh123/COS | abf475b32cb45e6f099508675a8138dd2211e963 | 7e4843fbfe67f7e795eccffc3b48270b152ba438 | refs/heads/master | 2016-09-15T21:43:55.956184 | 2014-01-04T17:46:50 | 2014-01-04T17:46:50 | 15,521,178 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # coding=utf-8
PERM_BASIC = 0b001
PERM_ADMIN = 0b010
PERM_DELIVERY = 0b100
ORDER_STATUS_SUBMIT = 1
ORDER_STATUS_PAY = 2
ORDER_STATUS_WAIT = 3
ORDER_STATUS_DELIVERY = 4
ORDER_STATUS_OVER = 5
# '待买家完善订单后提交'
# '待买家付款'
# '待餐厅处理'
# '待送餐员送餐'
# '订单结束'
PAYMENT = {
u'货到付款': 1,
u'工资支付': 2,
u'网上支付': 3,
}
| [
"tclh123@gmail.com"
] | tclh123@gmail.com |
eea2161b70cf5a3ecfebef0a04cfa64e7e059291 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_corrective.py | fc4041522f6dce91bdc98602bc6f91a6cf0a525b | [
"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 | 477 | py |
#calss header
class _CORRECTIVE():
def __init__(self,):
self.name = "CORRECTIVE"
self.definitions = [u'intended to improve a situation: ', u'used to refer to something that is intended to cure a medical condition: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.s... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9d42ae4909b6084829161c508e2a65ffa42c2b2a | a9e3b2e87563acf39ce74c5e57aa4ad5c13404bf | /cartridge/shop/admin.py | 2cae83122ba67a49a11d3d4dce0a7b0f2428ceaf | [
"BSD-3-Clause"
] | permissive | CDC/cartridge | 40cf531f2912637f9bde261baf6b52e94aed388f | b9229617bbf054f1958bf5f2fadaf523d5d72522 | refs/heads/master | 2021-01-20T23:37:26.759210 | 2011-12-19T23:30:15 | 2011-12-19T23:30:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,718 | py |
from copy import deepcopy
from django.contrib import admin
from django.db.models import ImageField
from django.utils.translation import ugettext_lazy as _
from mezzanine.core.admin import DisplayableAdmin, TabularDynamicInlineAdmin
from mezzanine.pages.admin import PageAdmin
from cartridge.shop.fields import MoneyF... | [
"steve@jupo.org"
] | steve@jupo.org |
c925b2637715a9f2f135c947d06035c815739be7 | 434b6556038ad326ffaa8584a8a91edf8ad5c037 | /DP-1/MinStepsTo1_IterativeDP.py | a3f670d079c5c84019726bd05d7717a5a128e3d0 | [] | no_license | Pranav016/DS-Algo-in-Python | 60702460ad6639dd3e8a1fdc3caf0821b8e0b4c2 | 5557e371ccdf801d78ba123ca83c0dd47b3bdb3b | refs/heads/master | 2023-01-23T08:29:32.186861 | 2020-11-01T17:14:12 | 2020-11-01T17:14:12 | 284,651,382 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import sys
def minStepsIterative(n):
dp=[-1 for i in range(n+1)]
dp[0]=dp[1]=0
for i in range(2,n+1):
ans1=ans2=ans3=sys.maxsize
if i%3==0:
ans1=dp[i//3]
if i%2==0:
ans2=dp[i//2]
ans3=dp[i-1]
dp[i]=1+min(ans1,ans2,ans3)
return dp[n]
# ... | [
"pranavmendi@gmail.com"
] | pranavmendi@gmail.com |
7f6ada10257846c167743e85db32815a21168d88 | d24cef73100a0c5d5c275fd0f92493f86d113c62 | /SRC/common/brushstyle.spy | e0783b6eccb843c7e84f0f7042b33858e2133c9c | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | rlinder1/oof3d | 813e2a8acfc89e67c3cf8fdb6af6b2b983b8b8ee | 1fb6764d9d61126bd8ad4025a2ce7487225d736e | refs/heads/master | 2021-01-23T00:40:34.642449 | 2016-09-15T20:51:19 | 2016-09-15T20:51:19 | 92,832,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | spy | # -*- python -*-
# $RCSfile: brushstyle.spy,v $
# $Revision: 1.2.18.1 $
# $Author: langer $
# $Date: 2014/09/27 22:33:47 $
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities... | [
"faical.congo@nist.gov"
] | faical.congo@nist.gov |
381da1385d47377eeaa12cedb3eee290fa920879 | 3517bef3bb174fef1f2f6a5edd221d23af2a4a99 | /backend/emma_phillips_3684/urls.py | 4c3f152a16e4c4be9cdae8fe722eacab23a51993 | [] | no_license | crowdbotics-apps/emma-phillips-3684 | e8fe2c0c7e68abda4f199c4cc4396bb2268afffc | 7ee256d6a167d5236800751a478023c48056b162 | refs/heads/master | 2020-05-25T23:38:41.448295 | 2019-05-22T12:55:07 | 2019-05-22T12:55:07 | 188,038,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | """emma_phillips_3684 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
55fc69c3daeea8d2a118a7e02188c932abb24f83 | 8d2a785ffc06ec46a546cdf50af41054a382f05a | /classes/day11/practice/数据库博库/db_con_insert.py | 201679238f0035ffd314aad79db425ae24484c53 | [] | no_license | Pigcanflysohigh/Py27 | 4be0d9ad93f5d695c48fd89157952230ec4d111a | 2f6568fce2a6f09c73cdc08342a8b05645c87736 | refs/heads/master | 2020-06-18T08:09:08.217036 | 2019-11-20T16:14:05 | 2019-11-20T16:14:05 | 196,225,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | import pymysql
conn = pymysql.connect(host='10.211.55.5',user='root',password='root',database='mlg')
cur = conn.cursor()
cur.execute("insert into t8 values('女','rap');")
conn.commit() # 涉及到修改/写入(insert/update/delete)数据库内容的,多需要执行提交操作才能生效
cur.close()
conn.close() | [
"729167925@qq.com"
] | 729167925@qq.com |
3be2fbf38cc96ef463cecd4366ea19e030cca99a | 3c8aaef535328f7c4d812cf086a637b27d891752 | /interview/google/hard/LC327.py | 6e8c0bbf06d684ef7b05a58684d8b05985f7d649 | [] | no_license | zhangshv123/superjump | 9339cd7f5e75d8a94be60d44c752267cc38183d3 | 7de5f69e6e44ca4e74d75fed2af390b3d2cbd2b9 | refs/heads/master | 2020-03-20T20:36:34.378950 | 2019-03-08T04:37:22 | 2019-03-08T04:37:22 | 137,696,605 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | #!/usr/bin/python
"""
First compute the prefix sums: first[m] is the sum of the first m numbers.
Then the sum of any subarray nums[i:k] is simply first[k] - first[i].
So we just need to count those where first[k] - first[i] is in [lower,upper].
To find those pairs, I use mergesort with embedded counting. The pairs in ... | [
"sz1266@nyu.edu"
] | sz1266@nyu.edu |
76da49d71b796760d616591e77762c095f4a80b5 | d2f893a95f74b59ec7f073a008d9502c22afb04a | /cwcnn/extend/cuda_functions/round_cuda.py | 8066ff17b0f52d0d7e12a1c8cf7951624e09e703 | [] | no_license | liu-yangyang/CNN-based-Image-Compression-Guided-by-YOLOv2 | bbf03ce26b51e1247b1655c6d8aa909530702339 | 850391525908ca751b832ed882eca3f5eccd819c | refs/heads/master | 2020-03-19T03:07:26.152652 | 2018-05-27T08:23:09 | 2018-05-27T08:23:09 | 135,697,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | import torch as th
from torch.autograd import Variable, Function
#include_path = '/home/snk/Desktop/workspace/pytorch_implement/extend/'
include_path = "/home/zhangwenqiang/jobs/pytorch_implement/extend"
import sys
if include_path not in sys.path:
sys.path.append(include_path)
from round import round_forward_wrap... | [
"1243535683@qq.com"
] | 1243535683@qq.com |
b0efdce4e0bf427b216c46a6e9f000bcc9bf1a57 | ed75b99e824b5724746d72f2d529781eccf8ef0d | /biostar/settings/base.py | b6bc56bfba6910cfc319fb458e4fe765acde772c | [
"MIT"
] | permissive | satra/biostar-central | 6799c4df4d12de1278f60fb2b29623acf8cc7640 | 794c67d2972a4fe700c79841f5f3c0c562352738 | refs/heads/master | 2021-01-12T20:32:14.356389 | 2014-03-20T15:37:27 | 2014-03-20T15:37:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,247 | py | # -*- coding: utf8 -*-
#
# Django settings for biostar project.
#
from __future__ import absolute_import
import os
from django.core.exceptions import ImproperlyConfigured
from .logger import LOGGING
# Turn off debug mode on deployed servers.
DEBUG = True
# Template debug mode.
TEMPLATE_DEBUG = DEBUG
# Should the dja... | [
"istvan.albert@gmail.com"
] | istvan.albert@gmail.com |
9acd73bb18291d9817ce151961855002e16b1075 | fdca7a2818602fa40b0848a15f630afb68a2ec13 | /page/search.py | 163526ad1ac64c5ba863746b6dc9ed85152a1222 | [] | no_license | sisul1204/appium_zhuangshiqi | 0bded9307c92f57749ad6eb514431b0348deaebc | c457d267fee86ee0f516e3cbab25afd514a7c7fc | refs/heads/main | 2023-01-07T07:05:31.420987 | 2020-11-13T03:47:48 | 2020-11-13T03:47:48 | 312,163,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # * coding:utf-8 *
# Author:sisul
#创建时间:2020/11/11 17:11
import yaml
from selenium.webdriver.common.by import By
from page.base_page import BasePage
class Search(BasePage):
def search(self, name):
self._params['name'] = name
self.steps('../page/search.yaml')
def add(self, name):
se... | [
"lizhipeng1021@163.com"
] | lizhipeng1021@163.com |
d22d9284208ebd8f92edf3f7139fd34bf723d63a | 6bf1b595a7f4d3cbf0995455869d438a7d0e0624 | /lingvo/core/scatter_update.py | 4be545fde721c2587c20f8f3dff3ccfb2a8f9048 | [
"Apache-2.0"
] | permissive | huaxz1986/lingvo | 889abc82b1bab6f37ba861c41eb480b7e89362c0 | b83984577610423e3b1c6b04ca248cd23f2842f7 | refs/heads/master | 2022-05-15T03:29:56.903688 | 2022-04-02T01:41:25 | 2022-04-02T01:41:25 | 173,536,461 | 1 | 0 | Apache-2.0 | 2019-03-03T05:52:01 | 2019-03-03T05:52:01 | null | UTF-8 | Python | false | false | 2,341 | py | # Lint as: python3
# Copyright 2021 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 ... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5493a9b3dcefaa7349c665b1c55edd28129ad453 | 05805ab879654cdcf61df3653847f435b624dc77 | /Dictator_service/bin_gui/driver_meta.py | 5daf43424c05f36e16f446af2eb71205a02c3602 | [] | no_license | Wuwqhnsya/Dictator | 3d57db6bc0138464884ddc9fe7378907ab86e3ef | 45388fec03a4acdac3620611b3bccfa3c991d65f | refs/heads/master | 2020-04-28T21:57:39.309165 | 2019-01-28T19:10:28 | 2019-01-28T19:10:28 | 175,600,478 | 1 | 0 | null | 2019-03-14T10:34:02 | 2019-03-14T10:34:02 | null | UTF-8 | Python | false | false | 33,830 | py | import json
import time
import sys
import msfrpc
import auto_commands
import psutil
import MySQLdb
#import MySQLdb
import threading
import subprocess
import logging
import logging.handlers
import threading
import Auto_logger
import json
import IPexploits
import commands,os
import texttable as tt
import csv
import os
... | [
"furqankhan08@gmail.com"
] | furqankhan08@gmail.com |
4a47178fb06d05660bafa29a5ef90b32d359dd97 | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/site-packages/numpy/linalg/__init__.py | 5f6f0789803b35e7885c22cbd333ab9c1a00c704 | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/py-numpy-1.18.3-c5tvrr2q5vwgtvc6f3ld57v6y4ahvr2h/lib/python3.7/site-packages/numpy/linalg/__init__.py | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
3a08322542080a2fcc64710b9dc2610df64888eb | 00820b522cc16bf996f1ef44a94a2f31989c4065 | /abc/abc135/a.py | fd0e4e82004daed404daa9c533c478c68aa7447d | [] | no_license | yamato1992/at_coder | 6dffd425163a37a04e37507743a15f67b29239fc | 6e0ec47267ed3cae62aebdd3d149f6191fdcae27 | refs/heads/master | 2020-08-31T11:17:03.500616 | 2020-06-12T15:45:58 | 2020-06-12T15:45:58 | 218,678,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | A, B = map(int, input().split())
k = (A + B) / 2
if k % 1 == 0:
print(int(k))
else:
print('IMPOSSIBLE') | [
"yamato.mitsui.orleans@gmail.com"
] | yamato.mitsui.orleans@gmail.com |
b832f61d96cc32d7408a37057ca8f6beeaa6d209 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/dalvik/dex/inject/InjectPayloadDexRange.pyi | 6efab5017e40b6f8e42699d88edaa8c65a0cbbb8 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | pyi | from typing import List
import ghidra.app.plugin.processors.sleigh
import ghidra.program.model.lang
import ghidra.program.model.listing
import ghidra.program.model.pcode
import java.lang
class InjectPayloadDexRange(object, ghidra.program.model.lang.InjectPayload):
CALLFIXUP_TYPE: int = 1
CALLMECHANISM_TYPE: i... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
dced9c197b5f1c3d8ec2b246cbf2d816188ae156 | 0bcee5fb01f99957e49c14b0e8831e7d6eedef2c | /emlp/nn.py | ed8113b2aaa95058f346e96ef138bb3dfdd01daf | [
"MIT"
] | permissive | g-benton/equivariant-MLP | 4cb758b912734e062c7a2d6492f639b79d761666 | 1f749dc1dc21de7c5f01ab5348dc7912f34de0a1 | refs/heads/master | 2023-04-04T05:30:15.342439 | 2021-04-02T16:59:49 | 2021-04-02T16:59:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,654 | py | import jax
import jax.numpy as jnp
import objax.nn as nn
import objax.functional as F
import numpy as np
from emlp.reps import T,Rep,Scalar
from emlp.reps import bilinear_weights
from emlp.reps.product_sum_reps import SumRep
import collections
from oil.utils.utils import Named,export
import scipy as sp
impor... | [
"mfinzi@hmc.edu"
] | mfinzi@hmc.edu |
741d55862503d5f145872c689ccfd3f4780a57c2 | 645b5211c50b1a07a5d576b96624b22055802dc4 | /pvw-dependencies/pv-flow/flow/plugins/__init__.py | 1b8e3c325a97cccaf1c8c5f4654e6b07c027e9f1 | [
"Apache-2.0"
] | permissive | dealenx/hpccloud-kemsu | 7c3a33e5ce01560d6fc7abcb9524e4526b9f4848 | 42fc44b06385c6eb25a979477dcea53fe66cfbfa | refs/heads/master | 2023-02-05T21:13:07.328928 | 2021-06-25T04:56:39 | 2021-06-25T04:56:39 | 252,550,259 | 3 | 0 | Apache-2.0 | 2023-01-24T23:21:39 | 2020-04-02T19:41:31 | Python | UTF-8 | Python | false | false | 626 | py | import os
from paraview import simple
# -----------------------------------------------------------------------------
MODULE_PATH = os.path.dirname(os.path.abspath(__file__))
PLUGINS = [
'parflow.py'
]
FULL_PATHS = [
'/Applications/ParaView-5.6.0-1626-g52acf2f741.app/Contents/Plugins/ParFlow.so',
]
# -----... | [
"sebastien.jourdain@kitware.com"
] | sebastien.jourdain@kitware.com |
6cd6eee44b489002c6e6e5258534b94e5f4f6c30 | 6be956588b6bfdb5004d812872ef23973de9e07c | /l_006_docker/ubuntu/load_all.py | e24265db010f75fe97e70320bfbd6f2c4639320b | [] | no_license | Serg-sh/teleBots_aiogram | 45c8ee60501cff9a6035dbbab820975aade897e8 | 4bc9d452b6b6098fb25d4c9704a025737d59d4c8 | refs/heads/master | 2023-06-10T14:28:10.696277 | 2021-07-05T14:30:46 | 2021-07-05T14:30:46 | 375,966,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | import asyncio
import logging
from aiogram import Bot, types
from aiogram import Dispatcher
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from config import TOKEN
from sql import create_pool, create_db
# from aiogram.contrib.fsm_storage.redis import RedisStorage2
logging.basicConfig(format=u'%(filena... | [
"serg.shp@gmail.com"
] | serg.shp@gmail.com |
f5efd08c910b830ef549e690e939ca4a01a2f950 | 9615178b79a69519883c092b20cfdd060b426a69 | /sublemon/version.py | 2e863c21379228f97e1ba1ac4cb053db461ad577 | [
"MIT"
] | permissive | emuhedo/sublemon | 3635799567a8b18f863d582e7b23d6840069ce37 | 198da2ec96d4d50c7017f4ebfa8e69e5aa0681b0 | refs/heads/master | 2020-04-02T09:22:31.272188 | 2018-10-20T19:10:18 | 2018-10-20T19:10:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | """Version info for the `sublemon` library."""
__version_info__ = (0, 0, 2)
__version__ = '.'.join(str(i) for i in __version_info__)
| [
"welch18@vt.edu"
] | welch18@vt.edu |
8a70a022a1bff29b68d30aa56e8fbe8aadb30ed0 | 14f1af759b594b4fab570fd98fc8dceae668d62f | /file_IO_exercise/bonus_crashTest.py | b5c7ff5ef2a8d870dfe9eba6a717490f50abbd02 | [] | no_license | ziqingW/python-exercise-flex-Mar08 | cb10bf8c6f376808ff5bfadc86066a7c31b48120 | 070be19fb63b1ec6312c477bb656c19339448d67 | refs/heads/master | 2021-04-03T01:45:53.533366 | 2018-03-09T16:51:43 | 2018-03-09T16:51:43 | 124,464,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | import io
file_handle = io.StringIO()
while True:
file_handle.write("B" * 1024 * 1024)
size_contents = len(file_handle.getvalue())
print("Characters count: {}".format(size_contents))
# crash happens at counting of 208666624
# MemoryError
# I use 1mb as one time write, so totally it reached to 200mb
# it's ... | [
"redtaq@hotmail.com"
] | redtaq@hotmail.com |
2e18e65d3098282a56dc5d1a6a480e964b0032af | 176bda9771b0ec07a3206112eb4dbd34f5dc293a | /seznamy/seznamy/06_zmena_polozky.py | 2f5345e2776005aa4f10f4fe61bfd83a219421a2 | [] | no_license | HelenaJanda/pyladies-7 | 8b4254f85295fb5695c60b1b5d8f70e29d1a999f | 00613e2ff1bea2b8b8f60d3e4ce7a83345f2300d | refs/heads/master | 2022-12-24T03:12:35.338933 | 2020-10-14T15:32:46 | 2020-10-14T15:32:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | # Zkusme zmenit pismeno v retezci
retezec = "ahoj"
retezec[0] = "A"
print(retezec)
# A nyni v seznamu
cisla = [1, 0, 2, 3, -6, 8, 13]
cisla[0] = 42
print(cisla) | [
"vojtech.ruz@gmail.com"
] | vojtech.ruz@gmail.com |
676193468f407b65515fcd72b955175e02eb7f4c | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ggH_SF/Full2017_v6/cuts_loose.py | 5b5523ca9223e6190987132c5c63712a4cce2ab3 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 5,984 | py |
supercut = ' mll>12 \
&& Lepton_pt[0]>25 \
&& Lepton_pt[1]>10 \
&& (abs(Lepton_pdgId[1])==13 || Lepton_pt[1]>13) \
&& (nLepton>=2 && Alt$(Lepton_pt[2],0)<10) \
&& abs(Lepton_eta[0])<2.5 && abs(Lepton_eta[1])<2.5 \
&& ptll>30 \
&& Pu... | [
"nicolo.trevisani@cern.ch"
] | nicolo.trevisani@cern.ch |
1aef6511d6c15c98a7eb11431325e8bdb0e80f1c | 3ef3266bcc8d74e81bf303bdd16fcaa5e22f142b | /telemetry/telemetry/internal/story_runner_unittest.py | f621c11785d550313eb3939d029c1d4cb3d42663 | [
"BSD-3-Clause"
] | permissive | chandangoyal/catapult | 6cf7a30f1c655d6ba82c4766453b767b9f720efe | 52d748d48b4d5b334c0416954ac73f4c352b6627 | refs/heads/master | 2021-07-19T22:59:09.101731 | 2017-10-26T22:26:14 | 2017-10-26T23:34:09 | 108,620,526 | 0 | 0 | null | 2017-10-28T04:49:00 | 2017-10-28T04:49:00 | null | UTF-8 | Python | false | false | 52,103 | py | # 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.
import json
import math
import os
import shutil
import StringIO
import sys
import tempfile
import unittest
from py_utils import cloud_storage # pylint: dis... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
81eaca22372f4565c7fec498ad3d996d96707f81 | 2ecfe0e10d10513917e4f2770e0a56075404c5d8 | /oldnumba/exttypes/jitclass.py | 2e89053cda7b823f46c4d499735c02ce96b0d72c | [
"BSD-2-Clause"
] | permissive | laserson/numba | 84ab7615ea0177b496a63e2a86319f0b12992cd2 | 35546517b27764a9120f6dfcd82eba7f4dd858cb | refs/heads/master | 2020-05-20T23:13:23.011971 | 2014-12-08T20:16:20 | 2014-12-08T20:16:20 | 16,754,385 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,662 | py | """
Compiling @jit extension classes works as follows:
* Create an extension Numba type holding a symtab
* Capture attribute types in the symtab ...
* ... from the class attributes:
@jit
class Foo(object):
attr = double
* ... from __init__
... | [
"markflorisson88@gmail.com"
] | markflorisson88@gmail.com |
e54bf79baf0acedc05e53d70a7ae27e37fdab96a | 59254f1c203bd7ebd3a5d85d5ec31959c1e90182 | /rdis/formalisms/RDIS/primitive2connection.py | a7f32d38fdb66e9533143417be4bde7ef91ff1b1 | [] | no_license | monicadelaine/preop_create | c9c687012a23d99d200d4396237ba69862a285fc | 34dbe0bb8d96d6adcb2c79ac33474007044b65dd | refs/heads/master | 2020-04-11T04:23:20.150444 | 2013-02-22T22:02:51 | 2013-02-22T22:02:51 | 68,144,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | py | """
__primitive2connection.py_____________________________________________________
Automatically generated AToM3 syntactic object (DO NOT MODIFY DIRECTLY)
Author: pkilgo
Modified: Sun Apr 15 13:18:31 2012
______________________________________________________________________________
"""
from ASGNode import *
from ATO... | [
"mahodnett@crimson.ua.edu"
] | mahodnett@crimson.ua.edu |
5ad20708bb35bfc132522baadc07ab27a5c61a61 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/pandas/2015/12/test_format.py | 6c4e4dd844fc92b601ab61e33678cf0d74327aa5 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 152,171 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
from distutils.version import LooseVersion
import re
from pandas.compat import range, zip, lrange, StringIO, PY3, lzip, u
import pandas.compat as compat
import itertools
import os
import sys
from textwrap import dedent
import warnings
from numpy import na... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
39643dc2ed9ecf04dec6ff9dde56590ba88e04a0 | 0bde5f7f09aa537ed1f4828d4e5ebee66475918f | /h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_relevel.py | cd2911c2ef668d093498efb7a014986253e94b6f | [
"Apache-2.0"
] | permissive | Winfredemalx54/h2o-3 | d69f1c07e1f5d2540cb0ce5e6073415fa0780d32 | dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7 | refs/heads/master | 2022-12-14T08:59:04.109986 | 2020-09-23T08:36:59 | 2020-09-23T08:36:59 | 297,947,978 | 2 | 0 | Apache-2.0 | 2020-09-23T11:28:54 | 2020-09-23T11:28:54 | null | UTF-8 | Python | false | false | 930 | py | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
import numpy as np
def h2o_H2OFrame_relevel():
"""
Python API test: h2o.frame.H2OFrame.relevel(y)
"""
python_lists = np.random.randint(-5,5, (100, 2))
h2oframe = h2o.H2OFrame(p... | [
"noreply@github.com"
] | Winfredemalx54.noreply@github.com |
20441db34cdbb7bf136e9eb5365a49f9a7aa8058 | 65fce73a1e6a36718238cdef09a17493b19532a0 | /16/test/test_document_frequency_response_entity.py | c5787167fde15302326b94889bfb8d06f4cdb9e8 | [
"Apache-2.0"
] | permissive | apitore/apitore-sdk-python | eb419589609efb86bd279cd1733c2a03cdc03680 | c0814c5635ddd09e9a20fcb155b62122bee41d33 | refs/heads/master | 2020-03-21T10:06:34.557781 | 2018-06-23T21:26:27 | 2018-06-23T21:26:27 | 138,434,217 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | # coding: utf-8
"""
Document frequency APIs
Document frequency of Wikipedia.<BR />[Endpoint] https://api.apitore.com/api/16 # noqa: E501
OpenAPI spec version: 0.0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
im... | [
"keigoht@gmail.com"
] | keigoht@gmail.com |
cd5c3d30b568aaa4322afa96b7a059e9f2d2c049 | 68d9fffda9c1ee0f4819371067adfd4985332319 | /python/108.将有序数组转换为二叉搜索树.py | 987eb6ba870034bcba75c49281ce7e0aac793c31 | [
"MIT"
] | permissive | Wanger-SJTU/leetcode-solutions | ade9486cef05ede6fa44cbbb5d726037518fac15 | eb7f2fb142b8a30d987c5ac8002a96ead0aa56f4 | refs/heads/master | 2023-04-11T19:56:13.561234 | 2021-05-10T12:00:28 | 2021-05-10T12:00:28 | 129,606,869 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def sortedArrayToBST(self, nums):
"""
:type nums: List[int]
:rtype: TreeNode
"""
... | [
"howiechen@sjtu.edu.cn"
] | howiechen@sjtu.edu.cn |
36066f0105b092789e16eb202a786c374dd4c3c3 | bfdab27f224d9cac02e319fe55b53172fbf8d1a2 | /motion_editor_core/data/atlas_old/positions/arm/vi4_kal_arm56l.py | 85fc1994e6fb0a439a7f15c15feb99ec38484963 | [] | no_license | tu-darmstadt-ros-pkg/motion_editor | c18294b4f035f737ff33d1dcbdfa87d4bb4e6f71 | 178a7564b18420748e1ca4413849a44965823655 | refs/heads/master | 2020-04-06T12:37:30.763325 | 2016-09-15T14:11:48 | 2016-09-15T14:11:48 | 35,028,245 | 2 | 3 | null | 2015-05-05T13:20:27 | 2015-05-04T10:18:22 | Python | UTF-8 | Python | false | false | 71 | py | { 'vi4_kal_arm56l': [-1.936, -0.7718, 3.1416, -0.2321, 0.509, 0.2098]}
| [
"martin.sven.oehler@gmail.com"
] | martin.sven.oehler@gmail.com |
00b5fbd1b10e3a326da7fa05e534df9b62574feb | 5fd32c6c52fda2739f3423be9d11fb932611bea5 | /Python/bosch/bbs_mop_crawl.py | c13f3b74571579a28adc094bd5c4d05c085f4bd4 | [] | no_license | luogangyi/Spider | 446765886c328602cd4224bfe6b7b5e51633a7d7 | e703f69399854331a141a2f2270d4e9b9e2c63e3 | refs/heads/master | 2021-01-18T18:13:03.048432 | 2014-06-10T17:21:46 | 2014-06-10T17:21:46 | 11,663,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | #!/usr/bin/python
#-*-coding:utf-8-*-
from config import *
from bbs_utils import *
from utils import *
from baidu import Baidu
from goole_search import Google
MOP_INFO_SOURCE_ID = 20
def main():
try:
obj = Baidu(id,'dzh.mop.com','bbs')
obj.main()
except Exception, e:
... | [
"lgy181@qq.com"
] | lgy181@qq.com |
38bbe3bd03f55ab1849071c514c13807a7883541 | 488de2f3cadeb866ccbe4064411f7db5d3dc3a57 | /ttt.py | 252be389ef5f8e434dbf58c94879cffea666b1a6 | [] | no_license | yp000925/Holo_synthetic | 8a23d587462e79efe5ba27f8c0a6ad8d9fc028b9 | 711b449bd6295a95d2a2a6e73fcea47c8058dad4 | refs/heads/master | 2023-08-30T04:39:16.820671 | 2021-10-31T04:14:08 | 2021-10-31T04:14:08 | 317,855,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,162 | py | from __future__ import print_function, division
import sys
import os
import torch
import numpy as np
import random
import csv
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms, utils
from torch.utils.data.sampler import Sampler
import pandas as pd
from PIL import Image
class myDatalo... | [
"yp000925@outlook.com"
] | yp000925@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.