blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab388f793983f211a87b38848eb922961c385516 | b6010878b98cc924bcafda43893e8ca1d375f4bb | /parser.py | a855ab1a133713966d57cc09d5575abd3b08e091 | [] | no_license | pepijndevos/bobcat | 7fc06e17dbec63750845bcd6b75465485bd9d07f | d4dea0b62c9fe9d4396be0d17f94d7a5bf289022 | refs/heads/master | 2020-03-26T03:36:02.603236 | 2018-09-01T14:38:27 | 2018-09-01T14:38:27 | 144,462,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,296 | py | from ply import lex
from ply.lex import TOKEN
tokens = [
# Identifiers
'ID',
# constants
'INT_CONST_DEC', 'INT_CONST_OCT', 'INT_CONST_HEX', 'INT_CONST_BIN',
'FLOAT_CONST', 'HEX_FLOAT_CONST',
'CHAR_CONST',
#'WCHAR_CONST',
# String literals
'STRING_LITERAL',
#'WSTRING_LITERAL',
... | [
"pepijndevos@gmail.com"
] | pepijndevos@gmail.com |
27456c5262db06b8bef96281690b636ec91d8907 | 073c2fd73875ce4e7d061623b8403f8d77c45d92 | /cohesity_management_sdk/models/restore_app_task_state_proto.py | 10ff0ddfb0d0caef8f2dea7883811f228b6e1723 | [
"Apache-2.0"
] | permissive | naveena-maplelabs/management-sdk-python | b11441b2edccc5a1262785bd559ad4b3ea984c3b | 06ce4119d955dc08cdbc5109c935afcfcd9d65ab | refs/heads/master | 2021-05-20T10:52:12.776816 | 2020-03-10T03:28:08 | 2020-03-10T03:28:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Cohesity Inc.
import cohesity_management_sdk.models.restore_app_params
class RestoreAppTaskStateProto(object):
"""Implementation of the 'RestoreAppTaskStateProto' model.
TODO: type model description here.
Attributes:
app_restore_progress_monitor_subtask_... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
3e5b0ba83f75b854bad02097f5a41b1eb1fa092c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/321/104630/submittedfiles/jogoDaVelha_BIB.py | ef680987742f43f7773f7fd8ccbe646aa5e714c4 | [] | 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 | 1,288 | py | # -*- coding: utf-8 -*-
# COLOQUE SUA BIBLIOTECA A PARTIR DAQUI
import random
tabuleiro =[
[1,1,1],
[1,1,1],
[1,1,1]]
def nome():
nome = str(input('Qual seu nome? \n'))
return nome
def simbolo():
s = str(input('Qual símbolo você deseja utilizar no jogo? (X ou O) \n'))
while s != 'X' ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e05f017bf8b3f62820b45ff9151749491fee423e | 10d08b2531672de54d924fec6654a978cb082055 | /fos/actor/polygonlines.py | 31b4955bed4b6a56f181ca6606143957e9376dcc | [
"BSD-3-Clause"
] | permissive | arokem/Fos | 05afa04f05ba3b0585e38dfa79ec7ae4332ec8f9 | 5066bbd74954ba7e60eeb06451f3a25ef1b291e2 | refs/heads/master | 2021-01-18T15:59:59.905221 | 2011-08-15T14:16:50 | 2011-08-15T14:16:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,855 | py | import scipy.spatial as sp
import numpy as np
from fos.lib.pyglet.gl import *
from fos import Actor
from fos.core.intersection import ray_aabb_intersection
class PolygonLines(Actor):
def __init__(self,
vertices,
connectivity,
colors = None,
affi... | [
"git@unidesign.ch"
] | git@unidesign.ch |
a4a434e1abbb243fe9c141b2cd61b361631bc774 | 55ceefc747e19cdf853e329dba06723a44a42623 | /_CodeTopics/LeetCode/1-200/000012/000012.py | 34382f7be371ec1d8887db2f2cda6c7f0cd89365 | [] | 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 | 1,035 | py | class Solution(object):
def intToRoman(self, num):
"""
:type num: int
:rtype: str
"""
res = ""
nums = [1000, 500, 100, 50, 10, 5, 1]
letters = ["M", "D", "C", "L", "X", "V", "I"]
i = 0
flag = 0
while num > 0:
if num >= num... | [
"noreply@github.com"
] | BIAOXYZ.noreply@github.com |
d0ca2278af93cf0521f1a71d22dd494b20804760 | ea48ef0588c104e49a7ebec5bd8dc359fdeb6674 | /api/snippets/serializers.py | 802503d73cf66c4cf043190921ed0e2be369d0ef | [] | no_license | Jizishuo/django--text | c0d58d739ef643c7f3793fbead19302778670368 | 152a5c99e7a16a75fda2f1f85edcfdce9274c9c2 | refs/heads/master | 2020-04-01T10:39:18.131551 | 2018-11-18T13:31:59 | 2018-11-18T13:31:59 | 153,125,799 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | from rest_framework import serializers
from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES
class SnippetSerializer(serializers.Serializer): # 它序列化的方式很类似于Django的forms
id = serializers.IntegerField(read_only=True)
title = serializers.CharField(required=False, allow_blank=Tr... | [
"948369894@qq.com"
] | 948369894@qq.com |
1fecc0c4d13d877ece282bd2a8ebf7d6f3d6fde6 | 5158d2aa9839dcf80340ef369db7eada19f3ff8b | /test.py | 1fe2fcc807e3f3e645ccd632e01c386ea08a6bad | [] | no_license | andrewsmedina/flh-pvcloud | 31de2e5734a6f91db4c618fa20759300e2930596 | 1799b17039dde004461982466f58cc464e6488b8 | refs/heads/master | 2021-01-11T03:39:57.926994 | 2016-10-13T03:56:46 | 2016-10-13T03:56:46 | 71,403,725 | 0 | 0 | null | 2016-10-19T22:14:25 | 2016-10-19T22:14:24 | null | UTF-8 | Python | false | false | 1,691 | py | #!/usr/bin/env python
import os
import sys
import django
import json
def test_pvs_energy_daily():
from pvs.models import Energy
#pvs_serial = '0000000097894c9b'
pvs_serial = '00000000f6392e07'
pvs_en_daily = Energy.get_energy_daily_output(pvs_serial)
result_list = []
for entry in pvs_en_... | [
"lee.shiueh@gmail.com"
] | lee.shiueh@gmail.com |
e95147eb86b47413be4c0af28598db219b730732 | f5a53f0f2770e4d7b3fdace83486452ddcc996e1 | /env3/lib/python3.6/site-packages/django_tables2/columns/linkcolumn.py | adf587625eda5d92ecd166bee5d301e54ef9251c | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | fireman0865/PingBox | 35e8fc9966b51320d571b63967e352a134022128 | 0f00eaf88b88e9441fffd5173a1501e56c13db03 | refs/heads/master | 2023-01-20T07:55:59.433046 | 2020-03-15T13:36:31 | 2020-03-15T13:36:31 | 247,466,832 | 1 | 0 | Apache-2.0 | 2022-12-26T21:30:32 | 2020-03-15T12:59:16 | Python | UTF-8 | Python | false | false | 6,118 | py | from .base import Column, library
class BaseLinkColumn(Column):
"""
The base for other columns that render links.
Arguments:
text (str or callable): If set, this value will be used to render the
text inside link instead of value. The callable gets the record
being rendered... | [
"fireman0865@gmail.com"
] | fireman0865@gmail.com |
29412168a35029446a3f8458bcf3b90a9ca5c7bb | 12a5b72982291ac7c074210afc2c9dfe2c389709 | /online_judges/Codeforces/228/E/code.py | df84b84afc6501c45b644b377d5dc32fca5c6d4c | [] | no_license | krantirk/Algorithms-and-code-for-competitive-programming. | 9b8c214758024daa246a1203e8f863fc76cfe847 | dcf29bf976024a9d1873eadc192ed59d25db968d | refs/heads/master | 2020-09-22T08:35:19.352751 | 2019-05-21T11:56:39 | 2019-05-21T11:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | n = int(raw_input())
ciel = 0
jiro = 0
maxValues = []
for x in xrange(n):
l = map(int,raw_input().split())
if (l[0] % 2 == 0):
for i in xrange(0,(l[0])/2):
ciel += l[1 + i]
jiro += l[l[0]/2 + i + 1]
else:
for i in xrange(0,((l[0])/2)):
ciel += l[1 + i]
jiro += l[(l[0])/2 + i + 2]
maxValues.appe... | [
"mariannelinharesm@gmail.com"
] | mariannelinharesm@gmail.com |
a9c8c88180249969cff26aeb304d575a5691efdc | bc441bb06b8948288f110af63feda4e798f30225 | /app_store_sdk/model/resource_manage/filter_strategy_pb2.pyi | c7feb66ed7c223ea9ba231ff3e42ab314f2b82d4 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,421 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from app_store_sdk.model.console.cmdb_query_strategy_pb2 import (
CmdbQueryStrategy as app_store_sdk___model___console___cmdb_query_strategy_pb2___CmdbQueryStrategy,
)
from app_store_sdk.model.resource_manage.filter_condition_group_pb2 import (... | [
"service@easyops.cn"
] | service@easyops.cn |
6e33bdb52df70a1d3f34b66cbe70b041167f2189 | 3fbfabfaaada7b9b77e8a1df8fed4de444070d49 | /session_10/Employee.py | ab419235cf5bb43b1a9bf7a2b7ac1bb3742016d0 | [
"MIT"
] | permissive | dravate/spark_python_course | df36a561ab2cf8f763dd02655319cd6bf5b7876c | 519389fdb21d78cd6d19e1ad2f7c782bc1449a83 | refs/heads/main | 2023-07-08T06:53:27.635106 | 2021-08-03T14:44:55 | 2021-08-03T14:44:55 | 385,127,461 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | class Employee:
'Common base class for all employees'
empCount = 0
def __init__(self, name, salary):
self.name = name
self.salary = salary
Employee.empCount += 1
def displayCount(self):
print ("Total Employee {}".format( Employee.empCount))
def displayEmployee(self):
p... | [
"sopan.shewale@gmail.com"
] | sopan.shewale@gmail.com |
67df998e15aaf63b368447b166ddfc3cd29f7411 | 60d0252aabe5d929af8c94cdddd502605e7bafdd | /crawler_novels/www.ck101.org.py | 4946797433701f255fa0933a31a2593df36791fe | [] | no_license | SlovEnt/Web_Craler_Series | ead253b56f99bcd0bac33c2a66d226673c7f68fe | 9f77858826254d6631486f4770760e9e78baea68 | refs/heads/master | 2020-06-09T23:30:38.984620 | 2019-09-13T13:55:02 | 2019-09-13T13:55:02 | 193,528,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,238 | py | # -*- coding: utf-8 -*-
__author__ = 'SlovEnt'
__date__ = '2019/6/24 22:07'
import time
import os
from bs4 import BeautifulSoup
from collections import OrderedDict
from chs_tools.get_html_page import get_html_all_content, chrome_get_html_all_content
from chs_tools.print_log import C_PrintLog
from chs_tools.param_info ... | [
"slovent@163.com"
] | slovent@163.com |
fe9e7ae36613eddbc9b67fab34ddea53b95cc7bc | baf3b9e0f80a545ba1e087d54e4de7a9fe10f279 | /滑动窗口/209_长度最小的子数组.py | 6f00de24476ca4c1e8c21ef53268ba5989b0febb | [] | no_license | llin0420/Leetcode_in_python3 | 5e0755c9b6bb5fe92fd1e0bd7d563e8a3a20f88a | 41684ff99b2f881304b08c3c753b0df48e0a6b40 | refs/heads/master | 2022-12-15T16:23:39.991920 | 2020-09-09T08:05:55 | 2020-09-09T08:05:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,402 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 12 13:17:24 2020
@author: leiya
"""
'''
0712
这道题在滑动窗口中稍微有些特殊
我们说过,尽量将对输出的更新放到小循环外面,即尽量不要在缩小窗口的时候更新输出,以防特殊情况
但是这道题需要将更新放入小循环中,因为只有在小循环中才能找到需要更新的精确数值,一旦出了小循环,就不是如何要求的输出值了
在这道题里就是出了小循环,该滑动窗口和<s,不满足更新输出值的要求,这道题可以和904水果题类比
水果题进入小循环是不符合要求,这道题是进入小循环符合要求,要在符合要求的基础上看看有没有最优解,因为我们是... | [
"792412589@qq.com"
] | 792412589@qq.com |
ae7809f3604c6604f22ba1fa70a1e9c3ed5f2c69 | 57d978b0ba29c745cf409e819f2f7e42e98516dc | /ibs/_input.py | ce3078f28411719e86def04fdd019b03afda1c2e | [
"MIT"
] | permissive | lnls-fac/lnls | 26564b9bdaf0602e2f50d67e294d0d8ba5cc0f82 | 91299d84ce7628d33c46861687d17a574428bc85 | refs/heads/master | 2023-02-09T00:26:47.298350 | 2022-11-25T19:25:50 | 2022-11-25T19:25:50 | 33,893,299 | 5 | 2 | MIT | 2022-11-25T19:25:51 | 2015-04-13T20:51:15 | Python | UTF-8 | Python | false | false | 2,116 | py | import numpy as _np
import copy as _copy
def read_energy_acceptance_file(fname, eRF):
# reads raw data from file
lines = [line.strip() for line in open(fname)]
# processes raw data
accp, accn = [], []
for line in lines:
if not line or line[0] == '#':
continue
values = ... | [
"xresende@gmail.com"
] | xresende@gmail.com |
bf10c5772f31298525eb55957cf0421f17ad7983 | 87cac4166f07729f1c94066259996c8b752c1202 | /examples/calc/calc_distance.py | dc0d473aceccd019cbfe3f28a154c888c08db7e6 | [] | no_license | danielsocials/bbox | 068238a15880468d214109a23017a19e70fc13ec | 292e350b1cefbbab987baf8c946d4021abd211ea | refs/heads/master | 2020-03-16T06:25:47.907369 | 2018-05-08T04:42:45 | 2018-05-08T04:42:45 | 132,554,332 | 0 | 0 | null | 2018-05-08T04:36:35 | 2018-05-08T04:36:35 | null | UTF-8 | Python | false | false | 589 | py | import asyncio
from aiobbox.cluster import get_cluster
from aiobbox.client import pool
from aiobbox.handler import BaseHandler
class Handler(BaseHandler):
def add_arguments(self, parser):
parser.add_argument('--a',
type=float)
parser.add_argument('--b',
... | [
"superisaac.ke@gmail.com"
] | superisaac.ke@gmail.com |
c26c22a572fc6788014f0e253f267b21cc87a9dd | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/statsmodels/2016/12/test_tsaplots.py | 91616d7673599e86c8dfeba8b0c28021f08f1d27 | [] | 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 | 4,803 | py | from statsmodels.compat.python import lmap, map
import numpy as np
import pandas as pd
from numpy.testing import dec, assert_equal
import statsmodels.api as sm
from statsmodels.graphics.tsaplots import (plot_acf, plot_pacf, month_plot,
quarter_plot, seasonal_plot)
import stat... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
71ae2a5380a5dac7a539c945d44e63ada72a53ba | bf4f4731f099dcdc964509b51ffc6ce8875f6041 | /ll.py | c48d2277a0c507a6b81eae89b47f552294de014e | [
"MIT"
] | permissive | YanglanWang/squad | 8c9b98d3bd4ff0fe824bc08fc2a314fb45936b38 | 1019e4c7bf1a90c049d16ed1b48553964468c790 | refs/heads/master | 2020-06-19T19:02:30.891520 | 2019-08-02T15:53:15 | 2019-08-02T15:53:15 | 196,834,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py |
# import torch
# import torch.nn.functional as F
# import torch.nn as nn
# # input is of size N x C = 3 x 5
# m = nn.LogSoftmax(dim=1)
# input = torch.randn(3, 5, requires_grad=True)
# print(input)
# print(F.softmax(input))
# print(F.log_softmax(input))
# print(m(input))
# # each element in target has to have 0 <= val... | [
"yanglan-17@mails.tsinghua.edu.cn"
] | yanglan-17@mails.tsinghua.edu.cn |
818a6404248346ef4bcc70ea941cc25a5cc2006c | 1b7b13984a90b5d11331966fe1b1bb88f2b85dd7 | /modeling/test.py | b583abada1374a6055aa896f3d6fcaa16e67abe6 | [] | no_license | yekeren/VCR | 23cf6b17ce7adcc057a531182898900dcd75727b | 6a573edf3183e9a8ef2056449c53865d8e27125d | refs/heads/master | 2023-04-06T05:41:09.851825 | 2020-04-14T18:26:42 | 2020-04-14T18:26:42 | 232,395,848 | 0 | 0 | null | 2023-03-24T23:35:46 | 2020-01-07T19:01:27 | Python | UTF-8 | Python | false | false | 2,259 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl import app
from absl import flags
from absl import logging
import os
import numpy as np
import tensorflow as tf
from google.protobuf import text_format
from protos import pipeline_pb2
from modeling i... | [
"yekeren.cn@gmail.com"
] | yekeren.cn@gmail.com |
96df20298ac9dc1fdaca45b61783c50aaaad575f | 219d7694180482e0b9944deb6dee11dcf7bf0e23 | /morecvutils/connectedComponents.py | 58ed9279dc1b6fef5516c8a7b21f18623978e5ce | [
"MIT"
] | permissive | Aresthu/morecvutils | 5e3bfcba2b5c48ec022e641f19b40e2836d2d6bd | 4856d98c45dbd6bcfb86c87f7ec9987c378e244c | refs/heads/master | 2021-04-09T16:03:01.956218 | 2018-02-18T07:14:41 | 2018-02-18T07:14:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | import cv2
try: #OpenCV 2.4
from cv2 import SimpleBlobDetector as SimpleBlobDetector
except ImportError: #OpenCV 3
from cv2 import SimpleBlobDetector_create as SimpleBlobDetector
from numpy import asarray
def doblob(morphed,blobdet,img,anno=True):
"""
img: can be RGB (MxNx3) or gray (MxN)
http://do... | [
"scivision@users.noreply.github.com"
] | scivision@users.noreply.github.com |
df595c77d73ecc81233488dc652b38172a935850 | d86c52f4098fd9c1a102c2d3f5630556e0610fa2 | /fitle/myenv/Lib/site-packages/django/urls/base.py | 0caa424c33ca350337f9994d131b8e12e6d6d6ca | [] | no_license | makadama/bitbucket | 24f05c4946168ed15d4f56bfdc45fd6c0774e0f2 | cabfd551b92fe1af6d9d14ab9eb3d9974b64aa79 | refs/heads/master | 2023-06-19T19:04:03.894599 | 2021-07-15T12:10:39 | 2021-07-15T12:10:39 | 385,203,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:b1fa9d73dc9c6873504ab270b4646eb91e5cd202f9f0a9fffff2342e2183d8ab
size 5587
| [
"adamamakhtarsow@gmail.com"
] | adamamakhtarsow@gmail.com |
3a5912957350ed986573050c9f331ab000478692 | 5d0e8ac83fc0e39adb1b031cc01187bcdeb3a452 | /h2o-py/tests/testdir_javapredict/pyunit_javapredict_irisDRF.py | dde1d997ffd534e4322911996f0d558a268813e9 | [
"Apache-2.0"
] | permissive | xxushans/h2o-3 | f466a3faebb7342c7e41266b5d8ba0a40a2d1cff | 1567366c926b932acf8051a9ef579b966133f5f8 | refs/heads/master | 2021-01-14T08:56:24.477570 | 2015-10-20T20:25:23 | 2015-10-20T20:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py |
def javapredict_iris_drf():
# optional parameters
params = {'ntrees':100, 'max_depth':5, 'min_rows':10}
print "Parameter list:"
for k,v in zip(params.keys(), params.values()): print "{0}, {1}".format(k,v)
train = h2o.import_file(pyunit_utils.locate("smalldata/iris/iris_train.csv"))
test = ... | [
"eric.eckstrand@gmail.com"
] | eric.eckstrand@gmail.com |
334b108ede915f2978c4c60ecab922e2db736edb | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/catapult/catapult_build/js_checks.py | 78cc745ebd8c0a9d391d4f7b6b80392c3d74fce2 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 3,390 | py | # Copyright (c) 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 re
import eslint
from py_vulcanize import strip_js_comments
from catapult_build import parse_html
class JSChecker(object):
def __init__(sel... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
dd4532867225260b493c78ccb86707a010c68f3e | 412b0612cf13e9e28b9ea2e625975f3d9a2f52b6 | /2022/16/pressure_release.py | 450cad8ba653b096a272d2898024b05e9b964992 | [] | no_license | AlexClowes/advent_of_code | 2cf6c54a5f58db8482d1692a7753b96cd84b6279 | d2158e3a4edae89071e6a88c9e874a9a71d4d0ec | refs/heads/master | 2022-12-24T19:02:07.815437 | 2022-12-23T17:35:53 | 2022-12-23T17:35:53 | 225,618,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | from collections import defaultdict
import functools
import heapq
from itertools import combinations, pairwise, permutations
import re
from tqdm import tqdm
def main():
pat = r"Valve (\w+) has flow rate=(\d+); tunnels? leads? to valves? ([,\s\w]+)"
flow_rate = {}
graph = defaultdict(dict)
with open... | [
"alexclowes@gmail.com"
] | alexclowes@gmail.com |
b52273a1e19daac8b6173e5b3287d5a6ad803d06 | 4bfdb3ad5b44044113d3d6b586e10281d3987c9e | /infra/bots/recipe_modules/upload_dm_results/api.py | 3005f3e77790c38666ee47a5e9b661f92619102c | [
"BSD-3-Clause"
] | permissive | imxiangpeng/skia | dcdca3538564f2707fde10b43bdcaa6d9b5e0103 | 3e7cddaf32e280fe9f32eec5bfdd8168ca4941b6 | refs/heads/master | 2021-01-23T02:40:18.169644 | 2017-03-23T20:24:50 | 2017-03-24T01:24:57 | 86,016,340 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,932 | py | # Copyright 2016 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.
# Recipe for uploading DM results.
import calendar
from recipe_engine import recipe_api
DM_JSON = 'dm.json'
UPLOAD_ATTEMPTS = 5
VERBOSE_LOG = 'verbose... | [
"skia-commit-bot@chromium.org"
] | skia-commit-bot@chromium.org |
e8aa6f13db12e6079697b3754a63bb24bcc8c34c | 279f415dd1e06c594c6c87deda57e201c73c4542 | /test/espnet2/schedulers/test_noam_lr.py | 1e34d4684444b4b4dde33466d11137fe8f499a5a | [
"Apache-2.0"
] | permissive | espnet/espnet | f7ba47271c1a6b1ed606dbbfb04a7f14220bb585 | bcd20948db7846ee523443ef9fd78c7a1248c95e | refs/heads/master | 2023-08-28T23:43:34.238336 | 2023-08-23T02:51:39 | 2023-08-23T02:51:39 | 114,054,873 | 7,242 | 2,244 | Apache-2.0 | 2023-09-14T08:01:11 | 2017-12-13T00:45:11 | Python | UTF-8 | Python | false | false | 313 | py | import torch
from espnet2.schedulers.noam_lr import NoamLR
def test_NoamLR():
linear = torch.nn.Linear(2, 2)
opt = torch.optim.SGD(linear.parameters(), 0.1)
sch = NoamLR(opt)
lr = opt.param_groups[0]["lr"]
opt.step()
sch.step()
lr2 = opt.param_groups[0]["lr"]
assert lr != lr2
| [
"naoyuki.kamo829@gmail.com"
] | naoyuki.kamo829@gmail.com |
270aaddedb72e83d89edde7860500e85380b8b0d | 4dd695521343d56ff943e8c1768343d7680714e3 | /experiments/scripts_auto_crossdataset_ynoguti_braccent/config_SVM_1024_crossdataset.py | 70cd8e2343abb6a9b2f80d3d2b006aed092d244f | [] | no_license | natharb/environment | ea659ee541f6473e92b5b30c549e52b66f47b280 | 86e6cee6e01d2370abeb7c55a2c8a15001735919 | refs/heads/master | 2021-09-28T02:39:02.222966 | 2018-11-13T12:03:34 | 2018-11-13T12:03:34 | 139,762,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
#Nathália Alves Rocha Batista (nathbapt@decom.fee.unicamp.br)
import sys
sys.path.insert(0, '.')
import bob.bio.spear
import bob.bio.gmm
import numpy
import scipy.spatial
temp_directory = './results/crossdataset_ynoguti_braccent/SVM/1024/temp/'
result_directory =... | [
"nathbapt@decom.fee.unicamp.br"
] | nathbapt@decom.fee.unicamp.br |
378055851595a6f4509513667890d3915c1def51 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/gui/HUD2/features/AttitudeIndicator/AttitudeIndicatorSource.py | d55efec79392f37f2e6fbd53db0997fa8ae8c1b0 | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Embedded file name: scripts/client/gui/HUD2/features/AttitudeIndicator/AttitudeIndicatorSource.py
from gui.HUD2.core.DataPrims import DataSource
from gui.HUD2.hudFeatures import Feature
class AttitudeIndicatorSource(DataSource):
def __init__(self, features):
self._model = features.require(Feature.GAME_M... | [
"55k@outlook.com"
] | 55k@outlook.com |
2dbeed1dcdd89e81a9c6703e2d459c3d9b55a577 | ba46f774793ff06ae12cbed51a024142d2b0f63e | /topiary/cli/outputs.py | a4d26ea8ba21e21749e38ca4d7e35b53b424729f | [
"Apache-2.0"
] | permissive | Saintyven/topiary | 05fe9eb9b0a9bbb851564d0d835d967bf1fce6ab | 04f0077bc4bf1ad350a0e78c26fa48c55fe7813b | refs/heads/master | 2021-09-07T17:21:56.267182 | 2018-02-26T19:56:58 | 2018-02-26T19:56:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | py | # Copyright (c) 2017. Mount Sinai School of Medicine
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"alex.rubinsteyn@gmail.com"
] | alex.rubinsteyn@gmail.com |
f0cfc11ac7bdbd46f6556b49a3637218927f3cb7 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /build/android/gyp/jinja_template.py | ba335a248b06620e7b8f9d1dac8dfd6b516e3ac5 | [
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 6,456 | py | #!/usr/bin/env python
#
# 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.
"""Renders one or more template files using the Jinja template engine."""
import codecs
import argparse
import os
import sys
from u... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
1857e98731a98fbbf1200a924206070e99daf9c6 | bb853b657537eca893032ad08e4c843b5195fa35 | /dateandtime2.py | ff50587bccebcdb78c87b2dd95e50b62bff026b6 | [] | no_license | PrathameshDhumal/Artificial-Intelligence-Assistant-With-Python | 584064e5219479576244d74aafb6f4e4dcbd16cc | 6afcdf792a2e0e1d6168dfb732add3d63158f38d | refs/heads/main | 2023-05-31T01:31:19.202678 | 2021-06-30T19:57:53 | 2021-06-30T19:57:53 | 379,478,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import pyttsx3
import datetime
engine = pyttsx3.init()
def speak(audio):
engine.say(audio)
engine.runAndWait()
def time():
Time = datetime.datetime.now().strftime("%I:%M:%S")
speak(Time)
time()
def date():
year = int(datetime.datetime.now().year)
month= int(datetime.datetime.... | [
"noreply@github.com"
] | PrathameshDhumal.noreply@github.com |
770681d3dbbe5a567c39708a2f499a677b0b69a4 | c6ce21e5b8a906b0bf95cfcac9d84e243c876723 | /PARALLAX/CODE/resnet_train.py | c41dca46d825c0b593e8b6d0f4d047ab9e5385a9 | [] | no_license | yuchanmo/cloud_class | 6450b08017fbe72dde810620365a87cda7ae8abd | b3d2c6589f7a9b8c0340e00487f610a097373ec6 | refs/heads/master | 2020-06-01T06:48:19.669550 | 2019-06-07T04:04:51 | 2019-06-07T04:04:51 | 190,685,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,012 | py | #Copyright 2016 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 applicab... | [
"mojjijji@gmail.com"
] | mojjijji@gmail.com |
f4850aed962c3460094182316ff7933229ed1cb1 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/310/97316/submittedfiles/minha_bib.py | d6b2c61dad7783f3393a133c2502721a863c2a10 | [] | 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 | 499 | py | # -*- coding: utf-8 -*-
import random
def solicitaSimbolodoHumano(a):
a = input('Simbolo que quer jogar: ')
while a!='O' and a!='X' and a!='o' and a!='x':
a = input('Simbolo que quer jogar: ')
return 1
def sorteioPrimeiraJogada(a):
a = random.choice((0,1))
if a ==1:
print('Vencedo... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9d452f69e846718fd2cc84f675566da6c840c37e | 791b790ce8a4ad93ab88cf9a2aea3b2dd70652dc | /Competitions/Codechef/MARCH17/Xenny and Alternating Tasks.py | b6e1e5fcced9841b3dcdab65f1ad2f9859b3d986 | [
"MIT"
] | permissive | Debasmita-01/Competitive-Programming | 16d8778db5ff225519404e88afa4cccf830006b7 | 547859d6ded88a0d3977c2f6e747d80235c054cd | refs/heads/master | 2022-12-25T11:14:55.129524 | 2020-10-01T05:22:01 | 2020-10-01T05:22:01 | 300,511,195 | 3 | 1 | MIT | 2020-10-02T06:06:30 | 2020-10-02T05:32:52 | null | UTF-8 | Python | false | false | 361 | py | t = int(raw_input())
for i in xrange(0, t):
n = int(raw_input())
x = [int(j) for j in raw_input().split(" ")]
x.sort()
for j in xrange(1, n-1):
if x[j-1]+1 != x[j] and x[j-1]+2 != x[j+1]:
print x[j-1]
break
elif x[j-1]+1 != x[j] and x[j]+1 != x[j+1]:
print x[j]
break
elif x[j-1]+2 != x[j+1] and x[... | [
"manish.bisht490@gmail.com"
] | manish.bisht490@gmail.com |
89a0785d067ba85fdb5f0718923cb544b67b8140 | 00b1fe62aff1bbad885a1b13354239b07925c5c1 | /catalyst_rl/rl/scripts/load_db.py | e27de3d61db62001fe0d5978f118d899921047fa | [
"Apache-2.0"
] | permissive | catalyst-team/catalyst-rl | a78675c477bef478d73cd1e7101be6dbb7b586aa | 75ffa808e2bbb9071a169a1a9c813deb6a69a797 | refs/heads/master | 2021-09-22T08:36:12.161991 | 2021-09-13T05:59:12 | 2021-09-13T05:59:12 | 247,928,934 | 50 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | #!/usr/bin/env python
# usage:
# catalyst_rl-rl load-db --db=redis --in-pkl ./my_db_0.pkl ./my_db_1.pkl
import argparse
import pickle
import numpy as np
from tqdm import tqdm
from catalyst_rl import utils
from catalyst_rl.rl.db import MongoDB, RedisDB
def build_args(parser):
parser.add_argument("--host", type=... | [
"scitator@gmail.com"
] | scitator@gmail.com |
6a20e5f8abbe7f63a1bdaa934e00d7d7693ebcfb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03014/s911800035.py | b678df13f7f47ee72f75b442123a31cda6f77d04 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | h, w = map(int, input().split())
s = [list(input()) for _ in range(h)]
u_light = [[0]*w for _ in range(h)] #上をてらせる数
d_light = [[0]*w for _ in range(h)] #下
l_light = [[0]*w for _ in range(h)] #左
r_light = [[0]*w for _ in range(h)] #右
def count_light(i, j):
if s[i][j] == '.':
return 1
else:
retur... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6321a92b239f65d266baddd409d0323cffabd579 | 89b6997b24e404c176358073626a8bfad7bcdb8e | /.history/courses/models_20210412233123.py | f22ac53d1746d99cb174542b2a8b300401606f5f | [] | no_license | mohamedhawas123/Education-platform-django | 513e64ac112880385402ce609077796578b4e9ee | 7b83e66bba66b8b2b1a007f5818a534653e6abfb | refs/heads/main | 2023-07-18T16:19:52.177886 | 2021-09-24T12:04:09 | 2021-09-24T12:04:09 | 352,306,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | from django.db import models
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from .fields import OrderField
class Subject(models.Model):
title = models.CharField(max_length=200)
slug = model... | [
"mohamedhawas123@gmail.com"
] | mohamedhawas123@gmail.com |
a887c48538b070bc949cb678b712fd5ea562c029 | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201029145758.py | 3227cd805384affb4014e12555cfee402b57bfa8 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,497 | py | from django import forms
from wagtail.core import blocks
from wagtail.images.blocks import ImageChooserBlock
from wagtail.contrib.table_block.blocks import TableBlock
class TitleBlock(blocks.StructBlock):
text = blocks.CharBlock(
required = True,
elp_text='Tekst do wyświetlenia',
)
class ... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
6a10fdec032287788f43ac694db394d334627b95 | cd8f7ecd20c58ce1ae0fe3840f7c7ee961aa5819 | /Find Duplicate File in System.py | ac5ae45decb6dd46daedbe7378173039d67c8773 | [
"Apache-2.0"
] | permissive | sugia/leetcode | 9b0f2a3521b088f8f7e5633c2c6c17c76d33dcaf | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | refs/heads/master | 2021-06-05T07:20:04.099488 | 2021-02-24T07:24:50 | 2021-02-24T07:24:50 | 29,124,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | '''
Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups of duplicate files in the file system in terms of their paths.
A group of duplicate files consists of at least two files that have exactly the same content.
A single dire... | [
"noreply@github.com"
] | sugia.noreply@github.com |
b18a2b8e878ac6dab0ef153d54eb8846e3615e8d | 1424812c4f211d3d5e356e8b3889a689162062f3 | /arcade/python/62_check_participants.py | f8957ee5841a7be2c906e5af02edf03edd07382b | [] | no_license | nazomeku/codefights | cb7d3c40be0809695ec524a87c88dbebcf5b47bc | b23f6816f9b5b0720feac1c49c31163923e0a554 | refs/heads/master | 2021-01-22T12:49:35.905165 | 2017-11-21T19:03:37 | 2017-11-21T19:03:37 | 102,357,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | """Given the list of participants, your task is to return the list of
games for which too few people signed up."""
def check_participants(participants):
return [a for a, b in enumerate(participants) if a > b]
| [
"cols.nazo@gmail.com"
] | cols.nazo@gmail.com |
fce324c6496b5a5fd24b5262554147cad286f36a | 3efe2059de4c7efd1f58a385656d19098b7efd63 | /deepiu/tools/ensemble-inference-v2.py | 436205085a0efdf481c2d9609e180ad472bc2c8b | [] | no_license | yangyaoyunshu/image-caption-ai-challenger2017 | 5d2e82b2f8d70ac6d4eb7a0e70f6b406e551189b | 7f2c556587ea1e5c4583fe3b12b8d40c5a2aa2cc | refs/heads/master | 2021-08-31T22:48:55.886186 | 2017-12-23T07:27:04 | 2017-12-23T07:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,927 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file ensemble-inference-v2.py
# \author chenghuige
# \date 2017-10-21 14:56:40.017795
# \Description This is time cosuming 1hour and 12 mintues, and not... | [
"29109317@qq.com"
] | 29109317@qq.com |
8ab8e5f98c41b9fb41c80d47225b946e72e9c11b | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startPyquil365.py | 7bd3571d7cf4002ea5c98aabb057ee26101e6441 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | # qubit number=2
# total number=67
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
24d0293db4c4da28e8dcbdb081b1ca13f6d8bde4 | 55e28e35db5bf6a844df3fb47080500b115a893e | /day6/test/fan2.py | d15faad00febdceb92f9769a970ee29416ca85f6 | [] | no_license | pylarva/Python | 5743ffa4a69db42b642d51b62f9e9b69ddbc1a72 | 71b484950e6dbdcf708726a68a3386d0d6ddc07f | refs/heads/master | 2020-04-19T09:11:11.195393 | 2017-11-16T07:32:59 | 2017-11-16T07:32:59 | 67,507,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:lichengbing
# import fan1
#
# user_input = input('输入编号:')
# if hasattr(fan1, user_input):
# func = getattr(fan1, user_input)
# func()
# else:
# print('no module...')
user_input = input('请输入URL:')
k, v = user_input.split('/')
obj = __import__('lib.' + ... | [
"1326126359@qq.com"
] | 1326126359@qq.com |
3c21849b572848e17c219d6d9115dda9eaf3d56e | d66818f4b951943553826a5f64413e90120e1fae | /hackerrank/Algorithms/Cut the Tree/test.py | 71dbf8141286bc70cf3538beaf3323dcc9737296 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 796 | py | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.cutTheTree(
[100, 200, 100, 500, 100, 600],
[
[1, 2],
[2, 3],
[2, 5],
[4, 5],
[5, 6],
... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
cbb187e7d59019198c646d702aff8fbadc4169a3 | fa89010f366aa33967c12636bf6cfae6105a9ee5 | /ex7/nation_mood.py | cee5016c3dfd5694fae9bb9cc3434bbd28db8739 | [] | no_license | borgr/intro2cs | 4db1985b789d0938d7c9cecddbe5a302f284bd95 | 9030d9831a168d9636093bd5211926666298d80f | refs/heads/master | 2020-05-29T19:35:20.829664 | 2016-10-22T06:07:22 | 2016-10-22T06:07:22 | 15,959,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | #############################################################
# FILE : nation_mood.py
# WRITER : Leshem Choshen + borgr + 305385338
# EXERCISE : intro2cs ex7 200132014
# DESCRIPTION:nation wide tweet functions
#############################################################
from data import load_tweets
from geo import us_... | [
"noreply@github.com"
] | borgr.noreply@github.com |
c843c8f5ac94babd9d6dda5862e4393a08c25abd | b0a1884cd6c40362085dc08c7a091ed7cf1ece7f | /eelbrain/tests/test_mne.py | 06e2009c988be2ab9c2632f8d57ae4e63439b6be | [] | no_license | LauraGwilliams/Eelbrain | 4f37dbcc314063e92425dadf9b1f9f2aeea69a9c | d04fa2e7108c5f683fc145fc44a794d39928f2cb | refs/heads/master | 2021-01-18T16:00:36.727474 | 2015-10-23T13:38:17 | 2015-10-23T13:43:17 | 34,459,099 | 0 | 0 | null | 2015-04-23T13:51:09 | 2015-04-23T13:51:09 | null | UTF-8 | Python | false | false | 7,674 | py | """Test mne interaction"""
from itertools import izip
import os
from nose.tools import eq_, ok_, assert_less_equal, assert_not_equal, assert_in
import numpy as np
from numpy.testing import assert_array_equal, assert_allclose
import mne
from eelbrain import datasets, load, testnd, morph_source_space, Factor
from eelb... | [
"christianmbrodbeck@gmail.com"
] | christianmbrodbeck@gmail.com |
2fc98b738bd56aa8aff7591590b98098af6a04b0 | 37b014820aef8b83e3eca3f102b3d04ef504066e | /readcsv/settings.py | 65777c4908e4034159ad3c696a1251fa850b447a | [] | no_license | juniorcarvalho/readcsv | d8ae35efe65c90363920a1049c17554b0757fe15 | 0a20ad4f96929b9f5bab703f2c47f6c0ff345bc3 | refs/heads/master | 2022-05-25T08:00:16.372555 | 2021-04-08T20:38:00 | 2021-04-08T20:38:00 | 208,878,426 | 1 | 0 | null | 2022-04-22T22:17:01 | 2019-09-16T19:14:28 | Python | UTF-8 | Python | false | false | 5,052 | py | """
Django settings for readcsv project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
fr... | [
"joseadolfojr@gmail.com"
] | joseadolfojr@gmail.com |
a962ff1bdbf5794c6ccf3662675aacd15b94ab20 | de4c5ecaf541d67e7cbf02837d93cf303d23b5da | /tests/app/views/home_tests.py | 457f11123076d3a77c42d472cd58e5fe3b42dc01 | [
"Apache-2.0"
] | permissive | shadowmint/py-test-watcher | d140064cafeb0b2efce8a403a3abd63322f812d0 | 36d33206b104c81e2d6acebdbed2dddee71fe2a7 | refs/heads/master | 2021-01-19T14:07:13.441335 | 2013-07-01T06:07:56 | 2013-07-01T06:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | # Copyright 2013 Douglas Linder
# 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 writing... | [
"linderd@iinet.net.au"
] | linderd@iinet.net.au |
576a5caebe9274dbe6a976f5be2cda765413cea2 | 0faf534ebb6db6f32279e5bee25b968bd425ce3a | /tests/extension/thread_/stream_sink_fifo/test_thread_stream_sink_fifo.py | 2fbe7fdf2573c48b8a204e9797df3ef6b7351a35 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PyHDI/veriloggen | e8647cb2d40737d84e31d6b89c5799bab9cbd583 | f2b1b9567150af097eed1b5e79ba2b412854ef43 | refs/heads/develop | 2023-08-09T10:02:35.626403 | 2023-08-09T00:50:14 | 2023-08-09T00:50:14 | 37,813,184 | 282 | 60 | Apache-2.0 | 2023-07-20T03:03:29 | 2015-06-21T15:05:30 | Python | UTF-8 | Python | false | false | 547 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import veriloggen
import thread_stream_sink_fifo
def test(request):
veriloggen.reset()
simtype = request.config.getoption('--sim')
rslt = thread_stream_sink_fifo.run(filename=None, simtype=simtype,
... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
be41226a5a51288ece78ea6a8101e94652515a8a | 74b812828a80190636523cbad4f3a6fc239484ba | /openff/bespokefit/executor/services/optimizer/app.py | cb29e0c1ed66c8e77bb693ced204a9a750190e59 | [
"MIT"
] | permissive | openforcefield/openff-bespokefit | ef438ddc9a072a280e155d1e2d097068a369f73f | 97262756c5c014e9bd5f799d64755b7f73a6160e | refs/heads/main | 2023-08-17T07:09:11.715404 | 2023-08-04T09:43:57 | 2023-08-04T09:43:57 | 241,694,600 | 29 | 4 | MIT | 2023-09-08T06:14:39 | 2020-02-19T18:31:38 | Python | UTF-8 | Python | false | false | 1,559 | py | import json
from fastapi import APIRouter
from qcelemental.util import serialize
from openff.bespokefit.executor.services import current_settings
from openff.bespokefit.executor.services.optimizer import worker
from openff.bespokefit.executor.services.optimizer.models import (
OptimizerGETResponse,
OptimizerP... | [
"noreply@github.com"
] | openforcefield.noreply@github.com |
b2ccc54baa8f5810be524d0f142b9b43562381c9 | a8592d34f144b71794ebf30f1c2a1b5faf0b053c | /Praktikum2023/Modul_08/codes/diffusion_02.py | c407706419324a395034cba60ab038151f2df39b | [] | no_license | f-fathurrahman/ffr-MetodeNumerik | ee9a6a7153b174b1ba3d714fe61ccbd1cb1dd327 | e3a9da224c0fd5b32e671708e890018a3c4104c4 | refs/heads/master | 2023-07-19T22:29:38.810143 | 2023-07-07T10:02:34 | 2023-07-07T10:02:34 | 107,272,110 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | # Explicit method (forward Euler) for diffusion equation
# Using two vectors for current and future time
import numpy as np
import matplotlib.pyplot as plt
# Global variables !!!
L = 1.5
Tfinal = 1.0
α = 0.1
DO_PLOT = True
# Manufactured solution
def u_exact(t, x):
return 5*x*t*(L-x)
def initial_cond(x):
r... | [
"fadjar.fathurrahman@gmail.com"
] | fadjar.fathurrahman@gmail.com |
cbd55ab8d75ea16cc6b47917fdb3d4bd5b865eac | a3a3e1298db9555eda37f8da0c74a437d897cb1f | /compiled/Python3/Euler_Problem-030.py | a12edacad0729aad1effb41722fb40fbead3d74c | [
"MIT"
] | permissive | LStepanek/Project-Euler_Befunge | 58f52254ee039ef6a5204fc65e62426c5e9d473a | f35fb2adecd737e410dee7b89b456cd61b25ce78 | refs/heads/master | 2021-01-01T17:51:52.413415 | 2017-05-03T17:23:01 | 2017-05-03T17:26:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | #!/usr/bin/env python3
# transpiled with BefunCompile v1.1.0 (c) 2015
def td(a,b):
return ((0)if(b==0)else(a//b))
def tm(a,b):
return ((0)if(b==0)else(a%b))
s=[]
def sp():
global s
if (len(s) == 0):
return 0
return s.pop()
def sa(v):
global s
s.append(v)
def sr():
global s
i... | [
"mailport@mikescher.de"
] | mailport@mikescher.de |
d237833b720ab49c6906e5708002d2834372ac3d | 9ddfd30620c39fb73ac57e79eae0a001c45db45f | /addons/prisme_contact_enhancement/models/__init__.py | 56357c83a049980c861e401c12364ef855b55a5d | [] | no_license | zamzamintl/silver | a89bacc1ba6a7a59de1a92e3f7c149df0468e185 | 8628e4419c4ee77928c04c1591311707acd2465e | refs/heads/master | 2023-01-06T20:29:25.372314 | 2020-10-29T21:02:41 | 2020-10-29T21:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | # -*- coding: utf-8 -*-
###########################################################################
#
# Prisme Solutions Informatique SA
# Copyright (c) 2016 Prisme Solutions Informatique SA <http://prisme.ch>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"mohamed.abdelrahman@businessborderlines.com"
] | mohamed.abdelrahman@businessborderlines.com |
d6830d4ff16376893003b80808781e3aec0c3bb2 | c104dbd09a853725cb4f4b17df7c5dd59d47e04e | /test/test_modify_alert_policy.py | 83402c1d6893da6593578261001770b0aa9a0dea | [
"Apache-2.0"
] | permissive | bm-lab/opsgenie-python-sdk | 5a64e2c24f1b9168ecadf482ba8084ba27a659fc | 244c4c40ddcc25e70df5ba4425ab8d7c8da59c18 | refs/heads/master | 2021-10-09T03:18:48.101672 | 2018-12-15T01:03:36 | 2018-12-20T15:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | # coding: utf-8
"""
OpsGenie REST API
OpsGenie OpenAPI Specification # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import opsgenie_swagger
from opsgenie_swagger.models.modi... | [
"c.chary@criteo.com"
] | c.chary@criteo.com |
402ccdca5869a573340f6de12ef5e4dbbe9e588a | e6f0b705a768229c160a2603393709b4b8a683be | /.history/books/api/views_20210424164436.py | c4d52011855368b33b5770873ed269be0a6587e8 | [] | no_license | walaaElbasha/bookstore_django_basics | 0741e16e3fe69d4460c095bb8afc964f52d96f1d | 2037a434d7bdb0ca1954ca3de9f56655b77ec64e | refs/heads/main | 2023-04-19T07:01:05.416800 | 2021-04-28T15:04:15 | 2021-04-28T15:04:15 | 361,507,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | from django .shortcuts import render,redirect
from rest_framework.response import Response
from rest_framework import status
from books.models import Book,Isbn
from .serializers import IsbnSerializer
from rest_framework.decorators import api_view
from rest_framework.permissions import IsAuthenticated,BasePermission
fro... | [
"walaaelbasha40@yahoo.com"
] | walaaelbasha40@yahoo.com |
5b3a4cf867926248aefb635b5b895a9b7d33a3f8 | 6a087c6fb00ba91f815f997450306a3fac020a8b | /Test_case/CLGL/test自定义车辆.py | 6a0ed72cd83c09c38f031f3ee7b5841b4c947e2f | [] | no_license | anghu3/xizangbianfang | cd2037af5e06cc558bf3ef9ff145e0c33495139b | f4f35195963017c22bd4875853ef31f280f4b6a8 | refs/heads/master | 2020-03-28T22:31:06.591507 | 2018-12-14T07:36:47 | 2018-12-14T07:36:47 | 149,238,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,930 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 21 14:11:17 2018
@author: PCCC
"""
import unittest
from selenium import webdriver
from selenium.webdriver.support.ui import Select
import time
import os
import re
from public_package.pubilc_package import url,login_name,login_name_test,login_password,login_password_test
f... | [
"935331858@qq.com"
] | 935331858@qq.com |
da110465a674ab0792226d4ac273b86fc9ed28ac | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03090/s812303792.py | 0fb18fdf310d674ae4f216404ba354a1c71ffbf6 | [] | 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 | 905 | py | #!/usr/bin/env python3
#AGC32 B
import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(1000000000)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from c... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
79a3a476ca30b1e4a997e58c1852b7ece681f724 | afbfb4479c031c4515d623507c3529d019b2506a | /link/json/collection.py | 070cfd0e3a2b277dd4bd2c73129a02fd1bc2979a | [] | no_license | linkdd/link.json | 22e95664635986208a8ce51d6d7d410bb5012f68 | 2169a4252d3393def0e37d3a1aa167dd0b77c730 | refs/heads/master | 2020-04-15T13:38:33.317573 | 2016-09-16T13:50:41 | 2016-09-16T13:50:41 | 58,967,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,275 | py | # -*- coding: utf-8 -*-
from b3j0f.conf import Configurable, category, Parameter
from link.json.schema import JsonSchema
from link.json import CONF_BASE_PATH
DEFAULT_SCHEMA = 'http://hyperschema.org/mediatypes/collection-json.json'
@Configurable(
paths='{0}/collection.conf'.format(CONF_BASE_PATH),
conf=ca... | [
"david.jose.delassus@gmail.com"
] | david.jose.delassus@gmail.com |
1f7723168e6a49bcdc616eed2a91fc7a05d1b3d3 | f3057f554643bd68ccf5fb34966f8233c57c600f | /djmodels/blog/migrations/0007_auto_20171213_1357.py | 0f340f6c17444af0f3f8de61a33fd8e29ffcc8c9 | [] | no_license | travishen/djcore | e917eeefc0d8a985fa083bbaf6b426ad4af31dcb | e611d82797abd04f5909b809e6c4debb46eece11 | refs/heads/master | 2021-09-03T02:52:38.336089 | 2018-01-05T02:24:16 | 2018-01-05T02:24:16 | 113,840,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-12-13 13:57
from __future__ import unicode_literals
import blog.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0006_auto_20171213_1225'),
]
operations = [
... | [
"travishen.tw@gmail.com"
] | travishen.tw@gmail.com |
d2da3d3a0bb26f5782b9c140d847572bc7cd8ec0 | fc0a6e0f9ffa90a2473fec77bc52ea02e9b21f55 | /venv/lib/python3.7/site-packages/akshare/qhkc/funcs.py | ef5311e4c8f7909a2359e139fe2ab25f1364655b | [] | no_license | YixuanSeanZhou/COVID19_Scraping | 3903e697caf406c7d357afd8cc43811d62896244 | b84890c4a5ddef589cd76d1ed8fd4a1976f4e3c4 | refs/heads/master | 2022-09-08T16:14:33.292096 | 2020-05-23T04:26:02 | 2020-05-23T04:26:02 | 266,261,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Author: Albert King
date: 2020/2/13 23:11
contact: jindaxiang@163.com
desc: 可用函数库 --> client.py --> DataApi
"""
class QhkcFunctions:
@staticmethod
def variety_positions(fields="shorts", code="rb1810", date="2018-08-08"):
"""
奇货可查... | [
"thomaszhou2333@gmail.com"
] | thomaszhou2333@gmail.com |
2f5013ac6fd73da64e153628614dfa276fd04d3b | 48a36fddd9e7c584a9792533c11601f0e4619885 | /torchvision/edgeailite/xvision/losses/flow_loss.py | d3d238fa87d39813f0da26d516e3e186af56441d | [
"MIT",
"BSD-2-Clause-Views",
"BSD-3-Clause"
] | permissive | supermy00/edgeai-torchvision | 8c152e796590ae5f6ae4f6948cbfb132409506a0 | 29b02c32b26ea8c0c319a376ab8a9a1b9ada25b5 | refs/heads/master | 2023-09-02T02:36:47.068701 | 2021-11-17T10:08:17 | 2021-11-17T10:08:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,504 | py | #################################################################################
# Copyright (c) 2018-2021, Texas Instruments Incorporated - http://www.ti.com
# All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditio... | [
"a0393608@udtensorlab5"
] | a0393608@udtensorlab5 |
5a1cfbe5e8072892a669b1003898b436401022a5 | a807ce0fa3e3e9c3b558b2e977c05e60c3a667b1 | /nemo_text_processing/inverse_text_normalization/en/verbalizers/cardinal.py | bd053bebf7645a4fbb554dfb082d991b1be9c614 | [
"Apache-2.0"
] | permissive | blisc/NeMo | 630376e7555c0face994da2f6f9af5d8d31243c3 | fadeb45c84d6b323d78e30475538455a88b7c151 | refs/heads/rework_reqs | 2023-08-17T00:03:39.248669 | 2021-08-12T15:15:06 | 2021-08-12T15:15:06 | 208,142,160 | 2 | 0 | Apache-2.0 | 2022-02-03T16:30:33 | 2019-09-12T20:37:24 | Jupyter Notebook | UTF-8 | Python | false | false | 1,812 | py | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
# Copyright 2015 and onwards Google, Inc.
#
# 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/license... | [
"noreply@github.com"
] | blisc.noreply@github.com |
ca75f05cd80acb75911622ecaa2e8e98c607b2fa | 1213bcf770a94a89b39be8dc7b99a3f7e35fd369 | /src/alloy/backend/x64/optimizer/passes/sources.gypi | 6d80257ca4d2836c37d094b89bcaa73a046bbcae | [] | no_license | wtfaremyinitials/xenia | c86e4625a1dd084d97d44c3242e2faf208bca2b8 | 16b3ecd5897051f82bc236ad9a4d0ab5cab22e87 | refs/heads/master | 2020-12-31T02:43:53.168712 | 2014-01-14T22:06:05 | 2014-01-14T22:06:05 | 15,918,955 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | gypi | # Copyright 2013 Ben Vanik. All Rights Reserved.
{
'sources': [
'reachability_pass.cc',
'reachability_pass.h',
'redundant_mov_pass.cc',
'redundant_mov_pass.h',
'register_allocation_pass.cc',
'register_allocation_pass.h',
],
}
| [
"ben.vanik@gmail.com"
] | ben.vanik@gmail.com |
fc52d8ec81fe4b307261bd7e11d50deb5d97ee67 | 9ba00eb872099e6fe69c4e6b3561b0578cc09ca4 | /exoplanets.py | cc3e8a16376dfb30a79845c999770f1eb685ffd8 | [] | no_license | RuthAngus/exoplanet_travel | 4ab56ee3adfaaeca009e6997706f42091d634c01 | b7248030e8713811f65239d5745fbd9493dcfd58 | refs/heads/master | 2020-12-24T13:28:35.234907 | 2014-07-01T16:14:24 | 2014-07-01T16:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,548 | py | from exoplanet_pictograms import plot_exoplanet, plot_name, remove_space
from flask import Flask, url_for
from flask import render_template
import numpy as np
import kplr
import csv
app = Flask(__name__)
@app.route('/')
def index(name=None, text=None):
name = nm()
print name
text1 = p_text(name)
text2 ... | [
"ruth.angus@astro.ox.ac.uk"
] | ruth.angus@astro.ox.ac.uk |
00061ee28548b2c6b4aefaa5471d754a09c8788d | 653a3d9d66f3d359083cb588fc7c9ece8bb48417 | /src/graph_transpiler/webdnn/backend/fallback/kernels/cosh.py | ceb89aa2948de8ed8a485af2566d587d6dfce987 | [
"Zlib",
"MIT"
] | permissive | leonskim/webdnn | fec510254b15f3dec00f5bed8f498737b372e470 | f97c798c9a659fe953f9dc8c8537b8917e4be7a2 | refs/heads/master | 2020-04-15T18:42:43.632244 | 2019-01-10T10:07:18 | 2019-01-10T10:07:18 | 164,921,764 | 0 | 0 | NOASSERTION | 2019-01-09T19:07:35 | 2019-01-09T19:07:30 | Python | UTF-8 | Python | false | false | 186 | py | from webdnn.backend.fallback.kernels.elementwise import register_elementwise_kernel
from webdnn.graph.operators.cosh import Cosh
register_elementwise_kernel(Cosh, "y = Math.cosh(x0);")
| [
"y.kikura@gmail.com"
] | y.kikura@gmail.com |
9edbd7dd5d1dc89004fd5abd46398875aab00e34 | 1afa6c852dfc922d1a26a384d965976f31a87692 | /Imaging/Core/Testing/Python/TestSeparableFilter.py | da6b137d7329c12a4b1484262e2fe32f6bd2f967 | [
"BSD-3-Clause"
] | permissive | dgobbi/VTK | 631d037aacc7258861e70f77c586b01cd4ebff3f | 17f232ee440025c26bc78a897edef78e9fc78510 | refs/heads/master | 2021-01-04T22:27:46.611907 | 2013-03-01T19:44:02 | 2013-03-01T19:44:02 | 938,377 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Image pipeline
reader = vtk.vtkPNGReader()
reader.SetFileName("" + str(VTK_DATA_ROOT) + "/Data/fullhead15.png")
# Take the gradient in X, and smooth in Y
# Create a simple gradient ... | [
"nikhil.shetty@kitware.com"
] | nikhil.shetty@kitware.com |
a2face64492994c1d89d87de17f1735956e91868 | 1f214956382f62e876de3d00c40c5a8684a3b5df | /preprocessing/tests/test_mysql.py | ef73d63c507114b639af108327ad9518ec0fd887 | [
"MIT"
] | permissive | ennima/omas | e1f00e0d3445f995d36b221c43ab47113750aeee | c8507b95c8c07a311c29c70acc0a7d3504d28f78 | refs/heads/master | 2021-01-18T18:11:49.027451 | 2016-10-14T19:28:14 | 2016-10-14T19:28:14 | 56,949,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | import sys
import unittest
sys.path.append('../')
sys.path.append('../db')
from MysqlProcessing import *
from pprint import pprint
class MysqlProcessingTest(unittest.TestCase):
# def test_it_should_be_able_to_construct(self):
# mysql = MysqlProcessing()
# self.assertIsInstance(mysql,MysqlProcessing,"Es instanc... | [
"ennima@hotmail.com"
] | ennima@hotmail.com |
3435d0e6edaab0672cac56775147c66023890e1f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_75/288.py | 5d27fe84e3a6db4dda7c09565446712b904e8b3e | [] | 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,467 | py | # coding:utf-8
import sys
argvs = sys.argv
argc = len(argvs)
#print argvs
#print argc
f = open(argvs[1])
T = f.readline()
for i in range(int(T)):
comb_rules = []
oppo_rules = []
line = f.readline()
tc = line.split(' ')
C = int(tc[0]) # 変換ルールの個数
for j in range(C):
temp = tc[j+1]... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1fdcdc99bcf503501c3716c003b8e28528b0ce68 | 0857913ae5cde7481c5bca63ed5081e11f217581 | /p1804/p10While/whileTest.py | 5d346d2f002ca0cee68216cb7d6c969ca233f173 | [] | no_license | nmww/p1804_ceshi | 48c2d93849018d8601f0732c5005395c81490ef1 | 72bf25cc7767371594b41f8919454e46fe178023 | refs/heads/master | 2020-03-15T23:25:43.345763 | 2018-06-27T03:19:55 | 2018-06-27T03:19:55 | 132,393,611 | 53 | 7 | null | null | null | null | UTF-8 | Python | false | false | 565 | py |
'''
while 循环
# while语句作用的范围是
# 下方相同缩进的 所有语句
while 循环条件:
pass
pass
循环条件:
1. 是否成立: True / False
2. 条件判断控制 a 比较 b
'''
#-------------------------------
qiandao = 0 # 没有签到
xinqing = 'kaixin'
while qiandao < 10:
print ("您未签到,请尽快去签到,否则要跪键盘 %d "% qiandao)
qiandao = qiandao + 1
#---------------------... | [
"2423550286@qq.com"
] | 2423550286@qq.com |
4dc98360b6b09c2585684d65e841dc4239d20e34 | 401ea01ffb848f1eabd8aa17690ec1ff5dc8e6bd | /test/test_action_event.py | 62370e432b086e11d277be6874c16774885dc2d8 | [] | no_license | bbrangeo/python-api-client | 735acda3627d7a0ddd78ecb1e9617bb4082c9001 | c2481e0cd012a41aeceefdce289d48509540b909 | refs/heads/master | 2020-03-14T18:24:20.888631 | 2018-04-30T14:47:47 | 2018-04-30T14:47:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # coding: utf-8
"""
BIMData API
BIMData API documentation # noqa: E501
OpenAPI spec version: v1
Contact: contact@bimdata.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import bimdata_api_client
from bimdata_api_c... | [
"hugo.duroux@gmail.com"
] | hugo.duroux@gmail.com |
9d4a06013d0517080446f5dfd957558c9e77d8d9 | a86fda09a185ebf367e31cf26589161303f9497a | /metrics/topologyVertex.py | 3b6fc44e77e468ade8bbf02eebf09fef94eecc0f | [
"BSD-3-Clause"
] | permissive | kristianeschenburg/metrics | 67ec2cd5b697241eee35da46daf71b2d735cdb64 | 53900f8130cb7dd762ae3e816225fb4f178a5b29 | refs/heads/master | 2020-03-25T10:27:29.623361 | 2019-04-02T21:20:08 | 2019-04-02T21:20:08 | 116,600,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | import numpy as np
def labelCounts(label, adjacencyList):
"""
For each vertex, count the number of vertices with other labels that are
adjacent to it.
Parameters:
- - - - -
label : int, array
label vector
adjacencyList : SurfaceAdjacency
adjacency list for surface mesh
... | [
"keschenb@uw.edu"
] | keschenb@uw.edu |
d8c33a598956091bab533eda8716d63e6ce852b5 | 2986a62a5221885b2f070060aadb9c9ab1e84035 | /Aula10 - Condições em Python/ex033 - Maior e menor valor.py | 1084395b85db8996bebe2ec6aea68e8a3f430e7f | [] | no_license | igorkoury/cev-phyton-exercicios-parte-1 | dcb39772be48ba7333a391af4e9fda025654472f | b187565ca996402f4862ad3000d18bfb461e269e | refs/heads/main | 2023-08-28T02:38:32.311162 | 2021-10-06T21:38:39 | 2021-10-06T21:38:39 | 414,375,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Faça um programa que leia 3 números e diga qual é o maior e o menor.
print("Digite 3 numeros para saber quem é o menor e o maior.")
n1 = int(input("Digite um número: "))
n2 = int(input("Digite outro: "))
n3 = int(input("Digite mais um: "))
print("Você digitou {}, {} e {} respectivamente.".format(n1, n2, n3)... | [
"noreply@github.com"
] | igorkoury.noreply@github.com |
df9181e897d1c79756259eeadcb4711eca0fff67 | 04975a41eb459f1528dcbdcb1143a3cb535aa620 | /Tree_easy/leetcode_590.py | ef470b8651a6a2b4c709b9cdf7f36ce6651cff88 | [] | no_license | RickLee910/Leetcode_easy | 2a50d632379826979a985e1b9950d4cf6bbd8b18 | c2687daf334f96a908737067bb915b8b072d0d56 | refs/heads/master | 2023-01-29T11:09:26.701243 | 2020-12-02T04:36:14 | 2020-12-02T04:36:14 | 294,952,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | class Solution:
def postorder(self, root: 'Node') -> List[int]:
ans = []
def dfs(root,ans):
if root == None:
return
for i in root.children:
dfs(i,ans)
ans.append(root.val)
return ans
dfs(root, ans)
return... | [
"13554543910@163.com"
] | 13554543910@163.com |
455ab705f17ca676bf7042b5beb8912bd9ac74c8 | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /tests/kyu_7_tests/test_patterncraft_visitor.py | 8824069b8298d54921b0b5d2084e335ee8fe30a0 | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | import unittest
from katas.kyu_7.patterncraft_visitor import Marauder, Marine, TankBullet
class PatterncraftVisitorTestCase(unittest.TestCase):
def setUp(self):
self.bullet = TankBullet()
self.light = Marine()
self.bullet2 = TankBullet()
self.armored = Marauder()
def test_equ... | [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
31de42d8a93f76985b06a65ff8e74ce14733af1e | bec8f33002130d8395f4ac4f0c74b785aa22cac5 | /appium/options/common/language_option.py | f82de63d08680cc5a2a131403286ba603d4c8827 | [
"Apache-2.0"
] | permissive | appium/python-client | 1c974fdf1ac64ce4ac37f3fc8c0a3e30c186d3ca | 2e49569ed45751df4c6953466f9769336698c033 | refs/heads/master | 2023-09-01T22:14:03.166402 | 2023-09-01T11:52:27 | 2023-09-01T11:52:27 | 18,525,395 | 1,588 | 606 | Apache-2.0 | 2023-09-10T02:00:09 | 2014-04-07T17:01:35 | Python | UTF-8 | Python | false | false | 1,317 | py | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | appium.noreply@github.com |
8f16b2d94dc4d8a4ebc5c2b779b1049670c0faa5 | d8829cbc2d2863f68cb1b447a878dce0ac20a878 | /scraper/positions.py | 40a42e62b99118840ea7c9eef7ef2123b8b36208 | [] | no_license | XiaoxiaoWang87/InsightPrj | 170a9757dfdf4669ee2c52322f2f5e5d766ce2a1 | 767a3719fad93ddb9711817f543b5e7b1822f680 | refs/heads/master | 2021-01-19T00:41:44.195663 | 2014-10-06T22:28:24 | 2014-10-06T22:28:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | import pandas as pd
df = pd.read_csv('position_draft.csv',sep='\t')
for index, row in df.iterrows():
#if row["DRAFT"] == '[]':
if row["POSITION"] == '[]':
print row["PLAYERCODE"]
| [
"="
] | = |
8ba17eac98795a2e90941bb8a59a7c5f271b75eb | a9937139b1af85180cea706a52d447abce2430f4 | /e/Pliki/otwieranie_pliku.py | 1f748da7717c491ec9513b293b31648e29137cf4 | [] | no_license | MirekPz/Altkom | 8f16014d43adb10e87804ae2b5d23151924cb226 | 0a49e75e681593b41d07cbff63dea0723a11756b | refs/heads/master | 2020-09-29T00:12:37.990353 | 2019-12-13T15:52:30 | 2019-12-13T15:52:30 | 226,899,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | plik = open('example_txt_file.dmo', 'r')
zawartosc = plik.read()
print(zawartosc)
plik.close()
input('drugi:')
# with open
with open('example_txt_file.dmo') as file:
print(file.read())
| [
"mirek@info-tur.pl"
] | mirek@info-tur.pl |
a3d44c517ab38a95c83ab8b1483260b48e15327b | 4328c71ddbb3dd564c04c599f8e95afef16e0d7c | /dg/4-sysProcess/06-全局变量在多个进程中不共享.py | 773b57b49e89c4bc420af8e6576049b0201d5761 | [] | no_license | amtfbky/git_py | 470fb7bc8f2c5017d47c31e1af8bb042bfe377b4 | 6159049b088036ebd133f5dab917d3e540a304c8 | refs/heads/master | 2020-03-09T04:16:12.991206 | 2018-06-01T01:16:05 | 2018-06-01T01:16:05 | 128,583,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import os
import time
g_num = 100
ret = os.fork()
if ret == 0:
print("------process-1--------")
g_num += 1
print("------pricess-1---g_num=%d--"%g_num)
else:
time.sleep(1)
print("------process-2--------")
print("------pricess-2---g_num=%d--"%g_num)
| [
"xjbrhnhh@163.com"
] | xjbrhnhh@163.com |
2901a64d6a75331ae821fc785d834c03fc4d5a31 | 616c3c02be31b9ae4d06bd7c5a8d4a2e7c446aa1 | /1370.上升下降字符串.py | 36aae8d92dbacc45541253677dc27fdce052d717 | [] | no_license | L1nwatch/leetcode-python | 8b7c47c04ee9400d50d8b0764a544a0463df8f06 | 0484cbc3273ada25992c72105658cd67411c5d39 | refs/heads/master | 2023-01-11T14:53:15.339276 | 2023-01-11T05:24:43 | 2023-01-11T05:24:43 | 194,516,548 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | #
# @lc app=leetcode.cn id=1370 lang=python3
#
# [1370] 上升下降字符串
#
# @lc code=start
class Solution:
def sortString(self, s: str) -> str:
s = list(s)
s.sort()
answer = list()
while len(s) > 0:
# step1
char = s.pop(0)
answer.append(char)
... | [
"watch1602@gmail.com"
] | watch1602@gmail.com |
f4ba49f50c1a6829dee16f64d136e2f0406c7115 | d992f98d3c5d009c567e9dac83f38770d8d72f77 | /postCMeval/annoate_summary_with_pscore.py | 942920673d5212449ff7547f0710420b4b39e90f | [] | no_license | rlleras/quasiClique | c65643dcc35e2426e4c519ee1b3400895e9610cc | d57be41a213d2e57778d2feb9c103594ebbbf705 | refs/heads/master | 2021-01-21T20:53:05.841720 | 2012-02-28T22:49:17 | 2012-02-28T22:49:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | import os
import sys
import glob
import csv
def annotate_rank_summary_with_pscore(filename, delimiter=','):
"""
Given a rank_cmfinder.pl-output summary file X,
create a new file X.pscore_added that has the motifs' pscores appended
"""
motif_dir = os.path.dirname(filename)
in_csv = csv.DictReader(open(filename),... | [
"magdoll@gmail.com"
] | magdoll@gmail.com |
4532e075eae5a1ddc4b9609e44839947d035ec9f | a68f37fcbf069c0656d4838af7386d6a9919fe59 | /company_account/decorators.py | 1454352528e707241395d14220ced8df0d57a92c | [] | no_license | mitchellpottratz/JobMatch | 7dd2cbd979ca55cf651bcee4356a97e061145b90 | 797a9b1c3dfad57c05db52384d87d5f82be632f5 | refs/heads/master | 2022-11-26T08:44:27.535809 | 2019-12-13T20:05:11 | 2019-12-13T20:05:11 | 224,901,935 | 0 | 0 | null | 2022-11-22T04:53:46 | 2019-11-29T18:08:55 | JavaScript | UTF-8 | Python | false | false | 457 | py | from functools import wraps
from django.http import HttpResponseRedirect
# this decorators checks if the current user is a company_user, and redirects
# them to the login user if they are not a company_user
def company_account_required(function):
@wraps(function)
def wrap(request, *args, **kwargs):
if not request... | [
"mitchellpottratz@Mitchells-MacBook-Air.local"
] | mitchellpottratz@Mitchells-MacBook-Air.local |
6add13271b6ebf08177a20b058dc78e738d70a03 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/5320734/snippet.py | 5d6a295d577a6aa909c64302aa627f27dc8e67b7 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,522 | py | import os
import matplotlib.pyplot as plt
def save(path, ext='png', close=True, verbose=True):
"""Save a figure from pyplot.
Parameters
----------
path : string
The path (and filename, without the extension) to save the
figure to.
ext : string (default='png')
The file exte... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
64c32586630e0c01a48bb1e4907ab4ac66192273 | 98d8b7dd018b95dbf2c81431561546fd9619e391 | /model/ItemLimitModel.py | 4c9e5c484728ea86929619b001baca2ad8e6fea9 | [] | no_license | c1xfr2e/kkyadmin | 1642c42659724a676000768bab559684581f3b07 | e5cef8b8ed63d3db8c1ff22af0edf44c36c4df63 | refs/heads/master | 2021-09-08T08:55:17.448640 | 2018-03-09T00:07:46 | 2018-03-09T00:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
""""""
from third_party.orm.field import StringField
from third_party.orm.field import IntegerField
from third_party.orm.field import ObjectIdField
from third_party.orm.field import ListField
from third_party.orm import Document
from tornado import gen
im... | [
"gurity@163.com"
] | gurity@163.com |
c47b81eae5619450ed32f1b322237587c0217bf4 | 33d490698f2958f2d53a6436043959bac5c9f63d | /l10n_es_aeat_mod340/__openerp__.py | 5bc97b620692f733dc328a58c8b83803b21a8568 | [] | no_license | ideosoft/odoo-modules | cf1a4bf0a1f0f25bfa44a83f8c10a2c73baed67e | 3183a533ec9b89a57fd2b4c09cca0111afc86730 | refs/heads/master | 2021-03-30T18:13:42.873503 | 2016-07-14T13:46:01 | 2016-07-14T13:46:01 | 49,328,128 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,276 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (c) 2011 Ting (http://www.ting.es) All Rights Reserved.
# Copyright (c) 2011-2013 Acysos S.L. (http://acysos.com)
# Ignacio Ibeas... | [
"jgomez@ideosoft.es"
] | jgomez@ideosoft.es |
6e475fa396e9a6dcef96eed3caf04907181bd82f | 03f9b8bdea312636afb4df3737b55cb0cc4b21ff | /RLEIterator.py | abaa4b9c89f81c3310c20d22aec12ca5c65ea68a | [] | no_license | ellinx/LC-python | f29dd17bbe15407ba0d06ad68386efdc9a343b56 | 9190d3d178f1733aa226973757ee7e045b7bab00 | refs/heads/master | 2021-06-01T15:21:24.379811 | 2020-10-29T04:37:07 | 2020-10-29T04:37:07 | 132,704,788 | 1 | 1 | null | 2019-05-15T03:26:11 | 2018-05-09T05:13:26 | Python | UTF-8 | Python | false | false | 2,435 | py | """
Write an iterator that iterates through a run-length encoded sequence.
The iterator is initialized by RLEIterator(int[] A), where A is a run-length encoding of some sequence.
More specifically, for all even i, A[i] tells us the number of times that
the non-negative integer value A[i+1] is repeated in the sequence.... | [
"ellin.xll@gmail.com"
] | ellin.xll@gmail.com |
69a1f0b6fd6245b262107582163cc8ddd44ea88e | 38a92e99215d4bd6146374408513e7b8446ec828 | /ocpu/views.py | 59a753c4ddfbdf47b2487cad764f92feee416851 | [] | no_license | andi-nl/ANDI-frontend | b953ca50d1c1f3a4d6d12de8e68b7d81e815f0dc | 8d41bc8b6764444ab7b7a7ac053cdf8c317a568a | refs/heads/master | 2020-04-14T23:12:14.309292 | 2017-06-22T12:08:43 | 2017-06-22T12:08:43 | 41,303,252 | 1 | 12 | null | 2017-01-02T13:17:41 | 2015-08-24T13:00:35 | JavaScript | UTF-8 | Python | false | false | 932 | py |
import json
import logging
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.decorators import login_required
from django.core.exceptions import SuspiciousOperation
from .utils import do_normcomp, do_calccomposite
logger = logging.getLogger(__name__)
... | [
"j.vanderzwaan@esciencecenter.nl"
] | j.vanderzwaan@esciencecenter.nl |
7b6058bd35243dcac57bec06afb8147e964d4555 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_softwoods.py | bf431aa729f540bf80fb4fb0ce05106eaa0eb798 | [
"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 | 252 | py |
from xai.brain.wordbase.nouns._softwood import _SOFTWOOD
#calss header
class _SOFTWOODS(_SOFTWOOD, ):
def __init__(self,):
_SOFTWOOD.__init__(self)
self.name = "SOFTWOODS"
self.specie = 'nouns'
self.basic = "softwood"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
850ecdca5bc07271e05e480aefeb8432c7ea8f48 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /EPXH424t2SSjMzms5_5.py | 6f2e5df2ee3869baab5543822cd15128d9777f20 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | """
Create a function that takes both a string and a list of integers and
rearranges the letters in the string to be in the order specified by the index
numbers. Return the "remixed" string.
### Examples
remix("abcd", [0, 3, 1, 2]) ➞ "acdb"
The string you'll be returning will have:
* "a" at index 0
* "b"... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8ebea4a768a74346f669199a18f9034a5a72fcd3 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part006912.py | b626d2d86f3f2c0c06e456ec94bdbe994424a7eb | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
b66d2ae78a2abe5aa52b983e5773f4b95f0dfe9f | 11334e46d3575968de5062c7b0e8578af228265b | /Examples/OpenCV/PPOCV/C6/arithmetic.py | f062fdf7c94256bec4b4af759f4f493579109cb4 | [] | no_license | slowrunner/Carl | 99262f16eaf6d53423778448dee5e5186c2aaa1e | 1a3cfb16701b9a3798cd950e653506774c2df25e | refs/heads/master | 2023-06-08T05:55:55.338828 | 2023-06-04T02:39:18 | 2023-06-04T02:39:18 | 145,750,624 | 19 | 2 | null | 2023-06-04T02:39:20 | 2018-08-22T18:59:34 | Roff | UTF-8 | Python | false | false | 2,217 | py | #!/usr/bin/env python3
#
# arithmetic.py
"""
Documentation:
PPOCV C6
"""
# from __future__ import print_function # use python 3 syntax but make it compatible with python 2
# from __future__ import division # ''
import sys
try:
sys.path.append('/home/pi/Carl/plib')
import ... | [
"slowrunner@users.noreply.gethub.com"
] | slowrunner@users.noreply.gethub.com |
6b692d10b1730270b76669e1b35e9650edd7aaf2 | 01dfd817931803f5ca3a41832171082e84323d9e | /apps/applogReg/urls.py | fd05ed8fe6c674eb9ffb88c415767ef447c8705f | [] | no_license | alialwahish/rep92 | 41d715b043233a85ce968d835a3c7ba303593445 | 743e2684783f8f86df9e5b8493ab267679e250bc | refs/heads/master | 2022-11-26T21:33:23.643273 | 2018-05-23T01:22:42 | 2018-05-23T01:22:42 | 134,494,751 | 0 | 0 | null | 2022-11-22T01:06:15 | 2018-05-23T01:20:24 | Python | UTF-8 | Python | false | false | 484 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$',views.index),
url(r'^main$',views.main),
url(r'^login$',views.login),
url(r'^register$',views.register),
url(r'^quotes$',views.quotes),
url(r'logout$',views.logout),
url(r'^add_quote$',views.add_quote),
url(r... | [
"bayati.ali@icloud.com"
] | bayati.ali@icloud.com |
3569db6b3ac516591e08da38e3f8674310ee5db2 | 2e29ed138ab0fdb7e0a6e87b7c52c097b350fecf | /MechPro Tech/randomElementSets.py | be6c201ac4e08bf05befb843bb10394f4b91df6b | [] | no_license | ronniegeiger/Abaqus-Scripts | 1e9c66664bd7dc7e5264bf763f15936eadcff529 | c071bbfe0e6c54148dfd4a23f786f017dfef4ae4 | refs/heads/master | 2023-03-18T06:33:13.690549 | 2018-08-14T11:37:07 | 2018-08-14T11:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,431 | py | # Script to create element sets based on % distribution
from textRepr import prettyPrint as pp
import random
N_150mm = 3591
N_100mm = 7271
N_50mm = 38778
n_200mm = 2020
n_150mm = 3591
n_100mm = 8079
n_50mm = 32315
N_total = float(N_150mm + N_100mm + N_50mm + n_200mm + n_150mm + n_100mm + n_50mm)
else... | [
"noreply@github.com"
] | ronniegeiger.noreply@github.com |
343ba2e8c8dbc7bad29a57b1416f628800566367 | b0bd3342c244ebf30ae5ab29daa078f2b39010f7 | /SimpleEmbedModel.py | eea650c39544213933830a7ab48737a89881b223 | [] | no_license | naiqili/itime_learning | 30a8af7f1234277162ccdd4c69cd9f9a4a7ab412 | d9b191bb32a7e49cb99443d7dccea5bb392aee90 | refs/heads/master | 2021-06-19T04:54:06.239320 | 2017-06-26T13:35:39 | 2017-06-26T13:35:39 | 92,792,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | import tensorflow as tf
import numpy as np
class SimpleEmbedModel():
def __init__(self, conf):
self.conf = conf
self.uif_mat = np.load(conf.uif_path)
self.iur_mat = np.load(conf.iur_path)
def add_variables(self, reuse=False):
conf = self.conf
with tf.variable_scope('Fix... | [
"naiqil@student.unimelb.edu.au"
] | naiqil@student.unimelb.edu.au |
0ca716046914007256d10bbb37b5f1a4cafa8580 | 71b7b6d84a61f514b038fac7741e6d16973fcaa9 | /build/object_manipulation_msgs/catkin_generated/pkg.installspace.context.pc.py | 3e6fd0a4ff97ee24b62a27bea0521aebb8561551 | [] | no_license | YiKangJ/perception_driven_ws | 15c02e523f1a708fe63b216d73019c8c2bde97a1 | 0a0f8fcbe3f5fed26439f449999b85f1e38c0f70 | refs/heads/master | 2020-04-01T19:47:48.372111 | 2018-10-18T06:17:57 | 2018-10-18T06:17:57 | 153,571,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/jyk/perception_driven_ws/install/include".split(';') if "/home/jyk/perception_driven_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;actionlib_msgs;std_msgs;geometry_m... | [
"jinyikangjyk@163.com"
] | jinyikangjyk@163.com |
373e4f049cea8386fbd57e288660868ad6f2a5ab | a1bffcd8854e1843e56bb812d4d83b3161a5211e | /tests/unit/modules/storage/netapp/test_na_ontap_net_port.py | 07ea6a104c088e71872248865edf07e619628ac8 | [] | no_license | goneri/ansible.community | 1a71f9d98c164b77f8ed2ed7f558b4963005ff8f | f26f612dd0a3154050d90b51a75502018c95f6e4 | refs/heads/master | 2020-12-29T07:47:35.353515 | 2020-01-22T17:43:18 | 2020-01-22T17:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,647 | py | # (c) 2018, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
''' unit test template for ONTAP Ansible module '''
from __future__ import print_function
import json
import pytest
from ansible_collections.ansible.community.tests.unit.compat import unittest
from an... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
7885a77c550774f08a3cff1f19f60dcc326bf6ef | f780b05549bea9ecb0b80e4e9ea63376aa59f962 | /iplauction/migrations/0004_auto_20160305_1217.py | 8a77f654b1476c81a8fd5872f2939d3becf242b4 | [] | no_license | PunitGr/django-kickstart | ebff3e7e60a27091468f45a35e3b562954609168 | 5e8a21b0408ade1be4860deb3bc2cb80f033b159 | refs/heads/master | 2021-01-24T20:26:06.970847 | 2016-03-07T14:33:17 | 2016-03-07T14:33:17 | 52,964,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-03-05 12:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('iplauction', '0003_auto_20160305_1102'),
]
operations = [
migrations.AddFiel... | [
"groove679@gmail.com"
] | groove679@gmail.com |
34c8f2b1fad1c29421bec555fae6b807a7102a8e | 599709e7687a78f92b268315590d6ad750ce97d6 | /calc/opt_h_pi/1skp_l/gto_part_shift/w1_dense/search/calc.py | 2e3b85307b244e4655cabc6fd13518b2f7d18fa3 | [] | no_license | ReiMatsuzaki/cbasis2 | b99d096150d87f9301ed0e34f7be5f0203e4a81e | 86f21146fab6fc6f750d02fb2200ea94616ca896 | refs/heads/master | 2021-01-19T23:15:32.864686 | 2017-04-27T07:29:26 | 2017-04-27T07:29:26 | 88,953,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | import sys
import numpy as np
import pandas as pd
from itertools import product, combinations
import subprocess
sys.path.append("../../../../../../src_py/nnewton")
sys.path.append("../../../../../../r1basis")
from r1basis import *
from opt_green import *
## one GTO optimization value is 0.0105604,-0.0548991
with open... | [
"matsuzaki.rei@sepia.chem.keio.ac.jp"
] | matsuzaki.rei@sepia.chem.keio.ac.jp |
020cc492835e3f6213e03d6a0067ede9641141eb | 9c73dd3043f7db7c9ec76d560484e99ad134fdb6 | /students/douglas_klos/lesson05/activity/code/rdbms_api.py | 1d84511af15a33b1c59531bb3f00eef544715492 | [] | no_license | UWPCE-PythonCert-ClassRepos/py220-online-201904-V2 | 546b316025b680ca28d24b523663095398616b13 | ac12beeae8aa57135bbcd03ac7a4f977fa3bdb56 | refs/heads/master | 2022-12-10T03:14:25.514630 | 2019-06-11T02:14:17 | 2019-06-11T02:14:17 | 179,139,181 | 1 | 19 | null | 2022-12-08T01:43:38 | 2019-04-02T18:49:10 | Python | UTF-8 | Python | false | false | 985 | py | class BaseModel(Model):
class Meta:
database = database
class Person(BaseModel):
"""
This class defines Person, which maintains details of someone
for whom we want to research career to date.
"""
person_name = CharField(primary_key=True, max_length=30)
lives_in_town = CharField(m... | [
"dougklos@gmail.com"
] | dougklos@gmail.com |
0ca1c1b2b6d4a5a92a1cf44d6e0600fa459c73fa | 78f43f8bd07ae0fc91738a63cd7bbca08ae26066 | /leetcode/interval/merge_interval.py | 9f4a681237c817d9390d7cf79195feeb3effddb0 | [] | no_license | hanrick2000/LeetcodePy | 2f3a841f696005e8f0bf4cd33fe586f97173731f | b24fb0e7403606127d26f91ff86ddf8d2b071318 | refs/heads/master | 2022-04-14T01:34:05.044542 | 2020-04-12T06:11:29 | 2020-04-12T06:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | from leetcode.interval.interval import Interval
class Solution(object):
def merge(self, intervals):
"""
:type intervals: List[Interval]
:rtype: List[Interval]
"""
if len(intervals) <= 1:
return intervals
def overlap(l1, l2):
"""
... | [
"dofu@ebay.com"
] | dofu@ebay.com |
402200e5c6c3d708a3beb5e97137c59c1ddd8bd8 | cf5f24e5a32f8cafe90d4253d727b1c0457da6a4 | /algorithm/boj_21317.py | 55af763cbe118028143f347a61cddc9f96f9e1d5 | [] | no_license | seoljeongwoo/learn | 537659ca942875f6846646c2e21e1e9f2e5b811e | 5b423e475c8f2bc47cb6dee09b8961d83ab08568 | refs/heads/main | 2023-05-04T18:07:27.592058 | 2021-05-05T17:32:50 | 2021-05-05T17:32:50 | 324,725,000 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | import sys
input = sys.stdin.readline
def solve(curr, ok):
if curr > n : return inf
if curr == n: return 0
if dp[curr][ok] != inf: return dp[curr][ok]
dp[curr][ok] = solve(curr+1,ok) + jump[curr][0]
dp[curr][ok] = min(dp[curr][ok] , solve(curr+2,ok) + jump[curr][1])
if ok: dp[curr][ok] = min(dp[... | [
"noreply@github.com"
] | seoljeongwoo.noreply@github.com |
ef16a7892614d638cd0b989921e2c479a82bda61 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/requests/api.py | abada96d4627a52bf0f6040ee2e08b0eff32c77c | [
"MIT"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 6,253 | py | # -*- coding: utf-8 -*-
"""
requests.api
~~~~~~~~~~~~
This module implements the Requests API.
:copyright: (c) 2012 by Kenneth Reitz.
:license: Apache2, see LICENSE for more details.
"""
from . import sessions
def request(method, url, **kwargs):
"""Constructs and sends a :class:`Request <Request>`.
:para... | [
"354142480@qq.com"
] | 354142480@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.