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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67f152027b3ed57a9bbbadfc092ed15e5e29d59b | 54eefbcd07488e0b91c4569c4d307e4cc3fe9ccb | /myunit.py | 59715c1a647fc244db2704449106ff5345c03fa0 | [
"MIT"
] | permissive | ron-mypy/mypy | 7de7b0aa6290df902f845ea27261e98502bbc363 | 8e80c32d060fdb2c7232fee02b267c935df7d287 | refs/heads/master | 2021-01-16T20:00:50.305127 | 2013-01-15T18:39:21 | 2013-01-15T18:39:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,967 | py | import sys
import re
import time
import traceback
# TODO remove global state
is_verbose = False
is_quiet = False
patterns = <str> []
times = <tuple<float, str>> []
class AssertionFailure(Exception):
void __init__(self, str s=None):
if s:
super().__init__(s)
else:
super().... | [
"jukka.lehtosalo@iki.fi"
] | jukka.lehtosalo@iki.fi |
03d4734ac9c74ea26b06066bf28c8aac30782ab4 | fe5db184c4abbd1ad25242ab24c18e2d785a069f | /apps/prod/migrations/0006_auto_20200626_0252.py | a625be499a45791a89980968e17f9ac221ebec7d | [] | no_license | valmoresjp/asl | aa20df3ac50f27d7360f77ce599c0dee91e0011f | 0b882cf3d5a97719e22ae39e29ccc933e6a10b7f | refs/heads/master | 2023-03-17T11:09:35.313488 | 2020-07-27T19:09:52 | 2020-07-27T19:09:52 | 267,399,738 | 1 | 0 | null | 2020-07-25T00:52:39 | 2020-05-27T18:44:30 | HTML | UTF-8 | Python | false | false | 331 | py | # Generated by Django 3.0.4 on 2020-06-26 02:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('prod', '0005_auto_20200625_2313'),
]
operations = [
migrations.RenameModel(
old_name='VendidosM',
new_name='VentasM',
... | [
"valmoresjp@gmail.com"
] | valmoresjp@gmail.com |
8893d7282b60a81550b82d27b5552d9a5eb860ef | a053362946ab5db16254012c13891406104e7042 | /for.py | 9b0ed2c7f35414f3732055dfecda68b0ba87dbb5 | [] | no_license | rodrigo-montenegro/curso-python | b26a34d64fada375111665b352124fa7fe9afef1 | 43817ec6ab6322f403cca5a83c6b9b6ad31c6686 | refs/heads/master | 2022-10-16T20:21:17.502599 | 2020-06-10T03:40:42 | 2020-06-10T03:40:42 | 271,170,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | numeros = [1,2,3,4,5,6,7,8,9,10]
for numero in numeros:
print(numero)
| [
"rodrigommz90@gmail.com"
] | rodrigommz90@gmail.com |
5a5a6e707ec9d78f7ebf9c1d7a76fc155d3c53d5 | 681540839740429e4c15317be9a2568b0dae5aee | /bigmler/options/test.py | 667e5f89d4075be694288fad71f1891561a9aa05 | [
"Apache-2.0"
] | permissive | jinqiushang/bigmler | 2fd0cc11637984bc952f59ca87bfe7ee0f737a9c | f2cf8cf7cb56deb894e03811a4140f9542bc659d | refs/heads/master | 2021-01-23T20:30:13.850441 | 2014-10-05T00:33:32 | 2014-10-05T00:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,107 | py | # -*- coding: utf-8 -*-
#
# Copyright 2014 BigML
#
# 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 ag... | [
"merce@bigml.com"
] | merce@bigml.com |
b638f37482d86c97eb7e29611f711bf03793684d | 2940f5416082dadd9c646cd9a46d2d0a99883efb | /venv/Lib/site-packages/pandas/tests/io/test_pickle.py | 34b36e2549b62d1366d9d13eb33739ea8212fc4f | [
"MIT"
] | permissive | tpike3/SugarScape | 4813e4fefbfb0a701f5913d74f045fd0eaed1942 | 39efe4007fba2b12b75c72f7795827a1f74d640b | refs/heads/main | 2021-06-20T03:55:46.288721 | 2021-01-20T17:06:35 | 2021-01-20T17:06:35 | 168,583,530 | 11 | 3 | MIT | 2021-01-20T17:19:53 | 2019-01-31T19:29:40 | Jupyter Notebook | UTF-8 | Python | false | false | 17,586 | py | """
manage legacy pickle tests
How to add pickle tests:
1. Install pandas version intended to output the pickle.
2. Execute "generate_legacy_storage_files.py" to create the pickle.
$ python generate_legacy_storage_files.py <output_dir> pickle
3. Move the created pickle to "data/legacy_pickle/<version>" directory.
"... | [
"tpike3@gmu.edu"
] | tpike3@gmu.edu |
996e5025a7179df90471e3f698d0695a20ddc9b3 | 8485fc3c53cf2fa541be4a5fee606d4958478c5d | /scripts/meas_intmat_sinus.py | bb30c90f455b35144e16cced8792cd41f0f7442c | [] | no_license | jaredmales/MagAO | 8c5a6136dedab9ce0de8d612a8f6cf31cfef6bbf | 3d5b87d9e440831c7ede81fd70e74c335d630bbf | refs/heads/master | 2021-01-21T22:21:48.942524 | 2017-09-01T19:10:45 | 2017-09-01T19:10:45 | 102,152,105 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,848 | py | #!/usr/bin/env python
import sys, dl
sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
import idl, p45lib, ll, fits_lib
import getopt, os, sys
from numarray import *
n_modes = 48
n_modes_todo = 45
nframes = 1000
sinus_amps = 'sinus_amps.fits'
sinus_freq = 'sinus_freq.fits'
matrix_name = ""
noise = False
ll.ConnectToMs... | [
"jaredmales@gmail.com"
] | jaredmales@gmail.com |
dd2726648c27e24a48493defd3226b753a69452f | 476cc933d384a3586dd80b186b37161d62494235 | /pyramid_fullauth/models/mixins/password.py | ee59318978d565feea5d80c0e10caaf69b54701d | [
"MIT"
] | permissive | pronebel/pyramid_fullauth | 4a28022acc77bf06f9cc3b7458de63c71645298d | 7280660bda44879d8fe2ca340868d73e5ea2d6ce | refs/heads/master | 2021-05-13T22:39:15.048808 | 2018-01-05T12:11:21 | 2018-01-05T12:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,170 | py | # Copyright (c) 2013 - 2016 by pyramid_fullauth authors and contributors <see AUTHORS file>
#
# This module is part of pyramid_fullauth and is released under
# the MIT License (MIT): http://opensource.org/licenses/MIT
"""Password mixin related module."""
import os
import hashlib
import uuid
from sqlalchemy import Col... | [
"fizyk@fizyk.net.pl"
] | fizyk@fizyk.net.pl |
7ae32f9a8fc8925b13933180ec9c34785ccb997a | 12cfd1678317f40ca778b8c65d7323637c8c358d | /细粒度用户评论情感分析/team6_1th/wenzheng-master/utils/gezi/metrics/__init__.py | 760896d04eec2f1d64bc6a8ce379dd350022ce8a | [] | no_license | moonlight1776/competitions | e73d0ce358d2b5662b801820fd2f6434f2af4e2e | a372a2051a2a1580feb280ce6842a785459cf8d1 | refs/heads/master | 2022-03-21T09:31:20.276644 | 2019-11-09T05:37:46 | 2019-11-09T05:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | __author__ = 'tylin'
import gezi.metrics.bleu
import gezi.metrics.cider
import gezi.metrics.meteor
import gezi.metrics.rouge
import gezi.metrics.tokenizer
from gezi.metrics.bleu import *
from gezi.metrics.cider import *
##TODO cider with global df as generated before so can calc cider for single image
##may improve... | [
"327643958@qq.com"
] | 327643958@qq.com |
bf69d10d8c80d40c2cfc72da1361e559c361d64a | ab8117bc5b5040e5107fc59337fabc966cb062ba | /.history/twitter/engine_20200328094614.py | 041fd27df33884457f72c0923588ac5a8fb05d50 | [] | no_license | mirfarzam/DownloaderBro | 6019ab561c67a397135d0a1585d01d4c6f467df4 | 8e0a87dd1f768cfd22d24a7f8c223ce968e9ecb6 | refs/heads/master | 2022-04-16T15:31:38.551870 | 2020-04-15T17:36:26 | 2020-04-15T17:36:26 | 255,090,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py |
import tweepy
import datetime
import configparser
import time
config = configparser.ConfigParser()
config.read('credential.conf')
consumer_key = config['API']["API_key"]
consumer_secret = config['API']["API_secret_key"]
access_token = config['ACCESS']["Access_token"]
access_token_secret = config['ACCESS']["Access_t... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
1fd2bdee6a04a8bb0df66cc30366a2eeb1c29dd2 | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/global_/timers/lsp_generation/config/__init__.py | cff4590ff781e6801764cd655a749b4ea12d6b5a | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 24,388 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
7f05e88c4d90cdcd20cce2fd04aff04c9ef8cd54 | e90a772733e73e45b4cdbb5f240ef3b4a9e71de1 | /316. Remove Duplicate Letters.py | 18ade144f71035cb2341434babf2ebfab6b40f27 | [] | no_license | jiewu-stanford/leetcode | 102829fcbcace17909e4de49c01c3d705b6e6e3a | cbd47f713d3307f900daf55c8f27301c70542fc4 | refs/heads/master | 2022-05-28T18:25:00.885047 | 2022-05-18T05:16:22 | 2022-05-18T05:16:22 | 214,486,622 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,736 | py | '''
Title : 316. Remove Duplicate Letters
Problem : https://leetcode.com/problems/remove-duplicate-letters/
'''
'''
recursive solution using counter()
Reference: https://leetcode.com/problems/remove-duplicate-letters/discuss/76768/A-short-O(n)-recursive-greedy-solution
'''
import collections
class Solution:
d... | [
"bayernscience@hotmail.com"
] | bayernscience@hotmail.com |
4d9a6c69d54cf2900b5ec27d565999691a07f864 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/sbysiz002/question1.py | e3f84dd0c4f141e5fe041704356842dda70a3612 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # name: Sizwe Sibiya
# date:25/02/2014
#student n.o: SBYSIZ002
# Assignment 1
def Sizwe():
print (" ____ ____ ___ ____ _____ _ _ _ _ _ ")
print (" / ___/ ___|_ _/ ___|| ___| | | | \ | | |")
print ("| | \___ \| |\___ \| |_ | | | | \| | |")
print ("| |___ ___) | | ___) | _| | |_| | |\ |_|")... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
ef44f15ae991fd00d783c99fe1bf6e05ab97f057 | bdba52c756cc09f192b720ea318510c265665dcd | /swagger_client/models/get_universe_schematics_schematic_id_ok.py | 6d64f3b28b6c2de1b227ad11608a45a27026d55e | [
"MIT"
] | permissive | rseichter/bootini-star | 6b38195890f383615cc2b422c365ac28c5b87292 | a80258f01a05e4df38748b8cb47dfadabd42c20d | refs/heads/master | 2020-03-14T03:17:11.385048 | 2018-06-28T17:23:23 | 2018-06-28T17:23:23 | 131,416,504 | 0 | 0 | MIT | 2018-05-01T14:26:04 | 2018-04-28T14:28:46 | Python | UTF-8 | Python | false | false | 4,351 | py | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online # noqa: E501
OpenAPI spec version: 0.8.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class GetUniverseSchematicsSchematicIdOk(object):
"""NOTE: ... | [
"github@seichter.de"
] | github@seichter.de |
fac318a936e8e84d8eb0f161be4daa33ac441270 | d87f6d9e769709def3efcf30230cd8bf6ac2cef7 | /WWTest/autotest/test/zhongshiyou/yonghuguanli/AutoTestSearch.py | b82024acb1d5b9d3034a3c8ef13a125e0c209e51 | [] | no_license | wawj901124/centos8xitong | 876dcc45b895871119404ad1899ca59ab5dd90b6 | 81fc0d1151e3172ceec2093b035d2cd921e1a433 | refs/heads/master | 2023-02-23T22:33:22.314433 | 2021-01-31T01:54:35 | 2021-01-31T01:54:35 | 290,476,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,107 | py | import unittest
# ----------------------------------------------------------------------
import os, django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wanwenyc.settings")
django.setup()
# ----------------------------------------------------------------------
#独运行某一个py文件时会出现如下错误:django.core.exceptions.AppRegistryNo... | [
"wawj900805"
] | wawj900805 |
05d56ffb04b401836e601ed7f608f0e0aa12f0a3 | c2849586a8f376cf96fcbdc1c7e5bce6522398ca | /ch13/ex13-15.py | cfcd11176324db1ee1a2a332d54e00a1aae56d99 | [] | no_license | freebz/Learning-Python | 0559d7691517b4acb0228d1cc76de3e93915fb27 | 7f577edb6249f4bbcac4f590908b385192dbf308 | refs/heads/master | 2020-09-23T01:48:24.009383 | 2019-12-02T12:26:40 | 2019-12-02T12:26:40 | 225,371,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | # 중첩된 for 루프
items = ["aaa", 111, (4, 5), 2.01] # 객체 세트
tests = [(4, 5), 3.14] # 검색할 키
for key in tests: # 모든 키에 대해
for item in items: # 모든 아이템에 대해
if item == key: # 매칭 테스트
print(key, "was found")
break
else:
... | [
"freebz@hananet.net"
] | freebz@hananet.net |
d5fa701301f7fdd1ef2e6713799da23061554618 | 428989cb9837b6fedeb95e4fcc0a89f705542b24 | /erle/ros_catkin_ws/devel_isolated/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/srv/_CommandBool.py | f87c332f112017149abe7bc5ca684a6719327b89 | [] | no_license | swift-nav/ros_rover | 70406572cfcf413ce13cf6e6b47a43d5298d64fc | 308f10114b35c70b933ee2a47be342e6c2f2887a | refs/heads/master | 2020-04-14T22:51:38.911378 | 2016-07-08T21:44:22 | 2016-07-08T21:44:22 | 60,873,336 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,972 | py | """autogenerated by genpy from mavros_msgs/CommandBoolRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class CommandBoolRequest(genpy.Message):
_md5sum = "e431d687bf4b2c65fbd94b12ae0cb5d9"
_type = "mavros_msgs/CommandBoolRequest"
_has_he... | [
"igdoty@swiftnav.com"
] | igdoty@swiftnav.com |
0a9ebf6981cdcc6eb5a09f25d24eac04ba573f16 | 3ca1a812ab4e7278e88a9bc6a183e341803cb9ad | /2022/07/main.py | 7a4b641cb268a8cb4c3cac021bcf5b0a9618dad5 | [] | no_license | acarlson99/advent-of-code | 11608a436e3fd4eadc8a3960811b6e495859d024 | be7c0cf337a5c70be12df6812cbddb48d7207495 | refs/heads/master | 2023-05-25T14:57:28.883802 | 2023-05-20T01:36:48 | 2023-05-20T01:36:48 | 225,130,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | #!/usr/bin/env python3
import fileinput
def sumDict(d):
if d['total']!=0:
return d['total']
for k in d.keys():
if k=='total' or k=='..':
continue
if type(d[k]) == type(1):
# int
d['total']+=d[k]
else:
# subdir
d['total... | [
"a@a.a"
] | a@a.a |
e90ba02e93e37138e89af10cee141bdd71a66552 | 9c84f9d5dc15a7aa5d1caf05b6ae5ea83e39be3a | /python_stack/django/hello_django/apps/main/urls.py | 6df52eb6cfcd14ac02caae89097dd08193203d8c | [] | no_license | tomnguyen103/Coding_Dojo | 0fc4007296feb775b4bcd6ee98f66286b2786adb | ec46b866fc7e58a37d07b63b26b38d19eaeb96f6 | refs/heads/master | 2022-12-28T03:47:57.172540 | 2020-06-15T23:03:50 | 2020-06-15T23:03:50 | 212,214,976 | 1 | 0 | null | 2022-12-11T18:36:51 | 2019-10-01T22:59:37 | Python | UTF-8 | Python | false | false | 137 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^process$', views.process)
] | [
"huuthong103@gmail.com"
] | huuthong103@gmail.com |
47f3b28cf53dec740222bbb1bb219b85bb6281ed | b31fd588b0d6928d3a7995303a6d0712719a993a | /Ch06/58.py | 87764b16defd47c1546b9ff592d38997fe22a9a0 | [] | no_license | Vegctrp/nlp100_2020 | 03d01b4c1344efa8424ec7265e5457ed5825d104 | 31f1e864ccf83fa027a7c59f1e36fac1d713605b | refs/heads/master | 2021-05-20T09:08:44.757949 | 2020-07-22T08:34:19 | 2020-07-22T08:34:19 | 252,215,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py | from stemming.porter2 import stem
import spacy
import re
from collections import Counter
from sklearn.linear_model import LogisticRegression
import pickle
import random
import numpy as np
import statistics
import matplotlib.pyplot as plt
nlp = spacy.load("en")
def get_feat_from_sentence(string):
sl ... | [
"kem.altair@gmail.com"
] | kem.altair@gmail.com |
9d85c21635a910364999a592227619bcf7aa2d07 | 545afb3cfe89f82b558faa5b5b28c28b8e3effce | /venv/Lib/site-packages/keras/applications/vgg19.py | 4d6f83e1d11569faa9197e7c7389fef3117f9e22 | [
"MIT"
] | permissive | parthpankajtiwary/keras-groundup | 24ad45a4b872e6d77fff8a6f4a3a6d60124a0628 | 0df0844e7d9dca741fad0965761a12f72ee51f07 | refs/heads/master | 2022-11-09T22:34:35.716466 | 2019-10-01T11:01:59 | 2019-10-01T11:01:59 | 210,914,101 | 0 | 1 | MIT | 2022-10-25T06:47:55 | 2019-09-25T18:31:49 | Python | UTF-8 | Python | false | false | 518 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from keras_applications import vgg19
from . import keras_modules_injection
@keras_modules_injection
def VGG19(*args, **kwargs):
return vgg19.VGG19(*args, **kwargs)
@keras_modules_injection
def decode_pr... | [
"parthpankajtiwary@gmail.com"
] | parthpankajtiwary@gmail.com |
5774a8fc3e41ca5dfc3a5e5a577f1582d482a9b5 | ea58baddffd568d3c819bf6b8416e093c98eca3a | /users/admin.py | 02eaa8700f0f63bd93a6cfde19de350d6d4c70fc | [
"MIT"
] | permissive | Wambere/django-template | 21be6eb5dc841b488db6d37664dbf39b502dc4d9 | 4ec67371a5582b1a322df8f4d1c30c06b4ddb5a3 | refs/heads/master | 2021-01-24T01:12:02.332701 | 2020-03-31T12:10:17 | 2020-03-31T12:10:17 | 32,073,347 | 0 | 0 | MIT | 2023-08-29T08:29:15 | 2015-03-12T11:27:03 | HTML | UTF-8 | Python | false | false | 573 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from users.models import UserProfile
# Define an inline admin descriptor for UserProfile model
# which acts a bit like a singleton
class UserProfileInline(admin.StackedInline):
model = User... | [
"kelvin@jayanoris.com"
] | kelvin@jayanoris.com |
31e8d2b5923a0a3398bf5ff0abb87cd2140ba836 | cdee5cc20a5085b40f8555e7199fe19403e005c3 | /experimental/classifier/graphicalEM.py | 09cf532e4e15aaa2c8754eb9e0ddc70a03062af6 | [
"Apache-2.0"
] | permissive | visenger/aggregation | 1e908d11df701e900d94d6545f3cc35a6c7dc915 | 82dce87eaaf14b0b2bedd29fc82c026fda2a0138 | refs/heads/master | 2020-03-19T03:08:52.140663 | 2017-06-21T10:32:27 | 2017-06-21T10:32:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,642 | py | #!/usr/bin/env python
__author__ = 'greghines'
from itertools import chain, combinations
import numpy as np
import csv
import math
import pymongo
import operator
import os
from copy import deepcopy
import random
def powerset(s):
"powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)"
return chain.f... | [
"ggdhines@gmail.com"
] | ggdhines@gmail.com |
0292ccede12c5a93b203d599c925fdcacb897aa9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03131/s678976748.py | 5392c513bf40baef45c9637eba9aec18c49ffa1e | [] | 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 | 267 | py | K, A, B = map(int, input().split())
if B - A <= 2 :
print(K + 1)
elif K < A + 1:
print(K + 1)
elif K == A + 1:
print(B)
else:
count = K - (A + 1)
if count % 2 == 0:
ans = count // 2 * (B - A) + B
else:
ans = count//2 * (B - A) + B + 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fe3eead5c57ce0f2494868e92f90a4c9c5686841 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /dbpedia/api/theatre_api.py | a1a5f962b7497cc4db76feeeb2e7579ec5b508f4 | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,715 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
f... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
65fa38be3653c790de1204a39bce046e19e0914d | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.1/programming/languages/R/actions.py | 7ecc5974a7a4c3797396c68b38863ee47c4cb305 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def define_global():
shelltools.export("R_H... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
7173fb20ff26cbf7e6069cff50272fb6740cbe75 | 083558f27c674112dc0811eed9915a91d99fa0a0 | /Типы данных/Модуль math/Пол и потолок.py | 3b7bf6480c2710002c0e2ea3a30fb5c4f7d2ffa3 | [] | no_license | Kanres-GH/Pokolenie-Python-Stepik | e677639af1eabfd29635b792192b4fd5f107f5bb | 54b8d0ae7dbf7aaf2ea97300e643e1787b87ac7f | refs/heads/main | 2023-04-23T04:42:59.662055 | 2021-05-01T17:42:25 | 2021-05-01T17:42:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | from math import ceil, floor
a = float(input())
print(ceil(a)+floor(a)) | [
"noreply@github.com"
] | Kanres-GH.noreply@github.com |
c4df41798306e9cd6ecf54e09e71dceb95ea6f1c | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/Autodesk/Revit/DB/Electrical_parts/WireConduitType.py | 897619b7350f1c0bf25c1fd53e3919345a919aa3 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | class WireConduitType(APIObject,IDisposable):
""" Represents a specific conduit type of wire type. """
def Dispose(self):
""" Dispose(self: APIObject,A_0: bool) """
pass
def ReleaseManagedResources(self,*args):
""" ReleaseManagedResources(self: APIObject) """
pass
def ReleaseUnmanagedResources(self,*args):
... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
e03bb5f2fbac256788c32d1a5932cfd5a72833e3 | f8580d2c963b6a3c34e918e0743d0a503a9584bd | /unittests/test_choicdlg.py | 08e55c06e160fdf02d929f2b2884ca94e844d59f | [] | no_license | pypy/wxpython-cffi | f59c3faeed26e6a26d0c87f4f659f93e5366af28 | 877b7e6c1b5880517456f1960db370e4bb7f5c90 | refs/heads/master | 2023-07-08T21:13:22.765786 | 2016-12-02T22:10:45 | 2016-12-02T22:10:45 | 397,124,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | import imp_unittest, unittest
import wtc
import wx
#---------------------------------------------------------------------------
class choicdlg_Tests(wtc.WidgetTestCase):
def test_choicdlgSingle(self):
d = wx.SingleChoiceDialog(self.frame, 'message', 'caption',
choices="o... | [
"wayedt@gmail.com"
] | wayedt@gmail.com |
1c18255775256e8a3b0277b41ffb4faafc95d3f5 | 739a3224e5f465af2d5c8a48a0182028e0bfee64 | /app/routes.py | 39fc3571de9a39f93cad722f45f0e047f3c8e2df | [] | no_license | infant01han/microblog | 59a0fb95807c3f26cf72854debe96bc311a2b5dc | 00fa45edbebebf029e5e63f199835576acd9bdd7 | refs/heads/master | 2021-01-15T04:45:17.180929 | 2020-02-27T08:50:32 | 2020-02-27T08:50:32 | 242,881,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,473 | py | # -*- coding: utf-8 -*-
# @Time : 2020/2/25 0025 9:01
# @Author : Han lei
# @Email : hanlei5012@163.com
# @File : routes.py
# @Software: PyCharm
from datetime import datetime
from hashlib import md5
from flask import render_template, flash, redirect, url_for, session, request
from flask_login import login_use... | [
"you@example.com"
] | you@example.com |
09f9ab60c303957211d2026197ee57f9d7d77351 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-1047.py | 910f0f2a6e1aa5843b2cf169bccacad1b28a2df7 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,000 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
06f5ad9176b31b5a7118337ed20fcecf7bcd0968 | 109c3760c960a84bc3efce7101eee90423926803 | /manage.py | 53012f0868681a8f1392c75afe01af112225f4e6 | [] | no_license | crowdbotics-apps/my-webapp-dev-1114 | dddde1bca0ab4ea3d37a67891b386b991d43bb26 | c8cf9a7c1658f1fb96e64c35b6cb47a818cc8afa | refs/heads/master | 2022-03-14T04:00:06.178498 | 2019-11-21T15:58:33 | 2019-11-21T15:58:33 | 223,210,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'my_webapp_dev_1114.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
r... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e75d48d6c89c292af2a8f7557188d19d9b9c2d63 | d8f4bebec4470c8f8d3db7dfc84d3216f91835f3 | /webapp/apps/dynamic/tests/utils.py | 07c3b896c65f0d53f0f6edc7f66a14271f52ad86 | [
"MIT"
] | permissive | zrisher/webapp-public | 75ca6c5ae37d56f40f1e99c3966b3829536946b0 | 75064eaaab559e34f74eda7adef24d1c5401da54 | refs/heads/master | 2021-01-09T06:22:25.875600 | 2016-03-25T19:35:56 | 2016-03-25T19:35:56 | 40,660,575 | 0 | 0 | null | 2015-08-13T13:35:34 | 2015-08-13T13:35:34 | null | UTF-8 | Python | false | false | 4,635 | py | from __future__ import print_function
from django.test import TestCase
from django.test import Client
import mock
import os
os.environ["NUM_BUDGET_YEARS"] = '2'
from ...taxbrain.models import TaxSaveInputs
from ...taxbrain.models import convert_to_floats
from ...taxbrain.helpers import (expand_1D, expand_2D, expand_li... | [
"tj.alumbaugh@continuum.io"
] | tj.alumbaugh@continuum.io |
6631e2bfaff8a218e361b4fa4991d715e8bec861 | caf6362c810b13aa12328e8a16cff5c06e0ad493 | /sfat/config/__init__.py | 9edc049a842ae8560e8c1b5fdbf5d7778d818c3b | [] | no_license | pondelion/SFAT | a3f826c7ac5602b374299cd2e03f18b2b6dc8bc6 | bcdb38de83640e41d75e65593047deb2e9db9990 | refs/heads/main | 2023-07-13T22:42:20.484208 | 2021-08-22T12:35:32 | 2021-08-22T12:35:32 | 394,817,037 | 0 | 0 | null | 2021-08-15T06:14:43 | 2021-08-11T00:41:20 | Python | UTF-8 | Python | false | false | 69 | py | from .config import DataLocationConfig
from .config import AWSConfig
| [
"programming.deve@gmail.com"
] | programming.deve@gmail.com |
59718f34df9335eeffd660f5c26f365c8acca3a3 | 55173732ce1f2537a4fd8a6137b2a813f594b250 | /azure-mgmt-resource/azure/mgmt/resource/resources/models/deployment_operation_properties.py | f1a95b938e8105616fec22ccea56075832c47462 | [
"Apache-2.0"
] | permissive | dipple/azure-sdk-for-python | ea6e93b84bfa8f2c3e642aecdeab9329658bd27d | 9d746cb673c39bee8bd3010738c37f26ba6603a4 | refs/heads/master | 2020-02-26T15:32:39.178116 | 2016-03-01T19:25:05 | 2016-03-01T19:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
4b1f88810d81df56502afa199830a165294ae9a9 | 336f11ee8934581f05ab620c5324c601ba864b05 | /jb_adaptive_python/Problems/Replacement/Programming/tests.py | ec16300348394531bd70a4e1ed4ddd878c07c10a | [] | no_license | ancient-clever/sandbox | 01adeee2638a23533965cf57ca873a30e7dfad3d | 87dec3bf8860a67a36154ee5d7c826d919d3111b | refs/heads/master | 2022-05-17T04:49:54.703068 | 2020-01-19T17:44:27 | 2020-01-19T17:44:27 | 206,946,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from test_helper import check_samples
if __name__ == '__main__':
check_samples(samples=[["my file name.txt","my_file_name.txt"],["string with multi spaces","string_with_multi_spaces"],["single","single"]]) | [
"ancient-clever@outlook.com"
] | ancient-clever@outlook.com |
b46152bc5da466d91d7596c9595eb7e98085eae0 | 35f554df6768a0a33084fcc1cafb0213108df615 | /test_case/用户管理/test_user_logout.py | 50c964d4f6fd91449b7572ff053dfb5c355c2699 | [] | no_license | 1655490577/api_auto_test_new | 3db814cdd34e5ad11c06db699ef5df231ff16c62 | ed559594687d5e31bd7644e4166f180974979584 | refs/heads/master | 2023-02-02T00:39:46.254599 | 2020-12-22T09:22:30 | 2020-12-22T09:22:30 | 310,470,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | from API.api_get_data import getter
from common.logger import logger
import pytest
import allure
class TestLogout(object):
"""
退出登录接口
"""
@pytest.mark.parametrize(('request_parameters', 'expected_response'),
getter.load_excel('监理api接口自动化测试用例.xls', '用户管理', '注销成功'))
def ... | [
"12345678"
] | 12345678 |
787e84355aaf857d89451e700d4e18d7d3361e1a | 9875dfce571669d8ce3f6523651dc8e1ebf661d4 | /apps/panel/views.py | a4d96e0038b6d8ed3dc7da93a758bb6cd232ab80 | [
"MIT"
] | permissive | AppforallHQ/users | a80c0a08e3d660aed21af744383c3d42288c58c5 | bb5f393ef3966dbde019a1a07f244b71a342a7ac | refs/heads/master | 2020-06-30T20:17:37.641107 | 2016-11-21T10:53:52 | 2016-11-21T12:57:38 | 74,354,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,736 | py | # -*- coding: utf-8 -*-
import operator
import re
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse,HttpRequest,Http404, HttpResponseRedirect
from django.core.exceptions import PermissionDenied
from functools import wraps
import json
from django.shortcuts import render_to_r... | [
"hi@appforall.ir"
] | hi@appforall.ir |
1d5f29e04342ebdf726cabaac303b44eba8a97ad | f75f841a1e0e6e7915a68bebbed7233aa5d22625 | /multiprocessing/test_server.py | 688c1c6673617ddb7559c873df4f4e9da2238718 | [
"MIT"
] | permissive | Akagi201/learning-python | 4c1aa72116cdfea527fdf2afd038158e5ba7f97b | 28169d1bf0488e8be1456b40dd39d7830a65280e | refs/heads/master | 2022-12-08T01:25:57.842615 | 2022-03-14T08:02:20 | 2022-03-14T08:02:20 | 32,675,802 | 89 | 126 | MIT | 2022-11-24T18:20:28 | 2015-03-22T13:04:01 | Python | UTF-8 | Python | false | false | 349 | py | #!/usr/bin/env python
from multiprocessing import Process, Manager
def f(d, l):
d[1] = '1'
d['2'] = 2
d[0.25] = None
l.reverse()
if __name__ == '__main__':
manager = Manager()
d = manager.dict()
l = manager.list(range(10))
p = Process(target=f, args=(d, l))
p.start()
p.join(... | [
"akagi201@gmail.com"
] | akagi201@gmail.com |
ce6e2793e5b753cb82233378e8c7f0e4e241ba74 | bb51ca0bdf60adf66750ac34fde2087b2b2dbec4 | /1392A.py | 5895a92f5784a21aae70b9052aaa9de681a71e3e | [] | no_license | ronjacobvarghese/cp-python | 88526137c4df5e09b417bc72e6388a5a486fb147 | cad8338d18d79fe3f01c79e02bb935be7a162e29 | refs/heads/master | 2023-07-10T18:20:52.312601 | 2021-08-27T16:29:03 | 2021-08-27T16:29:03 | 395,719,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | for _ in range(int(input())):
n=int(input())
a=list(map(int,input().split()))
if len(set(a))==1:
print(len(a))
else:
print(1)
| [
"generalsmoke23@gmail.com"
] | generalsmoke23@gmail.com |
e1d828ff13366bb671df49706ce324b2faf58622 | 55815c281f6746bb64fc2ba46d074ca5af966441 | /easy/144.py | 987215eb0faa4742b2e41b18b64961fd5d90a56b | [] | no_license | brandoneng000/LeetCode | def5107b03187ad7b7b1c207d39c442b70f80fc2 | c7a42753b2b16c7b9c66b8d7c2e67b683a15e27d | refs/heads/master | 2023-08-30T23:38:04.845267 | 2023-08-30T08:42:57 | 2023-08-30T08:42:57 | 199,584,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # Definition for a binary tree node.
from typing import List, Optional
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def preorderTraversal(self, root: Optional[TreeNode]) -> List[int]:
# resul... | [
"brandoneng000@gmail.com"
] | brandoneng000@gmail.com |
926c7118079d70edf6e47643eb9451c5cf41966f | b47a619f6ccd0f76ccce989e62d0c963a1c14ab4 | /Python/dp/Coin Change.py | f3e4e683348bf443a73df151c54d1481cedeb90e | [] | no_license | GreatTwang/lccc_solution | 0799d19097549ef3c9beeebf6dc9960db9f9eb54 | e75899634f45b0d60f8b3cb854ab9e503d676a57 | refs/heads/master | 2020-07-07T02:45:18.984502 | 2019-10-09T04:53:35 | 2019-10-09T04:53:35 | 203,219,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | class Solution:
def coinChange(self, coins: List[int], amount: int) -> int:
dp=[amount+1]*(amount+1)
dp[0]=0
for i in range(1,amount+1):
for k in coins:
if k<=i:
dp[i]=min(dp[i],dp[i-k]+1)
if dp[amount]>amount:
return -1
... | [
"tianwang@bu.edu"
] | tianwang@bu.edu |
d00f00c6ed1df0c8805ab29ff48ce9f2a2449aa7 | 214c4a79fd77008bf688aa2fc8bafdff8a80780b | /src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_operations.py | c405776225680a07e73f13be49cfa288c73ebba9 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | openapi-env-test/azure-cli-extensions | abb8bcf005a5b75ee47a12745a958bcb64996a44 | d4ffc4100d82af66c4f88e9401397c66b85bd501 | refs/heads/master | 2022-09-15T18:08:46.848581 | 2022-08-09T06:09:14 | 2022-08-09T06:09:14 | 243,698,123 | 0 | 1 | MIT | 2020-11-10T06:59:47 | 2020-02-28T06:53:57 | Python | UTF-8 | Python | false | false | 5,722 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
6c8b7b71d400940ac8840b1421a2d7336cbf9d7c | 5292b03998384c0d2bb5858058892d7e45c5365b | /angstrom/2021/web/Ekans/db.py | 282291837ed68ba4491c2e5cfc5200920074601b | [
"MIT"
] | permissive | TheusZer0/ctf-archives | 430ef80d367b44fd81449bcb108e367842cb8e39 | 033ccf8dab0abdbdbbaa4f0092ab589288ddb4bd | refs/heads/main | 2023-09-04T17:56:24.416820 | 2021-11-21T06:51:27 | 2021-11-21T06:51:27 | 430,603,430 | 1 | 0 | MIT | 2021-11-22T07:24:08 | 2021-11-22T07:24:07 | null | UTF-8 | Python | false | false | 898 | py | import pickle
import base64
import io
import os
POKEMON = {id: (os.environ.get('FLAG', 'flag{TEST}') if id == 1337 else 'EKANS') for id in range(2000)}
USERS = {'guest': 'guest', 'PokeMaster3000': os.environ.get('ADMIN_PASSWORD', '<secret>')}
ADMINS = ['PokeMaster3000']
class User:
admin = False
def __init__(self,... | [
"sajjadium@google.com"
] | sajjadium@google.com |
e7199bcc977ba2f3728ba777689bc7aa806a55bb | 00946413cad95f98af3fb2fd9553c045fb78acb2 | /tests/test_karma_transactions.py | 2e964bf7f78d10251d03ec52efde618fc95516f9 | [
"MIT"
] | permissive | dixonary/apollo | 00e9d91161fa8314268edfafae8c42612d99236a | 90359d1d27b00135b83526c5ac4a6e0658c257e5 | refs/heads/master | 2022-04-14T04:12:16.303429 | 2020-03-12T14:34:24 | 2020-03-12T14:34:24 | 254,869,686 | 0 | 0 | MIT | 2020-04-11T13:06:32 | 2020-04-11T13:06:31 | null | UTF-8 | Python | false | false | 8,381 | py | from karma.parser import create_transactions, KarmaTransaction, RawKarma
def test_empty():
assert create_transactions("", "", []) is None
def test_simple_positive():
assert create_transactions(
"Baz", "Baz", [RawKarma(name="Foobar", op="++", reason=None)]
) == [KarmaTransaction(name="Foobar", se... | [
"david@tankski.co.uk"
] | david@tankski.co.uk |
64d1e809d1c8f3d7fa418635284649acb83345a4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/712.py | fed266881a4230be7343861d10b262b695584d01 | [] | 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 | 219 | py | for t in xrange(input()):
C,F,X = map(float,raw_input().split())
r = 2.0
ans = X/r
time = 0.0
for i in xrange(int(X)+1):
ans = min(ans,time+X/r)
time+=C/r
r+=F
print "Case #%d: %.7f"%(t+1,ans) | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a990a4ff8f9a5991a1ec506c2fa3a8c114c519d6 | 35a6f5a26ea97ebed8ab34619a8eec51719d2cc0 | /SpiderLearning/wangyi/wangyi/pipelines.py | 2993a80cb52ae2b9af3a593d0e8928030502d76d | [] | no_license | PandaCoding2020/pythonProject | c3644eda22d993b3b866564384ed10441786e6c5 | 26f8a1e7fbe22bab7542d441014edb595da39625 | refs/heads/master | 2023-02-25T14:52:13.542434 | 2021-02-03T13:42:41 | 2021-02-03T13:42:41 | 331,318,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
import json
class WangyiPipeline:
def __... | [
"gzupanda@outlook.com"
] | gzupanda@outlook.com |
a68946ec9aee3b7846319e3fc7907270752a90cb | 3e548ec9299c2ebf3321173aec939ac2cd5ff4ed | /manage.py | 56d9670a02a355165d5e4c5821434f61db850a81 | [] | no_license | jaimeaceballos/turn_o_matic | 5c84f0d752ac8e7a6b4ea9d6695c9f9604a7f9ad | 62f00e140b0c2a884f59eb678bc1da9dea448f81 | refs/heads/master | 2021-01-10T10:34:40.763053 | 2015-11-23T14:09:05 | 2015-11-23T14:09:05 | 44,545,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "turn_o_matic.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"jaimeceballos_rw@hotmail.com"
] | jaimeceballos_rw@hotmail.com |
50f8fe6d90469160b0908b6c331c9d56c91e0fb5 | 7dbf2c81184f05696492c5e1a7a5d92dff8a148e | /opensfm/actions/bundle.py | 712235a2c5216781bb30b43ea17b301fa5b5c1d9 | [
"BSD-3-Clause",
"LGPL-3.0-only",
"HPND",
"BSD-2-Clause"
] | permissive | cojosef96/OpenSfM | 539fc4ada155d14caccd621e28c1d88aad13e24b | 0d65e2d24e1f08bc84d358af42995bc8f44e763d | refs/heads/master | 2023-03-24T01:28:25.298552 | 2021-03-21T14:27:07 | 2021-03-21T14:27:07 | 278,365,350 | 0 | 1 | BSD-2-Clause | 2020-08-09T08:28:55 | 2020-07-09T12:58:32 | JavaScript | UTF-8 | Python | false | false | 975 | py | import opensfm.reconstruction as orec
from opensfm.dataset import DataSetBase
def run_dataset(dataset: DataSetBase, input, output):
"""Bundle a reconstructions.
Args:
input: input reconstruction JSON in the dataset
output: input reconstruction JSON in the dataset
"""
reconstructions... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
090e295d686e775e2a19ca6667abb0b60d88df18 | f81017fc11fbc8b39d9611a3202ce4136d2b9ff0 | /joulescope/v0/usb/winusb/setupapi.py | 91945f1be42a9c416b95576c69e2a13031e71faf | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jetperch/pyjoulescope | a52b975afd1145fab28d03a39e8d65f459e05362 | 94643c40fdaf493a403e30058f1dec8f4c30795b | refs/heads/main | 2023-08-04T02:32:30.284661 | 2023-07-24T17:53:35 | 2023-07-24T17:53:35 | 152,262,874 | 38 | 10 | Apache-2.0 | 2022-10-30T18:42:15 | 2018-10-09T14:12:04 | Python | UTF-8 | Python | false | false | 5,859 | py | # Copyright 2018 Jetperch LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"matt.liberty@jetperch.com"
] | matt.liberty@jetperch.com |
872f6745674bdf005028e40b18b828376a891634 | 9b74adea4b16d5c9c1ebdf4e0ddf773e31c2e2ce | /progamming/专题/数组问题/旋转数组/搜索旋转排序数组中是否含有目标值(包含重复数字).py | 7d4f2a12e198b36d927ef23fbb467ad696c761d4 | [] | no_license | dreamer121121/Learn | dc91c3862c1b8910950cce277da0e0534ed23f4c | 36a56a03c726cc645fb0c3e215a50f7d1081220a | refs/heads/master | 2021-11-13T19:58:28.614936 | 2021-11-01T11:19:01 | 2021-11-01T11:19:01 | 147,782,875 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | class Solution():
def search(self,nums,target,l,r):
#因为包含重复数字,因此需要收缩边界。
while l <= r:
mid = (l+r)>>1
if nums[mid] == target:
return True
if nums[mid]>nums[l]: #之所以只需大于号是因为没有重复数字
#左边递增
if target>=nums[l] and target < ... | [
"="
] | = |
f3e6b60a923e835899943e7c6e1d7a1c5fea08f2 | 98efe1aee73bd9fbec640132e6fb2e54ff444904 | /loldib/getratings/models/NA/na_tristana/na_tristana_bot.py | 6cd0d0681d76dd6c37fbca233faefac291dff723 | [
"Apache-2.0"
] | permissive | koliupy/loldib | be4a1702c26546d6ae1b4a14943a416f73171718 | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | refs/heads/master | 2021-07-04T03:34:43.615423 | 2017-09-21T15:44:10 | 2017-09-21T15:44:10 | 104,359,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,821 | py | from getratings.models.ratings import Ratings
class NA_Tristana_Bot_Aatrox(Ratings):
pass
class NA_Tristana_Bot_Ahri(Ratings):
pass
class NA_Tristana_Bot_Akali(Ratings):
pass
class NA_Tristana_Bot_Alistar(Ratings):
pass
class NA_Tristana_Bot_Amumu(Ratings):
pass
class NA_Tristana_Bot_Anivia(... | [
"noreply@github.com"
] | koliupy.noreply@github.com |
c7fba0f8ee3adcaa4e48518389ebcd023567faf2 | 40f5f84ad526e954df43f6f475d7bf7dfd54371d | /marge/config.py | b5f4e4aba87005c13fe14fd7ee9b28553299f2d3 | [
"Apache-2.0"
] | permissive | FirstDraftGIS/marge | f14dfea01dcdbb70aa5c23124f0d3d2bc96143c9 | eeee44f2c8f7956d8dc9d3c47b23a9497e9b75b3 | refs/heads/master | 2021-03-22T04:58:32.491291 | 2018-06-05T00:02:08 | 2018-06-05T00:02:08 | 119,925,838 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import yaml
from os.path import join
from os.path import realpath
from os.path import dirname
import os
dir_path = dirname(realpath(__file__))
filepath = join(dir_path,"config.yml")
print("path to config.yml:", filepath)
with open(filepath) as f:
config = yaml.load(f.read())
| [
"daniel.j.dufour@gmail.com"
] | daniel.j.dufour@gmail.com |
ef799918fa3d88362271d058d9ca3d22ff8922e8 | 61050d0d7f0c0a60474e4e85d30be4e5ea7c6b04 | /vnf/dom/neutron_experiment_simulations/SampleAssembly.py | da840cf70fddcc45be8f322a564a0aa9a3332a47 | [] | no_license | danse-inelastic/vnf | 8173f06f32b4a2fa2b71fddfe0fecf9c19e05e9a | be989448577f14f424aca4ce852c7198304ca57b | refs/heads/master | 2021-01-22T01:06:00.294100 | 2015-05-02T23:25:45 | 2015-05-02T23:25:45 | 34,947,878 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2010 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
74edc336034775d473fb2c8125ee6b707e013621 | 9a7b4a4fd8616f4a729cb2416f5e0fd3bdcf1c0e | /catkin_ws/src/robotx_forum_tutorials/kingfisher_control/cfg/YawDynamic.cfg | ef3f3bfcff98582f2fb0d0d35d2390c61e105913 | [] | no_license | RobotX-NCTU/rv-2018-lab02 | c94da5e1034b3e6904b25bccf5208c754b4a712f | 58d57b64942a4ed5c0ab375e04dd84f48d5ae132 | refs/heads/master | 2021-07-15T19:46:45.382173 | 2021-06-29T01:52:28 | 2021-06-29T01:52:28 | 120,983,474 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 902 | cfg | #!/usr/bin/env python
PACKAGE = "kingfisher_control"
from dynamic_reconfigure.parameter_generator_catkin import *
gen = ParameterGenerator()
gen.add("Kp", double_t, 0, "P gain", 1.0, 0, 100)
gen.add("Ki", double_t, 0, "I gain", 0.0, 0, 100)
gen.add("Kd", double_t, 0, "D gain", 0.0, 0, 100)
#size_enum = gen.en... | [
"cpwearth.eed03@g2.nctu.edu.tw"
] | cpwearth.eed03@g2.nctu.edu.tw |
01e672c239a7204d887a90c1ccb536e9592a0f1b | e0cafd971f1b41fa2f467913b083b095f23118f0 | /reproman/tests/__init__.py | 1a837e78af95575440d9d756a45221074b4dbfc8 | [
"MIT"
] | permissive | sriworx/reproman-scube | f009a54d4e0fba3cb1dfb54207da3e811dd45c68 | 26ed2f6eba361f579662c519d8d667b5efaa0378 | refs/heads/master | 2020-04-18T13:57:08.843582 | 2019-01-21T17:03:28 | 2019-01-21T17:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the reproman package for the
# copyright and license terms.
#
# ## ### #... | [
"debian@onerussian.com"
] | debian@onerussian.com |
253bdf782761917f8f0588d272a26da7aa341c9c | 4826488a4c3316671cbf1c2b72ffa9f290d1402f | /0x0A-python-inheritance/5-base_geometry.py | 38572e2cb656d171400d8616759aa59352f4aa5d | [] | no_license | Temesgenswe/holbertonschool-higher_level_programming | 4ff79e66f231f6a2915bfb48e60a1dac3f60bbf9 | a9797f7f0a9adb57fefe1929e852b646c87f3361 | refs/heads/master | 2023-03-15T13:07:55.578031 | 2018-05-11T23:02:47 | 2018-05-11T23:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | #!/usr/bin/python3
"""This module creates a class BaseGeometry"""
class BaseGeometry:
"""Empty class BaseGeometry"""
pass
| [
"256@holbertonschool.com"
] | 256@holbertonschool.com |
35014d78d86e22e19a624db7a08d5ba2bf066ab9 | 0c68c989a8473801743c4f2d2087c223b2fd47fa | /2019_round_1B/q1_test.py | 8e18e4e8e9dd5516d791ac71a4dae482260f2590 | [] | no_license | tabletenniser/Google_code_jam | 4a105e8e9bc27269430a1c90f4c7a59a4d4bc7a1 | 1c300e3b953e2e744a2c3bb963b5d2f46f9caee1 | refs/heads/master | 2021-06-12T22:10:23.675590 | 2021-03-27T22:25:06 | 2021-03-27T22:25:06 | 179,803,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | from q1 import fcn, find_interactions
import random
N = 10
matrix = [[0 for _ in xrange(N)] for _ in xrange(N)]
for _ in xrange(10000):
people = []
for i in xrange(random.randint(1, 20)):
x,y,d = random.randint(0, N-1), random.randint(0, N-1), random.choice(['N', 'S', 'W', 'E'])
people.append(... | [
"tabletenniser@gmail.com"
] | tabletenniser@gmail.com |
6060c8943418db83e6f944ce56befd2d8ee9012c | 9324f55eec6bc54bf2b24fa12e8776c817c79d62 | /osgtest/library/xrootd.py | 20c09c6799de03ee9e3921a6b972cf546110190f | [
"Apache-2.0"
] | permissive | matyasselmeci/osg-test | 1d37d1953291a027026f9a527c52d0612cdf22ac | 0d1cec2790c135084e31d611aba430d74249ea00 | refs/heads/master | 2023-09-01T20:38:56.978103 | 2023-08-03T13:46:06 | 2023-08-03T13:46:06 | 54,034,687 | 0 | 0 | Apache-2.0 | 2021-11-10T21:00:55 | 2016-03-16T13:35:53 | Python | UTF-8 | Python | false | false | 1,222 | py | """Utilities for dealing with XRootD"""
import os
from osgtest.library import core
ROOTDIR = f"/tmp/xrootd-osgtest-{os.getpid()}"
def cconfig(instance, executable="xrootd", raw=True, quiet=True):
"""Return the a config dump of an xrootd instance using cconfig"""
# Using shell=True because cconfig prints ou... | [
"matyas@cs.wisc.edu"
] | matyas@cs.wisc.edu |
ea7400126ad8e3c0f3febba406e57dabb62e064f | 9889e7fd73314382fb2f9e8f63d92cf3254b75fb | /ThirdParty/Peridigm/test/verification/CompressionImplicitEssentialBC_2x1x1/np2/CompressionImplicitEssentialBC_2x1x1.py | 497e600e7b55bf403a41e2260561dfc567fd0c25 | [] | no_license | bbanerjee/ParSim | 0b05f43cff8e878658dc179b4a604eabd873f594 | 87f87816b146f40013a5e6648dfe20f6d2d002bb | refs/heads/master | 2023-04-27T11:30:36.252023 | 2023-04-13T22:04:50 | 2023-04-13T22:04:50 | 13,608,512 | 16 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | #! /usr/bin/env python
import sys
import os
import re
from subprocess import Popen
test_dir = "CompressionImplicitEssentialBC_2x1x1/np2"
base_name = "CompressionImplicitEssentialBC_2x1x1"
if __name__ == "__main__":
result = 0
# log file will be dumped if verbose option is given
verbose = False
if ... | [
"b.banerjee.nz@gmail.com"
] | b.banerjee.nz@gmail.com |
91309c4b884874cc8b0e59a19ded4cf79fed926a | 3b50605ffe45c412ee33de1ad0cadce2c5a25ca2 | /python/paddle/fluid/tests/unittests/test_dataloader_unkeep_order.py | b45affcc6bf080ca06421581bb51f0f4cd450e3e | [
"Apache-2.0"
] | permissive | Superjomn/Paddle | f5f4072cf75ac9ecb0ff528876ee264b14bbf8d1 | 7a0b0dab8e58b6a3b28b3b82c43d55c9bd3d4188 | refs/heads/develop | 2023-02-04T20:27:54.244843 | 2023-01-26T15:31:14 | 2023-01-26T15:31:14 | 66,896,049 | 4 | 1 | Apache-2.0 | 2023-04-14T02:29:52 | 2016-08-30T01:45:54 | C++ | UTF-8 | Python | false | false | 8,065 | py | # Copyright (c) 2020 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | Superjomn.noreply@github.com |
5768a22c2173e9254dbe9994ffe02dbb2e19b9d8 | 202f687add55894f77d88a84f1f7e84605301a0c | /5.scrapy_redis分布式爬虫/tencent_positions/tencent_positions/spiders/tencent.py | 170ff699905d06ef6a3bd3b6379bc0342e66288e | [] | no_license | SuneastChen/python_crawler_learning | 6f8ef3b8409ad3c0a9ed900ccd89e7180df5a9bd | 6651177ef177231acd9638c39c809bb8f62d5df0 | refs/heads/master | 2020-03-07T22:45:39.515235 | 2018-04-02T13:53:55 | 2018-04-02T13:53:55 | 127,763,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import Rule
from scrapy_redis.spiders import RedisCrawlSpider
from tencent_positions.items import TencentPositionsItem
class TencentSpider(RedisCrawlSpider):
name = 'tencent'
allowed_domains = ['tencent.... | [
"1050521852@qq.com"
] | 1050521852@qq.com |
9995131c2c521319974a7b8b766b8e2687e83317 | fed0d36548598274d320435f127e77df48b1e73e | /app/handlers/admin/view_self_participant_id.py | eaeebdd49f13875c66e904bda4d697c6d2523acd | [
"MIT"
] | permissive | wthdevelopers/wthslack | bc80269a861a86888ed52d22f400077b00992671 | 27883c2062e9411376a1232dda44807dc6b3ec6d | refs/heads/master | 2023-05-27T19:29:54.891612 | 2023-05-17T04:33:52 | 2023-05-17T04:33:52 | 238,984,996 | 2 | 1 | MIT | 2023-09-01T08:30:34 | 2020-02-07T17:24:22 | Python | UTF-8 | Python | false | false | 296 | py | # coding: utf-8
# View ownself's participant UUID
# Created by James Raphael Tiovalen (2021)
import slack
import ast
import settings
import config
from slackers.hooks import commands
conv_db = config.conv_handler
@commands.on("viewparticipantid")
def viewparticipantid(payload):
return
| [
"jamestiotio@gmail.com"
] | jamestiotio@gmail.com |
1ca55bd5b134ece0fc08edb7bea81284ddde6fde | 5a41afe4dc8210cfe4791979c8b972ae84576d37 | /lists/migrations/0002_list.py | 9d3c25a4825086b27806e8509e43c7cd61bc85af | [] | no_license | telittleone/My-Testing-Goat | 8031f628ebf6a84d23d3be5d70fcfb206a8c0205 | ed917eea3cd061b2c09ca7a10204a22b7cfbbc99 | refs/heads/master | 2021-01-18T13:49:34.452048 | 2014-04-25T18:18:32 | 2014-04-25T18:18:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # encoding: utf8
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('lists', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='List',
fields=[
('id', models.AutoField(verbose_name='ID', s... | [
"vagrant@precise32.(none)"
] | vagrant@precise32.(none) |
3c1168d521c9213131df78b01bdbfc55be0ebb71 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20191218/example_python/00xxx.py | fa56fbf352542ea82426aee30fdc0e27f2067be5 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 233 | py | from __future__ import annotations
class Code:
def __getattr__(self, name: str) -> Attr:
return Attr(name, self)
class Attr:
def __init__(self, name: str, co: Code):
self.name = name
self._co = co
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
292b90e6ce9243337a85754126758b18e162674c | cc2fcc1a0c5ea9789f98ec97614d7b25b03ba101 | /st2actions/st2actions/policies/retry.py | 892d4a12aa0fe374bb36c61523bda0cc10c61e8d | [
"Apache-2.0"
] | permissive | Junsheng-Wu/st2 | 6451808da7de84798641882ca202c3d1688f8ba8 | c3cdf657f7008095f3c68b4132b9fe76d2f52d81 | refs/heads/master | 2022-04-30T21:32:44.039258 | 2020-03-03T07:03:57 | 2020-03-03T07:03:57 | 244,301,363 | 0 | 0 | Apache-2.0 | 2022-03-29T22:04:26 | 2020-03-02T06:53:58 | Python | UTF-8 | Python | false | false | 6,700 | py | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | [
"wei.ying@easystack.cn"
] | wei.ying@easystack.cn |
5f4f3519073608384c75fb64a18dcad42b62404e | 4df22cee4c4ee3ce87c7db1b01e6ece950357cce | /store/migrations/0006_auto_20210317_1654.py | 7e2b927c78122d5503d29313736908e90e36e6b4 | [] | no_license | Vazimax/eco_website | 88c9ad190fcef63da937c1eebaa787282fa9f99a | fb1e01614e653b3e906d189a9973daee4dcba070 | refs/heads/main | 2023-06-02T02:28:06.766616 | 2021-06-20T15:41:25 | 2021-06-20T15:41:25 | 378,681,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # Generated by Django 3.1.7 on 2021-03-17 15:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0005_auto_20210317_1553'),
]
operations = [
migrations.AlterField(
model_name='product',
name='digital',
... | [
"aboubakr.elhabti@gmail.com"
] | aboubakr.elhabti@gmail.com |
cb3f4c49301bf0beebc0633b7f452b53917a49ab | 2d59a479fe2c45b30d46d2c86ebb5a9414b112f5 | /pyexlatex/models/datastore.py | 4d34ffbc59b59736a53ef5b913411e9a51d58914 | [
"MIT"
] | permissive | nickderobertis/py-ex-latex | 24c8809784b9bdc8b74a05a57bb46cd05ec09945 | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | refs/heads/master | 2023-01-07T03:25:11.640037 | 2021-11-10T13:42:50 | 2021-11-10T13:42:50 | 203,180,166 | 5 | 0 | MIT | 2022-12-26T21:51:20 | 2019-08-19T13:38:14 | Python | UTF-8 | Python | false | false | 474 | py | from pyexlatex.models.containeritem import ContainerItem
from pyexlatex.models.documentitem import DocumentItem
class DataStore(ContainerItem, DocumentItem):
"""
Holds LaTeX item data and can be included directly in documents. Mainly for internal use.
"""
def __init__(self, content=None):
if ... | [
"whoopnip@gmail.com"
] | whoopnip@gmail.com |
5bde90e30415f8dbf2c68d2312f67d93d415ddab | 334d0190164d92b53be2844a3afc2826d64b1a6d | /lib/python3.9/site-packages/theano/compile/builders.py | ba8a513888ddfc508daaeda8472f80662d53a112 | [] | no_license | sou133688/BayesianStatics | f294d7c47cfa56374cf73b520529620dc6120f47 | be9121429494cd8fd231594b029fc2f030d8335f | refs/heads/main | 2023-08-21T15:57:32.980658 | 2021-10-01T00:01:13 | 2021-10-01T00:01:13 | 401,909,680 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,336 | py | """Define new Ops from existing Ops"""
from collections import OrderedDict
from functools import partial, reduce
import theano
from theano.compile.function.pfunc import rebuild_collect_shared
from theano.compile.function.types import orig_function
from theano.compile.mode import optdb
from theano.compile.sharedvalue ... | [
"matsushu@ZaknoMacBook-Pro.local"
] | matsushu@ZaknoMacBook-Pro.local |
7e31d70c10260d84d8a154553b5c0553b8598512 | 8149d1030b5bc62cc82d5afedbe7486daedbf8c5 | /[610][Triangle Judgement][Easy].py | ebb5fe67bf838973cd35fe38e89f22b67f2d8710 | [] | no_license | guofei9987/leetcode_python | faef17bb59808197e32ed97e92e2222862e2ba8c | 23703a6fb5028d982b3febc630e28f9bb65a82a6 | refs/heads/master | 2020-03-21T18:24:33.014579 | 2019-10-12T13:29:03 | 2019-10-12T13:29:03 | 138,889,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | # https://leetcode.com/problems/triangle-judgement | [
"guofei9987@foxmail.com"
] | guofei9987@foxmail.com |
623b65a0651beeb89e7cd558e30fdda071e3bcf3 | 64cd09628f599fe18bf38528309349f7ac0df71e | /Introduction/01_Introduction_python/08 Algorithmic steps/2 Conditional_steps - try_except/14_Algorithmic_Conditional_steps - try_except.py | 66b6cf9cbf8fe6b10004f81089ed7f79091516d8 | [] | no_license | JunyoungJang/Python | 958c057b2fd37c03876d3cf566ee27ee637bb020 | 76d4cd441deff8061e10608e0848360bc4f34490 | refs/heads/master | 2021-01-19T21:54:42.208469 | 2020-02-14T09:54:17 | 2020-02-14T09:54:17 | 83,768,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | # -*- coding: utf8 -*-
'''
print 'try except - example 1 ---'
a = 'Hello Bob'
try:
b = int(a)
except:
print 'something wrong with this step'
b = -1
print 'First', b
a = '123'
try:
b = int(a)
except:
print 'something wrong with this step'
b = -1
print 'Second', b
'''
'''
'''
#'''
#'''
'''
print... | [
"lakino@yonsei.ac.kr"
] | lakino@yonsei.ac.kr |
b6f26507be4b1d7f15fc699b5701cd8f203e17b3 | 423ba09a145b3468a322acf4ddf7d2c2446e227d | /atcoder/abc/abc014_1.py | a3d9bb3cb285c0ebe5d807993bd73905155aa11c | [] | no_license | hirosuzuki/procon | 13d3bc332d6e4368fd54fec742b32b09729658ed | 533f40e13456542b202905a61814ad926c3c206e | refs/heads/master | 2021-05-12T10:42:51.920561 | 2020-05-20T15:49:05 | 2020-05-20T15:49:05 | 117,356,746 | 0 | 0 | null | 2018-01-29T14:46:28 | 2018-01-13T15:56:40 | Python | UTF-8 | Python | false | false | 115 | py | A = int(input())
B = int(input())
from math import ceil
n = ceil(A / B)
result = n * B - A
print(result) | [
"hiro.suzuki.oct10@gmail.com"
] | hiro.suzuki.oct10@gmail.com |
44557cfb221af5991cf506bdc67a1ea1b4bec6ec | ff3c8adf9461a2589fb1b38c5e98727590580bb1 | /question7.py | 2d79e0170bc309870a347b74901fe2c54bbb52f0 | [] | no_license | subreena10/json | 92f97a35d8ad561c80f35b36e1b2ee41e465ca06 | 694145f9bf65078f416e7afc7d4ee053748d0c5e | refs/heads/main | 2023-09-04T09:39:28.577871 | 2021-10-22T09:05:21 | 2021-10-22T09:05:21 | 417,550,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import json
# a={Name Abhishek
# Designation CEO of navgurukul
# Gender male
# Age 29}
with open("text.txt","w") as f:
json.dump(f,indent=4) | [
"noreply@github.com"
] | subreena10.noreply@github.com |
2d0cf58fdfcd95a930db41cce6ec4a202c407913 | 1aae6e3f765fa6e640c8672c81f3432799e785b4 | /py_workspace/sample20.py | d26baff2b0f159415da3620ba79f90f1c73ec0ca | [] | no_license | Taeseong-429/All_workspace | 1e66759a3e36a1ac5fd1681b9ba1a8797fa9fce1 | 8db563f4d4915a4c7566b735aa228f3172222c7b | refs/heads/master | 2021-04-07T21:16:34.314519 | 2020-03-20T09:00:36 | 2020-03-20T09:00:36 | 248,709,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | # sample20.py
# 튜플(tuple) 테스트
# t = (1, 2)
t = 1, 2, # Immutable object
# t[0] = 100
print( type(t) )
# print( t[0] )
# print( t[1] )
# print( t[2] ) | [
"ghkdxotjd3@gmail.com"
] | ghkdxotjd3@gmail.com |
464ac1f7e957d1a599529bab982723ff72576620 | 11b0c124262ac40de87d756389082462d8452e4d | /ml/m06_kfold_all_estimator3_wine.py | 14db8593bb48c4829d9f12ff1cf6ee7797f00856 | [] | no_license | Hyunwoo29/keras01 | 164b519f9bb70d55f7bfa91c66529cee4d012b24 | 494611a94420f8e268c37085ccf0b0de4aa71048 | refs/heads/main | 2023-08-06T07:19:13.288634 | 2021-10-05T14:03:56 | 2021-10-05T14:03:56 | 383,744,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,202 | py | from sklearn.svm import LinearSVC, SVC
from sklearn.neighbors import KNeighborsClassifier
from sklearn.linear_model import LogisticRegression # LogisticRegression 면접질문에서 많이나옴 (분류모델이라고 외우면됨)
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.utils import a... | [
"nbaksa3@gmail.com"
] | nbaksa3@gmail.com |
212c053b2aaed131da8abb0ceca104a8b39748e2 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4129/codes/1758_1580.py | 2fb1bdec98ffbdd87929203424cd506cc4798670 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from numpy import*
notas = array(eval(input("Notas: ")))
alunos = array(eval(input("Alunos :")))
z = 0
rep = 0
apro = 0
y = 0
f = 0 #Faltas
h = 0
k = 0
j = 0
while (h < size(notas)):
if(notas[h] < 6 and notas[h] >= 0):
rep = rep + 1
elif(notas [h] >= 6):
apro = apro + 1
elif (notas[h] < 0):
f = f + 1
h ... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
a24f29784dfefe9053b91656ba12114011adfc29 | 64bf21e9b4ca104557d05dc90a70e9fc3c3544a4 | /packages/journal/Memo.py | 797764da9388f50cc02f2d0cef5cdb30057f5089 | [
"BSD-3-Clause"
] | permissive | pyre/pyre | e6341a96a532dac03f5710a046c3ebbb79c26395 | d741c44ffb3e9e1f726bf492202ac8738bb4aa1c | refs/heads/main | 2023-08-08T15:20:30.721308 | 2023-07-20T07:51:29 | 2023-07-20T07:51:29 | 59,451,598 | 27 | 13 | BSD-3-Clause | 2023-07-02T07:14:50 | 2016-05-23T04:17:24 | Python | UTF-8 | Python | false | false | 6,491 | py | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis <michael.aivazis@para-sim.com>
# (c) 1998-2023 all rights reserved
# superclass
from .Renderer import Renderer
# the renderer or developer-facing messages
class Memo(Renderer):
"""
The renderer of user-facing messages
"""
# implementation details
... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
d7f5a76bf64348e27bbd166cbf8a446793a83b75 | 33b30bc7dd1766836ccaa0a985599375af1fad49 | /cvdd/modules/__init__.py | 284afb300bf6cc6492c4c79d4f5f90390a063458 | [
"MIT"
] | permissive | altescy/cvdd | eb1dd9dd60a76444794f80c2343b28bae8ad2957 | 57e4fe0fd30a6d2b67651ce076b63a9a8a6e7c7a | refs/heads/main | 2023-06-17T02:57:30.896167 | 2021-07-14T02:21:56 | 2021-07-14T02:21:56 | 384,104,664 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from cvdd.modules import feedforward_encoder # noqa: F401
| [
"altescy@fastmail.com"
] | altescy@fastmail.com |
21749259e61e941a1620681b75fe434afec09234 | 89f6550977b763110f359ebec65d710e0e81737b | /cursor.py | 4bdc9db1defbb90219a57a03eec17e5a491e8a11 | [
"MIT"
] | permissive | ChefJ/DarkNet_ChineseTrading | eefd120ae86408f5ef9a3c8daa5cef4c44236b8f | 49372c734b5258aabb8f883fe6815cf81f2266ee | refs/heads/master | 2020-07-17T12:44:48.089490 | 2019-09-03T08:07:15 | 2019-09-03T08:07:15 | 206,022,469 | 0 | 0 | MIT | 2019-09-03T08:07:16 | 2019-09-03T08:02:40 | Python | UTF-8 | Python | false | false | 2,646 | py | import moment
import peewee
from model import (
DarkNet_Domain,
DarkNet_DataSale,
DarkNet_IMGS,
DarkNet_Notice,
DarkNet_Saler,
DarkNet_User,
)
from peewee import fn
from log import info, error, warning, debug
class Cursor:
@staticmethod
def get_last_domain():
try:
r... | [
"aoii103@126.com"
] | aoii103@126.com |
b12f57b0e3181b21f8e501cc8486ae05f66cf494 | a62d60b08d292fb43ec521364ca47f56ef20b6d3 | /blog/models.py | c9cdb316a89143712f853e3142b82ade9ed78c47 | [] | no_license | mateuspadua/curso_django | 0499a93d597b23bf7dece121a5f7b81d783c6117 | ec199df020031c69fc43594031934ff31b87c468 | refs/heads/master | 2021-01-20T18:32:57.155500 | 2017-05-13T00:54:30 | 2017-05-13T00:54:30 | 90,923,018 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(auto_now_add=True)
published_date = models.DateTimeField(blank=Tru... | [
"vagrant@precise64.(none)"
] | vagrant@precise64.(none) |
f0f38832523dbb006cd1323d1556cafc9287e2e2 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/web/v20201001/get_web_app_instance_function_slot.py | b976ac067135452e3573ed7f7551c4c5c4b5fe8b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,496 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
55ef985117c136bf0756150a338470300a982b82 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_grandstands.py | fec86055aa849ccb0c21198446d4ea5c65caf19c | [
"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 | 266 | py |
from xai.brain.wordbase.nouns._grandstand import _GRANDSTAND
#calss header
class _GRANDSTANDS(_GRANDSTAND, ):
def __init__(self,):
_GRANDSTAND.__init__(self)
self.name = "GRANDSTANDS"
self.specie = 'nouns'
self.basic = "grandstand"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
433c32883785214dcb50c1c5693e0c50b587d971 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnprank.py | 132f3921fee97f1c5c75c093b642fdf8caa95fee | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 273 | py | ii = [('CookGHP.py', 1), ('CrokTPS.py', 1), ('ClarGE.py', 1), ('GilmCRS.py', 1), ('CrocDNL.py', 1), ('MedwTAI2.py', 2), ('SoutRD.py', 1), ('HowiWRL2.py', 3), ('AinsWRR2.py', 1), ('ClarGE3.py', 1), ('RogeSIP.py', 1), ('MartHRW2.py', 1), ('MartHSI.py', 2), ('DibdTBR.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
a90e0bf4944abed18c8fb57f3379e42becfc13d5 | 7c7f5141dac7fd6d2bb5d9b1b154c37fe8ccd140 | /pandapower/networks/cigre_networks.py | 42cde6b5986157e0c8d38105a04542f5e940937b | [
"MIT"
] | permissive | lucassm/cigre-montecarlo | a6c2f5508d917a1dcbe657d34ea136448026a999 | fd354b9c3ade460b46687ba312f51212dad17151 | refs/heads/master | 2021-01-19T13:27:24.768686 | 2017-02-18T20:49:50 | 2017-02-18T20:49:50 | 82,392,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,541 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2016 by University of Kassel and Fraunhofer Institute for Wind Energy and Energy
# System Technology (IWES), Kassel. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
import pandapower as pp
def create_ci... | [
"lucas.silveiramelo@gmail.com"
] | lucas.silveiramelo@gmail.com |
b74bf41941c7d5f1d41fe80dd7895540bffb1e87 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/61a_hw4/code/112.py | b69cb848a872ea93c19130f72c08de15e37fb4f7 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 327 | py | def num_common_letters(goal_word, guess):
guess_list = get_list(guess)
goal_list = get_list(goal_word)
letters_in_common = 0
for i in range(len(goal_list)):
if goal_list[i] in guess_list:
letters_in_common += 1
else:
letters_in_common += 0
return letters_in_c... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
7c490b948cd9c3ff70ca34c5051fb22e09ab2857 | 18aee5d93a63eab684fe69e3aa0abd1372dd5d08 | /test/ir/inference/test_trt_convert_grid_sampler.py | 49d2248a5021272c41f840982fa4cb4731d5d432 | [
"Apache-2.0"
] | permissive | Shixiaowei02/Paddle | 8d049f4f29e281de2fb1ffcd143997c88078eadb | 3d4d995f26c48f7792b325806ec3d110fc59f6fc | refs/heads/develop | 2023-06-26T06:25:48.074273 | 2023-06-14T06:40:21 | 2023-06-14T06:40:21 | 174,320,213 | 2 | 1 | Apache-2.0 | 2022-12-28T05:14:30 | 2019-03-07T10:09:34 | C++ | UTF-8 | Python | false | false | 5,422 | py | # Copyright (c) 2021 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | Shixiaowei02.noreply@github.com |
7537ddff5869fb8c3f3a6b77fcd0a9af23e14b99 | 1f080333f1714ba88d4f41d6ce2676f0b299e05e | /galaxy-eib/.venv/bin/int_seqs_to_char_strings.py | bee78a3361ace613c25f5959c317a015a8ee750f | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | venice-juanillas/EIB-hackathon | b66bf128144dcef893c91af84dc28ff48be08e1b | 6b73babff2b88dccbd5ec2e74bd5737ff0a4270b | refs/heads/master | 2022-11-17T23:52:24.365210 | 2018-04-05T01:56:17 | 2018-04-05T01:56:17 | 120,545,413 | 0 | 1 | null | 2022-10-25T18:54:52 | 2018-02-07T01:19:48 | Python | UTF-8 | Python | false | false | 703 | py | #!/home/galaxy/data/galaxy_17.09/galaxy-eib/.venv/bin/python2.7
"""
Translate lists of space separated integers (magnitude less than 62) and print
as strings of alphanumeric characters. This is useful mainly for some machine
learning algorithms that only take string input.
usage: %prog < int_seqs > strings
"""
from... | [
"v.juanillas@irri.org"
] | v.juanillas@irri.org |
d67e3361957fdac254471c6e85d6a26de53abbbb | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/hpc-cache/azext_hpc_cache/vendored_sdks/storagecache/version.py | 6a5cfdde605ddbadd51f2b3e7f79eab2c2ffd95a | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 506 | 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.
# C... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
648a42a25c02ede3736c803ecb89f700b01a12b4 | 7357d367b0af4650ccc5b783b7a59090fdde47bb | /py-osaterminology/trunk/lib/osaterminology/sax/aeteparser.py | fe036fad34f7c5ce43eed56f8e1b0c2f7287e146 | [
"MIT"
] | permissive | BarracudaPff/code-golf-data-python | fb0cfc74d1777c4246d56a5db8525432bf37ab1a | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | refs/heads/main | 2023-05-29T05:52:22.856551 | 2020-05-23T22:12:48 | 2020-05-23T22:12:48 | 378,832,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,315 | py | """parser -- Simple SAX-like parser for parsing aete and aeut terminology data."""
from struct import pack, unpack
from aem.ae import AEDesc
__all__ = ["Receiver", "parse", "kBE", "kLE", "kAuto"]
_kAEInheritedProperties = "c@#^"
class _BigEndianDataSource:
"""Raw aete data source."""
def __init__(self, aete):
"""ae... | [
"sokolov.yas@gmail.com"
] | sokolov.yas@gmail.com |
33165bed02ad3f7199bdf8d1cfa2213775e08c87 | 7b8a71d747a3535d7a80a3240673113322043ed6 | /catalogdb_setup.py | 22abdb857a13a5bde70e65372ee6efb22bfbc11b | [] | no_license | fatima-awwami/catalogbs | c994d4b1bb9d2d1cca836b2ee0ffd04403e576b9 | 22affe96ce3b094c8fe1aac35115a8d8bbad219c | refs/heads/master | 2020-04-09T18:15:03.673241 | 2018-12-05T11:03:35 | 2018-12-05T11:03:35 | 160,506,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
Base = declarative_base()
class User(Base):
__tablename__ = 'user'
id = Column(Integer, primary_key = True)
... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
2a158d87c797bb54b28ce6d53748b439b6341561 | 2bc6fac8b7ed882a934282c00dcdb36d6fc56725 | /docs/source/conf.py | 13b1b5491586e493224e98cd6c483fc11393a97b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | usuaero/Pylot | 3c5a23123ac38078887d22fd52b6c8ed83e7c4f1 | 13b2da8d184aeeaf3a766de1648a458928bfaa2b | refs/heads/master | 2022-03-05T15:10:26.533110 | 2022-03-01T23:38:08 | 2022-03-01T23:38:08 | 227,931,813 | 40 | 9 | MIT | 2021-06-18T18:41:48 | 2019-12-13T22:23:56 | Python | UTF-8 | Python | false | false | 1,999 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup --------------------------------------------------------------
# If extensions (or module... | [
"cory.goates@aggiemail.usu.edu"
] | cory.goates@aggiemail.usu.edu |
200f19d907510dcd93ae1c5f7321a5f08a2c35f5 | 4da832d983d8ba25d60599bd5a15c6b06de651fe | /torchx/cli/test/container/reader_main.py | acd1f1846f7b33522f29870e6981d434576b169d | [
"BSD-3-Clause"
] | permissive | bowangbj/torchx | e7ef4d4645cea04c252d82a18406b9872daa448a | 3f2d8b6b100cb42a4bbcc3635359f32e93d67c68 | refs/heads/main | 2023-08-26T22:33:22.923511 | 2021-09-09T23:43:58 | 2021-09-09T23:44:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
print("reader_main")
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
6da0d64dc5336c676a07ea254324bb9ebd9e5758 | 9e5f89954fae8ac705d3e721d82b7b72d9fbcbaa | /1. PROGRAMACION ESTRUCTURADA/CALCULOS/Blacberry.py | 08c6852935c06aa585ed90342dad370534ec64ac | [] | no_license | Diego-18/python-algorithmic-exercises | dda950d0fcabd25244ce3ecfc1296d06a7701f5f | 583907b82c3549a4bff7718d23aa3e0d7be2e4a3 | refs/heads/main | 2023-08-12T02:28:49.425894 | 2021-09-26T05:14:07 | 2021-09-26T05:14:07 | 410,439,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | #!/usr/bin/env python
# -*- coding: UTF8 -*-
################################
# Elaborado por: DIEGO CHAVEZ #
################################
#Algoritmo capaz de calcular la cantidad de telefonos blackberry introducidos al sistema
liacum=0
licont=0
lsseguir="s"
while lsseguir=="s" or lsseguir=="S":
lsempresa=... | [
"ingdiegochavez18@gmail.com"
] | ingdiegochavez18@gmail.com |
852843a2028830a7aa7548672a71b9a4aa855436 | f9e3ffceb4d7d7717660fa5cb723ae1c2af90565 | /key/settings.py | b32cd2b3b3d0f7a37845cf7e073517d22378c0b8 | [] | no_license | Quincy1994/key | a9887b0f22fad604ae281ee3a42c87b70be5874d | b1f6dc49f2f0468bb5e09a628771cbf949dc7a80 | refs/heads/master | 2020-12-24T18:32:05.177306 | 2016-06-13T08:00:15 | 2016-06-13T08:00:15 | 58,894,040 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | """
Django settings for key project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import... | [
"1024760384@qq.com"
] | 1024760384@qq.com |
46eefd0c6291ed841e5baf6b547d09987b245fbc | f074fb76c366c1c6e101da0353f90ee80680bb41 | /tutorials/numba_tutorial/session-5/examples/simple_emm_plugin.py | d7c7c79888aa731629216da97bb90dc8a102e695 | [
"CC-BY-4.0"
] | permissive | MatthijsBiondina/biobots | 4c119aaf0dd8023c90b235073c5e6db11ecd6c05 | f9e9028f178e59e7099f65870dfa26e7ff38d2a8 | refs/heads/master | 2023-08-13T21:30:27.566477 | 2021-09-13T12:05:49 | 2021-09-13T12:05:49 | 381,314,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,965 | py | from ctypes import CDLL, POINTER, byref, c_void_p, c_size_t
from numba import cuda
from numba.cuda import (HostOnlyCUDAMemoryManager, GetIpcHandleMixin,
MemoryPointer, MemoryInfo)
# Open the CUDA runtime DLL and create bindings for the cudaMalloc, cudaFree,
# and cudaMemGetInfo functions.
cud... | [
"biondina.matthijs@gmail.com"
] | biondina.matthijs@gmail.com |
0daa1972ea1919dcd4ee7b1880d09aaa9ef94535 | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/nbformat/v4/tests/test_nbbase.py | 5bfbff45ba9be0bfb6cb180f9521afb4a1bba65f | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 3,031 | py | # coding: utf-8
"""Tests for the Python API for composing notebook elements"""
from nbformat.validator import isvalid, validate, ValidationError
from ..nbbase import (
NotebookNode, nbformat,
new_code_cell, new_markdown_cell, new_notebook,
new_output, new_raw_cell,
)
def test_empty_notebook():
nb = ne... | [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr |
27550ab31834deb519956057c5560c1d90e0813d | 32ba9f1c35ae916d33b121daeeea8e1910a447d7 | /rig/mirrorAnim.py | 4c8dfb60933c3e948cb305f41d28abcf0719c991 | [
"MIT"
] | permissive | rituparna/glTools | 8b02fa2751e1b997f7a202c7df8a3dd3d3032722 | c512a96c20ba7a4ee93a123690b626bb408a8fcd | refs/heads/master | 2020-03-19T19:23:47.684580 | 2018-06-10T23:53:58 | 2018-06-10T23:53:58 | 136,853,456 | 0 | 0 | null | 2018-06-10T23:46:54 | 2018-06-10T23:46:53 | null | UTF-8 | Python | false | false | 9,339 | py | import maya.cmds as mc
import glTools.utils.namespace
def cutPasteKey(src,dst):
'''
'''
keys = mc.cutKey(src)
if keys: mc.pasteKey(dst)
def swapAnim(srcCtrl,dstCtrl):
'''
'''
# Temp Key Node
tmpCtrl = mc.duplicate(srcCtrl,po=True,n=srcCtrl+'TEMP')[0]
# Swap Left <> Right
cutPasteKey(srcCtrl,tmpCtrl)
cut... | [
"grant@bungnoid.com"
] | grant@bungnoid.com |
86b6ae79dfbf4ba80c5525c1e40e4c4a4f78892a | dd9df4d2d3bb0438fed7791580c313b0669e633e | /src/PseudoNetCDF/aermodfiles/_aermod_plotfile.py | 28cb0f98a88c57dd20cf1c86b94811c37698aeb6 | [] | no_license | tatawang/pseudonetcdf | a1ff81e049ac2408b32f64dd48abe06bc01c23d3 | a85069102bd9eba0198aa2bed4d9ba0277e4bad2 | refs/heads/master | 2021-01-18T06:59:55.767432 | 2015-12-01T17:36:44 | 2015-12-01T17:36:44 | 48,966,702 | 2 | 0 | null | 2016-01-04T00:53:47 | 2016-01-04T00:53:45 | null | UTF-8 | Python | false | false | 1,233 | py | import numpy as np
from PseudoNetCDF.sci_var import PseudoNetCDFFile
names = 'X,Y,CONC,ZELEV,ZHILL,ZFLAG,dum1,AVE,dum2,GRP,DATE,dum3,NETID'.split(',')
units = 'm,m,micrograms/m**3,m,m,m,N/A,N/A,YYMMDDHH,N/A'.split(',')
#(3(1X,F13.5),3(1X,F8.2),2X,A6,2X,A8,2X,I8.8,2X,A8)
delimiter = [14] * 3 + [9] * 3 + [2, 6, 2, 8, 10... | [
"barronh@gmail.com"
] | barronh@gmail.com |
d82b9cca54a2471c8b458b51bcb7098b44e448fd | 8bfaf94d9851d04e9b86b623bf6a81e57e5bfa3a | /BOJ/27_동적 계획법과 최단거리 역추적/11779_최소비용구하기2.py | 2858f9c18b6ccd749f7e126f1526534db853b44d | [] | no_license | wonsgong/TIL_Algorithm | 725280856e8b17418c72103156a78ed0550504a4 | 0a190d0d5018f7f9d7de01d5d18bb11d7c81ad62 | refs/heads/main | 2023-06-09T04:24:15.227258 | 2021-06-29T11:27:24 | 2021-06-29T11:27:24 | 374,386,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | import heapq
import sys
read = sys.stdin.readline
INF = int(1e9)
# DSLR 과 동일한 풀이과정
def dji() :
pq = []
heapq.heappush(pq,[0,st,str(st)]) # cost , here , path
dp[st] = 0
while pq :
cost,here,path = heapq.heappop(pq)
if here == ed :
print(cost)
print(len(path.spl... | [
"42221106+wonsgong@users.noreply.github.com"
] | 42221106+wonsgong@users.noreply.github.com |
d28312e5005239cff0af9683ff310c3bc2f1cfaf | 2caa47f0bdb2f03469a847c3ba39496de315d992 | /Contest/WUPC2nd/b/main.py | 8180e6f065f0e724e41435515db9c04b6e3200ad | [
"CC0-1.0"
] | permissive | mpses/AtCoder | 9023e44885dc67c4131762281193c24b69d3b6da | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | refs/heads/master | 2023-03-23T17:00:11.646508 | 2021-03-20T12:21:19 | 2021-03-20T12:21:19 | 287,489,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | #!/usr/bin/env python3
input()
from itertools import*
print(sum(len([*l]) // 3 for k, l in groupby(input()) if k == "X")) | [
"nsorangepv@gmail.com"
] | nsorangepv@gmail.com |
2dd8d922a6c451f7b1322c3625f289c509905bb5 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/p-8.py | 316bc82b4c802dda7708a7437886c4e0420db246 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.