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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3481718d73cd06e14af89d79412405e9ae54e588 | aa5a8163c450a7ca7f4d3e7483213bb3642e0824 | /map/google/main.py | 6a8dbbb4d4e21e23144734bc0d11b43403bfd5b9 | [
"Apache-2.0"
] | permissive | kosyachniy/dev | e068bf3c9ad4d3808c70e5eb2afdafc2ef796482 | 41f58e72a397c7ff0df26dfa3e19dc64c8eff1d2 | refs/heads/main | 2023-06-25T10:36:56.333731 | 2023-06-15T01:26:19 | 2023-06-15T01:26:19 | 89,030,562 | 21 | 4 | Apache-2.0 | 2023-06-02T20:19:17 | 2017-04-21T23:13:54 | HTML | UTF-8 | Python | false | false | 1,535 | py | import json
from datetime import datetime
import googlemaps
with open('keys.json', 'r') as file:
KEY = json.loads(file.read())['google']['maps']['key']
gmaps = googlemaps.Client(key=KEY)
# Координаты по адресу
address = '1600 Amphitheatre Parkway, Mountain View, CA'
coords = gmaps.geocode(address)
print(coord... | [
"polozhev@mail.ru"
] | polozhev@mail.ru |
7ecaf8a263fb938f42a3db5c6b5a11abb11136b8 | 3a9b154aa9d5e379683476f80f30630bf44d2102 | /Server_v1/amazon/migrations/0014_auto_20190805_1705.py | e5c8d37fc9418b6c6303cd36e306d47c4f28f273 | [] | no_license | KevinDon/py_amazon_analysis | 81995e360d2b536e1df6e515aae9457054edae29 | 13b5fbb046ca6516ac3a47e8f7867baf358011f4 | refs/heads/master | 2022-12-13T00:27:27.511783 | 2019-08-14T11:45:53 | 2019-08-14T11:45:53 | 185,160,162 | 0 | 1 | null | 2022-12-10T05:38:15 | 2019-05-06T08:56:40 | TSQL | UTF-8 | Python | false | false | 1,255 | py | # Generated by Django 2.2 on 2019-08-05 09:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('amazon', '0013_auto_20190802_1106'),
]
operations = [
migrations.CreateModel(
name='AmazonProduct... | [
"kevintang002@gmail.com"
] | kevintang002@gmail.com |
fc217223fd2c75a5608bbcb6e46372fa4b31ff90 | 9ef35f89227d474f3664d27dbe3ba63bd52f8422 | /toripscanner/toripscanner.py | 8f515aaa5a0e7c397fec030a71b223c72779dbb7 | [] | no_license | oftc/toripscanner | 9ec7e4feac39172247b678a7d85fdca83f73fde0 | f0365bd3d25b49e786ceac010796084e431ad2ec | refs/heads/master | 2023-07-02T08:49:44.490859 | 2021-08-15T03:13:22 | 2021-08-15T03:13:22 | 390,759,119 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,201 | py | import logging
from argparse import ArgumentParser
from typing import Dict, Any
import toripscanner.cmd.scan
import toripscanner.cmd.parse
from . import __version__
from .config import get_config, config_logging
log = logging.getLogger(__name__)
def create_parser():
p = ArgumentParser()
p.add_argument('--ve... | [
"sirmatt@ksu.edu"
] | sirmatt@ksu.edu |
b4c37d818e3bcccfd45e9c2b5690f7cbafa56c01 | a0664f0d3950a7147f84a317b2e417e0433a4ae4 | /test/test_invoice_billing_address.py | 431b1384493ea8ad7498fc318d0b7f8ca6793de5 | [] | no_license | reepay/reepay-checkout-python | 1e748893a970d28c6b0242bc7d26aa21325abb32 | 8bbd36219335a1fc65f857ac537ff4931bc6e5c7 | refs/heads/master | 2020-10-01T20:10:29.660872 | 2019-12-12T13:39:46 | 2019-12-12T13:39:46 | 227,615,447 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | # coding: utf-8
"""
Reepay Checkout API
Reepay Checkout REST API # noqa: E501
OpenAPI spec version: 1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.invoice_billing_... | [
"robert@reepay.com"
] | robert@reepay.com |
a3da31f13b5f6cd102d61aee6848e0d8c48d0510 | d01c2f82838e246076b0fd3514bc21119a4ee792 | /guillotina/cookiecutter/application/{{cookiecutter.package_name}}/{{cookiecutter.package_name}}/__init__.py | 18d4c2bcbdcb48e447eb79bd02cc35918d93172d | [
"BSD-2-Clause"
] | permissive | jordic/guillotina | 0940a935264aee189daf4a21b50f0efc1650ffbd | 8845454a784e797b90951580e1ab5fa9172055e1 | refs/heads/master | 2020-03-07T15:37:30.139620 | 2018-06-22T16:37:40 | 2018-06-22T16:37:40 | 127,559,927 | 0 | 0 | BSD-2-Clause | 2018-03-31T18:30:34 | 2018-03-31T18:30:33 | null | UTF-8 | Python | false | false | 302 | py | from guillotina import configure
app_settings = {
# provide custom application settings here...
}
def includeme(root):
"""
custom application initialization here
"""
configure.scan('{{cookiecutter.package_name}}.api')
configure.scan('{{cookiecutter.package_name}}.install')
| [
"vangheem@gmail.com"
] | vangheem@gmail.com |
a79abc6d3e3ba8d2fd884627dc5bfe8c07440687 | 7c79c8caee77d08aa05cdc59eb68e569abf54a7e | /ics 32/ics 32 larc/animal_class.py | d80f309fccc67c06da02e0f1e1c7808aca2fe846 | [] | no_license | solomc1/python | 2e4715cc24e7b23d91c879fc95954f615a615982 | 119e388fb6f4ab42f581e48393919d4052a08ef6 | refs/heads/master | 2021-01-17T16:48:02.671810 | 2016-07-29T05:27:50 | 2016-07-29T05:27:50 | 64,452,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #Create 4 animal classes that have functions growl and eat
#Ask a user which animal they want and make it growl and eat
class Zebra:
def growl(self)->str:
print("I'm eating grass...")
class Giraffe:
def growl(self)->str:
print("I'm eating cupcakes...")
class Moose:
def growl(self)... | [
"solomc1@uci.edu"
] | solomc1@uci.edu |
52f46ec16cb48b6b7c28fce60dffa9fca6a97c14 | 2899430814db2d06f8f5e105e02c731047013f93 | /backend/users/migrations/0002_auto_20200828_1219.py | 5e24b577abdd99c6db1761c8b96e6c31990cae83 | [] | no_license | crowdbotics-apps/project-1-19840 | 8de5a8e8f07aa35a7445c5943613766b793b0790 | 2f9c890ba6bc7d734f474a5141ad9d9018725761 | refs/heads/master | 2022-12-04T01:51:43.336555 | 2020-08-28T12:19:53 | 2020-08-28T12:19:53 | 291,038,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Generated by Django 2.2.15 on 2020-08-28 12:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0001_initial'),
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
8e8764ab12c5d3b41e59f47cd5a9fbb3c7dd5edc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02618/s903697509.py | c5447f9b8ecd4c99caea4697471af46080b6fba0 | [] | 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 | 4,955 | py | from random import randint, random, seed
from math import exp
import sys
input = sys.stdin.buffer.readline
INF = 9223372036854775808
def calc_score(D, C, S, T):
"""
開催日程Tを受け取ってそこまでのスコアを返す
コンテストi 0-indexed
d 0-indexed
"""
score = 0
last = [0]*26 # コンテストiを前回開催した日
for d, t in enumerate(T... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
676f959d3e7c34fdaac7aeaf0ceb46cc93f51d71 | 0e0d6e6332e8d783b1f1da961f496a647f88eb77 | /ryu/controller/dp_type.py | dc9704c0ea346117bf2ae99a2ebe0712778d4d34 | [
"Apache-2.0"
] | permissive | unifycore/ryu | 667a957c42a2e3c23780e52d3d72457fbd7487c8 | 3cdfd5957e5cc20a90dd6bc0070f1795f31afc44 | refs/heads/master | 2021-01-21T19:54:14.558501 | 2018-02-09T22:15:06 | 2018-02-09T22:15:06 | 14,217,663 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # Copyright (C) 2012 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2012 Isaku Yamahata <yamahata at valinux co jp>
#
# 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://... | [
"fujita.tomonori@lab.ntt.co.jp"
] | fujita.tomonori@lab.ntt.co.jp |
080ce4b6540e5d22f370f91df70e5a6331bf1ea9 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2020_09_01_preview/operations/_orders_operations.py | 0027939c3843f76b29a2a05808da1f79f8e213c7 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 34,694 | 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"
] | Azure.noreply@github.com |
dcc02ccfc560b15d59d43056ae81ae14687d84c7 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /11_Time_Series_Forecasting_with_Python/05/airline_boxcox_auto.py | 46d48d9fe18da8804d0ee8aaf3433f7d3b894dff | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # automatically box-cox transform a time series
from matplotlib import pyplot
from pandas import DataFrame
from pandas import read_csv
from scipy.stats import boxcox
series = read_csv('airline-passengers.csv', header=0, index_col=0, parse_dates=True, squeeze=True)
dataframe = DataFrame(series.values)
dataframe.columns... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
3fdc94789dbc47b5910241a83c5ad57671bc9e35 | 03dea3c0db7c8fafda71d23c3c2595f563ffb335 | /SignalMC/test/AMSB_chargino900GeV_ctau10cm_step1.py | b612a64808e5b716cb361082e95b61d933ed4b7b | [] | no_license | Andersen98/DisappTrks | 3952e9bf8ba270e2d88aa2e8d9ef805cf25dfc46 | 140a5efdc4c51a30e5fced6d34b7813876c2f2ee | refs/heads/master | 2020-06-27T03:41:59.136790 | 2017-07-12T15:19:18 | 2017-07-12T15:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,070 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: DisappTrks/SignalMC/python/AMSB_chargino900GeV_ctau10cm_NoFilter_13TeV.py --fileout file:AMSB_chargino700GeV_ctau10cm_step1.root --mc --eventc... | [
"ahart@cern.ch"
] | ahart@cern.ch |
47fc3d5c03c500f55864283af007e7e341651e9e | 50a690ab7db8fe98a620f3c54aabd90c3ff3e7f3 | /losses/triplet_loss_test.py | 6348bc6af5eac3386abfe5d64a0b4bfb51155046 | [] | no_license | yekeren/ADVISE-Image_ads_understanding | 590754909d2f4259a57d32591a15bea845586a0f | 2ea5e1405b1ab178b95f9c2cd9158b16847ac6a3 | refs/heads/master | 2021-10-02T08:01:29.193553 | 2018-11-29T16:32:25 | 2018-11-29T16:32:25 | 103,291,233 | 22 | 8 | null | null | null | null | UTF-8 | Python | false | false | 5,369 | py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
from losses import triplet_loss
slim = tf.contrib.slim
class TripletLossTest(tf.test.TestCase):
def setUp(self):
tf.logging.set_verbosity(tf.logging.INFO)
... | [
"yekeren.cn@gmail.com"
] | yekeren.cn@gmail.com |
dda29d32249fd96fba0acb1367105ab881c76624 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2493/60771/290955.py | 6c322d79efc369fa6ffdbc500c6fb16d7b654351 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | #05
n = int(input())
ori = input().split(" ")
nums = [int(item) for item in ori]
m = int(input())
for i in range(0,m):
ori = input().split(" ")
left = int(ori[0])
right = int(ori[1])
dup = []
part = nums[left-1:right]
for item in part:
if item not in dup:
dup.append(item)
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a9c885d3f8fa322e689d4a1872d808eac8e7fd46 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /AjZBGWyPaA7rXFhi6_24.py | 23178b6d6d7a408d9c070ac8b3a17d6af6a24290 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py |
def min_swaps(s1, s2):
dif = 0
for i in range(len(s1)):
if s1[i] != s2[i]:
dif += 1
return dif//2
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e24797ac9d7f429ee69a77a110980389a9e0edb5 | a583b9151b8ce9dd74aa7c3fc99e40055f1dcfb9 | /Coursera_PY_week8 12/DONE/3_Smallest_odd.py | aa0d2a49aa91847c449ac2dccba5b0bb7adb1b62 | [] | no_license | NineMan/Coursera_PY | df202768bc2f0a5ea06d0ed9985610e527d1a5c5 | dd9b6b085b66b979c88e5d72b26777848b6d2a9a | refs/heads/master | 2020-08-01T09:36:37.132012 | 2019-09-25T23:12:57 | 2019-09-25T23:12:57 | 210,953,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | print(
min(
filter(
lambda x: x % 2 != 0,
map(
int,
input().split()
)
)
)
)
| [
"nelubinmv@inbox.ru"
] | nelubinmv@inbox.ru |
9a4b8392b7e0b2bcec18b40fa83f092083b22e9f | 67a9ea4302d669a142549b26bc5412b83eb10de6 | /django_projects/askdjango/blog/models.py | dd889c68d771487963d834b671c033841fa19829 | [] | no_license | Chojiwon/nits-1st | 9068c8ee66e3bd06c2758516b7f4f3a52fc7499e | cbbbe301356a33c9ffc6c5a6e3bc9a99492900d5 | refs/heads/master | 2021-04-29T04:43:20.498626 | 2017-01-04T07:31:19 | 2017-01-04T07:31:19 | 77,995,108 | 1 | 0 | null | 2017-01-04T08:09:08 | 2017-01-04T08:09:08 | null | UTF-8 | Python | false | false | 2,469 | py | from django.conf import settings
from django.core.files import File
from django.core.urlresolvers import reverse
from django.core.validators import RegexValidator, MinLengthValidator
from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import pre_save
from blog.utils im... | [
"allieuslee@gmail.com"
] | allieuslee@gmail.com |
6f4af56fd692e852c5ba392e9e72feeff7190cf9 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/lutea.py | 6b01a8e7abb5c3c8b647db0341a37b46b6c69cf8 | [] | 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 | 122 | py | ii = [('RogePAV.py', 2), ('RoscTTI2.py', 1), ('LyelCPG.py', 2), ('WestJIT2.py', 6), ('LeakWTI4.py', 1), ('WestJIT.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
6b83a0f94938c5f5af04087dbdf4e1ff26f7c824 | bc0938b96b86d1396cb6b403742a9f8dbdb28e4c | /aliyun-python-sdk-alidns/aliyunsdkalidns/request/v20150109/DescribeCustomLineRequest.py | 55dcf4f4440a920be0e554409b7718533fede2b0 | [
"Apache-2.0"
] | permissive | jia-jerry/aliyun-openapi-python-sdk | fb14d825eb0770b874bc123746c2e45efaf64a6d | e90f3683a250cfec5b681b5f1d73a68f0dc9970d | refs/heads/master | 2022-11-16T05:20:03.515145 | 2020-07-10T08:45:41 | 2020-07-10T09:06:32 | 278,590,780 | 0 | 0 | NOASSERTION | 2020-07-10T09:15:19 | 2020-07-10T09:15:19 | null | UTF-8 | Python | false | false | 1,540 | py | # Licensed to the Apache Software Foundation (ASF) 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 u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
a969af4f57309f7a09076291ef2c2743f87a9e3a | fbba871f9a7076074f570df563881fd28c1826af | /src/anyconfig_configobj_backend/configobj_.py | 32aa1ae4dc2f6f8bd4fe18d6ff7b7948eb79257a | [
"MIT"
] | permissive | ssato/python-anyconfig-configobj-backend | 9cb254a283c2634ae15035dcae509574e08d718c | 1e6c3fb1389a8c1083a090f5e0f75e226d424def | refs/heads/master | 2023-07-27T00:05:41.811839 | 2023-07-09T06:00:54 | 2023-07-09T06:00:54 | 9,628,155 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,426 | py | #
# Copyright (C) 2013 - 2021 Satoru SATOH <satoru.satoh @ gmail.com>
# License: MIT
#
r"""Configobj backend:
- Format to support: configobj,
https://bit.ly/2TgURnL (https://configobj.readthedocs.io)
- Requirements: configobj (https://pypi.python.org/pypi/configobj/)
- Development Status :: 4 - Beta
- Limitations: A... | [
"satoru.satoh@gmail.com"
] | satoru.satoh@gmail.com |
19e09283fdfa7849fae1f8328c74e4ee65f3411f | 1a6726fb62584f7787197ff404e30b012bc54f62 | /More Exercises Basic Syntax, Conditional Statements and Loops/Find the Largest.py | 635bf1d1edf92a3707c6c4727196f2dd3d9e61de | [] | no_license | zdravkob98/Fundamentals-with-Python-May-2020 | f7a69d1a534d92f3b14bc16ce5d8d9b8611d97dd | 74e69a486e582c397cdc2f98b3dffe655110d38a | refs/heads/main | 2022-12-30T21:43:57.682790 | 2020-10-06T17:05:32 | 2020-10-06T17:05:32 | 301,797,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | number = input()
maximum = ''.join(sorted(number,reverse=True))
print(maximum)
| [
"zdravkobonev@abv.bg"
] | zdravkobonev@abv.bg |
a8b1c2f0d8f7ce94ae2e6536c5b1e375271987f9 | b9c43433f5f17c4f20d6ece1798e42e3d1d7e0e2 | /lists/models.py | a386118bfc326f57ea7cbb9e07c2575227352173 | [] | no_license | fireinrain/django_superlists | e6365fa51e57eb8b3dd91d88c7737ee9d2be1c05 | fe1d6655058772a534351578c2f6e0bac5601c08 | refs/heads/master | 2022-06-18T14:32:04.318953 | 2017-01-05T05:43:21 | 2017-01-05T05:43:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from django.db import models
# Create your models here.
class List(models.Model):
listdb = models.TextField(default='')
class Item(models.Model):
text = models.TextField(default='')
list = models.ForeignKey(List,default=None)
| [
"575563079@qq.com"
] | 575563079@qq.com |
22568b30c1c3eb26116d7633f4d2bf182d8915a9 | a84538af8bf1f763a3d71d939744976425358b30 | /contrib/devtools/symbol-check.py | 363849d7e38a7e395c0f770b6dab7eee08f352c9 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | YourLocalDundee/foxdcoin | 8de421b280a812e390249f14ed0b5892c546ebf1 | 9db505f6f32bd3e51bd2b2da533744c98cee23af | refs/heads/master | 2023-05-14T05:10:26.435417 | 2021-06-09T06:18:50 | 2021-06-09T06:18:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,231 | py | #!/usr/bin/env python
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
A script to check that the (Linux) executables produced by gitian only contain
allowed gcc, glibc and libstdc++... | [
"foxrtb@gmail.com"
] | foxrtb@gmail.com |
c1447b9ff7375bfeff1e7c5f144b90d30ccd58b2 | 148ac8d601369aaae6918cf0a55a4d4f5afb5e75 | /dt_tennis.py | 2bb3aad648def783a4a020597f5b6c2d6fa4e52a | [] | no_license | MrVersatile007/ML-with-Rishi | a7800e27f5cbac9b68d526469beb380ed59bb029 | db76aa26ef5d349237d0fa1f0bdd677352dfb392 | refs/heads/main | 2023-06-02T15:53:00.902907 | 2021-06-27T15:15:01 | 2021-06-27T15:15:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 25 20:45:59 2021
@author: RISHBANS
"""
import pandas as pd
tennis_data = pd.read_csv("tennis.csv")
from sklearn.preprocessing import OrdinalEncoder
from sklearn.tree import DecisionTreeClassifier
o_e = OrdinalEncoder()
X = tennis_data.drop(columns=['play'])
y = tennis_... | [
"rishibansal02@gmail.com"
] | rishibansal02@gmail.com |
69c0a253a7fc8a01b80f4a21ec3f0012554c9e35 | a71d12bf0cd654df6d4bf2ea472061def6d88c9e | /oracle/models/generative.py | 9e426120023f162cb260cf3cb93481fa9aaa98a5 | [
"MIT"
] | permissive | andycasey/original-oracle | b68384a23a4fa47d66063df204eabf96e128401d | 0f204a0ff952cc97904c1d1bb53e14b799bb877e | refs/heads/master | 2021-01-20T10:54:37.942183 | 2014-10-02T11:29:19 | 2014-10-02T11:29:19 | 23,349,548 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,667 | py | # coding: utf-8
from __future__ import absolute_import, print_function
""" Generative Model for Stellar Spectra """
__author__ = "Andy Casey <arc@ast.cam.ac.uk>"
import collections
import logging
from multiprocessing import cpu_count
from functools import partial
from time import time
import emcee
import numpy as ... | [
"andycasey@gmail.com"
] | andycasey@gmail.com |
b52b5d7aebe3bd624868fe6aed27ba6c5e09e006 | 9aad83265d9b0f405000be6ecf1e27886d907a45 | /pyciss/meta.py | 96aa53d3c50f1a179d330a8c9670d65c2b71ef31 | [
"ISC"
] | permissive | jamesHuffman/pyciss | b536c5d806b5b8b8692485b5f8c5da22586e5c64 | bfab517ebc411592ffbb9050136e3d95ced52db4 | refs/heads/master | 2020-05-29T08:40:15.734644 | 2017-01-04T10:05:29 | 2017-01-04T10:05:29 | 69,047,589 | 0 | 0 | null | 2016-09-23T17:44:36 | 2016-09-23T17:44:35 | null | UTF-8 | Python | false | false | 3,345 | py | """This module deals with the metadata I have received from collaborators.
It defines the location of ring resonances for the RingCube plotting.
"""
import pandas as pd
import pkg_resources as pr
def get_meta_df():
def read_metadata(f):
df = pd.read_csv(f, header=None, delim_whitespace=True)
df =... | [
"kmichael.aye@gmail.com"
] | kmichael.aye@gmail.com |
ff23bf0fd747937e5b59cb049d04f3cd937701f2 | 494a0ba52d3204cb0082f01ae58cfdfc74895ba2 | /thisIsCodingTest/graph/42.gate.py | 69ae147b775a050386a3441d2cc6e94c185dc8b9 | [] | no_license | mhee4321/python_algorithm | 52331721c49399af35ffc863dd1d9b8e39cea26a | 96dd78390ba735dd754930affb3b72bebbbe5104 | refs/heads/master | 2023-04-26T09:27:40.760958 | 2021-05-16T12:12:39 | 2021-05-16T12:12:39 | 327,462,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | def find_parent(parent, x):
if parent[x] != x:
parent[x] = find_parent(parent, parent[x])
return parent[x]
def union_parent(parent, a, b):
a = find_parent(parent, a)
b = find_parent(parent, b)
if a < b:
parent[b] = a
else:
parent[a] = b
g = int(input())
p = int(input())... | [
"nannanru@gmail.com"
] | nannanru@gmail.com |
2e312bbf9e3bffa3e8bdbcff21c0dd64f68ac42d | 6509c398816baffafa4a1fcfb2855e1bc9d1609b | /sistema-operacional/diretorios/pathlib/exemplos/pathlib-30.py | cdb96b7c3e866933e42e2503f27c3bb2564029af | [] | no_license | marcoswebermw/learning-python | 6b0dfa81a0d085f4275865dce089d9b53b494aa5 | 931ed2985b8a3fec1a48c660c089e290aaac123d | refs/heads/master | 2021-10-27T21:19:46.013020 | 2019-04-19T23:25:46 | 2019-04-19T23:25:46 | 87,670,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | # Retorna o caminho final("tronco")
# de um componente sem o sufixo(extensão).
from pathlib import Path
arquivo = Path('/usr/bin/teste.tar.gz')
print(arquivo.stem) # teste.tar
arquivo = Path('/usr/bin/teste.tar')
print(arquivo.stem) # teste | [
"marcoswebermw@gmail.com"
] | marcoswebermw@gmail.com |
e538dfa58bc6728808c15fad154b4ea83088f829 | 0aa9649e3f67d2ab3f36eb4d67d6b9196295a8ec | /src/browserrender.py | e97a81f842bd1ccc477ec19cabce3332a9eb5bb5 | [] | no_license | HussainAther/scrape | 5e094dae66fe88ed4b090797a095df95db839874 | 8c28d8d4943de34544ce18bf5f1c7223e51426a5 | refs/heads/master | 2020-06-03T16:35:10.771222 | 2019-12-14T08:33:32 | 2019-12-14T08:33:32 | 191,651,526 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | # -*- coding: utf-8 -*-
import csv
import lxml.html
import re
import time
try:
from PySide.QtGui import QApplication
from PySide.QtCore import QUrl, QEventLoop, QTimer
from PySide.QtWebKit import QWebView
except ImportError:
from PyQt4.QtGui import QApplication
from PyQt4.QtCore import QUrl, QEve... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
065c63d1ae9bb96d1d7af75023910c6a1693df54 | 4766d241bbc736e070f79a6ae6a919a8b8bb442d | /archives/leetcode2/0108. Convert Sorted Array to Binary Search Tree.py | ad97a0374762928355b3da39c91085ca4dcf7558 | [] | no_license | yangzongwu/leetcode | f7a747668b0b5606050e8a8778cc25902dd9509b | 01f2edd79a1e922bfefecad69e5f2e1ff3a479e5 | refs/heads/master | 2021-07-08T06:45:16.218954 | 2020-07-18T10:20:24 | 2020-07-18T10:20:24 | 165,957,437 | 10 | 8 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def sortedArrayToBST(self, nums):
"""
:type nums: List[int]
:rtype: TreeNode
"""
if not nums:
... | [
"noreply@github.com"
] | yangzongwu.noreply@github.com |
fde15e4db514b606e835f68194fbccfc68ce0db3 | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /testing/test_programs/numpy/basic_numpy/stypy_test_files/numpy_mathematical_functions_trigonometrical__type_data.py | ec54b5bb797ef03f3043b380cefb64c0f8a4a21f | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | from testing.code_generation_testing.codegen_testing_common import instance_of_class_name
from stypy.types import union_type, undefined_type
from numpy import ndarray
test_types = {
'__main__': {
'r23': instance_of_class_name("ndarray"),
'r22': instance_of_class_name("ndarray"),
'r21': inst... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
af24fd9f3a332b8874c7a1a13ea082a7c9f59207 | af2b03bd1f7c54059b04687a825cf774b073351a | /python/ccxt/async_support/bybit.py | 4d61819559fa95bcb6f184baa436bd2e33f2d4a4 | [
"MIT"
] | permissive | street2geek/ccxt | 2b480526758b0629bad95c756e6c645964babe94 | e880b59112717b693985f5e4beb88cdefaab9e57 | refs/heads/master | 2023-05-25T16:50:07.920596 | 2023-05-16T11:51:48 | 2023-05-16T11:51:48 | 148,709,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397,447 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
from ccxt.abstract.bybit import ImplicitAPI
import asyncio
import hashlib
from ccxt.b... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
2871d96ec3547c2cc7897191f99266569c9f2498 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2690/60765/317077.py | 228538a2c79869f701b3ffeac300c9be62b9d7f1 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import math
import sys
n=int(input())
# n,t=list(map(int,input().split()))
# serial=input().split()
# a=list(map(int,input().split()))
#for i in range(n):
# big=input()
# s1,s2=input().split()
# newStr=''
# for c in s1:
# if c in s2:
# newStr+=... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d64aca4b9e77d075e2bcf1b32507adff245d01c6 | 25dbd8952b31631a52f521e0a771887849da35cc | /virtual/bin/easy_install-3.5 | 414c15f3a59de83d8831f10843c0b4f1287518f5 | [] | no_license | Jugendhackt/qar-backend | 6b41e96a82f846f43f460e0e35a389d018a0fef5 | 2238b6eeef3fa92872427166c30a4e46b149f65e | refs/heads/master | 2020-07-15T08:13:29.643074 | 2019-09-01T10:29:54 | 2019-09-01T10:29:54 | 205,519,457 | 1 | 0 | null | 2019-08-31T16:49:28 | 2019-08-31T08:46:04 | Python | UTF-8 | Python | false | false | 262 | 5 | #!/home/nicola/qar-backend/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
9911fd89be762020473e0e8ca72cce70952a1ee1 | af57d2d840dfbc7b533b7d8ae6776c25fedab140 | /backend/lib/physics/force/one_body.py | 46d1e4ba7a5ed7f4532cdb2f5db73946d90c49bf | [] | no_license | pondelion/3DSimulatorWebApp | a31fb7c2330ad6d072f3f556d7dc678289b62ac3 | 6c03888f57d8f871289b9dfd3abd622a403b4acb | refs/heads/master | 2020-04-01T05:06:02.195484 | 2019-01-20T12:58:41 | 2019-01-20T12:58:41 | 152,889,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import numpy as np
def gravity(m, g=-9.8):
"""Calculate graviational force.
Args:
m (float): The mass of particle/material.
g (gloat): The gravitational acceleration constant. Defaults to -9.8.
Returns:
numpy.ndarray: The graviational force.
"""
return m * np.array([0.0, ... | [
"programming.deve@gmail.com"
] | programming.deve@gmail.com |
3da97890b29e0a0064612c840a6ce58bc97d8b6f | d9dbeafdcbe65f1121acb6f3d2ea789c33dc9edf | /algorithms/practice/codechef/long/july2022/one/chef_and_candies.py | bdae48e6106634ede59117cfc9e4431479c1e8fd | [] | no_license | Ethic41/LearningAlgorithms | 2227547064f0027a265e62a48d12923013cf2511 | 614fcf534344e643cda4867c0e45be507ebe46b8 | refs/heads/master | 2022-11-28T11:57:56.899894 | 2022-11-24T12:28:14 | 2022-11-24T12:28:14 | 192,438,021 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | #!/usr/bin/env python
# -=-<[ Bismillahirrahmanirrahim ]>-=-
# -*- coding: utf-8 -*-
# @Date : 2022-07-08 10:45:00
# @Author : Dahir Muhammad Dahir
# @Link : https://www.codechef.com/JULY221D/problems/CHEFCAND
def solve():
def candies_to_buy(N: int, X: int):
if X >= N:
return 0
... | [
"dahirmuhammad3@gmail.com"
] | dahirmuhammad3@gmail.com |
fcab9aecc6fee9f10f5d848b12925509c4f944d8 | bde686ed82aa2e3a13f4550f151dc51dea40a6b3 | /day01/try_tieba_info.py | de235587e6098df98011a4f636e0eaaf9860f7fa | [] | no_license | zhuchen0310/requests | 9f9e1e1e035481067297b48d3a991ea8c1c8cf58 | 2a4e1eca0b946583957be8ce6c1a33118db905db | refs/heads/master | 2021-01-23T06:01:59.538476 | 2017-09-06T12:58:38 | 2017-09-06T12:58:38 | 102,484,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,578 | py | # coding=utf-8
import requests
#
# class TieBaInfo():
# '''
# 贴吧类
# '''
#
# def __init__(self, tieba_name): # 初始化
# self.tieba_name = tieba_name
# self.headers = {
# 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.... | [
"448290415@qq.com"
] | 448290415@qq.com |
79d297aaab41036be9634c5e5b1a7a98b39d85cf | b99d4ceb8b98a92f13556e1820cb6999925b5417 | /19_delimited_text/blastomatic/blastomatic.py | d3d52eac313f5dd287f2056f702a39ded0d63d3a | [
"MIT"
] | permissive | belteki/biofx_python | c8aea28ae9b08bda83e4d54ade9d2ce2863d75b0 | c2d9b7a40d88130545d32e33c31d92f18a2e0a93 | refs/heads/main | 2023-01-28T17:37:10.169102 | 2020-12-10T22:19:28 | 2020-12-10T22:19:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | #!/usr/bin/env python3
"""Annotate BLAST output"""
import argparse
import csv
import sys
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description='Annotate BLAST output',
formatter_class=argparse.Argum... | [
"kyclark@gmail.com"
] | kyclark@gmail.com |
67731a6604e37cb903b37974b6a71bb9d8654e25 | 994238c75dfe3f504985404a1cffd0adba37d5b0 | /tensorflow/targetDirectory/lib/python3.7/site-packages/keras/applications/densenet.py | 8cc8a7149a9b89a848b65769375f73c609929bc0 | [
"MIT"
] | permissive | amyhxqin/heartbit | e6d3854c14710114b76cf7b308b4440ff54aa27c | ebb67349e90654e275760d081b80b343bd2f45eb | refs/heads/master | 2022-12-21T08:52:39.748454 | 2019-01-12T18:45:33 | 2019-01-12T18:45:33 | 165,421,669 | 0 | 1 | MIT | 2022-12-09T13:51:12 | 2019-01-12T18:28:10 | Python | UTF-8 | Python | false | false | 350 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from keras_applications import densenet
DenseNet121 = densenet.DenseNet121
DenseNet169 = densenet.DenseNet169
DenseNet201 = densenet.DenseNet201
decode_predictions = densenet.decode_predictions
preprocess_inpu... | [
"amy.huaxuan.qin@gmail.com"
] | amy.huaxuan.qin@gmail.com |
3d9ffad143d127bc7ac1841c5da7344aba89c865 | 1a4467142864518f3ea74e3166bab8dee5294b5a | /MovToExcel/menu.py | fd200920af0f8c542296aa126ca066a23ea462cd | [] | no_license | LiuLiangFx/nukePlugin | c8f1d6019fb3215954016118911789e1290f6022 | f4c235a643beb2f0c505500e472512cb453992d0 | refs/heads/master | 2021-01-01T11:27:54.674587 | 2017-05-09T09:03:28 | 2017-05-09T09:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | # -*- coding:utf-8 -*-
__date__ = '2017/3/20 15:35'
__author__ = 'liaokong'
import nuke
import movToExcel
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
nuke.menu("Nuke").addCommand(u"Liaokong/项目表格生成工具", "movToExcel.start()")
| [
"568250549@qq.com"
] | 568250549@qq.com |
2a91d67be95262eea433393af954014a3349b1b7 | a74cabbe1b11fc8ef575ea86f2543cd95db78ec9 | /python_program/q36_Valid_Sudoku.py | 31df01eb1d86db9738d2b517b4d7fc0766ee9dbf | [] | no_license | tszandy/leetcode | 87e3ccf291b2879637d2d8238935a455b401a78a | f1f4361541dcffbb291285663c8820d7ffb37d2f | refs/heads/master | 2023-04-06T15:34:04.847875 | 2023-03-26T12:22:42 | 2023-03-26T12:22:42 | 204,069,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | from typing import List
from collections import Counter,defaultdict
from math import *
from functools import reduce
import numpy as np
from heapq import *
class Solution:
def isValidSudoku(self, board: List[List[str]]) -> bool:
row_counter = defaultdict(list)
col_counter = defaultdict(list)
... | [
"444980834@qq.com"
] | 444980834@qq.com |
ec19772aa9aea21fd37c6ebf64f010bdd776b959 | f3a4017878c9be1e98255932fb6fbd6fa2f67af0 | /update | d9fa56336ebee8cbb0d12c1e1c9acc6d403f9bce | [] | no_license | globaldothealth/h1n1 | 71af0b231bd1e42af35feb9a8931d4da9110e548 | 4f6d9d1fe90bfa85d7901a4b2dc9c06fd7fbba1e | refs/heads/master | 2022-12-18T09:37:53.469416 | 2020-10-01T09:40:29 | 2020-10-01T09:40:29 | 294,795,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,684 | #!/usr/bin/python3
import csv
import json
import os
import sys
# from tools import data_util, generate_full_data
CSV_FILE = "HealthMap_H1N1_Global_All_Languages_2009-2012.csv"
SELF_DIR = os.path.dirname(os.path.realpath(__file__))
FIELDS = {
"location": 0,
"country": 1,
"disease": 2,
"species": 3,
... | [
"m@ma.nu"
] | m@ma.nu | |
0a5a9b735912150a06c67409e71e293b7dc5a507 | 9b01f7d430f7ee87217618cfa4567f42635e8923 | /22-06-2017/cloudformation/nginx-demo-1/ansible/.env/lib/python2.7/site-packages/ansible/modules/extras/cloud/amazon/ec2_vpc_route_table.py | 07376a4a45898ebe278d78683124a4c130191dca | [] | no_license | awsusergroupsantiago/demos | ccb045545d2a407a39d865cf19800d2b6d284b8f | e7f0dc8d9a4e8f2547c33a5a294fd76bf3ac9c9c | refs/heads/master | 2022-04-30T23:43:30.646556 | 2020-08-08T01:35:40 | 2020-08-08T01:35:40 | 95,129,959 | 2 | 0 | null | 2022-03-29T21:54:09 | 2017-06-22T15:29:25 | Python | UTF-8 | Python | false | false | 22,317 | py | #!/usr/bin/python
#
# This is a free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This Ansible library is distributed in the hope that i... | [
"eduardo.miranda.becerra3@gmail.com"
] | eduardo.miranda.becerra3@gmail.com |
4cf9d38b89dd6ddc114606327319518c90c9cd20 | 69d2627942a554d6914ba05de097a290fed66bad | /vb2py/vb/test1/test/frmRadio.py | 3288d55a11d256403ea27f0e3c916d0c08fe55bc | [
"BSD-3-Clause"
] | permissive | rayzamgh/sumurProjection | 0fcef39cc75e620057b012f1bd35cae1c49a5554 | 847ce71e85093ea5ee668ec61dbfba760ffa6bbd | refs/heads/master | 2020-07-23T23:33:26.621550 | 2019-12-22T05:31:24 | 2019-12-22T05:31:24 | 207,738,494 | 1 | 0 | null | 2019-10-28T16:00:07 | 2019-09-11T06:23:43 | Python | UTF-8 | Python | false | false | 1,383 | py | """The main form for the application"""
from PythonCard import model
# Allow importing of our custom controls
import PythonCard.resource
PythonCard.resource.APP_COMPONENTS_PACKAGE = "vb2py.targets.pythoncard.vbcontrols"
class Background(model.Background):
def __getattr__(self, name):
"""If a name was no... | [
"rayzaganteng@gmail.com"
] | rayzaganteng@gmail.com |
93ba0b7db738acfb04bf04f9ced0811e84a2f9bb | f7550c4964dc8f3c59dbcebe39e947bd6a264dba | /3.Time Complexity Analysis/array Union.py | 21627529d754f1dc4ea509811fa13e3f3a46dc3c | [] | no_license | Jashwanth-k/Data-Structures-and-Algorithms | db5e2e30932e0a35db578c19ae6cff9f147b7c3d | 1ebf9986999a474cb094f3ab04616a46f2887043 | refs/heads/main | 2023-08-25T02:57:17.394322 | 2021-10-11T15:27:56 | 2021-10-11T15:27:56 | 402,448,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | def intersection(a1,a2):
i = j = 0
a3 = []
while i < len(a1) and j < len(a2):
if a1[i] < a2[j]:
if a1[i] not in a3:
a3.append(a1[i])
i+=1
elif a2[j] < a1[i]:
if a2[j] not in a3:
a3.append(a2[j])
j+=1
... | [
"noreply@github.com"
] | Jashwanth-k.noreply@github.com |
08d1ee573cccf0a07e66a575feeddc119ccfc64a | 0f1084acef945809693bdf975a735259e04ccda1 | /api/v1/utils.py | f0817e5514b4296c880c2650093c1c4e836096c8 | [
"Apache-2.0"
] | permissive | buyaoyongroot/1yancc | 5a6331b451178d7ed52bc906ce3ba55e44014415 | 7fffd389aa53b3b785ae99816b4cf76fae4f7779 | refs/heads/main | 2023-05-02T14:07:10.937875 | 2021-05-26T05:30:05 | 2021-05-26T05:30:05 | 370,237,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | class utils():
#===============加密类=========================================
@staticmethod
def md5(str):
import hashlib
hl = hashlib.md5()
hl.update(str.encode(encoding='utf-8'))
return hl.hexdigest()
#===============随机类======================================... | [
"you@example.com"
] | you@example.com |
944c68a1a9440f836c823ee608689293920fa2e2 | 1dae87abcaf49f1d995d03c0ce49fbb3b983d74a | /programs/subroutines/Picture - Frame EoS optical.sub.py | 465057ffcc9faa79f61d88da52baebb028bd91cf | [] | no_license | BEC-Trento/BEC1-data | 651cd8e5f15a7d9848f9921b352e0830c08f27dd | f849086891bc68ecf7447f62962f791496d01858 | refs/heads/master | 2023-03-10T19:19:54.833567 | 2023-03-03T22:59:01 | 2023-03-03T22:59:01 | 132,161,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | prg_comment = ""
prg_version = "0.5.1"
def program(prg, cmd):
prg.add(-4403000, "Na Repumper1 (+) Amp", 1.000000)
prg.add(-4393000, "K probe Repumper (+) Amp", 1.000000)
prg.add(-4383000, "K Repumper 1p (+) Amp", 1.000000)
prg.add(-4363000, "Na Dark Spot Amp", 1.000000)
prg.add(-4353000, "Na Repumpe... | [
"carmelo.mordini@unitn.it"
] | carmelo.mordini@unitn.it |
da30d27b794a48599890a4d80aa872a519b86a7a | 2b468b1d22ecc5668529255676a1d43936829074 | /codes/personal_backend/support/simulate/tool/data/address.py | 898750e6de1924b3581f7435da7fb86ce759b3a7 | [] | no_license | MaseraTiGo/4U | 5ac31b4cccc1093ab9a07d18218c3d8c0157dc9c | f572830aa996cfe619fc4dd8279972a2f567c94c | refs/heads/master | 2023-07-26T09:44:21.014294 | 2023-07-13T03:43:34 | 2023-07-13T03:43:34 | 149,217,706 | 0 | 0 | null | 2020-06-05T20:38:16 | 2018-09-18T02:34:29 | Python | UTF-8 | Python | false | false | 474,045 | py | # coding=UTF-8
ADDRES_TEMPLATES = [
["上海","上海","阳光港餐厅","松江区佘山镇林湖路888号","021-67657001"],
["上海","上海","思贤餐厅","松江区思贤路778--780号","021-37698010"],
["上海","上海","泗宝餐厅","松江区泗泾镇横港路61号","021-37008123"],
["上海","上海","江川餐厅","松江区泗泾镇江川北路263-265号","021-57843762"],
["上海","上海","谷阳餐厅","松江区松汇中路568号上海鹿都商业广场","021-5782351... | [
"344627181@qq.com"
] | 344627181@qq.com |
c1e9e59c5aff9b31e0a98e566fa60528b8128e5d | f460b2b8aadf8a6b0f7df9386132b44ab9d633ff | /backend/testapp_24367/settings.py | 5f9aff5eb501ffbf83db70b9c12c5cd3dfbdd311 | [] | no_license | crowdbotics-apps/testapp-24367 | 083bf7033b43ef38bfdb2b9bf0eb104551081e54 | 256d7cebe3bd59ccf26bf22175ad484033ab7edd | refs/heads/master | 2023-02-28T01:00:45.357057 | 2021-02-08T10:09:35 | 2021-02-08T10:09:35 | 337,032,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,064 | py | """
Django settings for testapp_24367 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e240bb96f270e88c1e2bff43c0a19504f915d227 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/gui/Scaleform/locale/TOOLTIPS.py | c3c1d037d5debc13f5b2a675ef4d68144878142d | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 234,845 | py | # 2017.05.04 15:25:24 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/locale/TOOLTIPS.py
"""
This file was generated using the wgpygen.
Please, don't edit this file manually.
"""
from debug_utils import LOG_WARNING
class TOOLTIPS(object):
ACHIEVEMENT_PARAMS = '#tooltips:achievement/pa... | [
"info@webium.sk"
] | info@webium.sk |
dfe6effc5c5ab2dbea9b908ad60d54602c70d73a | af5e5399d86e276528898c4437a6bf909bfae48b | /modoboa_postfix_autoreply/migrations/0007_auto_20180928_1423.py | 6966118338358fa372c8e9538a30ff7540c42178 | [
"MIT"
] | permissive | modoboa/modoboa-postfix-autoreply | b63445dafc3555952ccf440c98059adc8203f6d5 | 675cff4673164cadfa70892a7184f51e4bc5b648 | refs/heads/master | 2023-09-01T14:41:29.232985 | 2023-08-29T15:59:34 | 2023-08-29T15:59:34 | 30,645,239 | 6 | 11 | MIT | 2023-08-29T15:59:35 | 2015-02-11T11:45:49 | Python | UTF-8 | Python | false | false | 921 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-09-28 12:23
from __future__ import unicode_literals
from django.db import migrations
def move_transport_entries(apps, schema_editor):
"""Move old transport entries to new model."""
pf_Transport = apps.get_model("modoboa_postfix_autoreply", "Transp... | [
"tonio@ngyn.org"
] | tonio@ngyn.org |
1f3bbac74e70f96f7b9ec40d372d31e1b1f773b0 | fae70ce7b3a6aa11f568ea11f6432a15c303ff4c | /backend/home/admin.py | df00658e4315496f555f3883ec935e268f6c0eb7 | [] | no_license | crowdbotics-apps/msm-mobile-041298-d-16278 | 900532950c8bc78b9559d7f7b7369965be3dfd5a | d0cce051eca656658f757b52028c495de8d14df3 | refs/heads/master | 2023-01-23T10:33:49.516108 | 2020-12-04T09:25:15 | 2020-12-04T09:25:15 | 318,404,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.contrib import admin
from .models import Payment, Student
admin.site.register(Student)
admin.site.register(Payment)
# Register your models here.
| [
"team@crowdbotics.com"
] | team@crowdbotics.com |
6f37a52fa44b06d9339604895887644e5393908f | f0da5036820e92157a9108b4b6793e757a81861c | /tfmodels/generative/encoder_basemodel.py | 94b65286c61a3583c99508f199b4249200bffe17 | [
"MIT"
] | permissive | BioImageInformatics/tfmodels | cb1e136407f0f148194210b1449b26c126fe5a07 | 7219eac59ba82cfa28e6af5e17f313dcc5ddd65e | refs/heads/master | 2022-01-26T16:09:32.630262 | 2019-04-25T05:09:33 | 2019-04-25T05:09:33 | 115,466,269 | 4 | 3 | null | 2018-02-06T17:46:17 | 2017-12-27T00:55:40 | Python | UTF-8 | Python | false | false | 2,638 | py | from __future__ import print_function
import tensorflow as tf
from ..utilities.basemodel import BaseModel
class BaseEncoder(BaseModel):
## Overload the base class.. do I even need the base class?
## TODO expose number of kernels and number of upsample steps to the world
discriminator_defaults = {
'... | [
"ing.nathany@gmail.com"
] | ing.nathany@gmail.com |
be7196960f3976f8925c1fb4d15ab6dec089b8be | 21e5825959a886787a3915ff0d3efa86d9cd3702 | /combat/finishers/crushskull.py | 90999f5e7d95fb019500f25b51ba1105f832984b | [
"MIT"
] | permissive | ChrisLR/Python-Roguelike-Template | e0df37752907377e606197f2469fda61202129d5 | 9b63742b0111c7e9456fb98a96a3cd28d41a1e10 | refs/heads/master | 2021-06-26T07:48:39.215338 | 2017-09-14T21:46:08 | 2017-09-14T21:46:08 | 69,761,175 | 0 | 0 | null | 2017-09-14T21:46:09 | 2016-10-01T20:09:24 | Python | UTF-8 | Python | false | false | 1,967 | py | from combat.enums import DamageType
from combat.finishers.base import Finisher
from echo import functions
from util import gridhelpers
class CrushSkull(Finisher):
name = "Crush Skull"
description = "Crush the skull of your enemy."
attacker_message = "You swing your {attacker_weapon} into a powerful overhe... | [
"arzhul@gmail.com"
] | arzhul@gmail.com |
4266808125fee1529cd17fad7f3dcc1b19a5058d | cc5c546379ca79a7634acb9a2a66ae690f20ee15 | /MyCode-01/Schema/__init__.py | 0fa987e6907d0c9a145c077b36c3792e0904e2ca | [] | no_license | vakili73/CodeV1 | 0c13f8b3cba1fa9b5d40039065931687dd0acc84 | 658826200ddb779baf2a1cc2bcccdc0e43aefd47 | refs/heads/master | 2020-04-01T07:23:58.679094 | 2018-12-22T21:07:24 | 2018-12-22T21:07:24 | 152,988,274 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | from .BaseSchema import BaseSchema
from .SchemaV01 import SchemaV01
from .SchemaV02 import SchemaV02
from .SchemaV03 import SchemaV03
from .SchemaV04 import SchemaV04
from .SchemaV05 import SchemaV05
from .SchemaV06 import SchemaV06
from .SchemaV07 import SchemaV07
from .SchemaV08 import SchemaV08
from .SchemaV09 impo... | [
"v.vakili73@gmail.com"
] | v.vakili73@gmail.com |
24fe5caed2fa41cc86fa0d89688e6ed28366e88a | 411eff94020c192d5e5f657fa6012232ab1d051c | /game/src/coginvasion/holiday/DistributedWinterCoachActivityAI.py | 39d242aa474cc9dd01c703a6449f877ffd5cab35 | [] | no_license | xMakerx/cio-src | 48c9efe7f9a1bbf619a4c95a4198aaace78b8491 | 60b2bdf2c4a24d506101fdab1f51752d0d1861f8 | refs/heads/master | 2023-02-14T03:12:51.042106 | 2021-01-15T14:02:10 | 2021-01-15T14:02:10 | 328,268,776 | 1 | 0 | null | 2021-01-15T15:15:35 | 2021-01-09T23:51:37 | Python | UTF-8 | Python | false | false | 904 | py | """
COG INVASION ONLINE
Copyright (c) CIO Team. All rights reserved.
@file DistributedWinterCoachActivityAI.py
@author Maverick Liberty
@date November 14, 2015
"""
from direct.directnotify.DirectNotifyGlobal import directNotify
from direct.distributed.DistributedNodeAI import DistributedNodeAI
class DistributedWint... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
c23986aa29d9b2eb49e229606feab8f8b7f0c036 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/FasterRCNN_ID0100_for_PyTorch/detectron2/evaluation/coco_evaluation.py | 1186fdbcd2ff0f2d04b51817e27db1ce5837691d | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 22,057 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
d72458e76f86057e04cab0990ba3207a0ce687ce | 9e8d98c48035d4ee61fa930c324c822a61e5ae55 | /examples3/test_surface_ct.py | 53652450ddfa76ea5a3507d290c37f21d095ec74 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | GRSEB9S/mystic | 59ac0c284a19f7b685a98420cd49d21bb10ff0cd | 748e0030c8d7d8b005f2eafa17a4581c2b3ddb47 | refs/heads/master | 2021-08-14T07:11:04.439139 | 2017-11-14T23:49:22 | 2017-11-14T23:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,116 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 2010-2016 California Institute of Technology.
# Copyright (c) 2016-2017 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/my... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
a1409738902176bfc7b30eefe27cd0406cc72281 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6040/265006040.py | 8d9319d572368cb051ac2c665bd006e19f823ef1 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,266 | py | from bots.botsconfig import *
from records006040 import recorddefs
syntax = {
'version': '00604',
'functionalgroup': 'TO',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 1, MAX: 5, LEVEL: [
{ID: 'N2', MIN: 0, MAX: 2},
{ID: 'N3', MIN... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
33c4f63224fc7c43de4b5920f527180a100ed9c8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03712/s144694352.py | 7cb35c72c8fda9d98bf5dfd772936144ca8be536 | [] | 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 | 352 | py | #!/usr/bin/env python3
# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools
def main():
H, W = map(int, input().split())
print("#"*(W+2))
for _ in range(H):
print("#{}#".format(input()))
print("#"*(W+2))
def test():
import doctest
doctest.testmod()
if __name__ == '__... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
355d5d730e52abc11dde2517b53d52a39c7f29e6 | 576b680d1d3ba0f07837e7f28935b0a4632561ad | /pyrepr/repr_json.py | 0a9bb92ce96d1f2c57c17c3e119f1144ad27ba55 | [] | no_license | patarapolw/pyrepr-toml | 4b8639050b118896ef7a8cd99067864e9968fea8 | 187bc1cd2adf2e487712d2d629564f4d2c972dcb | refs/heads/master | 2020-04-02T02:10:32.258042 | 2018-10-20T10:45:16 | 2018-10-20T10:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | import json
from json.encoder import _make_iterencode
from .util import hyper_markdownify
class ReprJSONEncoder(json.JSONEncoder):
def iterencode(self, o, _one_shot=False):
if self.check_circular:
markers = {}
else:
markers = None
_iterencode = _make_iterencode(
... | [
"patarapolw@gmail.com"
] | patarapolw@gmail.com |
4ecf0174c40593d6223878ddf51d8f839fb2d298 | e3cfab409afb5ff9a0b3812bf848be6ca9239cee | /test/testCartesian.py | 67c8b15475eef66a39f7787d3010fcf0d1e40aad | [
"MIT"
] | permissive | mrJean1/PyGeodesy | 565266a4f7f6cda5abe98e915bbd868f6cbe1760 | eba35704b248a7a0388b30f3cea19793921e99b7 | refs/heads/master | 2023-08-23T13:58:20.069917 | 2023-08-20T18:50:45 | 2023-08-20T18:50:45 | 68,028,481 | 283 | 66 | null | 2022-04-09T00:40:52 | 2016-09-12T16:49:10 | Python | UTF-8 | Python | false | false | 9,980 | py |
# -*- coding: utf-8 -*-
# Test cartesians.
__all__ = ('Tests',)
__version__ = '23.05.23'
from bases import GeodSolve, geographiclib, isPython35, TestsBase
from pygeodesy import R_M, classname, Datums, degrees, fstr, Height, \
modulename, RefFrames, Transforms # PYCHOK expected
from pygeodesy.carte... | [
"mrJean1@Gmail.com"
] | mrJean1@Gmail.com |
1006a1042d8562501d612446f32f554d87edcacb | 80217a305516de4c1921833b222f094f0148e9f9 | /backend/task_marker_21840/wsgi.py | 9f4c0dac7059e2f594e0ec93c50fe0ea283ef0a8 | [] | no_license | crowdbotics-apps/task-marker-21840 | ea9bcd56f7450a83ac6818c24d7294795deab092 | 8bcd4803dd4b0b56242f5bb92117230f1746f7e2 | refs/heads/master | 2023-01-02T08:14:51.362346 | 2020-10-22T19:26:21 | 2020-10-22T19:26:21 | 306,438,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for task_marker_21840 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
823ac15ec7ef31233f51a529dbf71638c8f76b59 | 72b77f97876983025eb05a5aa1d6f248a1be3074 | /binarysearch/ugly_number.py | 731272b3b9501c721d2305ba2085830cacf9bc46 | [
"Apache-2.0"
] | permissive | erjan/coding_exercises | 4c6bccb2cdac65ccbc3107a482914275ecd157f7 | 68dac358a6d4dabd41d47dbd4addb2ec50e0ca11 | refs/heads/master | 2023-09-02T07:25:30.886175 | 2023-08-27T06:13:06 | 2023-08-27T06:13:06 | 236,281,070 | 5 | 0 | Apache-2.0 | 2020-05-05T15:08:49 | 2020-01-26T07:32:09 | Python | UTF-8 | Python | false | false | 342 | py |
'''
Given an integer n, return whether its prime factors only include 2, 3 or 5.
'''
class Solution:
def solve(self, n):
num = n
if num == 0: return False
while num % 5 == 0: num /= 5
while num % 3 == 0: num /= 3
while num % 2 == 0: num /= 2
return num == 1
... | [
"noreply@github.com"
] | erjan.noreply@github.com |
f4d92f33eefb8ade936fbd2367669894919aa93a | a7361705b32e868557dd033aa99d74889c70808c | /braintels_Sockets/servidor_socket.py | cfe9e8e22c5621a4b6635c7baa010d788146892c | [] | no_license | jorgepdsML/PYTHON_NETWORKING | ce6c3e11018b4592a13eaabcc57de6af0a57d39f | 829a7c92634c7ba78a84dbd9fea22cfe8452b371 | refs/heads/master | 2020-12-23T10:15:18.709084 | 2020-02-08T01:12:52 | 2020-02-08T01:12:52 | 237,121,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | import socket,pickle,time
#ESTABLECER LA IP DEL SERVIDOR (DE ESTE ORDENADOR)
HOST = '127.0.0.1'
PORT = 65432 # PUERTO
#instanciar un objeto de la clase socket del modulo socket
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind((HOST,PORT))
#escuchar conexiones del cliente
s.listen()
#aceptar la conexi... | [
"noreply@github.com"
] | jorgepdsML.noreply@github.com |
2ef6777840283a29dde9cda0fbea7f05a7bc5f59 | 4ee504feeb5388ed70f4ffef2caf851eb5edd299 | /pinax/wiki/views.py | 9c75aa7f693e06ddd39e31db3c3c7a5247217b8f | [
"MIT"
] | permissive | adamfeldman/pinax-wiki | cbf2e1d9cdce853a0b959f037e35c6b923feba31 | 06c65bf00e9cf69493ca2d97cd45d167756f054d | refs/heads/master | 2021-01-12T13:51:16.242419 | 2016-03-15T12:54:33 | 2016-03-15T12:54:33 | 69,196,399 | 0 | 0 | null | 2016-09-25T23:21:40 | 2016-09-25T23:21:40 | null | UTF-8 | Python | false | false | 3,556 | py | import json
from django.http import HttpResponse, Http404, HttpResponseForbidden
from django.shortcuts import redirect, render, get_object_or_404
from django.views import static
from django.views.decorators.http import require_POST
try:
from account.decorators import login_required
except ImportError:
from dj... | [
"paltman@gmail.com"
] | paltman@gmail.com |
1eab08e124fb6251930f469f3fffe440a5b49406 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_internal/challenge_auth_policy.py | 3239032e9162ffbc954449b7ec15787c522cae2c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 5,654 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
"""Policy implementing Key Vault's challenge authentication protocol.
Normally the protocol is only used for the client's first service request, upon which:
1. The chal... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
0b7e2a052708cfbefe1cc8b6f2fa7a0e3b2d65ff | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/amme/testcase/interestcases/testcase0_3_2_019.py | c7aa9f66e3732eb44bd0b67b86245ca0f1902b48 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,599 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
ba2d85f2f61ab3ad1c97db094a54795ce71f6a38 | aba0055290156515e6befc47d06183dee2663aec | /gluon/gluoncv2/models/lwopenpose_cmupan.py | a0c3b24b67044df4b1ab1c5ab1a6a8167f6d9f66 | [
"MIT"
] | permissive | piyop/imgclsmob | f320aeb4675be57042cf661190e19d9299d46731 | 780dc56eddc95ce58c34eb6f6e48d2fb4c566571 | refs/heads/master | 2022-11-05T17:34:34.076150 | 2020-06-26T12:06:16 | 2020-06-26T12:06:16 | 275,135,197 | 1 | 0 | MIT | 2020-06-26T10:59:46 | 2020-06-26T10:59:45 | null | UTF-8 | Python | false | false | 26,268 | py | """
Lightweight OpenPose 2D/3D for CMU Panoptic, implemented in Gluon.
Original paper: 'Real-time 2D Multi-Person Pose Estimation on CPU: Lightweight OpenPose,'
https://arxiv.org/abs/1811.12004.
"""
__all__ = ['LwOpenPose', 'lwopenpose2d_mobilenet_cmupan_coco', 'lwopenpose3d_mobilenet_cmupan_coco',
... | [
"osemery@gmail.com"
] | osemery@gmail.com |
1fd76c565aad097015fd0f3335e3d6a2cce35c2b | 8bb4a472344fda15985ac322d14e8f4ad79c7553 | /Python3-Core/src/test/prompto/translate/oeo/TestBuiltins.py | 6655a6b6fa59d13d6d11fdb80eb356d342ddc1b4 | [] | no_license | prompto/prompto-python3 | c6b356f5af30c6826730ba7f2ad869f341983a2d | 64bd3d97d4702cc912097d41d961f7ab3fd82bee | refs/heads/master | 2022-12-24T12:33:16.251468 | 2022-11-27T17:37:56 | 2022-11-27T17:37:56 | 32,623,633 | 4 | 0 | null | 2019-05-04T11:06:05 | 2015-03-21T07:17:25 | Python | UTF-8 | Python | false | false | 4,521 | py | from prompto.parser.o.BaseOParserTest import BaseOParserTest
class TestBuiltins(BaseOParserTest):
def setUp(self):
super(type(self), self).setUp()
def testDateDayOfMonth(self):
self.compareResourceOEO("builtins/dateDayOfMonth.poc")
def testDateDayOfYear(self):
self.compar... | [
"eric.vergnaud@wanadoo.fr"
] | eric.vergnaud@wanadoo.fr |
b976280add3c7f8d108a2e2b62579a8e3baea2df | 38b8bceafb4d80afc7c77196eb9ee99694191bcf | /wxpython/grid4.py | 75c71ea65b3375dda4e507cea2e9ead47a246b12 | [] | no_license | tangc1986/PythonStudy | f6c5b384874e82fbf0b5f51cfb7a7a89a48ec0ff | 1ed1956758e971647426e7096ac2e8cbcca585b4 | refs/heads/master | 2021-01-23T20:39:23.930754 | 2017-10-08T07:40:32 | 2017-10-08T07:42:38 | 42,122,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | # -*- coding: UTF-8 -*-
__author__ = 'tangchao'
import wx
import wx.grid
class TestFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title="Grid Sizes",
size=(600, 300))
grid = wx.grid.Grid(self)
grid.CreateGrid(5, 5)
for row in range(5)... | [
"tangc1986@gmail.com"
] | tangc1986@gmail.com |
8b6b130e2da20cd1c05e802909b5a967e3376bab | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /cold_posterior_bnn/core/priorfactory.py | 6680996aff179c4ad86ef7141f6eb0c2cfc4294a | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 11,649 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
11ae0a8a3865a0065090bf66d87e531d3dc0d981 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-1443.py | 266c3c98d64e4057273b3b38d28ef5120b3fd9c9 | [] | 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 | 31,755 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
5f89ba104a536912746246b340517f708d85c7be | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/addons_contrib/io_directx_bel/import_x.py | 250e36ecec7abb7919af8efc79a829bd74fc0966 | [
"Unlicense",
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 36,905 | py | # Blender directX importer
# version baby
# litterature explaining the parser directions :
# I don't want to load the whole file as it can be huge : go chunks
# also I want random access to 3d datas to import pieces, not always everything
# so step1 is a whole file fast parsing, retrieving tokens name and building en... | [
"admin@irradiate.net"
] | admin@irradiate.net |
ab5a264ea0ecf8ebb13f29fe5e851642a4423712 | f4fea67c838444a53492a9193c9f42dcf6ae6bb6 | /AsFarAsFromLand.py | 13f5337ce3a385360b651f26de8599d3aac5e30b | [] | no_license | sainihimanshu1999/Graph-Solutions | 7641919173c1f878bb807bf5709250f30b9d7804 | 1889ebf7c5b04a945b23efbd14f80c191d4fbd4a | refs/heads/main | 2023-04-26T15:15:26.819831 | 2021-05-30T05:17:27 | 2021-05-30T05:17:27 | 370,977,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | '''
Matrix is given and we have to find the maximum distance between land and water
'''
from typing import Deque
def maximumDist(self,grid):
m,n = len(grid),len(grid[0])
q = Deque([(i,j) for i in range(m) for j in range(n)])
if len(q) == m*n and len(q) == 0:
return -1
level = 0
while q... | [
"sainihimanshu.1999@gmail.com"
] | sainihimanshu.1999@gmail.com |
ff45cfdca02b8b29eaeeb906efdef59558db6bb6 | 1a114943c92a5db40034470ff31a79bcf8ddfc37 | /python-2/primer/11/Gui.py | e2e2e5d3f1adbfc9a4720b17ec9f89ce7fa8d8dc | [] | no_license | renwl/mylinux | 1924918599efd6766c266231d66b2a7ed6f6cdd1 | 0602fc6d2b0d254a8503e57310f848fc3e1a73b4 | refs/heads/master | 2020-07-10T22:12:03.259349 | 2017-01-02T12:32:04 | 2017-01-02T12:32:04 | 66,467,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py |
from functools import partial
import tkinter
root=tkinter.Tk()
MyButton = partial(tkinter.Button,root,
fg="white",bg="blue")
b1= MyButton(text="button 1")
b2=MyButton(text="button 2")
#qb=MyButton(text="QUIT",bg="red",
# command=root.quit)
b1.pack()
b2.pack()
#qb.pack(file=Tkinter.X,exp... | [
"wenliang.ren@quanray.com"
] | wenliang.ren@quanray.com |
d9711a46548433f686ed8b66a5edcd838fd2cd43 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_31503.py | ff7f139d663ad522e21166fb64d7c3557099fd21 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,839 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
f46aa1e56e52a41483bda536769f43fee0100aa9 | d144df1ba39aef6d740bfbb438c8f7aaff195cc9 | /distance.py | 62d1b600a0f3e44ddea373755e1a45939964934a | [] | no_license | weizhixiaoyi/text-similarity | 42018aa1a4f21f213eed7e7baa8bc2390c2db945 | aa971a1810f95e4f12a88eefec12bc7269b06cb6 | refs/heads/master | 2021-10-16T16:12:00.876963 | 2019-02-12T03:36:37 | 2019-02-12T03:36:37 | 170,244,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
def edit_distance(str1, str2):
"""edit distance.
Parameters
----------
str1: string1
str2: string2
Returns
-------
distance
"""
m, n = len(str1), len(str2)
if m == 0: return n
if n == 0: re... | [
"zhenhai.gl@gmail.com"
] | zhenhai.gl@gmail.com |
ce0540791bbf93429af66092b7c2e327d2000c1d | 41f2aae52fee7097094473d896346e113c7467f0 | /torch/hub.py | 3dc98f8b216e0d7840df0eef6a685bb084be1e4d | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | rdzhabarov/pytorch | a98662f260f19667756d75d4f21f047896ad9836 | 70caa2efe261c511ef7976abcdb6710574db2309 | refs/heads/master | 2020-05-26T16:18:39.345984 | 2019-05-23T19:46:08 | 2019-05-23T19:51:57 | 188,300,369 | 0 | 0 | NOASSERTION | 2019-05-23T20:16:17 | 2019-05-23T20:16:17 | null | UTF-8 | Python | false | false | 15,708 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import errno
import hashlib
import os
import re
import shutil
import sys
import tempfile
import torch
import warnings
import zipfile
if sys.version_info[0] == 2:
from urlparse import urlparse
from urllib2 import urlopen # noqa ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
0d4679b918a22de8da38164caf9e8789811ac752 | 3279cea18d23dad027fa5b64c4170926df98f2f4 | /bakerydemo/settings/base.py | af39a915e588b4aadb5b9fe0d5c6651caeb650ee | [
"LicenseRef-scancode-public-domain"
] | permissive | torchbox/dit_directory_cms_poc | 1ed53649f59640eb2d4d9372397a1e8a71f2e44e | 87c54dd35364c66c6f70481148ee2386c784f410 | refs/heads/master | 2020-04-27T07:36:48.299201 | 2019-04-17T16:43:08 | 2019-04-17T16:43:08 | 174,141,444 | 2 | 0 | null | 2019-03-18T12:37:56 | 2019-03-06T12:31:35 | Python | UTF-8 | Python | false | false | 4,639 | py | """
Django settings for temp project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | [
"thibaudcolas@gmail.com"
] | thibaudcolas@gmail.com |
947f76df7c719a493f1c1c0a49e64fc6938efde5 | 176899f934288b6e742146282974cf1de4bf2441 | /scripts/rename.py | 97e74f41310c0d66471402ae44d11d288b7bfcec | [
"Apache-2.0"
] | permissive | PatrickEGorman/scrapi | 565e9c7bf2ff5e1fddbab8f691a287be9e5165d0 | 6bb5a4952a34c7507681e206457c78730c28c2e8 | refs/heads/develop | 2020-12-06T20:36:58.590067 | 2015-05-29T17:02:10 | 2015-05-29T17:02:10 | 36,506,821 | 1 | 0 | null | 2015-05-29T13:45:22 | 2015-05-29T13:45:21 | null | UTF-8 | Python | false | false | 1,630 | py | import logging
from scripts.util import documents
from scrapi import settings
from scrapi.linter import RawDocument
from scrapi.processing.elasticsearch import es
from scrapi.tasks import normalize, process_normalized, process_raw
logger = logging.getLogger(__name__)
def rename(source, target, dry=True):
asser... | [
"fabian@fabianism.us"
] | fabian@fabianism.us |
a32ecc9f82723eaf976ef6d4146540243a1679b8 | cda0bf30efa432eaa22278befd0b145801b53027 | /tests/unit/core/parse/test_rollseries.py | a2a9d336206d9413b3f4f879df2cf2e4d8d82e18 | [] | no_license | pastly/craps-dice-control | e863aaa1bee104ddd403ce45a7409a48fc7e9c65 | f6f69c9220dffd5f7e2ef07c929b15b4a73bdd13 | refs/heads/master | 2020-04-26T15:44:18.346970 | 2019-10-24T01:00:04 | 2019-10-24T01:00:04 | 173,655,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,816 | py | import io
import json
import pytest
from cdc.core.parse import rollseries as rs
from cdc.lib.rollevent import RollEvent
def assert_unreached(msg=None):
if msg:
assert False, msg
else:
assert False, "Unreachable code path was reached"
def event_gen_from_str(s, starting_point=None):
fd = ... | [
"sirmatt@ksu.edu"
] | sirmatt@ksu.edu |
b26068fd15185f4dda1e070c55faa0ecf66f918b | f662bd04d2f29ef25bbfd7e768b1e57dfbba4d9f | /apps/plmejoras/migrations/0009_auto_20190319_1051.py | 1d2aae719f33271b26db21ea1dd3a842c8776db7 | [] | no_license | DARKDEYMON/sisevadoc | f59b193688f7eca7c140a03ee414f5d20ada78c7 | 9fc0943200986824a2aab2134fdba5c9f3315798 | refs/heads/master | 2020-03-19T03:27:07.907125 | 2019-12-11T13:30:43 | 2019-12-11T13:30:43 | 135,729,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # Generated by Django 2.0.8 on 2019-03-19 14:51
import apps.plmejoras.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('plmejoras', '0008_auto_20190319_1038'),
]
operations = [
migrations.AlterField(
model_name='plan_me... | [
"darkdeymon04@gmail.com"
] | darkdeymon04@gmail.com |
9dff2c0207a76825d306d6ccde94cbdddb6c3046 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03110/s120799390.py | a85ae752db2895890a6eabb42cd65e8035579610 | [] | 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 | 177 | py | C = 380000.0
ans = 0.0
n = int(input())
for i in range(n):
x, u = input().split()
if u == 'JPY':
ans += int(x)
else:
ans += float(x) * C
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b13da1978e5f3532f9ba976ca7ef9fb82ee3fbd7 | 0f07107b016d2aee64788966b9f0d322ac46b998 | /moya/contextenum.py | 0f14ecc4d22ab2904fcde4c81bb3667ff64ab8a2 | [
"MIT"
] | permissive | fkztw/moya | 35f48cdc5d5723b04c671947099b0b1af1c7cc7a | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | refs/heads/master | 2023-08-09T09:20:21.968908 | 2019-02-03T18:18:54 | 2019-02-03T18:18:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,288 | py | from __future__ import unicode_literals
from __future__ import print_function
from .compat import implements_to_string, string_types, text_type
@implements_to_string
class ContextEnumValue(object):
"""A single value in an enumeration"""
def __init__(self, enum, enum_id, name, description, group=None):
... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
88aace3339a55db26e14395d480d4661d88f9640 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py | 58cee32899c2a5290b294f38c920311a56ffe5ef | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 1,649 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from azure.containerregistry.aio import (
# ContainerRepository,
ContainerRegistryClient,
)
from azure.core.credentials import AccessToken
from a... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
52f14de23e662ba3cdfb7f3070411e54602e9706 | defbefa93deb77311ff5f589372a5fafef05d7a3 | /app/simulations/run_single_sim.py | 4729aa545ff64c7580e72ba514a6c5a6ad5e2701 | [] | no_license | mccarvik/poker | 3eeb75cedee2962e33006853c76a852b83cb2ffa | 766be6582cb3b1743995555aa8239c1980178a46 | refs/heads/master | 2021-01-25T04:15:33.306903 | 2017-10-24T02:22:56 | 2017-10-24T02:22:56 | 93,417,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | import sys, json, pdb
sys.path.append("/home/ubuntu/workspace/poker")
from app.deck_utils.card import Card
from app.deck_utils.deck import Deck
from app.deck_utils.hand_rules import HandRules
from app.deck_utils.deck_funcs import getCombinations
from app.deck_utils.stats import Single_Stats
def run_simulation(hand, bo... | [
"mccarviks@gmail.com"
] | mccarviks@gmail.com |
d7c6a4d01b1fff2af18d2e4f3c5c3004f8f30c38 | d067ba62a1956e1abb571368b02e9158c04966b6 | /xmnlp/sentiment/sentiment.py | 3f3a2b8ce576dc8f09fa27eb16e03e5cb09b1969 | [
"MIT"
] | permissive | wheniseeyou/xmnlp | 29c5ea38ffcb91fa99821788f90f1afc8d8c30bd | ad2d3c0b8875cf415c3adffc10926605da7a458b | refs/heads/master | 2020-04-12T15:17:40.957168 | 2018-09-17T08:19:09 | 2018-09-17T08:19:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,627 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
# -------------------------------------------#
# author: sean lee #
# email: xmlee97@gmail.com #
#--------------------------------------------#
"""MIT License
Copyright (... | [
"mitree@sina.com"
] | mitree@sina.com |
061cf308d22ba1f4f327b5a4a9ae3122f55e8d55 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04044/s186322243.py | 1a114e7a5f53247105fcd6cba05f286158a77b09 | [] | 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 | 187 | py | def compare_strings(s1, s2):
if s1 < s2:
return True
return False
n, l = map(int, input().split())
strings = [input() for i in range(n)]
print(''.join(sorted(strings)))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4135f9e1b309b08a79e2a7c5fa6da2848b3d26d1 | 18b3ad3b0e1f7f10969738251e1201d01dfbc6bf | /backup_files/pythonsessions/insert_cmd_data_db.py | 3e87aafa8f2be8768caed764e5532208e37bea80 | [] | no_license | sahthi/backup2 | 11d509b980e731c73733b1399a8143780779e75a | 16bed38f0867fd7c766c2a008c8d43b0660f0cb0 | refs/heads/master | 2020-03-21T12:39:56.890129 | 2018-07-09T08:12:46 | 2018-07-09T08:12:46 | 138,565,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import MySQLdb, subprocess, re, sys, time
def get_date():
return time.ctime()
def get_ut_fa():
op = subprocess.Popen(['uptime'], stdout=subprocess.PIPE)
#print op.communicate()
u_out, u_err = op.communicate()
if u_err:
print "Error in command execution"
sys.exit(100)
#17:48:12 up 31 min, 1 user, load ave... | [
"siddamsetty.sahithi@votarytech.com"
] | siddamsetty.sahithi@votarytech.com |
3256bc9d3399f7c5f9d6ac83a1eed907f6c9ba53 | fc0683e4b9b92b02f2bac73b5a1f9e9e6dac28bf | /Aula22 – Módulos e Pacotes/ex110 – Reduzindo ainda mais seu programa/teste.py | 618b116202551588fab65daa0b7e5c834a21a5a4 | [] | no_license | igorkoury/cev-phyton-exercicios-parte-2 | d31ab83f6f8fbe07ac31974e1a01c338280e6c6c | 1471d8d0c9a98194c3f36e562b68731e95b22882 | refs/heads/main | 2023-08-06T08:46:38.970229 | 2021-10-07T21:28:03 | 2021-10-07T21:28:03 | 414,762,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | '''Exercício Python 110: Adicione o módulo moeda.py criado nos
desafios anteriores, uma função chamada resumo(), que mostre
na tela algumas informações geradas pelas funções que já temos
no módulo criado até aqui.'''
import moeda
p = float(input('Digite o preço do produto: '))
moeda.resumo(p, 15, 20)
| [
"noreply@github.com"
] | igorkoury.noreply@github.com |
fa690dcd18e07099417f6e7ae4a66721e71f518e | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/giavuvn.py | 7b3674fc44e8c1d0fd830d4f106dfeb8301a5bfa | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//h1",
'price' : "//div[@id='dpro']/div[@class='pdl']/b",
'category' : "//div[@class='dlink']/a",
'description' : "//div[@id='... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
37d544cc17f03c6d834b31fecd5185366d176571 | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/ashvin/vae/fixed3/sawyer_pusher/vae_dense_wider2.py | 337be50432ea280d5a02a5728475f17aac45b9f0 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | from rlkit.envs.mujoco.sawyer_push_and_reach_env import \
SawyerPushAndReachXYEnv, SawyerPushAndReachXYEasyEnv
from rlkit.envs.mujoco.sawyer_push_env import SawyerPushXYEnv
from rlkit.envs.multitask.point2d import MultitaskImagePoint2DEnv
from rlkit.envs.multitask.pusher2d import FullPusher2DEnv
from rlkit.images.c... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
410a0b38828c36bb3735467e18752357af38afbd | 7f24df3218d32eea55cebcfa5faf2a68d58f3bea | /by_python/backjoon/1699(unsolved).py | afd693db4b3c84023a1bc2c0399f06e73f7ca70e | [] | no_license | tgkei/Algorithm_study | 52d89988eb5df0fcf10754ff2c08ab06c0b5f982 | fe11d8cd2871bb4ee2e5f7389c9c5a5709e4bcb3 | refs/heads/master | 2021-06-28T05:14:44.248742 | 2020-11-16T09:09:09 | 2020-11-16T09:09:09 | 172,659,117 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | valid = []
for i in range(1,317):
valid.append(i**2)
n = int(input())
| [
"tagun1202@gmail.com"
] | tagun1202@gmail.com |
84750e0763448e6efd803ff5e0ca28ddb74b0283 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03156/s145919432.py | a3259a2a3c984937831664e6a8145ee9347c7bb2 | [] | 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 | 239 | py | n=int(input())
a,b=map(int,input().split())
p = [int(x) for x in input().split()]
A=0
B=0
C=0
for i in range(n):
if p[i] <= a:
A += 1
elif p[i] > a and b >= p[i]:
B += 1
else:
C += 1
print(min(A, B, C)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
06f9d8d71242fcd67622b93693247ed498383e02 | 4d107a97633559963f6510767bb9297febbcbb02 | /applications/MeshingApplication/tests/SmallTests.py | b2e4d1dcd414f04b10b8fc8807739ca9b65b027c | [] | no_license | asroy/Kratos | 45dc4a9ad77a2b203ab2e0c6c5fe030633433181 | e89d6808670d4d645319c7678da548b37825abe3 | refs/heads/master | 2021-03-24T13:28:43.618915 | 2017-12-19T15:38:20 | 2017-12-19T15:38:20 | 102,793,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | import os
# Import Kratos
from KratosMultiphysics import *
# Import KratosUnittest
import KratosMultiphysics.KratosUnittest as KratosUnittest
import Kratos_Execute_Meshing_Test as Execute_Test
# This utiltiy will control the execution scope in case we need to acces files or we depend
# on specific relative locations... | [
"vmataix@cimne.upc.edu"
] | vmataix@cimne.upc.edu |
93acab2e83b054c06b882c77db1394c27b2b151f | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnlettuc.py | eb21949fbd696bc7945b6433fec5663257813fa0 | [] | 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 | 256 | py | ii = [('LyelCPG2.py', 1), ('RennJIT.py', 2), ('WilkJMC3.py', 1), ('GellWPT.py', 1), ('KiddJAE.py', 1), ('WestJIT2.py', 1), ('SoutRD.py', 1), ('WestJIT.py', 3), ('FitzRNS4.py', 1), ('JacoWHI.py', 1), ('RogeSIP.py', 1), ('DibdTRL.py', 1), ('FitzRNS2.py', 2)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
6a5f28ab4b6e958f2922790f0f74673bed384643 | 90c5c9df3d0639e1f8420b592a77df752ab79746 | /tests/migrations/0003_auto_20191220_0911.py | 52222805c9f0df3dc9d219975835dd1fb27cd2e2 | [
"BSD-3-Clause"
] | permissive | intellineers/django-bridger | 4a16e5e63c697671740d965c3fcab02a89b8b27f | ed097984a99df7da40a4d01bd00c56e3c6083056 | refs/heads/master | 2023-08-14T05:41:38.003086 | 2021-09-06T16:51:56 | 2021-09-06T16:51:56 | 221,709,929 | 2 | 1 | BSD-3-Clause | 2023-07-22T21:39:45 | 2019-11-14T13:57:09 | Python | UTF-8 | Python | false | false | 543 | py | # Generated by Django 2.2.9 on 2019-12-20 09:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("tests", "0002_relatedmodeltest"),
]
operations = [
migrations.AddField(
model_name="modeltest", name="float_field", field=models... | [
"c.wittlinger@intellineers.com"
] | c.wittlinger@intellineers.com |
9847a45cacd0a7625f93aa8595f9afa5b8a5c16d | cc622e69e45db2e3e3172fcf8598ba7d2b64d5d8 | /taxcalc/_version.py | 56b977ec9aec1b043dce330de18274a2afde9280 | [
"MIT"
] | permissive | SherwinLott/Tax-Calculator | 533c7e381ab5e56bccc03821fe3a4a30a6e6f753 | b5276854031225c004eb795ad5b85f76fe94172d | refs/heads/master | 2020-04-01T23:23:16.691655 | 2015-04-17T14:43:05 | 2015-04-17T14:43:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,420 | py |
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains t... | [
"tj.alumbaugh@continuum.io"
] | tj.alumbaugh@continuum.io |
370daefbe01246a1903960925230387d185d47cd | 47a6f4e5f92413fda00ea31a2ac3894749dd76d5 | /cvx/op/postprocessing.py | aff84211b0f16e12cfd22d4370114c5fd9c5a2fb | [] | no_license | jtuyls/cvx | 3e569e73cc3a77226014c2921c2ad752a340931e | ede40c895a48103312aabdecc4ffbc8f97c711c8 | refs/heads/master | 2020-08-05T05:51:07.297147 | 2020-03-17T18:17:19 | 2020-03-17T18:17:19 | 212,419,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | """
CV postprocessing operations
Authors: Jorn Tuyls
"""
import cv2
import numpy as np
from .tools import softmax
def central_crop(height, width, channels):
# type: (str/int, str/int, str/int) -> Function
"""
Return a wrapper function that takes in an image and centrally crops
an image of provided ... | [
"jornt@xilinx.com"
] | jornt@xilinx.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.