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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
773c3cc121a7313a3dce5a3dbaea4cc5f874ba89 | 29f6b4804f06b8aabccd56fd122b54e4d556c59a | /CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/network/statistics/port.py | 157c6686776787237e2dcaa610abe36336383467 | [
"Apache-2.0"
] | permissive | obahy/Susereum | 6ef6ae331c7c8f91d64177db97e0c344f62783fa | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | refs/heads/master | 2020-03-27T11:52:28.424277 | 2018-12-12T02:53:47 | 2018-12-12T02:53:47 | 146,511,286 | 3 | 2 | Apache-2.0 | 2018-12-05T01:34:17 | 2018-08-28T21:57:59 | HTML | UTF-8 | Python | false | false | 2,937 | py | #
# Copyright 2014 NEC Corporation. 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 a... | [
"abelgomezr45@gmail.com"
] | abelgomezr45@gmail.com |
0c8e9163f2888dad87748866da7f0d5bbc0f96f5 | 212d39dd0e12d42ce9b830de7e8738504dda2428 | /ipc/fork2.py | 121bd21a75495360d20399dd7b2d622483bf3c29 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | waveform80/presentations | a0c7869f5acd699922f84ed1b510519c00472887 | 9e8d9f63d4e841e573d5b9b01c234128d49c29c5 | refs/heads/master | 2023-05-12T21:29:29.083191 | 2023-05-04T07:29:59 | 2023-05-04T07:29:59 | 21,940,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | import io
import os
from time import sleep
f = io.open('my_data', 'w+')
pid = os.fork()
if pid:
print("I'm the master: sending data")
f.write("hello")
else:
print("I'm the slave: waiting for data")
sleep(1)
f.seek(0)
print("Received", f.read())
| [
"dave@waveform.org.uk"
] | dave@waveform.org.uk |
a641b6ef567ff86587e0d3453127a1d2d44f66f2 | 1dd687bdb3bb964383c3f4dde7e9eae8a09be5f5 | /pyleecan/Methods/Machine/Machine/plot_anim_rotor.py | 4524207e96adf3c8153a8d9be9ce90a1feec4933 | [
"Apache-2.0"
] | permissive | Kelos-Zhu/pyleecan | 4daa2c8738cfe8a721ac2bdf883c59a1b52d8570 | 368f8379688e31a6c26d2c1cd426f21dfbceff2a | refs/heads/master | 2022-11-18T14:30:29.787005 | 2020-07-09T16:55:02 | 2020-07-09T16:55:02 | 278,112,321 | 0 | 0 | Apache-2.0 | 2020-07-08T14:31:39 | 2020-07-08T14:31:38 | null | UTF-8 | Python | false | false | 2,121 | py | from numpy import pi
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib.pyplot import axis, subplots
from matplotlib.patches import Polygon, Circle
def plot_anim_rotor(self, Nframe, Tanim, Nrot=1, is_loop=True):
"""Plot the machine with an animation of the rotor
(inner ro... | [
"pierre.bonneel@gmail.com"
] | pierre.bonneel@gmail.com |
318bb13a3661a89b40f876c3b2d72dfee56d1365 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_176/ch27_2019_03_15_04_30_11_986374.py | c83630adaec1d3021c42b98cdc52c9fc5978453f | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | f= int(input('quantos cigarros fuma por dia?'))
a= int(input('há quantos anos fuma?'))
print ('a quantidade de tempo perdido em dias é: {0:.2f}'.format(a*n))
| [
"you@example.com"
] | you@example.com |
0e2a2e57dcde388e4acef2b5ce123becfe52f7be | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/linearbias_11.py | 2dcc5515834c7e7014dcd4a2738d353cae809eab | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 802 | py | # -*- coding: utf-8 -*-
"""
linearbias_11.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class LinearBias_11(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Linear(in_features=784, out_features=79, bias=T... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
f29d716cc9eccd1a742ce10c9deb5c7d563cfdf5 | d210853ba6d1f3b5383a09e1b553c19083d78014 | /server/cart/utils.py | c5c47f24bfe9d396766e798b67c8a78dc7232248 | [] | no_license | Hagen013/presidentwatches | f252c7995e39f6cffb6608e43f555abc32f6a9fc | b9ca72aef1db01262675274c83a5c5dff4d6e2da | refs/heads/master | 2022-12-17T08:45:15.541869 | 2019-12-29T17:48:56 | 2019-12-29T17:48:56 | 162,160,435 | 0 | 0 | null | 2022-12-08T01:49:45 | 2018-12-17T16:36:05 | HTML | UTF-8 | Python | false | false | 680 | py | from .models import Promocode
from .constants import (PICKPOINT_TO_CDEK_STATUS_CODE_MAPPING,
RUPOST_TO_CDEK_STATUS_CODE_MAPPING,
RUPOST_TEXT_TO_STATUS_MAPPING)
def get_promocode_by_brand(brand):
return Promocode.objects.filter(brands__in=self.brand).order_by(sale_am... | [
"="
] | = |
0097f56446dc96fbe0812c302ca72860b5a374e9 | 6fbb1f5625aaa6381ec09e76e0f52fc48e2af9b0 | /alternatingSort.py | ab89cf927f4447ebee51ce2c9a00680f8bec26e8 | [] | no_license | hemal507/CS-Algorithms | 273341383bb00d843d95fe26a07d47555c2d7728 | 154c21982485a1c9b94ed54df6e6e12be9c54f98 | refs/heads/master | 2021-01-01T20:02:32.734198 | 2020-05-24T12:06:51 | 2020-05-24T12:06:51 | 98,743,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | def alternatingSort(a):
if len(a) != len(set(a)) :
return False
b = [None]*(len(a))
for i in range(len(a)) :
if i % 2 == 0 :
b[i] = a[i/2]
else :
b[i] = a[-i/2]
s = sorted(b)
if b == s :
return True
else :
return False... | [
"noreply@github.com"
] | hemal507.noreply@github.com |
6642866cf5ff1d95a5d9e5c2d5f549797601a25f | e75cb799000d3120d4a93a2826fe101228d1e1a7 | /03-python practical examples/01a-beautiful soup - coreyms dot com - brief.py | ad181e5f815eca3b4abe9fc50e2cf30c6332ff6d | [] | no_license | atrox3d/python-corey-schafer-tutorials | 89fb410f1e13fd6910dc42401782b1406ffb87e8 | 9d991e3dd9647adc55ae1f343fedfc3faa202b01 | refs/heads/master | 2022-12-14T17:55:01.566427 | 2022-09-02T15:48:20 | 2022-09-02T15:48:20 | 221,426,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | from modules import utils
import os.path
from bs4 import BeautifulSoup
import requests
########################################################################################################################
utils.banner(
'https://www.youtube.com/watch?v=ng2o98k983k',
'web scraping with beautiful soup',
'... | [
"atrox3d@gmail.com"
] | atrox3d@gmail.com |
c3f55696585346c21eb70a605ee293b6d94b03f0 | 109a3ed4e5355e0ba5ef9454ff46ee2acc58e013 | /background/alert_handler.py | 71da5910b10fe5608f511b2407091804a0870aea | [] | no_license | zhaobin022/monitor | 9ff828b8316995a6cf930ae3643d25ff627d4bdb | fe5aacf49bf6961147030312a114986fda7f04ab | refs/heads/master | 2020-07-10T21:04:24.024708 | 2016-09-08T03:35:46 | 2016-09-08T03:35:46 | 66,442,685 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,896 | py | __author__ = 'zhaobin022'
from background import models
import json
import copy
import time
import operator
class AlertHandler(object):
def __init__(self,client_id,redis_obj,mq_conn):
self.client_id = client_id
self.redis_obj = redis_obj
self.mq_conn = mq_conn
self.mq_ch... | [
"zhaobin022@qq.com"
] | zhaobin022@qq.com |
00f11b662e6c46b1f0cc977d2fbb0f97ed91a934 | 45844683ca61f6f1a3c70d4a82d50ade067b9de7 | /posts/migrations/0005_auto_20171210_0017.py | 2de7bde5d668694a271554db585276150129e942 | [] | no_license | PHironaka/bi-fun | 5a8faf89d57ecb021eb4de9fcbb5f29bd7efd0fa | cb961678c938f0704c6c6127585c0a3c4044bbc8 | refs/heads/master | 2023-01-10T06:48:42.744321 | 2019-09-03T23:00:42 | 2019-09-03T23:00:42 | 112,222,207 | 0 | 0 | null | 2022-12-29T11:38:41 | 2017-11-27T16:45:57 | HTML | UTF-8 | Python | false | false | 454 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-12-10 00:17
from __future__ import unicode_literals
from django.db import migrations
import markdownx.models
class Migration(migrations.Migration):
dependencies = [
('posts', '0004_post_tags'),
]
operations = [
migrations.AlterFi... | [
"peterhironaka@mac.com"
] | peterhironaka@mac.com |
58c2012eb70833208bfab5762221cf5e8d53507f | cac9c211a4eeb55cfd61d8e5c54a1d4082c4de33 | /survol/sources_types/sqlserver/dsn/sqlserver_dsn_sessions.py | 3077d7ca241faa34737ee30d6296b68d5e35fe70 | [
"BSD-3-Clause"
] | permissive | vchateauneu/survol | 8c8b5db67f81c6400c3e2f4b84b57fb83d69fb1f | 2b5be9d28115f8f9b1dd91bf05449c92bf9a9926 | refs/heads/master | 2020-03-21T09:11:37.765314 | 2018-07-03T20:40:16 | 2018-07-03T20:40:16 | 138,387,051 | 1 | 0 | null | 2018-06-23T09:05:45 | 2018-06-23T09:05:45 | null | UTF-8 | Python | false | false | 3,054 | py | #!/usr/bin/python
"""
Sessions in SQL Server database (ODBC)
"""
import sys
import lib_common
from lib_properties import pc
from sources_types.odbc import dsn as survol_odbc_dsn
from sources_types.sqlserver import dsn as survol_sqlserver_dsn
from sources_types.sqlserver import session
try:
import pyodbc
except Impo... | [
"remi.chateauneu@gmail.com"
] | remi.chateauneu@gmail.com |
bfc091a392d75815015f901cd1b8fe44eb78dd3a | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/contrib/distributions/python/ops/bijectors/ordered.py | acb356d50e500ad649f626bb57b53dd2254739bd | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6bf5b33839d1904f951bf6c90d6121fb8d3fc6788c52baa16e30a171aca54574
size 4965
| [
"github@cuba12345"
] | github@cuba12345 |
3a9ec80a07429d3fb5044b350f7ded7d8eb73c1c | 660b2e940ccee2b729aa7d00ef0453cdac9dbf6a | /student_and_information/student_and_information/settings.py | e11cea4a0923eda94711f365b8cd761791263ded | [] | no_license | iversongit/20180427 | 68c251b6acfef91252d7e622cffae8450dbcdb3f | 9a9f1f1abaa3b620a000b2c8f5f91d8acfd77d8a | refs/heads/master | 2020-03-13T17:51:55.044089 | 2018-04-27T13:30:31 | 2018-04-27T13:30:31 | 131,225,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,391 | py | """
Django settings for student_and_information project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
... | [
"1564329410@qq.com"
] | 1564329410@qq.com |
d7537dfc6e026d7cec6f128f87ae1bae37731b7e | 779b0dde59be392abf91a38d250ffd04c65cb5cc | /reinforcement/tensorflow/minigo/selfplay_worker.py | 011137792a60c0d71eb53e25406150ce8462a663 | [
"Apache-2.0"
] | permissive | libbyandhelen/reference | 6bb028da97df81738b1e534790c714ae3ccd7688 | f11b8461e6ffa76606ce0bdd00cf5f571dcf0708 | refs/heads/master | 2022-12-11T00:36:16.902050 | 2018-06-12T21:02:56 | 2018-06-12T21:02:56 | 136,956,850 | 0 | 1 | null | 2022-12-08T02:11:29 | 2018-06-11T17:06:54 | Python | UTF-8 | Python | false | false | 9,258 | py | # Copyright 2018 Google 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, ... | [
"libbyandhelen@163.com"
] | libbyandhelen@163.com |
953e6c31eaa9ae2ad009a56edbd9f5e7f5e4d829 | 05ad6d839ba95001c8f861a5b1cd619eef8ae9b1 | /tseo/Programmers/level2/42577_전화번호 목록-1.py | 0686a079eb4905d2bdb2f715c4114ce89982efc4 | [] | no_license | Raziel-JKM/ps_study | cdcacdabf14e3236af96d20276459e51a0c09100 | 07602a8af7e23ca3d406ee1db2a5deab01087268 | refs/heads/master | 2023-08-11T12:20:19.830183 | 2021-09-28T23:57:03 | 2021-09-28T23:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | def solution(phone_book):
phone_book.sort() # 일단 사전 순으로 정렬해준다
for i in range(len(phone_book) - 1): # 사전순으로 정렬했으니 바로 뒤에것만 체크하면 된다
if phone_book[i] == phone_book[i + 1][: len(phone_book[i])]:
return False
return True
phone_book_1 = ["119", "97674223", "1195524421"]
phone_book_2 = ["1... | [
"t1won.seo@gmail.com"
] | t1won.seo@gmail.com |
ed5c57419016c681c918b6ecaadad48709a3df39 | c97ae1cc922a037484c5d4794d0a657561cf47f3 | /migrations/versions/ec38b22c3a6d_init.py | 35756ee88ac5529887eac689e3424ce5aef72002 | [] | no_license | AlenAlic/clubpromoters | 3059078b02b77745e7a1e49d998f9d24554082e8 | f44b3b20c20d5669c1658036cea35fb9a4f223fc | refs/heads/master | 2022-12-11T14:38:37.824769 | 2019-09-08T19:02:49 | 2019-09-08T19:02:49 | 190,430,315 | 0 | 0 | null | 2022-12-09T22:02:49 | 2019-06-05T16:29:25 | JavaScript | UTF-8 | Python | false | false | 5,333 | py | """init
Revision ID: ec38b22c3a6d
Revises:
Create Date: 2019-07-15 15:30:44.791994
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ec38b22c3a6d'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by ... | [
"aalic89@gmail.com"
] | aalic89@gmail.com |
956cfc4a2144a4e3125ff02bd15ddec600b56274 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02416/s904586323.py | 26754ca3eaa61bd6db12d57047898099b49a6a55 | [] | 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 | 90 | py | while(1):
a=int(input())
if a==0:
break
a=list(map(int,list(str(a))))
print(sum(a)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a2e3d46a76ecffe410096ef5678a5b238a26f353 | fee03d6cfbea0803ce0bddb0beb9d447def2a59f | /crypten/mpc/primitives/beaver.py | 21758b97dbfbcf97cc53cf87688751d72b088d06 | [
"MIT"
] | permissive | QQ1230/CrypTen | 548c83a57da8570aeb5f7072e2373e98a2302314 | e11c8bfafee6b1d2ebdc43328c2fb487d48070e3 | refs/heads/master | 2023-06-25T21:30:20.988374 | 2021-07-26T16:24:06 | 2021-07-26T16:25:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,546 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import crypten
import crypten.communicator as comm
import torch
from crypten.common.util import count_wraps
class Ig... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
25152339dccd4089309cb91e8af60d00c3605f34 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg_old/scg_Route/test_c37571.py | 1158f49307441ecff7d1f09b3e73a6a8e5c50136 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import pytest
import time
import sys
from page_obj.scg.scg_def import *
from page_obj.scg.scg_def_log import *
from page_obj.common.rail import *
from os.path import dirname, abspath
from page_obj.scg.scg_def_multi_isp import *
sys.path.insert(0, dirname(dirname(abspath(__file__))))
test_id = 37571
# ISP导入目... | [
"15501866985@163.com"
] | 15501866985@163.com |
e29a6774ea3bcc2d0740acaac977a47a5a39885f | f2dde3b0cc30ebce0210fd2e69a6ee0d91274d6f | /semana_09/aula_01/ascii.py | b9988602b70cd063262fb133fcd23786f0ce98b6 | [] | no_license | valeriacavalcanti/IP-2021.1 | 26ecbe187b32d067666e732f7dd918375e6152f8 | 39da35eaceec0a34cccfcc1731ffa9b94b5231f7 | refs/heads/main | 2023-08-06T16:00:09.393942 | 2021-09-27T14:16:07 | 2021-09-27T14:16:07 | 383,632,386 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | print('Símbolos numéricos')
for i in range(48, 58):
print(i, chr(i))
print('Alfabeto maiúsculo')
for i in range(65, 91):
print(i, chr(i))
print('Alfabeto minúsculo')
for i in range(97, 123):
print(i, chr(i))
| [
"valeria.cavalcanti@ifpb.edu.br"
] | valeria.cavalcanti@ifpb.edu.br |
b8d21479535f1a8d006151ded11a93eee5587ff8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2221/60720/297812.py | 8a81748de60eb70d69e1f8fa57deb946c91feb4c | [] | 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 | 530 | py | lst=input().split()
n=int(lst[0])
m=int(lst[1])
gra=[[0 for i in range(n)]for j in range(n)]
for i in range(m):
list0=input().split()
list0=list(map(int,list0))
gra[list0[0]-1][list0[1]-1]=1
for k in range(n):
for i in range(n):
for j in range(n):
if gra[i][k]==1 and gra[k][j]==1:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0ea3e9ce3b1bb10704f06fbf994b4bd9adaa1ca4 | 08b6bd207b3b1f8a9238ec07858f3d861a361225 | /sampling500.py | e20e951a7e151922609ce7edf026ffd893dc7b44 | [] | no_license | hhk86/CSI500 | bfad5ad27af638856bd3d1cb86dfb11d989f69fa | fa62ade74cff303070e8fc5eb2eccb5c26aacc28 | refs/heads/master | 2020-09-20T18:29:27.826561 | 2019-12-24T09:21:30 | 2019-12-24T09:21:30 | 224,559,393 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,115 | py | import cx_Oracle
import pandas as pd
import matplotlib.pyplot as plt
import os
import shutil
# pd.set_option('display.max_columns', None)
# pd.set_option('display.max_rows', None)
class OracleSql(object):
'''
Query data from database
'''
def __init__(self, pt=False):
'''
Initialize d... | [
"hhk0@outlook.com"
] | hhk0@outlook.com |
84079750838c6620e35b81b29ccde5c2c4f1b3cd | 0f9ffc69d45fdbfcb2cfac7b674cf2260efaf11a | /prediction/src/tests/test_crop_patches.py | 24b09006b80edb7d42073d5ab7a2323a388e951c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | aslam/concept-to-clinic | 5835a8f6edb0abcd6aa700ac94878dab804f76ee | b69a6631ad007c5eca5280169c1db96444fd39ff | refs/heads/master | 2021-07-16T22:42:47.041110 | 2017-10-23T21:27:41 | 2017-10-24T12:36:14 | 106,923,326 | 0 | 1 | null | 2017-10-14T11:45:02 | 2017-10-14T11:45:01 | null | UTF-8 | Python | false | false | 656 | py | import pytest
from src.preprocess import load_ct, crop_patches
@pytest.fixture
def ct_path():
return '../images/LUNA-0001/'\
+ '1.3.6.1.4.1.14519.5.2.1.6279.6001.102133688497886810253331438797'
def test_patches_from_ct(ct_path):
centroids = [[556, 101, -70], [556, 121, -20], [556, 221, -77]]
... | [
"chris@chris-lamb.co.uk"
] | chris@chris-lamb.co.uk |
6a07c28a16fa5a2def63726f6197bdc76895054f | 46544b5f01eed38d69be41aabe83c6d6089cad52 | /classifier_system/model_training/BERT/bert3.py | 64e889dc04f05420ecf77958a43d8933b265a129 | [] | no_license | eirikdahlen/MSc-Computer-Science-2021 | 042a7c5a5b9bb19567ca301b427c872a209c25ee | bbb1264bbc3305b1357772f4e434ff987ad2c919 | refs/heads/main | 2023-05-15T01:47:13.907667 | 2021-06-05T09:05:32 | 2021-06-05T09:05:32 | 374,064,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,894 | py | import pandas as pd
import numpy as np
import time
from matplotlib import pyplot
import tensorflow as tf
from transformers import BertTokenizerFast, TFBertForSequenceClassification
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
import os
def load_and_setup_datas... | [
"dahleneirik@gmail.com"
] | dahleneirik@gmail.com |
293d7a125b5c351ae3078beeb9539e8d7d5fcc6c | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_response.py | 7b48171cdbec154f61e09ae2d0a43a66df3320fe | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 5,575 | py | # coding: utf-8
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class UpdateNodeResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict):... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
1125c5f8f204bacc054f119057d2ae918dd56e1c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2686/61132/297976.py | adbfd0fc47f662b3b54e6cb919a6f0d04f66126e | [] | 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 | 326 | py | def mmgp(l,k_2):
if k_2==0 or not l:return 0
ans=[]
for i in range(len(l)):
ans.append((l[i] if k_2%2==1 else -l[i])+max(0,mmgp(l[i+1:],k_2-1)))
return max(0,max(ans))
t = int(input())
for j in range(t):
k=int(input())
m=int(input())
l=list(map(int,input().split()))
print(mmgp(l... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7ff3024f8e259f0946690e895e06a842fa367d9c | 898f547bbeb7d1da27bc40e2d594a363c0d1a75a | /Advert of code 2020/day_15_rambunctious_recitation_2.py | d2571e70b1d689a3e7d57b3c97e366efd177ca3b | [] | no_license | TerryLun/Code-Playground | 4e069e28c457309329f003ea249be83d7578a4a3 | 708ad69594cf5b9edc9ff1189716cad70916574c | refs/heads/master | 2023-06-20T14:03:43.924472 | 2021-07-23T05:27:48 | 2021-07-23T05:27:48 | 237,375,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | nums = [6, 13, 1, 15, 2, 0]
end_turn = 30000000
num_dict = {nums[i]: i for i in range(len(nums))}
num_dict.pop(nums[-1])
i = len(nums)
while i != end_turn:
num = nums[-1]
if num not in num_dict:
nums.append(0)
else:
nums.append(i - 1 - num_dict[num])
num_dict[num] = i - 1
i += 1
... | [
"tianweilun@yahoo.com"
] | tianweilun@yahoo.com |
53e678355a32e3cece4761413ca5260da6ca75a9 | ac0894b411507bfd027696b6bf11b5e384ed68fc | /need-to-do/python3------download-problem--of--leetcode/740.delete-and-earn.py | cd2f4072af4ce906fcecd6fd076b6305f25f9559 | [] | no_license | mkzpd/leetcode-solution | 1d19554628c34c74012fa52582c225e6dccb345c | 60c9b218683bcdee86477a910c58ec702185c726 | refs/heads/master | 2020-05-31T05:56:48.985529 | 2019-09-20T09:10:49 | 2019-09-20T09:10:49 | 190,128,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | #
# @lc app=leetcode id=740 lang=python3
#
# [740] Delete and Earn
#
# https://leetcode.com/problems/delete-and-earn/description/
#
# algorithms
# Medium (46.66%)
# Total Accepted: 25.3K
# Total Submissions: 54.3K
# Testcase Example: '[3,4,2]'
#
# Given an array nums of integers, you can perform operations on the a... | [
"sodgso262@gmail.com"
] | sodgso262@gmail.com |
7b3b70fb89631556f950e1f7dfb7b72bcd1be568 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/46/usersdata/112/17793/submittedfiles/funcoes1.py | 3d6b39846fd6d1dbca5db4e88c86720de38cd906 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | # -*- coding: utf-8 -*-
from __future__ import division
n=input('Digite a quantidade de números das listas:')
a=[]
b=[]
c=[]
for i in range (0,n,1):
a.append(input('Digite um valor da lista A:'))
def crescente(lista):
p=0
cont=0
for i in range (0,len(lista)-1,1):
if lista[i]<lista[i+1]:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f9b6c72db9ba6a1cccfb7d004703079c2ee42d1d | 2c5073c0140b3366b94866d50f8b975c926a529b | /venv/lib/python3.9/site-packages/mediapipe/calculators/core/concatenate_vector_calculator_pb2.py | 6b016b1af3cf664281fd9ea73b2cb9b9b1874a9c | [] | no_license | geekboi777/Volumegesture | 435c2752d107ac6915919e79bcb63fb0b85f6e9e | 3cc35f74533e26588a606154897f9ded4801f0ce | refs/heads/master | 2023-06-24T19:09:07.138900 | 2021-07-30T23:22:18 | 2021-07-30T23:22:18 | 390,512,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,970 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/calculators/core/concatenate_vector_calculator.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf imp... | [
"geekboi777@github.com"
] | geekboi777@github.com |
339cec3cf7dc028d22cebf879426d42bccc5791f | b49a162f6a3d9983d0254f4154a1542774800654 | /dreamrs/dreamrs/urls.py | dfa7198e2a674b3fa2074c07bd35eee300bbcaa8 | [] | no_license | franckeric96/dreamrs_template | 16b254b61938a4acd11e54cdeb98b0a90f9e24e2 | 762999ee73ee9cdea8b3058f417c5aa22de467b0 | refs/heads/master | 2022-10-16T23:32:11.307371 | 2020-06-16T19:41:57 | 2020-06-16T19:41:57 | 272,797,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | """dreamrs URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"franck@gmail.com"
] | franck@gmail.com |
ccf7a8892ce2951ca0d34da4186b761f109b75ee | 57d67ed3f24279e3da746192a7852870afb8b726 | /utils/writeLog.py | 604fe5cac8e97b66927a597d382ecc70f88ebc04 | [] | no_license | Gaoyang0/BMS | febbdb457a8bc03620069d41d0a9d787d2b00f2f | d4563f41d68a51c1b81eb3d84fc91dcc8d363d69 | refs/heads/master | 2020-03-22T08:38:26.086386 | 2018-07-05T01:31:50 | 2018-07-05T01:31:50 | 139,780,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # -*- coding:utf-8 -*-
# Author:DaoYang
def log(str, type):
if type == 'book':
f = open('log/books.log', 'a', encoding='utf-8')
f.write('\n'+str)
f.close()
elif type == 'user':
f = open('log/users.log', 'a', encoding='utf-8')
f.write('\n' + str)
f.close()
el... | [
"="
] | = |
b3e881b1e0cd83e2b37ae3ce8706c5822dec27c8 | 624155f764a54b78a73c9e830a6b27cd9945a3e9 | /selling1/selling1/doctype/quotation_info/quotation_info.py | c841d16a1b6dbc5387c3576704de3e708d3d261a | [] | no_license | reddymeghraj/selling1 | f94400c9b3fa4c65fdcbae33fbea7f9dbad66dfa | 5a8154699ed824a71948f927ae4ae026854dea3c | refs/heads/master | 2020-05-30T10:24:42.376586 | 2015-04-18T06:12:39 | 2015-04-18T06:12:39 | 33,288,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | # Copyright (c) 2013, Wayzon and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class QuotationInfo(Document):
pass
| [
"reddymeghraj@gmail.com"
] | reddymeghraj@gmail.com |
65bccc73ed6d22219f439804dbfc24af418827a8 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /AtCoder_Virtual_Contest/green_diff_400_500_points/abc296/d/main.py | 6a57b4cf333b63023933d82e1878c93a8861beba | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
def main():
import sys
from math import ceil
input = sys.stdin.readline
n, m = map(int, input().split())
inf = 10**30
ans = inf
# a <= bと仮定
for a in range(1, 10**6 + 1):
b = ceil(m / a)
if not (1 <= a <= n) or not (1 <= b <= n):
c... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
607042d8083df04551809e6a17ecf223f81a393b | 89284da682f723c6aaad8ef6bba37ac31cd30c92 | /PythonTutorial/Advance/decorator/code/decorator_with_return_value.py | 8ecc0cb2700bb83f49939f1a459ff2a4f2471ac3 | [] | no_license | Danielyan86/Python-Study | 9d9912e0385c5b4d2b7272e9eaca542ff556dc1a | 782c1638eb9733a4be4acbc4c805a78f0fe77546 | refs/heads/master | 2023-03-17T13:26:31.865927 | 2023-03-05T12:30:07 | 2023-03-05T12:30:07 | 26,902,349 | 28 | 25 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | def do_twice(func):
def wrapper_do_twice(*args, **kwargs):
func(*args, **kwargs)
return func(*args, **kwargs)
return wrapper_do_twice
@do_twice
def return_greeting(name):
print("Creating greeting")
return f"Hi {name}"
if __name__ == '__main__':
print(return_greeting('adam'))
| [
"516495459@qq.com"
] | 516495459@qq.com |
f3ffa5627fc996ed166688d2332ee06f8182251d | 3cfd6f75fc38ab1d27fd32d18faeb3b17d443a0a | /practice_project/manage.py | a0acbf68c06fe0994606ccb92588f88fc72935ad | [] | no_license | rohinizade27/Django | 6572cd5a5e94482acc1469757792cfadbcef47c1 | 0a3adf5ee3bab308ebf9919a3e032c3c1a61e1a0 | refs/heads/master | 2020-04-11T15:18:34.315560 | 2019-01-14T13:14:17 | 2019-01-14T13:14:17 | 161,887,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "practice_project.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dja... | [
"rohinizade43@gmail.com"
] | rohinizade43@gmail.com |
90b1ee7827958b4eed671bd126633cbfe34ab5ca | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_17/models/replica_link_performance_replication.py | e11661abb181788226a8aa744f4ad12d88df9607 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 6,750 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.17
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
fa4b50adc69c5c509df058204821cc4fad6cfbc3 | fa9500caa931204fffd16634528b475fe0372170 | /translate/translate.py | f617048700d70a9089f7790e50bfb13d13705cf0 | [
"MIT"
] | permissive | monospacedmagic/Trusty-cogs | 7e2c36d1da2055b34ea222894f399054d0697ee4 | 764c9282775575f5791d38b744a5df932acac156 | refs/heads/master | 2020-05-05T07:40:10.787031 | 2019-04-03T22:32:27 | 2019-04-03T22:32:27 | 179,833,321 | 1 | 0 | MIT | 2019-04-06T12:54:59 | 2019-04-06T12:54:59 | null | UTF-8 | Python | false | false | 6,889 | py | import logging
from redbot.core import commands, Config, checks
from redbot.core.i18n import Translator, cog_i18n
from .api import GoogleTranslateAPI, FlagTranslation
from .errors import GoogleTranslateAPIError
"""
Translator cog
Cog credit to aziz#5919 for the idea and
Links
Wiki ... | [
"TrustyJAID@gmail.com"
] | TrustyJAID@gmail.com |
1a4e3c696ae9c091199a668fa86295965e325d04 | 132c7b0c8ba606a249fbdfe24f9d73e7e224d260 | /pages/urls.py | 98943af34a40c86efdabd88a747edabf6f65f189 | [] | no_license | sanyuOnline/sanyu-webapp | dafa3505d7f3d6eca225ca6b4dce3fa683d5e9fe | c8e3824146bb9eb4dcf971a1cdef2bc4475385f1 | refs/heads/main | 2023-08-31T12:52:06.104078 | 2021-10-27T07:03:09 | 2021-10-27T07:03:09 | 406,589,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | from django.urls import path
from .views import *
urlpatterns = [
path('', HomeView.as_view(), name='home'),
path('about/', AboutView.as_view(), name='about'),
path('contact-us/', ContactView.as_view(), name='contact_us'),
path('projects/', ProjectsView.as_view(), name='projects'),
path('donate/', ... | [
"jordanrob709@gmail.com"
] | jordanrob709@gmail.com |
746d034aa1d78b642514f31c81a889e12510a073 | 5963c12367490ffc01c9905c028d1d5480078dec | /homeassistant/components/dexcom/__init__.py | 68622a2335080cb4aa4533d90e766a20a7c9031c | [
"Apache-2.0"
] | permissive | BenWoodford/home-assistant | eb03f73165d11935e8d6a9756272014267d7d66a | 2fee32fce03bc49e86cf2e7b741a15621a97cce5 | refs/heads/dev | 2023-03-05T06:13:30.354545 | 2021-07-18T09:51:53 | 2021-07-18T09:51:53 | 117,122,037 | 11 | 6 | Apache-2.0 | 2023-02-22T06:16:51 | 2018-01-11T16:10:19 | Python | UTF-8 | Python | false | false | 2,550 | py | """The Dexcom integration."""
from datetime import timedelta
import logging
from pydexcom import AccountError, Dexcom, SessionError
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_PASSWORD, CONF_UNIT_OF_MEASUREMENT, CONF_USERNAME
from homeassistant.core import HomeAssistant
f... | [
"noreply@github.com"
] | BenWoodford.noreply@github.com |
e9d92ec8c95f8b20f9de59c693ea7978caa23203 | f0c402d3858f0643561886797578b1e64655b1b3 | /utils/builder/shared/ctrl_file_template_strings.py | fa3d11192a6fc72636b8b5a9e473ff13560d179b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Leo-Wang-JL/force-riscv | 39ad2a72abd814df4b63879ce9825b6b06a9391a | deee6acaaee092eb90ac2538de122303334e5be3 | refs/heads/master | 2023-01-28T00:06:58.135651 | 2020-11-18T02:54:10 | 2020-11-18T02:54:10 | 271,873,013 | 0 | 0 | NOASSERTION | 2020-06-28T00:51:26 | 2020-06-12T19:15:26 | C++ | UTF-8 | Python | false | false | 1,102 | py | #
# Copyright (C) [2020] Futurewei Technologies, Inc.
#
# FORCE-RISCV is 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
#
# THIS SOFTWARE IS PRO... | [
"jwang1@futurewei.com"
] | jwang1@futurewei.com |
447168b09a1040cc0c9136e96eeca844264de0f3 | 7d90d2ce27c6ee0af74391b09909edbd45fdc2f0 | /renix_py_api/api_gen/Y1564WriteDbCommand_Autogen.py | 9ed8e710f2aa1c0339673ae3a451c12aa7ad3772 | [] | no_license | gaoxingyu-hub/54testframework-master-e284 | d7ea0d4a715b65c8652430e963a86b9522a7237a | 57dd2197e7d91b8ad8fb2bd0e3503f10afa08544 | refs/heads/master | 2023-04-30T05:50:41.542402 | 2021-05-28T09:19:37 | 2021-05-28T09:19:37 | 309,922,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | """
Auto-generated File
Create Time: 2019-12-27 02:33:28
"""
from .ROMEnum_Autogen import *
from renix_py_api.renix_common_api import *
from renix_py_api import rom_manager
from .BenchmarkWriteDbCommand_Autogen import BenchmarkWriteDbCommand
@rom_manager.rom
class Y1564WriteDbCommand(BenchmarkWriteDbCommand):
de... | [
"gaoxingyu@example.com"
] | gaoxingyu@example.com |
8c852ac43471e8ad0a70cfc5f47022b6a0c31f66 | 0dce852e5749cf0ece41d167da3107ea6b09bf94 | /pyggi/gtk3__GdkWindowAttr.py | 52bf0e88fe4fbaa2189abeeb8aa410e77ae5078e | [] | no_license | jaykhopale/pywebkit3 | 515b5e89738689bf1e40101e160db053cb5a5d29 | 2046414c34d29e6d495046d764554696dc7c0965 | refs/heads/master | 2021-01-18T03:13:25.073633 | 2012-12-13T18:43:34 | 2012-12-13T18:43:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,961 | py | # Copyright, John Rusnak, 2012
# This code binding is available under the license agreement of the LGPL with
# an additional constraint described below,
# and with the understanding that the webkit API is copyright protected
# by Apple Computer, Inc. (see below).
# There is an additional constraint... | [
"jrusnak@sensorplatforms.com"
] | jrusnak@sensorplatforms.com |
2a2dded12863725075730f4df216ca6e3c012465 | 679ce4b323f79b2425976201324c6c1f88b95199 | /Python/Who Pays Who/transactions.py | 3265c13f5f84961078cf90b123beb62dcc0eeead | [] | no_license | abriggs914/Coding_Practice | ff690fb5f145a11f4da144f3882b37f473b10450 | 3afd7c59e0d90f0ef5f6203853e69f853312019b | refs/heads/master | 2023-08-31T04:04:58.048554 | 2023-08-29T13:23:29 | 2023-08-29T13:23:29 | 161,865,421 | 0 | 1 | null | 2022-10-27T08:35:29 | 2018-12-15T03:20:14 | Python | UTF-8 | Python | false | false | 13,587 | py | from utility import *
import datetime
AVERY = {"LET": "A", "BAL": 0.0, "OWES": 0.0, "PMTS": []}
KRISTEN = {"LET": "K", "BAL": 0.0, "OWES": 0.0, "PMTS": []}
EMILY = {"LET": "E", "BAL": 0.0, "OWES": 0.0, "PMTS": []}
HAYLEY = {"LET": "H", "BAL": 0.0, "OWES": 0.0, "PMTS": []}
MOM = {"LET": "M", "BAL": 0.0, "OWES": 0.0, "P... | [
"abriggs1@unb.ca"
] | abriggs1@unb.ca |
d2470fc2125cc86a23962c50483ae31d9ed0dfda | 6c584706e6eab645e11357bde8f393013c69e4c9 | /Ingestão de Dados/Aula 3/gerador_log_web.py | 3f51aeffdcf1a17eef5f714f422ad73ba2f38853 | [] | no_license | charlesartbr/fiap-mba-big-data-data-science | cce1b64c301187a049cd9929d5fafd7e6985503e | de4d8372a7ce26ac8e4556925416e5c9e1932020 | refs/heads/master | 2022-09-05T00:33:21.367281 | 2022-08-09T14:01:28 | 2022-08-09T14:01:28 | 185,289,505 | 0 | 1 | null | 2021-01-15T16:47:00 | 2019-05-07T00:10:35 | Jupyter Notebook | UTF-8 | Python | false | false | 1,772 | py | #!/usr/bin/python
import time
import datetime
import random
timestr = time.strftime("%Y%m%d-%H%M%S")
f = open('/tmp/access_log','w',0)
ips=["123.221.14.56","16.180.70.237","10.182.189.79","218.193.16.244","198.122.118.164","114.214.178.92","233.192.62.103","244.157.45.12","81.73.150.239","237.43.24.118"]
referers=["-... | [
"e-mail@charles.art.br"
] | e-mail@charles.art.br |
e92b785b30219e424c68dd12f50f77ba0a0099e8 | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/nltk/test/unit/test_corpora.py | bce083b9088d1cb8befa7ec22f762c1a1e1b71d6 | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 9,484 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import unittest
from nltk.corpus import (
sinica_treebank,
conll2007,
indian,
cess_cat,
cess_esp,
floresta,
ptb,
udhr,
) # mwa_ppdb
from nltk.compat import python_2_unicode_compatible
from nltk.tree impor... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
e7599f9ae060d3fafce863bf73c9090ed1280934 | 5a7b15eb2a3453475ee70bb56e19a7bb2751db89 | /code/analysis/NOT_USED/quantiles/yStudyTradeoff_Bootstrap_Parallel_OnlyWordForms_BoundedVocab_BinomialTest_Single_UnimodalBoundOnQuantile_BothDirections_NoAssumption_All.py | ccb97759647aaf85ec002925f489aef6d4a151e4 | [] | no_license | m-hahn/memory-surprisal | 8db19bc86ada9c352feb66859f718749623700b6 | 1b3d680836ba87fb9186741a8d4f184fda35b122 | refs/heads/master | 2022-04-30T16:01:39.323884 | 2022-03-25T04:10:12 | 2022-03-25T04:10:12 | 156,466,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | from ud_languages import languages
import subprocess
# ./python27 yStudyTradeoff_Bootstrap_Parallel_OnlyWordForms_BoundedVocab_HistogramsByMem_All.py > ../results/tradeoff/listener-curve-histogram_byMem.tsv
with open("../../results/tradeoff/listener-curve-binomial-confidence-bound-quantile-noAssumption.tsv", "w") as... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
3b15e2c536dd3217d18951bca339e724dc79bc96 | 250b997d715c168315a927e28124cf24c77048c0 | /python3基础/3.Python修炼第三层/day3_预习/文件处理_预习.py | 7df721ad73b651c2138d41d3c9be75f122680a17 | [] | no_license | cuitianfeng/Python | c78077e5dcad01ee5fe44c0aa8b61bbc2fa388cf | 9c9f10f13311116ce0bc60ec128f765ff2ca3078 | refs/heads/master | 2023-01-10T23:25:57.158141 | 2020-11-17T15:39:36 | 2020-11-17T15:39:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,724 | py |
# python基础之文件处理
# http://www.cnblogs.com/linhaifeng/articles/5984922.html
# 文件处理
# 读
# f=open('a.txt','r',encoding='utf-8') #打开文件
# res=f.read() #read 以光标读取文件所有内容
# print(res)
# print('第二次',f.read()) # 第一次read光标已经读到文件末尾,所以光标无法继续读取
# print(f.readline(),end='') #一行一行的读取文件
# print(f.readlines(),end... | [
"zhang.hongyang@mydreamplus.com"
] | zhang.hongyang@mydreamplus.com |
1635473539c093851ee9aa249ab11f4706c48386 | 963676ebcbb74cb40344aba93960ab288b75e4cd | /migrations/versions/e6f60380eb4c_add_post_id_columnin_comment_table.py | 12032564a5da2387ff7e7abee4c9dc8999d72478 | [
"MIT"
] | permissive | Anabella1109/MeBlog | 6f93255b550322861cc020fe686beab85b68ac8f | 4e3425a9558926208ad5ce66f83da55bb944f59e | refs/heads/master | 2020-04-25T23:13:20.525790 | 2019-03-05T06:54:35 | 2019-03-05T06:54:35 | 173,137,672 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | """add post_id columnin comment table
Revision ID: e6f60380eb4c
Revises: a002d432a443
Create Date: 2019-03-02 18:05:32.082839
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e6f60380eb4c'
down_revision = 'a002d432a443'
branch_labels = None
depends_on = None
... | [
"bellaxbx1109@gmail.com"
] | bellaxbx1109@gmail.com |
1ae2355c6ac4a55ad285c5f227692ebf7fea72a8 | e1fada3a9846a5593e3d3d2fdc32b23b832e38b4 | /tests/unit/algorithms/segmentation/adapters/mmseg/test_pipelines.py | d59987c3820cd54ceb70f18d63ed75cf203e1fe8 | [
"Apache-2.0"
] | permissive | GalyaZalesskaya/openvino_training_extensions | fd1ebb189900008b16b85568449e5c62d8edbad5 | 6116639caeff100b06a6c10a96c7e7f5951f20c7 | refs/heads/develop | 2023-09-03T19:32:44.702497 | 2023-03-15T06:48:24 | 2023-03-15T06:48:24 | 202,568,309 | 0 | 0 | Apache-2.0 | 2019-10-28T16:16:27 | 2019-08-15T15:41:59 | Python | UTF-8 | Python | false | false | 4,386 | py | # Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
import numpy as np
import PIL.Image
import pytest
from otx.algorithms.segmentation.adapters.mmseg.data.pipelines import (
LoadAnnotationFromOTXDataset,
NDArrayToPILImage,
PILImageToNDArray,
RandomResizedCrop,
RandomSola... | [
"noreply@github.com"
] | GalyaZalesskaya.noreply@github.com |
b5d111e5042cf79311a90c8070f79acc4fb07e98 | 49e04eaa863f16f23378d628d8c8da3e2f4328ec | /types.py | 6bbf5e9a8e558f93f9b1391cbcd8965f32cf5817 | [] | no_license | cheery/hindley-milner-tutorial | 5f58af47fff9686f5dfd23130a7bdf97ccae19ed | 40debaa36b2cc2dd82a73cf8580c8e810698afb4 | refs/heads/master | 2021-01-01T18:38:32.396766 | 2013-07-23T14:14:08 | 2013-07-23T14:14:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | class Variable(object):
def __init__(self):
self.instance = None
class Type(object):
def __init__(self, name, types):
self.name = name
self.types = types
class Generic(object):
def __init__(self, kind):
self.kind = kind
def prune(t):
while isinstance(t, Variable) and t... | [
"cheery@boxbase.org"
] | cheery@boxbase.org |
f015bf5f10b97ea6b3dda3c8716fabd25c42417d | 3ffdea18c24ed90672cc8414cba6b769d757667d | /tests/test_api.py | a73f70aead6d4354ff8fb63f5dc4ab817ea93f8d | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | msauria/cooler | 0b26a07e3b42b0bddbc9fc15aef18dee65010b9b | d9257919d3aee1bbbe700e8154f9f73354e416cb | refs/heads/master | 2021-01-22T06:18:27.266357 | 2017-05-25T04:15:31 | 2017-05-25T04:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,322 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function
from scipy import sparse
import numpy as np
import pandas
import h5py
from nose.tools import assert_raises
import cooler.api
import mock
class MockHDF5(dict):
file = mock.Mock(['mode'])
binsize = 100
n_bins = 20
r = sparse.random(n_bins, n_... | [
"nabdennur@gmail.com"
] | nabdennur@gmail.com |
fe917e43a825ab3b35bc5f39d38ccea00d17fe35 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/cloudscale_ch/cloud/plugins/modules/server_group.py | ce68a6bcdeeb1be48c536fd6592cbd6dac7f9382 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 4,241 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2019, René Moser <mail@renemoser.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
---
module: server_g... | [
"sifang@cisco.com"
] | sifang@cisco.com |
dfeed478a0ba3d78ed18820bc893a7854be0d037 | 87278e84fb4cd4b8dedd4a42cf3a51d48e749ec4 | /ch11/findall1.py | 78647c0739f421f77730c7b484524a8eb6d5d006 | [] | no_license | dykim822/Python | 083a6fb9be51e6cb3725a73ea8184f813f572abc | f6bd67d14e3a3a16934650cff6234e9cbad9ebce | refs/heads/main | 2023-07-09T23:50:05.059533 | 2021-07-28T05:07:35 | 2021-07-28T05:07:35 | 369,375,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | import re
match1 = re.findall('[0-9]', ' 1234') # findall 모든 문자 확인
print(match1)
match1 = re.findall('\s[0-9]', ' 1234') # \s 첫글자가 공란
print(match1)
match1 = re.search('[0-9]', ' 1234') # match는 첫번째 글자 확인
print(match1) | [
"dykim822@gmail.com"
] | dykim822@gmail.com |
4b1eb2a9839f0bc71f07b4f2671320c5b7184044 | bd55c7d73a95caed5f47b0031264ec05fd6ff60a | /apps/core/migrations/0027_auto_20180609_1100.py | 73a5cbc1c8a09ce2cd89c76ee508f42436010ea0 | [] | no_license | phonehtetpaing/ebdjango | 3c8610e2d96318aff3b1db89480b2f298ad91b57 | 1b77d7662ec2bce9a6377690082a656c8e46608c | refs/heads/main | 2023-06-26T13:14:55.319687 | 2021-07-21T06:04:58 | 2021-07-21T06:04:58 | 381,564,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,373 | py | # Generated by Django 2.0.5 on 2018-06-09 02:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0026_auto_20180609_1038'),
]
operations = [
migrations.CreateModel(
name='VendorEventSe... | [
"phonehtetpaing1221@gmail.com"
] | phonehtetpaing1221@gmail.com |
4f98ac5e7df773be7358e84dce7c4f459007f5ff | e2e1732b6eb1a7a6dfeba76762851ad06eb8e482 | /wangban/wangban/spiders/selecrawlers/selecommander.py | 8a0453a4f7a5a24a1d3c8ce9a7d5aab37f26f86f | [] | no_license | nightqiuhua/bigCrawlers | 551e80d55df492c89ae0e0e0bd70c0e5f873068d | 19b86130c8af057d06014865d150e3d2ed6cc319 | refs/heads/main | 2023-03-23T01:13:26.021850 | 2021-03-03T15:09:28 | 2021-03-03T15:09:28 | 344,165,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,733 | py | # -*- coding: utf-8 -*-
import os
import time
import re
import time
import json
from wangban_utils.mongo_util import MongodbClass
from wangban_utils.mysql_util import MySqlDBClass
from selenium.common.exceptions import UnexpectedAlertPresentException
from selenium.common.exceptions import NoAlertPresentException
from w... | [
"1320551630@qq.com"
] | 1320551630@qq.com |
095109328be0865df86907682c2b5018d6e3f8a2 | 37ca4e22b376193a16fbf0f6140262f1318ca73f | /openapi_client/model/inline_response2006.py | 01ba209696df641c7101182f45cf9e98e8578ee2 | [] | no_license | garethpaul/tmp-twilio-oai-python | de07b7d8e9234a6d6be1e8406afd7ab5e2be4fb4 | 4ae86d8b41fd8d03930d921284f30600290a1d39 | refs/heads/master | 2023-02-26T18:10:55.351844 | 2021-01-29T00:33:30 | 2021-01-29T00:33:30 | 333,993,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,257 | py | """
Twilio - Api
This is the public Twilio REST API. # noqa: E501
The version of the OpenAPI document: 1.8.0
Contact: support@twilio.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
import nulltype # noqa: F401
from openapi_client.model_ut... | [
"gareth@garethpaul.com"
] | gareth@garethpaul.com |
8ea056e89d91ca1179dcefd67ff5980681224ffb | 446d9c9e98bac9bb7d6ba9d6f2639fd1ab0e68af | /pythonBook/chapter07/exercise7-11.py | 7b56a91556b954028aedbaff335d986266f8c8bb | [] | no_license | thiagofb84jp/python-exercises | 062d85f4f95332549acd42bf98de2b20afda5239 | 88ad7365a0f051021034ac6f0683b3df2de57cdb | refs/heads/main | 2023-07-19T21:15:08.689041 | 2021-08-17T10:59:09 | 2021-08-17T10:59:09 | 308,311,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | # 7.11. Jogo da forca utilizando lista de strings para desenhar boneco da forca
palavras = ["casa", "bola", "mangueira", "uva", "quiabo", "computador",
"cobra", "lentilha", "arroz"]
indice = int(input("Digite um número: "))
palavra = palavras[(indice * 776) % len(palavras)]
for x in range(100):
print... | [
"thiagofb84jp@gmail.com"
] | thiagofb84jp@gmail.com |
5c3cd8ad47b46a000dbb5da79b49de3fc8d4f40c | 0cdcee391e178092d7073734957075c72681f037 | /hackerrank/si/si-finding-frequency.py | fd7b5d044d2333049511cc5159fc814aaea62281 | [] | no_license | hrishikeshtak/Coding_Practises_Solutions | 6b483bbf19d5365e18f4ea1134aa633ff347a1c1 | 86875d7436a78420591a60b716acd2780287b4a8 | refs/heads/master | 2022-10-06T18:44:56.992451 | 2022-09-25T03:29:03 | 2022-09-25T03:29:03 | 125,744,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | #!/usr/bin/python3
# Quick Sort + Binary Search => O(NlogN + QlogN)
def partition(arr, lo, hi):
pivot = arr[hi-1]
i = lo - 1
for j in range(lo, hi-1):
if arr[j] <= pivot:
i += 1
arr[i], arr[j] = arr[j], arr[i]
arr[i+1], arr[hi-1] = arr[hi-1], arr[i+1]
return i+1
... | [
"hrishikesh.tak@oneconvergence.com"
] | hrishikesh.tak@oneconvergence.com |
78ad07c06308d98770e27a8af86b6748553e3938 | 4b80b53d42cf3c303a58d6234291aaf5a8bc7a4f | /examples/webcam/webcam.py | dba875abb57bae78263cbc399a5fdd8ae8a32869 | [
"BSD-3-Clause"
] | permissive | caboteria/aiortc | 8ea9e869cbc7bc9ef677e4e2f5bf30bc94d259f3 | f85f7133435b54ce9de5f2f391c0c0ef0014e820 | refs/heads/master | 2020-09-12T19:37:07.477686 | 2019-11-04T14:50:47 | 2019-11-04T14:50:47 | 222,529,347 | 3 | 0 | BSD-3-Clause | 2019-11-18T19:38:13 | 2019-11-18T19:38:12 | null | UTF-8 | Python | false | false | 3,137 | py | import argparse
import asyncio
import json
import logging
import os
import platform
import ssl
from aiohttp import web
from aiortc import RTCPeerConnection, RTCSessionDescription
from aiortc.contrib.media import MediaPlayer
ROOT = os.path.dirname(__file__)
async def index(request):
content = open(os.path.join(... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
10eb48208a23e05214dce95000fdaa72926fe379 | 858ccfa59703f5c6b822c0a88d72ac84610f6353 | /Day 6/exercise.py | a89cb1cfb0151fde47f367a63432eca3810dd577 | [] | no_license | purusottam234/Python-Class | 7db8d6084bc2271c00bd0bb88e70768fb86fcc3e | df09421e3a1a110ef592b0e0c971ca824854a4d8 | refs/heads/main | 2023-05-09T07:35:51.931483 | 2021-06-05T15:45:56 | 2021-06-05T15:45:56 | 364,840,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # 1. program to determine the first power of 7 greater than 1000
product = 7
while product <= 1000:
product = product * 7
print(product)
# 2.Use the range function and a for statement to calculate the total of the integer from 0 to 1000000
total = 0
for number in range(1000001):
total += number
print(total)
# ... | [
"purusottamadhikari234@gmail.com"
] | purusottamadhikari234@gmail.com |
7c7968948bbb512805492e446d8cc02e2418e385 | d257ddf7e6959d0989d76080a8a048e82393657f | /002_TemplateMatching/001_template_match_provided.py | 2ee8a6ec9e5ed11e52303834c1d83472c132e0c5 | [
"MIT"
] | permissive | remichartier/027_selfDrivingCarND_ObjectDetectionExercises | d210f37b7baf306dd034c09f62e125b263f8270d | ccd853c975d35df5f31e1a445a1a8757b8bd13f5 | refs/heads/main | 2023-04-17T08:09:55.465143 | 2021-05-03T07:11:16 | 2021-05-03T07:11:16 | 362,013,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | import numpy as np
import cv2
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
image = mpimg.imread('bbox-example-image.jpg')
#image = mpimg.imread('temp-matching-example-2.jpg')
templist = ['cutout1.jpg', 'cutout2.jpg', 'cutout3.jpg',
'cutout4.jpg', 'cutout5.jpg', 'cutout6.jpg']
# Here is... | [
"remipr.chartier@gmail.com"
] | remipr.chartier@gmail.com |
2e3b493d91df12e0a3baa4ceaf9e41d9bfec86ea | e8f99a162207cba82d4e0f969d7bcdb2b9d8b522 | /dev_demo/tmp_file_demo2.py | 39d04c5233f6ba6a8a18ad7a744ff59847bfbcf3 | [] | no_license | TesterCC/Python3Scripts | edb5446278ebf13edb64336001081941ca27d67d | 58be67e1ffc74ef50289a885aa4ad05f58e2c383 | refs/heads/master | 2023-08-30T21:16:38.328045 | 2023-08-17T11:23:08 | 2023-08-17T11:23:08 | 93,401,996 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # -*- coding: utf-8 -*-
# @Time : 2022/8/28
# @Author : SecCodeCat
# 创建临时文件
import tempfile
'''
http://t.zoukankan.com/liuhui0308-p-12464003.html
https://blog.csdn.net/weixin_37926734/article/details/123563067
https://docs.python.org/zh-tw/dev/library/tempfile.html
'''
# fp = tempfile.TemporaryFile()
# print(fp.... | [
"testerlyx@foxmail.com"
] | testerlyx@foxmail.com |
80d9c3ff54ab696e355e64cbd68bbafd5b1c6aeb | 08353419541e9f3be586a7e575585a55c98b976b | /src/pythonfinder/__init__.py | 25fd2ed74524c8053dee4975d7dac772f70b6875 | [
"MIT"
] | permissive | immerrr/pythonfinder | df9a923644c2fb5f91115aa54d2e12b5d50bff99 | f072cf19cfebff73229a19e24bfffd378716d742 | refs/heads/master | 2020-04-01T00:56:27.668668 | 2018-10-11T09:45:12 | 2018-10-11T09:45:12 | 152,719,560 | 0 | 0 | MIT | 2018-10-12T08:35:20 | 2018-10-12T08:35:20 | null | UTF-8 | Python | false | false | 284 | py | from __future__ import print_function, absolute_import
__version__ = '1.1.1.dev0'
__all__ = ["Finder", "WindowsFinder", "SystemPath", "InvalidPythonVersion"]
from .pythonfinder import Finder
from .models import SystemPath, WindowsFinder
from .exceptions import InvalidPythonVersion
| [
"dan@danryan.co"
] | dan@danryan.co |
80c4495cf6e71d58bc92bfe8640a7d25193c3d2a | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_4_neat/16_0_4_coolbouy_codejam4.py | 3d006c88b9ccd44321ca82d0760a06418d9ad546 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 302 | py | # your code goes here
import sys
T=int(input())
num=T
for k in range(0,num):
K,C,S = map(int,sys.stdin.readline().split())
print("Case #",end="")
print(k+1,end=": ")
for i in range(0,K,1):
if i!=K-1:
temp=i*pow(K,C-1)+1
print(temp,end=" ")
else:
temp=i*pow(K,C-1)+1
print(temp)
| [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
716723e46591c1620beeabe94cce5492e920b866 | 651a296c8f45b5799781fd78a6b5329effe702a0 | /legendre_product_polynomial/polynomial_sort.py | 1ec578df1da3c92db966c42cc5e401a2b22fa2e5 | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | #!/usr/bin/env python
def polynomial_sort ( o, c, e ):
#*****************************************************************************80
#
## POLYNOMIAL_SORT sorts the information in a polynomial.
#
# Discussion:
#
# The coefficients C and exponents E are rearranged so that
# the elements of E are in ascending... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
acda951565a8ca9395ca49144cb5fab259a066b7 | f68afe06e4bbf3d523584852063e767e53441b2b | /Toontown/toontown/hood/BossbotHQAI.py | 3b10ecb5ff983612b9311f78f57786a5d65e665e | [] | no_license | DankMickey/Toontown-Offline-Squirting-Flower-Modded- | eb18908e7a35a5f7fc95871814207858b94e2600 | 384754c6d97950468bb62ddd8961c564097673a9 | refs/heads/master | 2021-01-19T17:53:36.591832 | 2017-01-15T02:00:04 | 2017-01-15T02:00:04 | 34,639,744 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | from toontown.building import DistributedBBElevatorAI
from toontown.building import FADoorCodes
from toontown.building.DistributedBoardingPartyAI import DistributedBoardingPartyAI
from toontown.coghq import DistributedCogKartAI
from toontown.hood import CogHQAI
from toontown.suit import DistributedBossbotBossAI
from to... | [
"jareddarty96@gmail.com"
] | jareddarty96@gmail.com |
26a8369da37cc8e23ab8a102609a8d5ead3ac030 | bcf0e03ebd7e55588dcf48ab5d990534f8d9ab0c | /Hackerrank/Archive 2019/ginortS.py | ad58d6a3130006607742eb1cc5781973998896a6 | [] | no_license | nsky80/competitive_programming | 731321aaf42d9ae546f1d13bbb05215a1fbcfe45 | 9b0c0ffccf092d4d4bbf50cac1746f44dd977d57 | refs/heads/master | 2022-02-06T11:58:44.313635 | 2022-01-30T09:20:15 | 2022-01-30T09:20:15 | 199,516,791 | 1 | 2 | null | 2022-01-30T09:20:16 | 2019-07-29T19:43:17 | Python | UTF-8 | Python | false | false | 558 | py | # Sample Input
#
# Sorting1234
# Sample Output
#
# ginortS1324
import re
if __name__ == "__main__":
b = input()
n = list(map(int, re.findall(r'[0-9]', b)))
even_lst = []
odd_lst = []
for j in n:
if j % 2 == 0:
even_lst.append(j)
else:
odd_lst.append(j)
s... | [
"satishkumary80@gmail.com"
] | satishkumary80@gmail.com |
b871e309663b4f943adca7c9fa274a8c90a9a1d6 | c4a0669126f2fbf757ac3b33a8279ef32305bbd7 | /Data Project/Notes/Packages/Animals/Mammals.py | 53b40dc655716ea125ebbfceeb31e9faf7a428dd | [] | no_license | ezeutno/PycharmProject | 822b5a7da05729c5241a03b7413548a34b12e4a5 | bdb87599885287d2d7cd5cd703b62197563722b8 | refs/heads/master | 2021-07-18T20:55:08.605486 | 2017-10-24T03:14:10 | 2017-10-24T03:14:10 | 105,782,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | def printMammal():
print('I am a Mammal') | [
"ivan.suratno@gmail.com"
] | ivan.suratno@gmail.com |
37798f2901a1126fcf537c806d09590b0e0ad4ec | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/2944123/snippet.py | 66b8345386111bdad2c832d22d7126998d38f57a | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 236 | py | # http://www.linuxhomenetworking.com/forums/showthread.php/1095-Linux-console-Colors-And-Other-Trick-s
def printWarning(input):
print("\033[31m%s\033[0m" % input)
def funkyprint(input):
print("\033[36m%s\033[0m" % input)
| [
"gistshub@gmail.com"
] | gistshub@gmail.com |
ae13497b779a93386ca0521a3559b59ac08c34dd | 6580ba5d135c4f33f1a0996953ba2a65f7458a14 | /applications/ji164/models/fdproduct0detail.py | e5f4defa77c1af088148b38abd895677142b86db | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | ali96343/facew2p | 02b038d3853691264a49de3409de21c8a33544b8 | a3881b149045e9caac344402c8fc4e62edadb42f | refs/heads/master | 2021-06-10T17:52:22.200508 | 2021-05-10T23:11:30 | 2021-05-10T23:11:30 | 185,795,614 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,651 | py | #
# table for controller: product_detail
#
from gluon.contrib.populate import populate
db.define_table('dproduct0detail',
Field('f0', label='key', writable = True , length= 1000),
Field('f1', 'text', label='data string', length= 1000),
Field('f2', 'text', label='save data string', length= 1000, defa... | [
"ab96343@gmail.com"
] | ab96343@gmail.com |
1f6b0db4d2ed04dd37abbe540807efd13d8e76bb | cb324391aa08aea41faeff9ae58f9ad81ef5ac30 | /ssseg/cfgs/ocrnet/cfgs_ade20k_hrnetv2w18s.py | 8d42127b4a14a73294e44d227751ca32c3c505a7 | [
"MIT"
] | permissive | suyanzhou626/sssegmentation | 841205baf6b1edb0f94c91fe347550886c3aea49 | 55084161c216e9c8c0a7bb1d154200ab81eb2522 | refs/heads/main | 2023-08-15T06:35:41.836575 | 2021-09-14T01:33:50 | 2021-09-14T01:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | '''define the config file for ade20k and hrnetv2w-18-small'''
from .base_cfg import *
# modify dataset config
DATASET_CFG = DATASET_CFG.copy()
DATASET_CFG['train'].update(
{
'type': 'ade20k',
'rootdir': 'data/ADE20k',
}
)
DATASET_CFG['test'].update(
{
'type': 'ade20k',
'roo... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
86d2ce44f553a827461a97282430593362029aea | 0049d7959ff872e2ddf6ea3ce83b6c26512425a6 | /django_demo_applications/djangoprojectsot/blog_project/blog/migrations/0002_comment.py | c5696599e3d51a93da698aeed82aa74f6c965f53 | [] | no_license | srazor09/Django_projects | 9806ab25d966af780cdabe652a1792220c7806a8 | 8d664ba4c9478bd93c8e5bcbcaf594e8ffe6ce93 | refs/heads/master | 2023-04-18T02:13:15.993393 | 2021-05-04T20:34:05 | 2021-05-04T20:34:05 | 364,379,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-11-05 15:48
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations =... | [
"sourabhaws09@gmail.com"
] | sourabhaws09@gmail.com |
0dbb943458f2c86fae6f65b0ea378179e0299942 | c5200b0cab496328cb5e37f2b3a51d5536ae3458 | /CRUD_App/models.py | 4f6d8deaa62dbe513d37f0aa7bcfbf58580e7e62 | [] | no_license | Touhid7051/Toll-system-Django | b426047719f077cd1534d5a4d12abdc271ba1c6d | d5fbbc1af6e245f3814b95a1a2c5fa44ef5e1260 | refs/heads/main | 2023-01-25T04:19:02.453007 | 2020-12-07T11:37:47 | 2020-12-07T11:37:47 | 315,890,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
class Student_Admission(models.Model):
name = models.CharField(max_length=200)
father_name = models.CharField(max_length=200)
mother_name = models.CharField(max_length=200)
number = models.IntegerField(... | [
"touhidul15-7051@diu.edu.bd"
] | touhidul15-7051@diu.edu.bd |
f56064abeee2161d2d22b4585280c087ffce1296 | 822d3cd484b54f0531fc205520c765a8321c0613 | /pyFile/16/rabbitmq/2一对多默认交换/消费者.py | 427ca4fbba7d68155fc35c5bf5cb55bbfaaec3a0 | [] | no_license | mghxy123/learnPython | 31d1cc18deeed5a89864ca0333fe488e0dbf08b4 | 00740e87d55a4dffd78773deaff8689485df31e8 | refs/heads/master | 2021-07-21T14:31:02.421788 | 2020-06-27T11:28:01 | 2020-06-27T11:28:01 | 187,751,182 | 0 | 0 | null | 2020-06-07T05:14:05 | 2019-05-21T02:58:35 | Python | UTF-8 | Python | false | false | 1,236 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File : 消费者.py
# Author: HuXianyong
# Date : 2019/7/28 15:07
import pika
queue_name = 'hello'
params = pika.URLParameters('amqp://hxy:hxy@192.168.18.181:5672/test')
connection = pika.BlockingConnection(params)
channel = connection.channel()
# 队列声明
channel.queue_decl... | [
"mghxy123@163.com"
] | mghxy123@163.com |
2ec3264972ba16783b405b5a1c54edbefc7bed13 | cdc1705a813eeb17f8f17caff1aeb5b6a6f5e686 | /project/scanner/models.py | d55b823671fa19c5bcbf0a2fa42de49e8e185a31 | [
"MPL-2.0",
"BSD-3-Clause"
] | permissive | mozilla/minion-frontend-old | 13791dc7b0c6cf464a89fb44b002a7e84ff49929 | a9af49f7e7c130820056f9ca4977d59161e5211a | refs/heads/master | 2023-07-03T19:18:50.694581 | 2013-01-31T00:05:23 | 2013-01-31T00:05:23 | 7,925,548 | 0 | 1 | BSD-3-Clause | 2022-01-18T18:55:42 | 2013-01-30T22:43:10 | JavaScript | UTF-8 | Python | false | false | 548 | py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from django.contrib.auth.models import User
from django.db import models
class Scan(models.Model):
scan_id = models... | [
"stefan@arentz.ca"
] | stefan@arentz.ca |
11092818351d13c04af03ec8b765666ea7587db3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/420/usersdata/314/88743/submittedfiles/exe11.py | a8131def3845324b6d19c1007b1e118b03b47fa0 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # -*- coding: utf-8 -*-
n=8
soma=0
n=int(input('Digite um numero com 8 digitos: '))
while(t==8):
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
76b12f773db2d2363e82999e4bf1956601dd6424 | 27545601844006324ba9126089389fe2cd6aa742 | /Liushui/garbage/analysis.py | 08fd81d7d2f0d56e9c7a318d945d9ac07d736bae | [] | no_license | AllenLiuX/Aitai-Bill-Analysis-with-NN | 8e6d7aef5b6bd43b620c95b7e13db44a634fcdb9 | e69198ed4ce30033481f28fd948dd42780d8c75a | refs/heads/master | 2023-03-13T19:52:07.244617 | 2021-03-01T15:54:38 | 2021-03-01T15:54:38 | 307,239,057 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,694 | py | # -- coding:UTF-8 --
import pandas as pd
import numpy as np
import time
import Modules.mongodb as mongo
import Modules.public_module as md
class Analyzer:
def __init__(self, name):
self.name = name
self.company_name = ''
self.file_paths = []
self.dates = []
self.self_account... | [
"13120200491@163.com"
] | 13120200491@163.com |
12d1d66a6c71abe3a1b39f8ed964b38b52784cc2 | 88a5d63f9e4843f6a607d8f9f3d95a9972e91253 | /rhos_bootstrap/distribution.py | 07e498ac7eb99ae00ed76bba86a32a2fe335c31a | [
"Apache-2.0"
] | permissive | strider/rhos-bootstrap | a416964cfb5ddc06dd1922406726fed92a180cba | ef3dd6b6ca102219e991acecc6b8476404deb323 | refs/heads/main | 2023-03-30T05:36:01.295870 | 2021-03-31T20:40:49 | 2021-03-31T20:40:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,872 | py | # Copyright 2020 Red Hat, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"aschultz@redhat.com"
] | aschultz@redhat.com |
ffd1407a0f604f8cb4df10becc9e15b94189fb82 | 19b0bae543c1effc1bca1605aefe41f4903ed401 | /python/l1TRun3Ntuplizer_cfi.py | 3b9450f6004c19b729f057a7c955c9acc0147cfb | [] | no_license | skkwan/boostedTauRun3Ntuplizer | 2bd88b3a943509c1cccc5b93ad2d968e34f33b3a | d7bb8445b6847aaa2a0f17e9c432e91b066f8a08 | refs/heads/main | 2023-03-14T09:14:22.748535 | 2021-03-04T21:38:08 | 2021-03-04T21:38:08 | 344,615,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | import FWCore.ParameterSet.Config as cms
l1NtupleProducer = cms.EDAnalyzer("Run3Ntuplizer",
ecalDigis = cms.InputTag( 'l1tCaloLayer1Digis'),
hcalDigis = cms.InputTag( 'l1tCaloLayer1Digis'),
... | [
"ojalvo@wisc.edu"
] | ojalvo@wisc.edu |
cb7cdcc214b82450770ba2d1d88182e1fdbc1783 | a8494a11352d221d6cf2108bf3fb1eca6e42c6ec | /source/samples/lex-lambdas/pizza_order/test_pizza_order_handler.py | e90a32d38c49bd865e6d5e2cc2f46e6e6042d67e | [
"Apache-2.0",
"ISC",
"MIT",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kevinschwarz/serverless-bot-framework | c5fbbe0805d55d3a8e2f17fb1a83adf103c1852e | 4b063418ed60a7d3ea7d8f81ed8cd040c43123c7 | refs/heads/main | 2023-04-20T16:54:50.937023 | 2021-05-12T13:27:55 | 2021-05-12T13:27:55 | 366,723,404 | 0 | 0 | NOASSERTION | 2021-05-12T13:22:56 | 2021-05-12T13:22:56 | null | UTF-8 | Python | false | false | 9,620 | py | ######################################################################################################################
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# ... | [
"ssdzd@amazon.com"
] | ssdzd@amazon.com |
48389b6fdbf2094b93689fa804fe01a7d8ab1541 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/joblib/externals/cloudpickle/compat.py | 5c9b64fa44e2b5c465aaace68f869fedec8d04c4 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import sys
if sys.version_info < (3, 8):
try:
import pickle5 as pickle # noqa: F401
from pickle5 import Pickler # noqa: F401
except ImportError:
import pickle # noqa: F401
from pickle import _Pickler as Pickler # noqa: F401
else:
import pickle # noqa: F401
... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
18f50591e6581dce17758291e3886582688d69b8 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-8656.py | 9c2792f6c49f56f54f694eded678bef843115df5 | [] | 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,751 | 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 |
7301a96c2656ea14b65a7f7512ff81e1ffb811d8 | 92d8923498758abe2bca693bbffb9ea513bc921d | /startup-flask.py | 74e26f6146ebb183d6f2272ebdcd2da92eebea1d | [] | no_license | ayseth/startup-google | 8fc1953abcd24e24e13c228adeafcfc43dc7177f | d0dc39df472c2545121d5e3493ba4bcf6c5d1745 | refs/heads/master | 2020-04-09T02:35:24.458821 | 2018-12-01T13:20:52 | 2018-12-01T13:20:52 | 159,946,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,036 | py | from flask import Flask, render_template, request, redirect, url_for, flash, jsonify
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from startup_setup import Startup, Base, Founder, User
from flask import session as login_session
import random
import string
from oauth2client.cli... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
589542efedef49898e64d4db77cf1f9299ac88b1 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/abc/159f_2.py | 049a6b840d367d62419a04a1c193478f8eb82049 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import numpy as np
N, S = map(int, input().split())
A = list(map(int, input().split()))
MOD = 998244353
ans = 0
dp = np.zeros(S + 1, dtype=np.int64)
for a in A:
dp[0] += 1
dp[a:] += dp[: -a].copy()
dp %= MOD
ans += dp[S]
print(ans % MOD)
| [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
faecb62da3b6501321d2d5f7f697bfab19b9eac1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02632/s582472876.py | 7e39caf5135fbed12b3d6f7935c28c146a39507d | [] | 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 | 481 | py | from sys import stdin
input = stdin.readline
def nCr(n,r):
return fact[n]*(inv[n-r]%M)*(inv[r]%M)
M = 1000000007
k = int(input())
s = len(input().strip())
t = k+s
fact = [1]
p25 = [1]
for i in range(1,t+1):
fact += [(fact[-1] * i)%M]
if i<=k:
p25 += [(p25[-1] * 25) % M]
inv = [1]*(t+1)
inv[t] = po... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d10d4cb19fb71334d599eb552493f71b6dfcfe64 | 1714aec212ce8132239dd94d47f1b5dee6986d2b | /nutrition/handlers/base.py | 4ec694f354a11914916a6824695dd95d54f95a12 | [
"BSD-3-Clause"
] | permissive | caktus/rapidsms-nutrition | 7030c45638f1931ff60f5ad8ea439fe48948bc30 | b8cbce5bf0a8d9b0f725bf0ec4d7a8e46e5f5be5 | refs/heads/master | 2020-06-04T05:57:10.561254 | 2013-04-03T13:43:17 | 2013-04-04T08:33:08 | 8,168,464 | 2 | 1 | null | 2013-04-04T13:54:39 | 2013-02-12T22:07:20 | Python | UTF-8 | Python | false | false | 3,498 | py | from __future__ import unicode_literals
import logging
import re
from django.utils.translation import ugettext_lazy as _
__all__ = ['NutritionHandlerBase']
logger = logging.getLogger(__name__)
class NutritionHandlerBase(object):
prefix = 'nutrition' # Common prefix for all Nutrition messages.
keyword = ... | [
"rebecca@caktusgroup.com"
] | rebecca@caktusgroup.com |
8bf454ff2505eacbbc560edcb0a50c187edc4223 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /load_balancer_fuzzer_mcs/interreplay_51_l_5/replay_config.py | 0fe6e986e1ae1294d9acaed7ea131f16807b2ac6 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import Replayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./pox.... | [
"jefflai2@gmail.com"
] | jefflai2@gmail.com |
2ed0662fb580440d9985f67a8cf23f795d1d85a2 | 5a5e0a01efa6ef0961992e53bb4f64840f93150b | /RegressionVisualizer/RegressionVisualizer/settings.py | 760cbb64ec65faed0bc8c07e525ddb8b3182923f | [] | no_license | scotteskridge/RegressionApp | ed059e3205ab54061129779404345b55c0dee75c | 68932a9c94235a1e8bd6cd71a765b545f2266189 | refs/heads/master | 2021-01-19T20:48:13.495541 | 2017-04-25T02:39:49 | 2017-04-25T02:39:56 | 88,555,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,330 | py | """
Django settings for RegressionVisualizer project.
Generated by 'django-admin startproject' using Django 1.10.6.
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/
"... | [
"scott.eskridge@gmail.com"
] | scott.eskridge@gmail.com |
2ae3d9db09e1f7591f0c08d8fc03e8fc17f6af93 | c386fd8f8377990f13c8059154eb9ef473534355 | /scripts/srl_parse.py | 27e62e85d3f08aa34e2bdcaa719f63d391fc9f2c | [] | no_license | KOPFYF/SatiricalNews | 9ef9601821b872cc69b8319910cba1e99f778270 | 374ae8cc4a1df936f8f950c33cb694bb42c5f2e9 | refs/heads/master | 2021-07-12T04:05:56.733080 | 2020-06-27T03:48:08 | 2020-06-27T03:48:08 | 148,247,657 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,662 | py | import os
import time
import re
import spacy
nlp = spacy.load('en_core_web_sm')
from graph import *
from allennlp.predictors import Predictor
import data_utilities as du
import arg_parser as ap
import collections
import argparse
import utilities as util
import pdb
from pickle import load, dump
if os.path.exists('.... | [
"fei8@purdue.edu"
] | fei8@purdue.edu |
5e61a9a88bbf2e849ca0a0168b0cd0c2b553b454 | 168ff01513ea134c7952db45259d24d5b8b78df6 | /virtual/lib/python3.6/site-packages/nose/plugins/attrib.py | 8ac9239d1c574b543faa0a0b623de362b1a3c6fc | [
"MIT"
] | permissive | OKC254/flask-blog | e06fc6b75182a766ef9895a77426dbd229cb6756 | 78dc43f6ba981822f17026b071db6aaf4680daad | refs/heads/master | 2022-10-08T13:30:39.448278 | 2019-06-03T07:15:47 | 2019-06-03T07:15:47 | 189,934,226 | 0 | 0 | MIT | 2022-09-16T18:02:05 | 2019-06-03T04:28:18 | Python | UTF-8 | Python | false | false | 9,666 | py | """Attribute selector plugin.
Oftentimes when testing you will want to select tests based on
criteria rather then simply by filename. For example, you might want
to run all tests except for the slow ones. You can do this with the
Attribute selector plugin by setting attributes on your test methods.
Here is an example:... | [
"oscarkiplimo@gmail.com"
] | oscarkiplimo@gmail.com |
ffbc2549ab313f9a12e700c6a5e08d7cd3342fc4 | fa380310206f7e0c015be610dd9f74f7ba62e8f9 | /day2/part2.py | e358436c06caa6a400dee3ff4084cecc5d3f9b12 | [
"MIT"
] | permissive | sharkbound/advent_of_code_2016 | 71c666ce6f7e7e816dbb6e76795650ecd9f1cb48 | e655974b2dea422af4ec1debad296ee6c22d690a | refs/heads/master | 2020-12-05T03:12:53.883458 | 2020-01-13T01:24:25 | 2020-01-13T01:24:25 | 231,993,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | import numpy as np
from read import read_lines
move_offsets = {
'L': (-1, 0),
'R': (1, 0),
'U': (0, -1),
'D': (0, 1),
}
keys = np.array([
list(' 1 '),
list(' 234 '),
list('56789'),
list(' ABC '),
list(' D '),
])
def is_valid(x, y):
return all(i in range(5) for i in (x, y... | [
"laptopblaster@gmail.com"
] | laptopblaster@gmail.com |
7d1fab8330262b4f73ac33d7b013f395a6508bee | 3312b5066954cbf96c79ef3e1f3d582b31ebc5ae | /colegend/academy/models.py | 54bd2e62cf15f774ccb6431e331552ad3aa95654 | [] | no_license | Eraldo/colegend | d3f3c2c37f3bade7a3a1e10d307d49db225fe7f5 | 2e7b9d27887d7663b8d0d1930c2397c98e9fa1fc | refs/heads/master | 2021-01-16T23:32:09.245967 | 2020-10-07T12:12:14 | 2020-10-07T12:12:14 | 21,119,074 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,199 | py | from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from django.db.models import Avg, Q
from django.db.models.signals import post_save, post_delete
from django.dispatch import receiver
from django.shortcuts import redirect
from wagtail.core.models import Page
from coleg... | [
"eraldo@eraldo.org"
] | eraldo@eraldo.org |
978437ad52f35204f05cb980483e1e9362d2b42e | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /tf3d/losses/classification_losses.py | 1e03f0309003580e6e82678834664cd02cbaca90 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 26,394 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
306b962664a9d20947605344247f11e3ae9b082a | 674f5dde693f1a60e4480e5b66fba8f24a9cb95d | /armulator/armv6/opcodes/concrete/orn_immediate_t1.py | 106ef9da7793ef683dc7f799764d54ac9acacd72 | [
"MIT"
] | permissive | matan1008/armulator | 75211c18ebc9cd9d33a02890e76fc649483c3aad | 44f4275ab1cafff3cf7a1b760bff7f139dfffb07 | refs/heads/master | 2023-08-17T14:40:52.793120 | 2023-08-08T04:57:02 | 2023-08-08T04:57:02 | 91,716,042 | 29 | 7 | MIT | 2023-08-08T04:55:59 | 2017-05-18T16:37:55 | Python | UTF-8 | Python | false | false | 804 | py | from armulator.armv6.bits_ops import substring, bit_at, chain
from armulator.armv6.opcodes.abstract_opcodes.orn_immediate import OrnImmediate
from armulator.armv6.shift import thumb_expand_imm_c
class OrnImmediateT1(OrnImmediate):
@staticmethod
def from_bitarray(instr, processor):
imm8 = substring(ins... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
f68283bb9341a87ddbd9066b3c3b1132379fc85c | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/lobby/boosters/BoostersPanelComponent.py | 0af565b33b7e60018dbab49813b2dd2d499360f8 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,913 | py | # 2017.08.29 21:46:41 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/boosters/BoostersPanelComponent.py
from gui.ClientUpdateManager import g_clientUpdateManager
from gui.Scaleform.daapi.view.meta.SlotsPanelMeta import SlotsPanelMeta
from gui.Scaleform.genConsts.BOOSTER_C... | [
"info@webium.sk"
] | info@webium.sk |
b906c1f40751b8ff47c98535098a44742864a010 | fd625e2ea155455c96261c8656a51be22fe420c8 | /Python/euler020.py | c7a2ebd25c8bf108eaf07104c5248867c84a68d6 | [
"MIT"
] | permissive | AnuragAnalog/project_euler | 9b84a6aa0061ad4582c8d0059c3c1eaddd844fd2 | 8babbefbd5b7008ad24509f24a9d5f50ba208f45 | refs/heads/master | 2021-12-12T12:07:29.338791 | 2021-11-01T04:26:44 | 2021-11-01T04:26:44 | 210,749,964 | 6 | 16 | MIT | 2021-11-01T04:26:45 | 2019-09-25T03:44:37 | Python | UTF-8 | Python | false | false | 519 | py | #!/usr/bin/python3
"""
n! means n × (n − 1) × ... × 3 × 2 × 1
For example, 10! = 10 × 9 × ... × 3 × 2 × 1 = 3628800,
and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.
Find the sum of the digits in the number 100!
"""
def factorial(n: int) -> int:
if n == 1:
return 1
el... | [
"anurag.peddi1998@gmail.com"
] | anurag.peddi1998@gmail.com |
07bb350fe43a82cdc4351cf6d1f6b7437852dd81 | 44a8159afa9a26b30c07771fa8a6fbee9b1a1c5d | /src/manage.py | 1965ab128b3dd0545989dd53f099ae54d7cfda76 | [] | no_license | ionescuig/taxi-fares | 27aee078e531555078dd8548ac7035d2b1d20194 | 317b06a2ffb85eb8e488bb04d06579166559b62b | refs/heads/master | 2020-04-06T20:31:39.179112 | 2019-06-11T15:36:32 | 2019-06-11T15:36:32 | 157,760,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "fares.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"ionescuig@yahoo.com"
] | ionescuig@yahoo.com |
1a02f71bb63f32d51a0da5cc51f580f610b2c315 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /hPaBJ7KJZ8fZtjJgL_0.py | 0c9342e275cdefa6e408278bec1c2b60c1f2d484 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | """
Write a function that takes an integer and returns a string with the given
number of `"a"`s in Edabit.
### Examples
how_many_times(5) ➞ "Edaaaaabit"
how_many_times(0) ➞ "Edbit"
how_many_times(12) ➞ "Edaaaaaaaaaaaabit"
### Notes
* The string must start with "Ed" and end with "bit".
*... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5a28d2544c5264e815a06bdcb09331ba41cfba06 | 2ba6775c96a2c17de5949f7c0dc476548447f9fd | /flaskPet/management/__init__.py | da0dd1078b1b2c92a47c511d8f7e659ec848d658 | [] | no_license | reakain/flaskPet | d6f004058b8c92eb354760d8cad39ac3218a8287 | e41f2db382fc18bd0b5f84215df24856c125a237 | refs/heads/master | 2020-03-24T19:24:47.124669 | 2019-02-09T22:21:38 | 2019-02-09T22:21:38 | 142,924,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # -*- coding: utf-8 -*-
"""
flaskpet.management
~~~~~~~~~~~~~~~~~~
This module contains models, forms and views relevant
for managing FlaskPet
:copyright: (c) 2014 by the FlaskPet Team.
:license: BSD, see LICENSE for more details.
"""
import logging
# force plugins to be loaded
from . import ... | [
"reakain@users.noreply.github.com"
] | reakain@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.