blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1b45af41c9bb4a3ddf55e8aac6b235e7d8843cac | f5d2a1459c81eb23a745bd63f41ef980c41ea0a4 | /ZG-PhaseFour/code/controller/diffcontroller.py | 22365e714fd1d2fa625911ff9f88462b4fcaa379 | [] | no_license | ErBingBing/django-tonado-crawler | 6800bb0269e99e2454fb0a9079175ffe9d4d0a0b | db31b4cdf7ecc509f1a87aa325621943df825e98 | refs/heads/master | 2021-08-22T11:30:08.419583 | 2017-11-30T04:04:40 | 2017-11-30T04:04:40 | 112,562,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,508 | py | # -*- coding: utf-8 -*-
###################################################################################################
# @file: diffcontroller.py
# @author: Sun Xinghua
# @date: 2016/11/21 0:15
# @version: Ver0.0.0.100
# @note:
#####################################################################################... | [
"913702626@qq.com"
] | 913702626@qq.com |
8a1cc7180086b8e03033515e70b945d413b517ef | 7fe5f16fe49e71926c1dfc3a3b41e28741176f06 | /example.py | 4608fef3c68d41da1e74e4d68aeba516f6aac7ee | [] | no_license | codesharedot/augur-price | 5b7b315fed28a042bb32e0bf5059e96a263bf6f5 | 2fb9e29ba3eab108e09b5d95c5f390bedfd89530 | refs/heads/master | 2020-07-27T04:09:20.915412 | 2020-03-05T17:50:04 | 2020-03-05T17:50:04 | 208,862,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import requests
import json
from forex_python.converter import CurrencyRates
import os
c = CurrencyRates()
rate = c.get_rate('USD', 'EUR')
print(rate)
augur_api_url = 'https://api.coinmarketcap.com/v1/ticker/augur/'
response = requests.get(augur_api_url)
response_json = response.json()
print(response_json)
for coin... | [
"codeto@sent.com"
] | codeto@sent.com |
bc290340823ce97833d91f4123951f04075608e3 | a84e1a1aac96612b32ba5adcc49a4005c0c5129e | /tensorflow_probability/python/experimental/mcmc/__init__.py | 9bebbe5296b9f126968b664c8cafa86a5e6c0a37 | [
"Apache-2.0"
] | permissive | jedisom/probability | 4fc31473d691d242a3e88c179ae3a9c555a29bb6 | 6791e7ce1c2b0a9057a19a8ea697aeaf796d4da7 | refs/heads/master | 2022-04-23T00:21:46.097126 | 2020-04-22T20:03:04 | 2020-04-22T20:04:59 | 258,031,151 | 1 | 0 | Apache-2.0 | 2020-04-22T22:08:57 | 2020-04-22T22:08:56 | null | UTF-8 | Python | false | false | 3,073 | py | # Copyright 2018 The TensorFlow Probability 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 applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
492e20fa5f9a33cc62fcd94e23aae05134077702 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/mixedreality/list_object_anchors_account_keys.py | 477a8c32f1615fa9c02298fcbe21bb5a88e16df1 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 2,818 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | morrell.noreply@github.com |
55579935208423de76144450d6a979bb0a66cb9c | f856c993a34fa2fbb228369dd267909445fa69b5 | /vel/augmentations/to_tensor.py | d97ac0fb52984932b782019a024aec8100f5995f | [
"MIT"
] | permissive | cclauss/vel | 06fabeb75925ac2509162f12ac82fff3b8291720 | 78a6a20af80ff613898d2983c83fdb223634aaad | refs/heads/master | 2020-04-01T03:46:50.339279 | 2018-10-09T05:36:21 | 2018-10-09T05:36:21 | 152,836,186 | 0 | 0 | MIT | 2018-10-13T04:48:44 | 2018-10-13T04:48:44 | null | UTF-8 | Python | false | false | 436 | py | import numpy as np
import torchvision.transforms.functional as F
import vel.api.data as data
class ToTensor(data.Augmentation):
def __init__(self, mode='x', tags=None):
super().__init__(mode, tags)
def __call__(self, datum):
return F.to_tensor(datum)
def denormalize(self, datum):
... | [
"jerry@millionintegrals.com"
] | jerry@millionintegrals.com |
41cc274eb12a46f98a11e97f115641445f2a7322 | d0bdf444c71b724ecfd59b5bc6850962c56494cb | /labs/03-apply_vis/tests/q1_3.py | f28f5962b8a4bbc4dfe837cb9f86d0772094554c | [] | no_license | ucsd-ets/dsc10-su20-public | 10e3d0ff452b337f222baee330fe60d1465b0071 | 38787e6cc3e6210b4cc8a46350e5120845971c9f | refs/heads/master | 2022-12-13T23:28:20.512649 | 2020-09-03T19:28:06 | 2020-09-03T19:28:06 | 275,905,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | test = {
'hidden': False,
'name': '1.3',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> # Your answer should be a number
>>> type(mark_hurd_pay) != str
True
""",
'hidden': False,
'locked': False
},
... | [
"eldridgejm@gmail.com"
] | eldridgejm@gmail.com |
c12deb8dc47fab1d4779dededfad990fb6c4aaec | 85c82274a3888fa61795bb0600ab96eaf7665b6a | /UTS/D_letterTArray.py | 16e3541a8e3a1482da2c3cb3821ac21e8b71dafd | [] | no_license | refeed/StrukturDataA | 8e5a214569f41b19c05842d003ede5941800482a | 4d3b77bbd28158f1f1e64a49b8e90da731859407 | refs/heads/master | 2023-06-03T08:22:12.442536 | 2021-07-01T03:24:29 | 2021-07-01T03:24:29 | 360,478,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | '''
Letter T Array
Batas Run-time: 1 detik / test-case
Batas Memori: 32 MB
DESKRIPSI SOAL
Bayangkan sebuah tabung seperti gambar di atas. Tabung dengan tiga cabang dan
salah satunya menghadap ke atas. Kali ini kita akan bermain dengan sebuah array
yang bentuknya seperti di atas. Proses “Push” data baru seakan menjat... | [
"rafidteam@gmail.com"
] | rafidteam@gmail.com |
39870bafb24d8c96b9d084eed585673395b338de | e61717bebf8f7d3790b0e98d868ea4ce33f9cc59 | /TSIS10_upd/inserting many data.py | 56017b448f12644780c3f8749161a0b6f3557868 | [] | no_license | KanagatS/PP2 | 81672264b9720af8b15408c9d8228eb6da25378e | b53f5164d6fb753392870607d0506c5a3daaef88 | refs/heads/master | 2023-04-20T10:29:53.298342 | 2021-05-21T18:24:55 | 2021-05-21T18:24:55 | 334,276,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import psycopg2
con = psycopg2.connect(
host='localhost',
database='tsis',
user='postgres',
port=6666,
password=''
)
cur = con.cursor()
# ===============================================
sql = """INSERT INTO student(name) VALUES(%s);"""
cur.executemany(sql, [('is',), ('KBTU',), ('student',)])
c... | [
"k_sapiya@kbtu.kz"
] | k_sapiya@kbtu.kz |
08de08127f62aa59ec24287edeb7a29787f3ee2f | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_side.py | 95426ff6b73e9ae7aeac6fa6b0ff209b476d779f | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 493 | py | import _plotly_utils.basevalidators
class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="side", parent_name="mesh3d.colorbar.title", **kwargs
):
super(SideValidator, self).__init__(
plotly_name=plotly_name,
parent_name=... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
a057006ec8e593fa858cdfaccd187d99b327366a | 2be63b91334873f3044a0306344cc907828837b3 | /deluxhotel/blog/admin.py | d61c286a38247c7ff27eb520836214b22d8382fb | [] | no_license | DmitriiGrekov/delux_hotel | ffcb34c99d5740e8591f5eb7a15ea5e72cd0f5be | 0ac14d018166752827f486ba9d3e9553f0b52b67 | refs/heads/master | 2023-07-03T02:46:41.355875 | 2021-08-05T16:21:22 | 2021-08-05T16:21:22 | 393,068,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | from django.contrib import admin
from .models import TagsModel, BlogPostModel, CommentModel
@admin.register(TagsModel)
class TagsAdmin(admin.ModelAdmin):
list_display = ('name', 'slug')
prepopulated_fields = {'slug': ('name',)}
@admin.register(BlogPostModel)
class BlogAdmin(admin.ModelAdmin):
list_displ... | [
"grekovdima7@gmail.com"
] | grekovdima7@gmail.com |
e67ff95685ab64f98a147c59594b3b7a7c4791ce | f59c06566e729380b032f050f852621f425553ac | /plugins/maze.py | 83aeeebf2601c7cabe7ca38404b7a26d1aa3638a | [] | no_license | JonnoFTW/TonsleyLEDManager | c23e27cf7e9f61f97d2c42e3331bceae3fe66231 | 681771584f2b105a2b190641be2d2d1d9d785be1 | refs/heads/master | 2021-06-07T18:24:54.113308 | 2021-05-02T09:43:19 | 2021-05-02T09:43:19 | 55,032,673 | 4 | 7 | null | 2017-09-04T04:13:26 | 2016-03-30T04:33:25 | Python | UTF-8 | Python | false | false | 6,100 | py | class Runner:
blue = [0, 0, 255]
white = [255, 255, 255]
black = [0, 0, 0]
green = [0, 255, 0]
red = [255, 0, 0]
def __init__(self, board_dimensions):
self.dims = board_dimensions
import numpy as np
self.np = np
np.set_printoptions(threshold=np.nan)
self... | [
"jonmac1@gmail.com"
] | jonmac1@gmail.com |
4280ff24cdcb735005428f197ee64f440e0f77ac | 3a09048cb841d91ee39ef054f35b8572f3c166fb | /OnlineJudge/ojproblem/apps.py | 1b720ddb973a9fee0b68995e95e12486f9580439 | [] | no_license | lyyyuna/LihuLabOJ | 91eddf27a16dca5488d5406e0224cf84544254b9 | e1e8e5ae9da629a201f734a33d264bcb6ae2f420 | refs/heads/master | 2022-12-14T02:53:24.786670 | 2019-08-29T03:07:22 | 2019-08-29T03:07:22 | 89,581,070 | 1 | 2 | null | 2022-12-08T08:32:24 | 2017-04-27T09:34:55 | Python | UTF-8 | Python | false | false | 158 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class OjproblemConfig(AppConfig):
name = 'ojproblem'
| [
"lyyyuna@gmail.com"
] | lyyyuna@gmail.com |
bae085a67b4f224655e429058f60fbc44a5a185e | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/argparse/argparse_fromfile_prefix_chars.py | 0d40b273f431ba758c22fcbbd05759f0f70e9057 | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 422 | py |
import argparse
parser = argparse.ArgumentParser(description='Short sample app',
fromfile_prefix_chars='@',
)
parser.add_argument('-a', action="store_true", default=False)
parser.add_argument('-b', action="store", dest="b")
parser.add_argument('-c', a... | [
"350840291@qq.com"
] | 350840291@qq.com |
fa07e854a21f6965ab962f6b3f56dc7d7a79a9ad | e5453b6a4b84a32ccca7281d438b7a7fa1853f58 | /src/ibmc/checks/huawei_ibmc_memory_check.py | e9a2b6fbe8b988c64e006753256d5d2b4991b3ab | [
"MIT"
] | permissive | Huawei/Server_Management_Plugin_Check_MK | 88445d9da581c347c5e82cf590453c4cb2c3d53c | 88398c7c8affe0b2064f418de931d69e36afde67 | refs/heads/master | 2021-05-11T11:40:55.302518 | 2021-01-27T09:53:17 | 2021-01-27T09:53:17 | 117,641,709 | 1 | 4 | null | 2018-01-31T05:38:01 | 2018-01-16T06:30:39 | null | UTF-8 | Python | false | false | 2,009 | py | #!/usr/bin/python
#
# check_mk is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation in version 2. check_mk is distributed
# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
# out even the i... | [
"31431891+serverplugin@users.noreply.github.com"
] | 31431891+serverplugin@users.noreply.github.com |
6f0d1ed0816ccbc48e4a42bfff7f7583a50f9a16 | 781f408fd9dc9fd111d5ac47009ab580636625e5 | /examples/test_get_pdf_text.py | 32573412e9a3e0199172d9ba0bd2f4394ab87c0d | [
"MIT"
] | permissive | doiteachday/SeleniumBase | fb003257b63e157b734d2b34a9c5794d74748322 | 8ded5fac84b85f1d4f43384d0836dbf4a1fc390e | refs/heads/master | 2023-04-10T10:13:50.372864 | 2021-05-04T02:51:43 | 2021-05-04T02:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from seleniumbase import BaseCase
class PdfTests(BaseCase):
def test_get_pdf_text(self):
pdf = ("https://nostarch.com/download/"
"Automate_the_Boring_Stuff_sample_ch17.pdf")
pdf_text = self.get_pdf_text(pdf, page=1)
print("\n" + pdf_text)
| [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
2594bcbf34b79c8031b60bfcbb34bbb0796cf491 | 0175bdc4c896e8019b2c5f7442097cf6b9c1d14a | /pylibs/BasePage.py | 59ed9e3979940a13702c32503f2b2f7648643462 | [] | no_license | GGGYB/shiiia | 323ecee869dcd66510baf0ea7bc30b29c2bfb5ad | 9760f170cbbec37cc340c3b020f36cdd9855e7cd | refs/heads/master | 2023-05-02T07:58:37.023266 | 2021-05-31T09:41:07 | 2021-05-31T09:41:07 | 334,103,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # -*- coding: utf-8 -*-
# Author: sharon
# Datetime: 2021/1/29 14:32
# File: $ {NAME}
from pylibs.MyDriver import Driver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
import time
class BasePage():
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
def ge... | [
"nlnongling@163.com"
] | nlnongling@163.com |
bc860517d0de7a0508431b8414cb45c85ec7b3e7 | 979cf7d5e2136e7e701df27da29622f9196f219e | /Files/views.py | 6a8462440f919b5546e343a386846815375f1e1c | [] | no_license | RafayelGardishyan/DjangoTeamwork | e68c33844680c6a4e345fe8dfc2d3b4b49ccf2ef | 6b030b161b67976445b292f0d5f7366a5eb48560 | refs/heads/master | 2021-09-16T07:03:51.280141 | 2018-01-06T20:50:11 | 2018-01-06T20:50:11 | 114,727,815 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,901 | py | import random
from django.http import HttpResponse
from django.shortcuts import redirect
from django.template import loader
from Start.models import Admin
from .forms import FileForm
from .models import File
from webhooks import Webhook
# Create your views here.
values = {
'securitykey': "",
'whurl': "https:... | [
"rgardishyan@gmail.com"
] | rgardishyan@gmail.com |
9531a59085c598825838be55b85bd85e79853aaa | 327e3c96db66c055d47be868ef5346ae3515b752 | /SpiralMatrix.py | 589762d3c9b41840dab60d26be27ea76aec14b69 | [] | no_license | dabay/LeetCodePython | 790a17893c46aa3a003ef95026471c21d869570d | fdac2086bc793584e05445f5d9afa74fee6fcb33 | refs/heads/master | 2021-03-12T23:34:04.496651 | 2017-08-24T15:55:02 | 2017-08-24T15:55:02 | 27,840,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | # -*- coding: utf8 -*-
'''
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]
]
You should return [1,2,3,6,9,8,7,4,5].
'''
class Solution:
# @param strs, a list of strings
... | [
"dabay.wong@gmail.com"
] | dabay.wong@gmail.com |
4b47d4fae81b2e9fe90c6198f017118e6e06407e | 0b1c6a559c8f8f38ec0a9b62c5fdec786488c77e | /appspot/time_clock/migrations/0003_auto_20171005_1604.py | 7f9c3ef6d7a0795f1365aaad23df686301d777d4 | [] | no_license | smartworld1000/django_appspot | 9372b1edeb3e9d2507ca49463d34b0cf22e652ed | d801d910ff52b83a45f3bf68334bb06a91b81221 | refs/heads/master | 2021-05-14T03:39:07.613510 | 2017-11-05T07:42:59 | 2017-11-05T07:42:59 | 116,621,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-10-05 16:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('time_clock', '0002_auto_20171005_1551'),
]
operations = [
migrations.AlterF... | [
"itokonoha8972@outlook.com"
] | itokonoha8972@outlook.com |
0b3008da0bf7f113d48b9ab99344fb70cf022591 | 90f729624737cc9700464532a0c67bcbfe718bde | /lino_xl/lib/cv/mixins.py | 2cf6c081a9ea76a806bd42afe738a54f12383a91 | [
"AGPL-3.0-only"
] | permissive | lino-framework/xl | 46ba6dac6e36bb8e700ad07992961097bb04952f | 642b2eba63e272e56743da2d7629be3f32f670aa | refs/heads/master | 2021-05-22T09:59:22.244649 | 2021-04-12T23:45:06 | 2021-04-12T23:45:06 | 52,145,415 | 1 | 5 | BSD-2-Clause | 2021-03-17T11:20:34 | 2016-02-20T09:08:36 | Python | UTF-8 | Python | false | false | 6,328 | py | # -*- coding: UTF-8 -*-
# Copyright 2013-2020 Rumma & Ko Ltd
# License: GNU Affero General Public License v3 (see file COPYING for details)
from django.conf import settings
from django.db import models
from django.utils.translation import gettext
from lino.api import dd, rt, _
from etgen.html import E, join_elems, f... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
13097b1d3f56a2e6dabdbab7527c0f64a21c2ad4 | 4732684be0b1a45c2aebe45d22558a9e1bd7f377 | /src/main.py | 8ba296d023c3861d1fe711862ef41a6e31bdf7b5 | [] | no_license | Griffinem/Trade-Up-EV | a7e0175d333daa04d94268e9342ade2084440084 | b9b8b5954517432f9e2d57b45e7ee658008eca6c | refs/heads/master | 2022-08-28T09:22:10.180323 | 2022-08-18T14:26:44 | 2022-08-18T14:26:44 | 247,586,523 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,474 | py | #from api_utils import *
import json
import requests
import time
item_price_data_url = 'http://csgobackpack.net/api/GetItemsList/v2/'
weapon_data_file_path = '..\scraping\weapon_data_file.json'
ev_output_file_path = 'ev_data_file.json'
float_cutoffs = {'Factory New': [0.0, 0.07], 'Minimal Wear': [0.07, 0.15], 'Fi... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
467540c5dee5db0e3e5e016eb7da46ba682879e5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_muzzle.py | b303154fa083e4f00aab3ba2e61101f50ea18ee8 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py |
#calss header
class _MUZZLE():
def __init__(self,):
self.name = "MUZZLE"
self.definitions = [u'the mouth and nose of an animal, especially a dog, or a covering put over this in order to prevent the animal from biting', u'the end of a gun barrel, where the bullets come out']
self.parents = []
self.childen =... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
343d00dfa90099304af3a226951dacbb1f31c590 | 2f0c30fda27d1167f5a4850bdf9b5040815a162e | /bin/ext_service/reset_habitica_timestamps.py | 61527988d6e4ef8bfd71c972e4eb8b140849ae22 | [
"BSD-3-Clause"
] | permissive | ankur-gos/e-mission-server | 1117e8154174a953c7df47a1f1aa15c29a2a1819 | 64b098540e331ef2bb41bd9fe7a165ff53cc7a87 | refs/heads/master | 2021-01-01T18:10:26.314393 | 2017-07-26T06:03:56 | 2017-07-26T06:03:56 | 98,269,025 | 0 | 0 | null | 2017-07-25T05:48:37 | 2017-07-25T05:48:37 | null | UTF-8 | Python | false | false | 3,059 | py | """
Script to launch the pipeline reset code.
Options documented in
https://github.com/e-mission/e-mission-server/issues/333#issuecomment-312464984
"""
import logging
import argparse
import uuid
import arrow
import copy
import pymongo
import emission.net.ext_service.habitica.executor as enehe
import emission.core.ge... | [
"shankari@eecs.berkeley.edu"
] | shankari@eecs.berkeley.edu |
0ea68ccacf4032b775a574b37eb328f4f7cf5840 | 92f6e90d9b13930abde894ef6bdb521e1ae2b7be | /Incomplete/painting_wall.py | a4ee9ea29433dc55ca21fad11b0f75f1f18353bc | [
"MIT"
] | permissive | nptit/Check_iO | f32b68b66c7dbd47e1490aa8db0e3f4bf29716e5 | 9107241291e6f6e397c3756497e74eece782f1e4 | refs/heads/master | 2021-01-25T06:55:09.459265 | 2016-03-23T06:50:12 | 2016-03-23T06:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | def checkio(required, operations):
total = set()
hmm = list()
highest = 0
lowest = 0
missing = list()
for index, op in enumerate(operations, start=1):
start, stop = op
if not hmm: # no need to check multiple tuples for first
if (stop + 1) - start >= required:
... | [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
3821efe47b843b6c0e67ea56bd904c71cae7edbe | 3307766701d680af6d12a726a2d98df2cb1830e5 | /jams/gcj/2017/1C/C/C.py | 52f7e3992946510e28a1d7dbac618bac1426e0bb | [] | no_license | dpaneda/code | c1a54037a275fa7044eb5c2d6079f052dd968615 | 7da1ede33a6a7cd19cbd0db517d91e7cccfbbfff | refs/heads/master | 2023-01-07T18:41:00.816363 | 2022-12-30T09:24:22 | 2022-12-30T09:24:22 | 1,583,913 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | #!/usr/bin/python2
import sys
def equals(P):
for i in xrange(0, len(P)):
if (P[0] - P[i]) > 0.00000001:
return False
return True
def diff(P):
a = P[0]
n = 1
for i in xrange(1, len(P)):
if P[i] == a:
n += 1
else:
return n, P[i] - a
def... | [
"dpaneda@gmail.com"
] | dpaneda@gmail.com |
7985ceb35a1900004f926901a654243dccd6e223 | e85f4714cf2b590d21582ebd567208da1b9132fc | /tests/test_pakit_tests.py | a24369e54dcc6a0174d05d577836e2b3b1380841 | [
"BSD-3-Clause"
] | permissive | pakit/pakit_tests | 1fcc6c6974a297d1931b704a93d4580ed1eecd90 | 078203f31d56b9701781008bc90668a5a5b292ba | refs/heads/master | 2020-04-15T15:58:09.280612 | 2016-01-02T04:02:07 | 2016-01-02T04:02:07 | 42,521,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,612 | py | """
Test pakit_tests
"""
from __future__ import absolute_import, print_function
import os
import tempfile
import mock
import pytest
from pakit_tests import (
create_args_parser, extract_repo_names, extract_repo_block, main,
scan_recipes, format_lines, write_file, TEMPLATE
)
import tests.common as tc
def test... | [
"unknown3000@gmail.com"
] | unknown3000@gmail.com |
da4aa3bdc9eddca782b1e0a4f1eca9a1d8028af1 | 2321ebc9c76e2eb95a05976e3681ed7f4e24d361 | /pandas-for-finance/10/05.py | 68641569fe58f3b6a01bc5b01c572044cc7080ca | [] | no_license | sharebook-kr/books | 71428bfec46759a8da81d70bfe28fa67e4244aee | 7537053c559ca055bf54ab940bf4078217c288a1 | refs/heads/master | 2020-04-22T19:08:42.294339 | 2019-08-17T12:06:42 | 2019-08-17T12:06:42 | 170,598,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | import requests
from bs4 import BeautifulSoup
import time
import telepot
from telepot.loop import MessageLoop
def get_dividend_earning_rate(code):
try:
url = "http://finance.naver.com/item/main.nhn?code=" + code
html = requests.get(url).text
soup = BeautifulSoup(html, "html5lib")
t... | [
"brayden.jo@outlook.com"
] | brayden.jo@outlook.com |
c62de43f47a28b30ee881c1391e0c50a8a2b2ebf | b5f9f93a415a5cc0117a580c5da12804e68c141d | /scripts/motions/initr0.py | 65093d4646203aa136da56e262759377b990ad57 | [] | no_license | akihikoy/lfd_trick | 71f89d80abc27ffc6fbd5bc609322918a4f8264e | b7bf0189db7bcef07772db17de29302d6e8ba2bf | refs/heads/master | 2021-01-10T14:22:53.341666 | 2016-03-29T18:16:15 | 2016-03-29T18:16:15 | 50,623,958 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/python
from core_tool import *
def Help():
return '''Move left arm/gripper to init posture.
Usage: init0'''
def Run(t,*args):
if t.robot.Is('PR2'):
angles= [-1.5758421026969418, 1.2968352230407523, -1.6520923310211921, -2.095963566248973, 10.512690320637843, -1.469029183486648, 2.37512293699]
eli... | [
"info@akihikoy.net"
] | info@akihikoy.net |
0cd6a4e11eea792cd0918edb44bb11e6d8b29ecd | 3c6b36eb1f4f9760c52903f6d0ec4a501f948c90 | /osp/corpus/models/__init__.py | d1c292de71e9477c50603b545d6d90ec443aee8b | [
"Apache-2.0"
] | permissive | davidmcclure/open-syllabus-project | 38444249af845013e3f281a7a713dca83159c56e | 078cfd4c5a257fbfb0901d43bfbc6350824eed4e | refs/heads/master | 2021-06-30T21:47:07.636558 | 2021-06-27T15:15:35 | 2021-06-27T15:15:35 | 50,152,020 | 220 | 14 | Apache-2.0 | 2021-06-27T15:11:15 | 2016-01-22T02:29:57 | Python | UTF-8 | Python | false | false | 162 | py |
from .document import Document
from .document_format import Document_Format
from .document_text import Document_Text
from .document_index import Document_Index
| [
"davidwilliammcclure@gmail.com"
] | davidwilliammcclure@gmail.com |
a578ce80b077a6b303027caee95e8d5938e4b2a1 | 1ebe2b9d9d1f67e34cbe21c49f8710b2a1b9eeae | /tests/test_AppObj_getSinglePassword.py | b9993a19aa52502869d1ec20e6142b69d38a25a2 | [
"MIT"
] | permissive | rmetcalf9/PasswordManPro_CLI | 93ee0daff3bfd1c445bbb364df1a59711ec6344b | 207a624a51ac2848c48aeac3282152315b5146df | refs/heads/master | 2021-06-02T00:29:40.353520 | 2020-03-30T10:27:52 | 2020-03-30T10:27:52 | 135,285,541 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | from TestHelperSuperClass import testHelperSuperClass
import passwordmanpro_cli
from unittest.mock import patch
import samplePayloadsAndEnvs
class test_AppObj(testHelperSuperClass):
@patch('passwordmanpro_cli.AppObjClass._callGet')
def test_getSinglePassword(self, getResoursesResponse):
getResoursesResponse.si... | [
"rmetcalf9@googlemail.com"
] | rmetcalf9@googlemail.com |
57c735539919e5edbbcb4ff8c16418d9f6376188 | 68bad4b3d92872bb5b77b4ee503e588d20511a27 | /python/scripts_inhibition/old_script/simulate_inhibition_ZZZ151_slow.py | ab2d7fa5209a6129519eb6a8b0d03dbf06e4c97c | [] | no_license | mickelindahl/bgmodel | 647be626a7311a8f08f3dfc897c6dd4466fc0a92 | 78e6f2b73bbcbecd0dba25caf99f835313c914ee | refs/heads/master | 2023-08-29T13:57:04.122115 | 2022-02-11T14:28:23 | 2022-02-11T14:28:23 | 17,148,386 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,492 | py | '''
Created on Aug 12, 2013
@author: lindahlm
'''
from core.network.manager import Builder_striatum as Builder
from core.parallel_excecution import loop
from core.network import default_params
from scripts_inhibition.base_simulate import (get_path_logs,
get_args_list_inhibition,
... | [
"mickelindahl@gmail.com"
] | mickelindahl@gmail.com |
1175d28772eb9d5b231c3206392fb90d67127bab | b8a803694c283a5acd13ab6760a36710884ab24f | /llvm/mc/__init__.py | 69dd12f877e6415b53f60c7690e36b2f9d76a64c | [
"NCSA",
"BSD-3-Clause"
] | permissive | llvmpy/llvmpy | 8a4c31e731364ead802231b97e058b8f8c444f96 | 13130fe35f1fb03a7051ad46c36146002391a6fa | refs/heads/master | 2016-09-05T16:48:54.694686 | 2015-04-28T16:21:34 | 2015-04-28T16:21:34 | 3,375,197 | 155 | 13 | null | 2015-05-27T18:36:45 | 2012-02-07T07:09:59 | HTML | UTF-8 | Python | false | false | 6,676 | py | import sys
import llvm
if llvm.version < (3, 4):
raise Exception("mc is not supported for llvm version less than 3.4")
from io import BytesIO
import contextlib
from llvmpy import api, extra
from llvmpy.api.llvm import MCDisassembler
class Operand(object):
def __init__(self, mcoperand, target_machine):
... | [
"michael.lam.sk@gmail.com"
] | michael.lam.sk@gmail.com |
cd768bdf9259efd8ae6f1c74de49916277ef7c0b | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1222.py | b2897a1f78eb02d31ad0854ee13aa149499f7d5a | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,794 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=49
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
fb8e9457ad5e04fd8f1f282ecd96716532bbf285 | dbfdbe3c1d5e3ad38625d8c971fe8dd45c8c3885 | /device_agent/snmp/libs/pysmi-0.3.1/pysmi/reader/zipreader.py | d9f6c4aeb941e5044dd6806f94dd71c09fbca20c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | fyfdoc/IntegrateTest | a58f6d0ea7cff5f67d79d7e042c0bb39c6b8bbbb | 0d8374406c10c313d6627699879215841e0ebdb6 | refs/heads/master | 2022-12-03T02:32:37.388556 | 2019-01-25T02:36:42 | 2019-01-25T02:36:42 | 167,468,256 | 0 | 1 | null | 2022-11-29T20:58:41 | 2019-01-25T01:59:28 | Python | UTF-8 | Python | false | false | 5,627 | py | #
# This file is part of pysmi software.
#
# Copyright (c) 2015-2018, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysmi/license.html
#
import os
import sys
import time
import datetime
import zipfile
from pysmi.reader.base import AbstractReader
from pysmi.mibinfo import MibInfo
from pysmi.compat impo... | [
"fengyanfeng@datangmobile.cn"
] | fengyanfeng@datangmobile.cn |
46841f47f1f695cf591b225b1aa16e65ae0935ef | 5dd190725aaaeb7287d935b3c99c20480b208816 | /object_detection/utils/np_box_list_test.py | 0cf2ef4d21dd8fea0b5d78c45776b8866d1f7cdc | [
"MIT"
] | permissive | DemonDamon/mask-detection-based-on-tf2odapi | 32d947164fb54395b9e45368c0d4bcf3a6ea1c28 | 192ae544169c1230c21141c033800aa1bd94e9b6 | refs/heads/main | 2023-05-13T05:05:44.534885 | 2021-06-08T05:56:09 | 2021-06-08T05:56:09 | 369,463,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,436 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"noreply@github.com"
] | DemonDamon.noreply@github.com |
5e82d5c5a82104ee6f3ba514fcce0106579c026f | 715a11d7b8f15694a5cc4b47ac0e3a3cfc4ffedc | /peakelem.py | 5d99b8c5e4760ff7fad5f9cbebcb6e3ce1a46279 | [] | no_license | mohanrajanr/CodePrep | 5cd538d16598f6a0d2486357d3cc6e0fa1626e4e | 2e23a5f996139b887bf723f58b23368cf8121cd4 | refs/heads/main | 2023-04-23T04:10:06.111120 | 2021-05-11T06:47:51 | 2021-05-11T06:47:51 | 366,283,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from typing import List
def findPeakElement(nums: List[int]) -> int:
l = 0
r = len(nums) -1
while l < r:
mid = l + (r - l)//2
if nums[mid] < nums[mid + 1]:
l = mid + 1
else:
r = mid
return l
print(findPeakElement([1,2,3,1]))
print(findPeakElement([... | [
"mohanrajan1996@gmail.com"
] | mohanrajan1996@gmail.com |
39cbc94ee7bdfab87c35956c0e4db581e7be8f01 | f0932f59d37adfbba9307ee31e6f78ce3c256c4a | /scripts/pick_primers.py | 4970130ecdc69ece8f850de75796334dbcf07178 | [] | no_license | kalekundert/ligrna | 3785a1e5fb8ed6d07839a5314029f3fc882d4471 | 843963973c34c4976f5adfbd4d03f5f1d0344423 | refs/heads/master | 2020-04-12T12:52:32.828100 | 2020-02-22T00:59:57 | 2020-02-22T00:59:57 | 162,505,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | #!/usr/bin/env python3
"""\
Automatically design primers that can be used to construct the given sgRNA
design by overlap extension PCR. There are a number of parameters controlling
how ideal the primers have to be, and you can play with them to get more or
fewer results.
I ended up not using this script in favor ... | [
"kale@thekunderts.net"
] | kale@thekunderts.net |
a0feaf8c56a52a21c80539eab8e8ed88e51eac94 | 781e2692049e87a4256320c76e82a19be257a05d | /intervention/results/control_111904_1447993241_112_7.5.py | 845005cad1ed0885c10843c1b9b9886bcb1ed4e3 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 178 | py | def num_common_letters(goal_word, guess):
common = []
for char in list(guess):
if char in list(goal_word) and char not in common:
common += [char]
return len(common) | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
0b9a88c391878412fc429f3a75e2414c760997cf | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /flask__webservers/get_size_upload_file_with_progress/main.py | 35ae0b78ba57d5a84ea62acf77d081e6e19a12bf | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 4,527 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import logging
from flask import Flask, request, redirect, render_template_string, jsonify
# pip install humanize
from humanize import naturalsize as sizeof_fmt
app = Flask(__name__)
logging.basicConfig(level=logging.DEBUG)
@app.route("/")... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
d9febf29c060feccd2c30acdf80550e51cdf5573 | 6a32cba18ed153b7a7611804223c74dbc923c761 | /5.py | aea6c3c163bf391016e8706b78860f5c4fd2bb65 | [] | no_license | Mrhairui/leetcode | 8cfea60868c37f2a7d0675c4ee1f6d431c75dd37 | a0884db8fe70e63707cc0fa06c6367e42857e4de | refs/heads/master | 2022-03-29T16:18:42.827912 | 2019-11-13T14:48:36 | 2019-11-13T14:48:36 | 197,877,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | class Solution:
def longestPalindrome(self, s: str) -> str:
size = len(s)
if size <= 1:
return s
longest_l = 1
curlen = 0
res = s[0]
dp = [[False for _ in range(size)] for _ in range(size)] # 存储用的表
for r in range(1, size):
for l in ran... | [
"chenwentao_622@163.com"
] | chenwentao_622@163.com |
99a157c10331ba134de0da50bb8c9272687b2a54 | c6eee54ffef7f99f2825cc332a649d9a6e9e181d | /matrixscreener/imagej.py | 944d1b559197f620ac9c63be68652944f0c5ee99 | [
"MIT"
] | permissive | imcf/matrixscreener | 5d3fa6040e62c14ff504dfcbb3818e405d9e9254 | 727711654269d93e528ae9a604ce5ac5b24fa816 | refs/heads/master | 2021-01-17T04:25:14.575654 | 2015-02-08T15:23:39 | 2015-02-08T16:11:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,754 | py | # encoding: utf-8
"""
Stitch images with ImageJ.
* ``matrixscreener.imagej._bin`` should be set if you are on Windows or Linux.
"""
import pydebug, subprocess, os, fijibin
from tempfile import NamedTemporaryFile
# debug with DEBUG=matrixscreener python script.py
debug = pydebug.debug('matrixscreener')
_bin = fijibin... | [
"arve.seljebu@gmail.com"
] | arve.seljebu@gmail.com |
1eabae2d19ec646f5caa21ad2542291a6db58275 | 5c842a91854b0061bdec96a36e30860fb1e1321e | /Chapter3_MCMC/github_pull.py | dff8070e7791d77ff97664dc4e3c8ebedbf3adc3 | [
"MIT"
] | permissive | bzillins/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers | fe2be77b9859566e2a923c8022a85925aa190d1d | c08a6344b8d0e39fcdb9702913b46e1b4e33fb9a | refs/heads/master | 2020-12-30T22:09:05.936082 | 2013-02-27T04:21:05 | 2013-02-27T04:21:05 | 19,747,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | #github data scrapper
"""
variables of interest:
indp. variables
- language, given as a binary variable. Need 4 positions for 5 langagues
- #number of days created ago, 1 position
- has wiki? Boolean, 1 position
- followers, 1 position
- following, 1 position
- constant
dep. variab... | [
"cam.davidson.pilon@gmail.com"
] | cam.davidson.pilon@gmail.com |
cca8d7bb1e4c795995e6db7675bd3f7bfad39018 | e9d139f5108ca115d6254763438dd8855fc4454d | /view/__init__.py | fc9912fe0a91e8e2066ec8e866c29d702fb6cd05 | [] | no_license | Letractively/simulation-modeling | 119d1376a75ff825903a0dd4bbbbc161e1d19e05 | aca18bf1f50b1083bbc9cbd97b87d3df1c71000b | refs/heads/master | 2016-08-12T18:44:07.605687 | 2011-12-14T11:04:29 | 2011-12-14T11:04:29 | 45,956,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,531 | py | # -*- coding: utf-8 -*-
# Импорт и настройка Jinja2
from jinja2 import Environment, PackageLoader
templates = Environment(loader=PackageLoader('view', 'templates'), extensions = ['jinja2.ext.with_'])
from GChartWrapper import Pie, Line, LineXY
from settings import app
def index(names):
'Главная страница'
te... | [
"altaisoft@gmail.com"
] | altaisoft@gmail.com |
a0d3c2bd42f70d32b9c784462fa44007a8f0adf7 | 10dcfd809f342fd822b6df198f4045f92b157124 | /bin/po2ini | 1a43bcf93206ef9589e290b07fe2adcdcf2ee58f | [] | no_license | mozilla/affiliates-lib | c731c910c8d9fe04e211541e54f304a127a0b829 | 1000f98d9df217ed66a0ecd07e1e0a1d822a712a | refs/heads/master | 2023-07-03T17:18:49.841809 | 2016-02-01T10:49:47 | 2016-02-01T10:49:47 | 2,291,186 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 989 | #!/Users/fred/.virtualenvs/playdoh/bin/python2.6
#
# Copyright 2007 Zuza Software Foundation
#
# This file is part of translate.
#
# translate is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2... | [
"fwenzel@mozilla.com"
] | fwenzel@mozilla.com | |
313c33cbac5a657dac8e135d547bd7a34207608b | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1532+522/sdB_pg_1532+522_lc.py | 8187be807799c8b0ee1f61b7c1dc1a03cbbd8db0 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[233.374333,52.113889], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_1532+522/sdB_pg_1532+522_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
c977864e64c62b6e7d106375290362fa31ff27ed | da55b6cb2b7356f589c56bb647e49f79aedfc4f1 | /python-fabric/interface.test/example2_app/app/DemoComponent.py | b1b8f58cdd0340fe06bec5703129b2ed628bc745 | [] | no_license | eiselesr/sandbox | 2d0cbb16e2601dfda9d9e5ea5a5e96a053fdf72f | 0b3fc878a613600c6071019c820ba79e2d2a9a2d | refs/heads/master | 2023-09-01T00:40:37.222840 | 2023-08-24T19:20:27 | 2023-08-24T19:20:27 | 151,609,265 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # riaps:keep_import:begin
from riaps.run.comp import Component
# riaps:keep_import:end
class DemoComponent(Component):
# riaps:keep_constr:begin
def __init__(self):
super().__init__()
# riaps:keep_constr:end
# riaps:keep_tick:begin
def on_tick(self):
now = self.tick.recv_pyobj()
... | [
"eiselesr@gmail.com"
] | eiselesr@gmail.com |
a4ddf2709fce33cd5aab0418f9028ac97efa25d6 | fab39aa4d1317bb43bc11ce39a3bb53295ad92da | /tools/clip_dot.py | e0123db1d5a9fae276ffc01267f7a1be6649f5f5 | [
"Apache-2.0"
] | permissive | dupeljan/nncf | 8cdce27f25f01ce8e611f15e1dc3036fb8548d6e | 0abfd7103ca212888a946ba4d0fbdb9d436fdaff | refs/heads/develop | 2023-06-22T00:10:46.611884 | 2021-07-22T10:32:11 | 2021-07-22T10:32:11 | 388,719,455 | 0 | 0 | Apache-2.0 | 2021-07-23T07:46:15 | 2021-07-23T07:43:43 | null | UTF-8 | Python | false | false | 2,144 | py | #pylint:skip-file
import sys
from argparse import ArgumentParser
import networkx as nx
def main(argv):
parser = ArgumentParser()
parser.add_argument('-i', '--input_file', help='Input .dot file',
required=True)
parser.add_argument('-s', '--start_id', help='Start ID (inclusive)',
... | [
"noreply@github.com"
] | dupeljan.noreply@github.com |
997cfed7e90d02a247f84a51c5934988fa32ac75 | d3cfa86c22ab3bd6f2dcbbd72f9cf5f6bf574cd1 | /gridappsd/utils.py | b455a1f97896802d08297150dfac9078f62c104b | [] | no_license | ariwoolar/gridappsd-python | 30fbc9a36b0d7be43f6fb0ff8b0f39d76fa6f4ed | 1e8ddc88de7fc9cabb17b1ab34f2756e8c37127c | refs/heads/master | 2023-02-02T20:09:46.491618 | 2020-09-10T20:09:34 | 2020-09-10T20:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,691 | py | import datetime, time
from dateutil import parser
import os
try: # python2.7
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
__GRIDAPPSD_URI__ = os.environ.get("GRIDAPPSD_URI", "localhost:61613")
__GRIDAPPSD_USER__ = os.environ.get("GRIDAPPSD_USER", "system")
__GRIDAPPSD_PA... | [
"craig.allwardt@pnnl.gov"
] | craig.allwardt@pnnl.gov |
73f77c0541a623faed3445fd42c78e95a3f43de3 | b7a98a761007cf8b913b75152a278c1693f2d00d | /code/ortools/simple.py | a22169600415ebac07b2a7f71ee7fba972372f13 | [] | no_license | VuHoangvn/descrete_optimize | be18fcfc230a9d1133ec94a49b1fc5cfcb50b449 | 7a17d472af7d54624860aeff590db423a7e47d59 | refs/heads/master | 2022-10-14T00:22:50.368095 | 2020-06-05T09:48:31 | 2020-06-05T09:48:31 | 261,913,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from ortools.sat.python import cp_model
def SimpleSatProgram():
"""Minimal CP-SAT example to showcase calling the solver."""
# Creates the model
model = cp_model.CpModel()
# Creates the variab... | [
"20161728@student.hust.edu.vn"
] | 20161728@student.hust.edu.vn |
0657eee5800ac668b250193a08ebbb5b92cfbdb1 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D09B/SANCRTD09BUN.py | b94d0510dd191e38d7227ae909cae41f4e766c11 | [] | 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 | 4,024 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD09BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 99},
{ID: 'STS', MIN: 0, MAX: 99},
{ID: 'LO... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
d1c16ded968ad2ed9bdec10b3979d2cc493cc4d1 | e835059c8084d3bd92d8f24a748136617cf8a2a3 | /8/radd_test.py | 87352539fc8175af3eeab0c1c908d923ecdf9d3a | [] | no_license | Carlzkh/CrazyPythonNotes | 7141b062722e2b8354ce3566f0b8d086bbfad9b1 | 04a8648ac2150e07520252d882c5cbc81cc3b9f9 | refs/heads/master | 2021-07-11T22:57:06.610728 | 2021-06-29T07:37:16 | 2021-06-29T07:37:16 | 247,253,027 | 0 | 0 | null | 2021-01-05T08:48:45 | 2020-03-14T10:08:34 | Python | UTF-8 | Python | false | false | 2,076 | py | """
object.__radd__(self, other):当y提供该方法时,可执行 x + y
object.__rsub__(se f, other):当y提供该方法时,可执行 x - y
object.__rmul__(self, other):当y提供该方法时,可执行 x * y
object.__rmatmul__(self other):当y提供该方法时,可执行 x @ y
object.__rtruediv__( If, other :当y提供该方法时,可执行 x / y
object.__rfloordiv__ (self, other ): 当y提供该方法时,可执行 x // y
object.__rmod_... | [
"291747808@qq.com"
] | 291747808@qq.com |
efa0e5ddb6154a7a27511647626b98da91f3bf51 | 1b57d1ce3baa5484cb517e916e2b3c7b66196672 | /tests/test_config.py | fe63aa3f70ced5c38ca198ca7e118ae12d80d2b3 | [
"MIT"
] | permissive | cfhamlet/os-config | 84e3b03456c554408148b448ee934a74a50b0bb0 | 5a875ac07972ef9e4d1d6887ea48c974363f2438 | refs/heads/master | 2020-04-09T07:43:36.575488 | 2019-01-08T04:43:20 | 2019-01-08T04:43:20 | 160,168,165 | 3 | 0 | MIT | 2019-01-08T04:43:21 | 2018-12-03T09:47:25 | Python | UTF-8 | Python | false | false | 4,513 | py | import pytest
from os_config import Config
def test_create():
with pytest.raises(TypeError):
c = Config()
c = Config.create(a=1, b=2)
assert c.a == 1
assert c.b == 2
def test_create_from_dict():
d = {'a': 3, 'b': 4}
c = Config.from_dict(d)
assert c.a == 3
assert c.b == 4
... | [
"cfhamlet@gmail.com"
] | cfhamlet@gmail.com |
ccfe4b8ffb05eaba3eeba44922978edf51809bda | 3aab11d445011f4a0de1376886dd3899aba44e68 | /opps/db/conf.py | eedef8cb2db0ef10333332563c15c6b0d5c6b5ca | [
"MIT"
] | permissive | opps/opps | 4ba6a08ac5aa31be48c245b2e8f9d9a714a5e473 | 5552924fa34ea40d24febeac5046bd59f62e0e4f | refs/heads/master | 2023-08-24T21:09:23.489540 | 2023-05-22T20:07:33 | 2023-05-22T20:07:33 | 7,712,379 | 166 | 76 | MIT | 2022-01-06T22:53:23 | 2013-01-20T03:56:15 | Python | UTF-8 | Python | false | false | 572 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf import settings
from appconf import AppConf
class OppsDataBaseConf(AppConf):
HOST = getattr(settings, 'OPPS_DB_HOSR', None)
USER = getattr(settings, 'OPPS_DB_USER', None)
PASSWORD = getattr(settings, 'OPPS_DB_PASSWORD', None)
PORT = geta... | [
"thiagoavelinoster@gmail.com"
] | thiagoavelinoster@gmail.com |
c618f6eb814a4c418adb0624e5c2dc54c47b4cc3 | 542c040b9b2150d789096f031dcf7a4362b034fe | /training/migrations/0003_auto_20210501_1721.py | bb92ba559a946476499ee525d0edc0012c29ba25 | [
"Unlicense"
] | permissive | rafimuhammad01/mtf-hackathon | 3115412f673774cc3991bd2a67854bfa645966d1 | 83ab410239a93ff04e57d7ceb2d1d292ba365866 | refs/heads/main | 2023-04-12T15:28:41.506450 | 2021-05-22T11:27:05 | 2021-05-22T11:27:05 | 360,573,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # Generated by Django 3.2 on 2021-05-01 10:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('training', '0002_auto_20210501_1607'),
]
operations = [
migrations.AddField(
model_name='training',
name='linkUrl',
... | [
"rafi10muhammad@gmail.com"
] | rafi10muhammad@gmail.com |
abeb6300b115c2987444589968634de355eca323 | 16819f2d2a924a8df8c24754241f94247d202141 | /backend/advyon_24955/wsgi.py | 02ac84499c7199934b67c6b4cab2b07b0c264618 | [] | no_license | crowdbotics-apps/advyon-24955 | 922dea646dc87c5bd786ff01aa2a8ed4d19636a5 | a153d936b8cba32003c66bccf95d617c1a63d869 | refs/heads/master | 2023-03-16T07:40:45.604601 | 2021-03-10T20:47:22 | 2021-03-10T20:47:22 | 346,487,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for advyon_24955 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('DJANGO_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7ec138bc879d91a44e191223ca877c75087340d8 | 232fc2c14942d3e7e28877b502841e6f88696c1a | /dizoo/pomdp/entry/pomdp_ppo_default_config.py | 8b4bbde7287f6f31890d1be86bf31692489890e4 | [
"Apache-2.0"
] | permissive | shengxuesun/DI-engine | ebf84221b115b38b4b3fdf3079c66fe81d42d0f7 | eb483fa6e46602d58c8e7d2ca1e566adca28e703 | refs/heads/main | 2023-06-14T23:27:06.606334 | 2021-07-12T12:36:18 | 2021-07-12T12:36:18 | 385,454,483 | 1 | 0 | Apache-2.0 | 2021-07-13T02:56:27 | 2021-07-13T02:56:27 | null | UTF-8 | Python | false | false | 2,413 | py | from ding.entry import serial_pipeline
from easydict import EasyDict
pong_ppo_config = dict(
env=dict(
collector_env_num=16,
evaluator_env_num=4,
n_evaluator_episode=8,
stop_value=20,
env_id='Pong-ramNoFrameskip-v4',
frame_stack=4,
warp_frame=False,
u... | [
"niuyazhe@sensetime.com"
] | niuyazhe@sensetime.com |
e257465739f45cb8c41e0db62fca6e5c5961ffa1 | adbf09a31415e6cf692ff349bd908ea25ded42a8 | /revision/imports/at_decorators.py | 2aabeeb6b8c5d049d7838859f8ed33c4e323cd5f | [] | no_license | cmulliss/gui_python | 53a569f301cc82b58880c3c0b2b415fad1ecc3f8 | 6c83d8c2e834464b99024ffd8cf46ac4e734e7a4 | refs/heads/main | 2023-08-12T22:33:01.596005 | 2021-10-11T12:35:41 | 2021-10-11T12:35:41 | 408,176,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | import functools
user = {"username": "jose", "access_level": "guest"}
def make_secure(func):
@functools.wraps(func)
def secure_function():
if user["access_level"] == "admin":
return func()
else:
return f"No admin permissions for {user['username']}."
return secure_... | [
"cmulliss@gmail.com"
] | cmulliss@gmail.com |
8ecbea64502b0476e4dd3ec28e53802d98d8344c | 5945903ff7b3c0be799d8b228aa96309e8d6b68a | /LeetCode_Offer_II_004.py | 3d9937377035c818327328a19057cccb76588d80 | [] | no_license | freesan44/LeetCode | 44fd01fa37e2d7e729ae947da2350b1649c163ae | 2ed9f1955c527d43fe1a02e5bebf5a6f981ef388 | refs/heads/master | 2021-12-07T20:07:02.308097 | 2021-11-01T23:58:11 | 2021-11-01T23:58:11 | 245,178,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | class Solution:
def singleNumber(self, nums: List[int]) -> int:
from collections import Counter
counter = Counter(nums).most_common()
x,y = counter[-1]
# print(x,y)
return x
if __name__ == '__main__':
# nums = [2,2,3,2]
nums = [0, 1, 0, 1, 0, 1, 100]
ret = Solu... | [
"freesan44@163.com"
] | freesan44@163.com |
cf6a17b5b27c54829138ed5b6d13c654a57a13d9 | 03869888260ab1b28c5912f6019a44b1fcbb6c19 | /acrylamid/templates/jinja2.py | 95c8c1f7f305e42f346aaed4e42d7d357029850f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kenkeiras/acrylamid | 515971b5385a554f310683d993eb34e38611d50a | 792298eb32daa0e703afdb2894ee121dc3861d43 | refs/heads/master | 2020-03-27T12:33:54.176728 | 2013-03-26T11:35:09 | 2013-03-26T11:35:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,374 | py | # -*- encoding: utf-8 -*-
#
# Copyright 2012 Martin Zimmermann <info@posativ.org>. All rights reserved.
# License: BSD Style, 2 clauses -- see LICENSE.
from __future__ import absolute_import
from io import StringIO
from os.path import exists, getmtime
from jinja2 import Environment as J2Environemnt, FileSystemByteco... | [
"info@posativ.org"
] | info@posativ.org |
48a2ca87abfdda05840e297a3a45819b20ef60d0 | c3a84a07539c33040376f2c1e140b1a1041f719e | /wagtail-stubs/contrib/postgres_search/models.pyi | c9990209da1b7ca59c1ff89fcdab8dbd624dd3d4 | [] | no_license | tm-kn/tmp-wagtail-stubs | cc1a4434b7142cb91bf42efb7daad006c4a7dbf4 | 23ac96406610b87b2e7751bc18f0ccd27f17eb44 | refs/heads/master | 2023-01-20T14:41:33.962460 | 2020-11-30T23:15:38 | 2020-11-30T23:15:38 | 317,332,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | pyi | from .utils import get_descendants_content_types_pks as get_descendants_content_types_pks
from django.contrib.contenttypes.fields import GenericRelation
from django.db import models
from typing import Any
from wagtail.search.index import class_is_indexed as class_is_indexed
class TextIDGenericRelation(GenericRelation)... | [
"hi@tmkn.org"
] | hi@tmkn.org |
df1c8a26e0becbc5ddede3a5087948f61aaf7f2e | d3efc82dfa61fb82e47c82d52c838b38b076084c | /crossmarketetf_bak/crossmarket_creation_HA/YW_CETFSS_SHSG_020.py | 5d28365fc63ea90b37a0dd3fec3d52f5c0307129 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,323 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test")
from crossmarketetf.cetfservice.cetf_main_service import *
from crossmarketetf.cetfservice.cetf_get_components_asset import *
from crossmarketetf.cetfservice.cetf_utils import *
from mysql.QueryOrderErrorMsg import q... | [
"418033945@qq.com"
] | 418033945@qq.com |
09920af61b71677948e7bed9fa77cabae508c78f | 87e62af4768c0f594e675551f4c7c1c81ce7f7d9 | /lawyer/spiders/legislation/caipan_wenshu_spider.py | 09b385d1e6eb1bcee041a82c399db8cb43aa3e79 | [] | no_license | dulei001/Spider | 78d12adbef1d865da6978704fe146cc21a8d2d3e | 628d468501c6502763ce453a58a09813b2a46b8c | refs/heads/master | 2021-01-18T17:27:11.771434 | 2019-05-14T02:14:33 | 2019-05-14T02:14:33 | 86,802,130 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,078 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import json
import scrapy
import re
#聚法网裁判文书
class CaipanInfoSpider(scrapy.spiders.Spider):
name = "jufa"
allowed_domains = ['www.jufaanli.com']
start_urls = [
"http://www.jufaanli.com/search2?TypeKey=1%253A%25E6%25A1%2588"
]
pagesize = 20
# 爬虫... | [
"280680441@qq.com"
] | 280680441@qq.com |
fa41413edc689db57f3afe37347b2bb07b49f3a1 | b9e4bf5c00ac0d6c1a6e6038e8dc18041819ff99 | /Python3/0716_Max_Stack.py | 45a35d6d09c45a3a9630134e1a1c123ef683ea60 | [] | no_license | kiranani/playground | 98fdb70a3ca651436cc1eede0d2ba1b1ea9aba1d | 12f62a218e827e6be2578b206dee9ce256da8d3d | refs/heads/master | 2021-06-03T12:43:29.388589 | 2020-06-12T15:43:45 | 2020-06-12T15:43:45 | 149,614,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | class MaxStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.l = [(float("inf"), -float("inf"))]
def push(self, x: int) -> None:
self.l.append((x, max(x, self.l[-1][1])))
def pop(self) -> int:
return self.l.pop()[0... | [
"noreply@github.com"
] | kiranani.noreply@github.com |
4386d9bd629660635a27a3b219d035be73a9ac41 | 79babd1502ea1bd701ce021cfa75dc25ca35a700 | /python/rootTools/Utils.py | a4e4d3433c4ff2b0999a0502997f62013d960800 | [] | no_license | RazorCMS/RazorAnalyzer | 99b89b33d2ec2be1d42e3705569d49cd3346d40a | 2e2adff5ba5d2306c9f0b40c2a5297782fae3158 | refs/heads/master | 2021-01-23T21:18:53.534772 | 2019-03-22T14:21:41 | 2019-03-22T14:21:41 | 24,916,087 | 1 | 9 | null | 2017-09-11T15:51:28 | 2014-10-07T23:27:09 | C++ | UTF-8 | Python | false | false | 3,724 | py | #$Revision:$
#the following is from http://stackoverflow.com/questions/1006289/how-to-find-out-the-number-of-cpus-in-python
def determineNumberOfCPUs():
""" Number of virtual or physical CPUs on this system, i.e.
user/real as output by time(1) when called with an optimally scaling userspace-only program"""
... | [
"jduarte@caltech.edu"
] | jduarte@caltech.edu |
a2aa0983b8a49972d004006dd2709b75fd1ab70d | 7c15f211adc9e9eb9f66ccdd570c9f38dff7ea8d | /packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/__init__.py | c58de146570db0acc07d6828002cccd80c37cc94 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/autorest.python | cc4bfbf91ae11535731cad37cedd6b733edf1ebd | a00d7aaa3753ef05cb5a0d38c664a90869478d44 | refs/heads/main | 2023-09-03T06:58:44.246200 | 2023-08-31T20:11:51 | 2023-08-31T20:11:51 | 100,315,955 | 47 | 40 | MIT | 2023-09-14T21:00:21 | 2017-08-14T22:58:33 | Python | UTF-8 | Python | false | false | 771 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
67e504ae45a28ad46c3633d6603215e04e77ce66 | 1cb0cc435061b6a0156b37813343ae46b1f7346e | /1_learn_step/try_second/glorot_normal-RMSprop-16.py | eb6e65fdeee43652b530579008e195c2f09d190b | [] | no_license | youthliuxi/keras | 6370a9de11e152d8ba96e68e9ff02337203b7e66 | 60a367442f74313d0bd9af01f76068d56e23bec0 | refs/heads/master | 2020-04-30T19:54:16.628943 | 2019-08-21T09:47:13 | 2019-08-21T09:47:13 | 177,051,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | # -*- coding:utf-8 -*-
from keras import backend as K
K.set_image_dim_ordering('th')
import numpy as np
np.random.seed(123)
from keras.layers import *
from keras.models import Sequential
from keras.utils import np_utils
from keras.datasets import mnist
# (X_train, y_train), (X_test, y_test) = mnist.load_data()
path = "... | [
"lx_einstein@sina.com"
] | lx_einstein@sina.com |
5257553d3c163205f228efbd85550aedd5fa8e8e | 6adf334dd2a074686447e15898ed3fff793aab48 | /03_Fast_and_Slow_Pointers/08_circular_array_loop_exists.py | a679195ddcea8fbbc7f8af0248a3d958cd5cb1c4 | [] | no_license | satyapatibandla/Patterns-for-Coding-Interviews | 29ac1a15d5505293b83a8fb4acf12080851fe8d6 | b3eb2ac82fd640ecbdf3654a91a57a013be1806f | refs/heads/main | 2023-05-07T07:56:01.824272 | 2021-06-01T04:02:50 | 2021-06-01T04:02:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | # Time O(N) | Space O(1)
def circular_array_loop_exists(nums):
for i in range(len(nums)):
if nums[i] == 0:
continue
direction = nums[i] > 0
slow = fast = i
while True:
slow = get_next_idx(nums, slow, direction)
fast = get_next_idx(nums, get_next_... | [
"shash873@gmail.com"
] | shash873@gmail.com |
8b8498e424f3ba6a5662bd3a5d6401e4d2ca6e12 | 81adc22ee20698506397135b916903936837db3b | /examples/cuda-c++/vector_add.py | e5a70e49b2240c3b90135d9c9c037d7034622217 | [
"Apache-2.0"
] | permissive | KernelTuner/kernel_tuner | 6c25ca551795cc49a7754f2957de4e59aa98578c | b3ff4cdecb12655009b356e3b1840e25b1dd1421 | refs/heads/master | 2023-08-10T00:34:53.984541 | 2023-06-01T16:31:47 | 2023-06-01T16:31:47 | 54,894,320 | 59 | 6 | Apache-2.0 | 2023-09-08T19:28:24 | 2016-03-28T13:32:17 | Python | UTF-8 | Python | false | false | 904 | py | #!/usr/bin/env python
"""This is the minimal example from the README converted to C++11"""
import json
import numpy
from kernel_tuner import tune_kernel
def tune():
kernel_string = """
template<typename T>
__global__ void vector_add(T *c, T *a, T *b, int n) {
auto i = blockIdx.x * block_size_x + threadIdx.x;... | [
"b.vanwerkhoven@esciencecenter.nl"
] | b.vanwerkhoven@esciencecenter.nl |
6496385a65adfdf5d6dd2990cf9ca6dc390ce0a4 | e3ec5f1898ae491fa0afcdcc154fb306fd694f83 | /src/components/opPicker/onFilterTextEvent.py | 4e4fb7d55e5df26b7e2595dd237d87b347bae0e8 | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | phoebezhung/raytk | 42397559a76a9ba39308ac03344b4446f64ea04d | b91483ce88b2956d7b23717b11e223d332ca8395 | refs/heads/master | 2023-08-27T05:20:38.062360 | 2021-10-21T04:33:18 | 2021-10-21T04:33:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # noinspection PyUnreachableCode
if False:
# noinspection PyUnresolvedReferences
from _stubs import *
from .opPicker import OpPicker
ext.opPicker = OpPicker(COMP())
def onValueChange(panelValue: 'PanelValue', prev):
ext.opPicker.setFilterText(panelValue.val)
| [
"tekt@immerse.studio"
] | tekt@immerse.studio |
5d7ecd12aac912be773a379df1d6f109317b84c0 | de392462a549be77e5b3372fbd9ea6d7556f0282 | /operations_9001/migrations/0011_auto_20200806_1350.py | 5305a4a2d7c547e06c938388a8dbfece7f2c931d | [] | no_license | amutebe/AMMS_General | 2830770b276e995eca97e37f50a7c51f482b2405 | 57b9b85ea2bdd272b44c59f222da8202d3173382 | refs/heads/main | 2023-07-17T02:06:36.862081 | 2021-08-28T19:07:17 | 2021-08-28T19:07:17 | 400,064,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | # Generated by Django 3.0.2 on 2020-08-06 10:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('operations_9001', '0010_auto_20200806_1252'),
]
operations = [
migrations.AlterField(
model_name='maintenance',
name... | [
"mutebe2@gmail.com"
] | mutebe2@gmail.com |
01f324c6bcbb1c9a274932a8fafb8cbc266973f2 | e384f5467d8bcfd70845997bcbd68d950e874a61 | /example/python/mesh/mesh_007_cube_color_per_triangle_Tex1D/cube.py | f445866308c763ea6d3dbaf04fc7e72b93a6e0b5 | [] | no_license | Rabbid76/graphics-snippets | ee642f1ed9ceafc6d320e467d3a084d2446d22c2 | fa187afeabb9630bc1d988304fb5787e95a91385 | refs/heads/master | 2023-08-04T04:32:06.884318 | 2023-07-21T09:15:43 | 2023-07-21T09:15:43 | 109,126,544 | 177 | 12 | null | 2023-04-11T20:05:52 | 2017-11-01T12:05:56 | C++ | UTF-8 | Python | false | false | 3,947 | py | import os
import sys
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir, os.pardir))
os.chdir(os.path.dirname(os.path.abspath(__file__)))
import numpy
# PyOpenGL import
from OpenGL.GL import *
from OpenGL.GLUT import *
from OpenGL.GLU import *
# MyLibOGL import
from MyLibOGL.math im... | [
"Gernot.Steinegger@gmail.com"
] | Gernot.Steinegger@gmail.com |
cb3b99330dec69408592872eba11b0a5f54912fe | e82d49a32b843d02019fe770824d10bbdfc16c1b | /Misc/args.py | 219c767f303ffbf718eb0d407394684e9b33f549 | [] | no_license | deesaw/PythonD-005 | 142bfdfd6515aa4d570509cab5e6b6008ccae999 | 65b7423b5251b12d06cd64a5135dd0afabde60a1 | refs/heads/master | 2023-03-10T02:51:05.967446 | 2021-03-02T14:09:33 | 2021-03-02T14:09:33 | 343,795,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | #This program adds two numbers given on the command line.
#At the OS command prompt call this program as follows
#args.py 3 4
#It should return 7
########################################
import sys
print ("You have entered ",len(sys.argv)-1," arguments")
print (sys.argv[0])
sum=0
for x in sys.argv[1:]:
sum=sum+int(x)
... | [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
598e7e1951f92af159f2e76bc02bd394360df3cd | be0a3aa7b83b87c5d2c257b538545bdded39c051 | /Chatbot_Web/impl/view/sp_view.py | 48c5784591afdbd8ef823393a0b3a239e1eeeb6b | [
"Apache-2.0"
] | permissive | water123li/Chatbot_CN | 480e3bc6d6c0d8b6b0823452556acef14df1c2c3 | e63808030c6cc516020075cdcd0c332120a998fc | refs/heads/master | 2022-01-25T10:34:34.726243 | 2019-06-13T10:44:44 | 2019-06-13T10:44:44 | 192,504,292 | 1 | 0 | Apache-2.0 | 2019-06-18T09:01:55 | 2019-06-18T09:01:55 | null | UTF-8 | Python | false | false | 557 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: sp_view.py
Description : 语义分析视图跳转
Author : charl
date: 2018/11/2
-------------------------------------------------
Change Activity: 2018/11/2:
-------------------------------------------------
"... | [
"charlesxu86@163.com"
] | charlesxu86@163.com |
0719c05250e74207d69b6469b6281bd629a2d5d8 | 8f1996c1b5a0211474c7fa287be7dc20a517f5f0 | /hail/python/hail/vds/combiner/__init__.py | 66f14a1f2905d37375d28189b406329ce94c335f | [
"MIT"
] | permissive | johnc1231/hail | 9568d6effe05e68dcc7bf398cb32df11bec061be | 3dcaa0e31c297e8452ebfcbeda5db859cd3f6dc7 | refs/heads/main | 2022-04-27T10:51:09.554544 | 2022-02-08T20:05:49 | 2022-02-08T20:05:49 | 78,463,138 | 0 | 0 | MIT | 2022-03-01T15:55:25 | 2017-01-09T19:52:45 | Python | UTF-8 | Python | false | false | 238 | py | from .combine import transform_gvcf, combine_variant_datasets
from .variant_dataset_combiner import new_combiner, load_combiner
__all__ = [
'combine_variant_datasets',
'transform_gvcf',
'new_combiner',
'load_combiner',
]
| [
"noreply@github.com"
] | johnc1231.noreply@github.com |
e76ae7afc9085bd4469750939c331cf04a22eae6 | 61ff94d2987b3bc95f82c5a58897f50d1efa1db8 | /hive/db/adapter.py | 88c60225e4070ae7cd7f3e645bf073894c30e7e3 | [
"MIT"
] | permissive | arpwv/hivemind | ee77c9805731fda2bb95e1127a56152fe53b707a | a87e5578f9020be02c867021a8acdfff41f06777 | refs/heads/master | 2021-01-24T03:43:46.507207 | 2018-02-23T22:18:56 | 2018-02-23T22:18:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | import logging
import collections
from funcy.seqs import first
import sqlalchemy
from sqlalchemy import text
from hive.conf import Conf
from hive.db.query_stats import QueryStats
logger = logging.getLogger(__name__)
class Db:
_instance = None
@classmethod
def instance(cls):
if not cls._instance:... | [
"roadscape@users.noreply.github.com"
] | roadscape@users.noreply.github.com |
1dad10d4f022b45a885361c1ef7cad694f8b1ae6 | 4099891546014e49b74f28987d26f93e77559471 | /app/models.py | 2b60aa9f5ce76532d09b9a3ed3443348f9d2b2da | [
"MIT"
] | permissive | leezichanga/Newshighlights | 519ecac73341adcf90b364024d335fe3574a12c6 | abaca8891fe0d62e624e8c83ca4ba65f5ad6fe0f | refs/heads/master | 2020-03-08T21:12:27.616700 | 2018-04-10T13:24:19 | 2018-04-10T13:24:19 | 128,401,925 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | class Source:
'''
News class to define news objects
'''
def __init__(self,id,name,description,url,category,language,country):
self.id = id
self.name = name
self.description = description
self.url = url
self.category = category
self.language = language
... | [
"elizabbethichanga@yahoo.com"
] | elizabbethichanga@yahoo.com |
3b876b254779a8a51c619573dd173dba1daf235b | fcf870abec4a3fe936668ed14afcded9c10e4aa3 | /featureselection/CHI2.py | 3dbd1809a6a48214769cfd116f2e38f093ac09ef | [] | no_license | sirpan/iLearn | f8d81523720245cc1ab8368aeb609511fc93af5a | 507aae17d9fea3d74a7c77984f1f1750eb734f53 | refs/heads/master | 2023-03-22T06:55:48.791894 | 2021-03-17T07:23:15 | 2021-03-17T07:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | #!/usr/bin/env python
# _*_coding:utf-8_*_
import numpy as np
import pandas as pd
binBox = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
def CHI2(encodings, labels):
features = encodings[0][1:]
encodings = np.array(encodings)[1:]
data = encodings[:, 1:]
shape = data.shape
data = np.reshape(data, shape[0] * sh... | [
"noreply@github.com"
] | sirpan.noreply@github.com |
7b77ba86eb35c3ed786fe7a7e707898bd1163f50 | 45e49a395fe58783cdc662ba6cf3805ef499190e | /raiden/tests/unit/test_notifyingqueue.py | 24caa4ff4e423841f70bbc59687e829245155fe6 | [
"MIT"
] | permissive | mat7ias/raiden | 862708d7e2f1f84ade6623c626daf3578a948c10 | 7463479ffde4f48577b74421f3c47a097e95a36f | refs/heads/master | 2020-03-28T06:17:30.899834 | 2018-09-07T10:24:37 | 2018-09-07T11:44:18 | 146,172,440 | 0 | 0 | MIT | 2018-08-26T10:50:17 | 2018-08-26T10:50:17 | null | UTF-8 | Python | false | false | 925 | py | import gevent
from gevent.event import Event
from raiden.utils.notifying_queue import NotifyingQueue
from raiden.network.transport.udp.udp_utils import event_first_of
def add_element_to_queue(queue, element):
queue.put(element)
def test_copy():
queue = NotifyingQueue()
assert queue.copy() == []
qu... | [
"lefteris@refu.co"
] | lefteris@refu.co |
ebb258466ca8a94b44c533eca60e68a2ab3edd10 | 2347a00aa41c023924de6bc4ffe0e8bc244a0f3f | /application_form/migrations/0030_auto_20150908_1132.py | 937d76c617b12ba3080d51e9f999a4d0ef15307c | [] | no_license | Dean-Christian-Armada/prod-people | 2ac20d16aecb0cf1ae50a08e456060eee270b518 | fb8d99394d78bbf4d1831223fce2d7ac4a04f34d | refs/heads/master | 2021-01-01T16:19:36.904967 | 2016-01-26T09:20:36 | 2016-01-26T09:20:36 | 42,503,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('application_form', '0029_applicationformflagdocuments'),
]
operations = [
migrations.AlterField(
model_name='app... | [
"deanarmada@gmail.com"
] | deanarmada@gmail.com |
0458b01249ba1787f2bee6dbad3d2c2a9e97c9d8 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/smsdroid/testcase/firstcases/testcase2_012.py | 700a6ce30d93469cae97356efa5d69b55ac3671f | [] | 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 | 7,924 | 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 |
c39e5331ecbec1272a0f70f65618ae44e1ef8ff4 | 86c5360e5a98088c76bbbcf93e3180b825744708 | /yolo_v3/video_test.py | 31082b2b1f160853466a29120a891091b9470756 | [] | no_license | FenHua/yolo | 586b154f77f6855c2b8f731f101c92dd07840b39 | 6da4aa7c2ad2656182b6694b44d3c8e7cd6f3aa8 | refs/heads/master | 2020-04-26T11:37:37.092504 | 2019-03-03T02:51:23 | 2019-03-03T02:51:23 | 173,523,090 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,823 | py | # coding: utf-8
from __future__ import division, print_function
import tensorflow as tf
import numpy as np
import argparse
import cv2
import time
from utils.misc_utils import parse_anchors, read_class_names
from utils.nms_utils import gpu_nms
from utils.plot_utils import get_color_table, plot_one_box
from model imp... | [
"1556711031@qq.com"
] | 1556711031@qq.com |
6f539cd8fba94c719c7cdbc20951e989a1caeba5 | 279a141a3d4451b53f24bd369d80ac471da6fd95 | /helloworld.py | fac8390bc075e79093fe9d45c734a6dca7cea8bc | [] | no_license | emilyjennings/python-practice | 4f010878263174487ab9ed5ae8c30c3b9ae2e1ca | b98b9ed354999fe3d2286bdd27e83ffd43807f20 | refs/heads/master | 2020-05-24T23:31:43.645103 | 2019-05-20T21:33:45 | 2019-05-20T21:33:45 | 187,516,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #My first python code - in a while, anyway
print("Hello World")
if 5 > 2:
print("good work")
x = "me"
y = 10
print(x)
print(y)
# Codewars
def xo(s):
array = s.split()
xs = 0
os = 0
x = "x"
o = "o"
for item in array:
if item == o:
os += 1
elif item == x:
... | [
"github email address"
] | github email address |
f7ff1126916a332306e7385b85ada97ec2c7f820 | e32ee307e4c59cc18f9dea18d797784a1b23148f | /Quinton-t a single line, the minimum subarray sum..py | f1c7da01a7b41f0859e383b1d01ebc66770c9e60 | [] | no_license | GuhanSGCIT/SGCIT | f4ab44346186d45129c74cbad466c6614f9f0f08 | 8b2e5ccf693384aa22aa9d57f39b63e4659f6261 | refs/heads/master | 2020-07-11T05:47:54.033120 | 2020-07-07T05:02:41 | 2020-07-07T05:02:41 | 204,459,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | n = int(input())
l = [int(x) for x in input().split()]
lst = []
for i in range(n):
for j in range(i, n):
lst.append(l[i:j+1])
sm = sum(lst[0])
for i in range(1, len(lst)):
if sm > sum(lst[i]): sm = sum(lst[i])
print(sm)
| [
"noreply@github.com"
] | GuhanSGCIT.noreply@github.com |
874d3a461033beb96e17976e837e5e249cbfeb4b | 935672cfefee4a8fe861f3247a6e27b7d1d0669a | /hoer/models/cifar/rezero/preactresnet.py | f79f59dd0a14b959453c3f9f64789b35d6ffefdf | [] | no_license | sbl1996/hoer | 533b10f047a4175a95f8a7cb94430002aef9a39d | 8ced31d49ebe627eb0932f896484a8b2b2c223ce | refs/heads/main | 2023-02-02T00:43:42.716916 | 2020-12-13T08:14:12 | 2020-12-13T08:14:12 | 321,008,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | import tensorflow as tf
from tensorflow.keras import Sequential, Model
from tensorflow.keras.initializers import Constant
from tensorflow.keras.layers import Layer
from hanser.models.layers import Act, Conv2d, Norm, GlobalAvgPool, Linear, Identity
class PreActResBlock(Layer):
def __init__(self, in_channels, out_... | [
"sbl1996@126.com"
] | sbl1996@126.com |
1c56c4804e9cce72cdbf8787317d9f8f9609f5de | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003278.py | 27bfeab472a10b41ed9fe95e81801cbb8866f1db | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
8367a3278f4af2f004b3b831acb7ec551b603b1f | 053ad96d19c562c44e3fad53db37b24f4ec7134d | /torchelastic/tsm/driver/test/standalone_session_test.py | 5e48f14e4a023c1330e6c9a25758fa33a742de50 | [
"BSD-3-Clause"
] | permissive | kuikuikuizzZ/elastic | 7ef0ab7b1a4a3510e91eeb6b91b6f94f863940c2 | cf2fb9c153cc371e6d6b341f15122c26965b7461 | refs/heads/master | 2022-12-31T20:11:38.957121 | 2020-09-23T18:38:11 | 2020-09-23T18:39:31 | 298,498,639 | 0 | 0 | BSD-3-Clause | 2020-09-25T07:20:59 | 2020-09-25T07:20:58 | null | UTF-8 | Python | false | false | 6,924 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import os
import shutil
import tempfile
import unittest
from unittest.mock import MagicMoc... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
48f6aa788d0e6b6bd8bc7a621ccc3b855d38bbdc | 31ba27461d50fcd85027318eacefa04d828feb4b | /addons/app-trobz-hr/it_equipment_bonus/security/post_object_security.py | 1075bbfb89ee07b0ebcb2d990bff159c5f43d26d | [] | no_license | TinPlusIT05/tms | 5f258cec903d5bf43c26b93fc112fce0b32de828 | 673dd0f2a7c0b69a984342b20f55164a97a00529 | refs/heads/master | 2022-12-04T02:11:54.770745 | 2019-09-23T07:18:11 | 2019-09-23T07:18:11 | 210,278,672 | 0 | 0 | null | 2022-11-22T00:30:37 | 2019-09-23T06:18:48 | Python | UTF-8 | Python | false | false | 1,091 | py | # -*- encoding: utf-8 -*-
from openerp import models, api
group_user = 'Human Resources / Employee'
group_hr_manager = 'Human Resources / Manager'
class it_equipment_bonus_post_object_security(models.TransientModel):
_name = "it.equipment.bonus.post.object.security"
@api.model
def start(self):
... | [
"Tinplusit05@gmail.com"
] | Tinplusit05@gmail.com |
432097dea145bd35db9bfcab0f20d4ad2f970c45 | fc8137f6a4df69640657a0af5d7201de3c6eb261 | /accepted/Valid Palindrome.py | e791233777023d30d7f38d6a0df11bc4c02b9fd2 | [] | no_license | hustlrr/leetcode | 68df72b49ee3bbb9f0755028e024cc9fea2c21aa | 56e33dff3918e371f14d6f7ef03f8951056cc273 | refs/heads/master | 2020-04-12T08:14:25.371761 | 2017-01-01T12:19:34 | 2017-01-01T12:19:34 | 77,119,341 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # coding=utf-8
class Solution(object):
def isPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
leftcnt,rightcnt=0,0
leftidx,rightidx=0,len(s)-1
s=s.lower()
while leftidx<rightidx:
while not s[leftidx].isalnum() and leftidx<rightidx:
... | [
"823729390@qq.com"
] | 823729390@qq.com |
c01a223e3df44056ff29c6a04a6b554b73afe3f5 | 89c6895a0d71d4ce1fa6ca9e415649625ba2d1c6 | /babybuddy/__init__.py | a0ff099532963b2e40c164385a3203065ae80f3e | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | bry-c/babybuddy | 18f72a3f6480abaafe34250bf82828567fe05a23 | 49156c1d80568a8c052a6788af9a63ea658b7452 | refs/heads/master | 2020-12-20T18:24:29.053433 | 2020-01-25T05:24:43 | 2020-01-25T05:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | """
.----------------.
| .--------------. |
| | ______ | |
| | |_ _ \ | |
| | | |_) | | |
| | | __'. | |
... | [
"chris@chrxs.net"
] | chris@chrxs.net |
66ee5476b811b7932d971e889a6b0e8fa585e838 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /jozLzME3YptxydiQm_24.py | 8b1f7fcb54f2b79c2a1a818e7a9f5e7adc43b9b8 | [] | 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 | 784 | py | """
Create a function that takes in a word and determines whether or not it is
plural. A plural word is one that ends in "s".
### Examples
is_plural("changes") ➞ True
is_plural("change") ➞ False
is_plural("dudes") ➞ True
is_plural("magic") ➞ False
### Notes
* Don't forget to `ret... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2fa0f6f2d17f04b73bcf80ec13cb4906693bb7f3 | a56623649791b945ae07d407533511902b67ebad | /src/installer/src/tortuga/db/dbManager.py | 1f81e2d146ecdf6855c4d2f51897b0247a325ef2 | [
"Apache-2.0"
] | permissive | joedborg/tortuga | 9792bc0ff1a9d7fa335ac41df9324dc502b80e0b | 5690e41c0c78602c195f699bf314c6c94ca7b619 | refs/heads/master | 2021-04-26T22:56:05.646538 | 2018-11-14T16:33:00 | 2018-11-14T16:33:00 | 123,898,555 | 0 | 0 | null | 2018-03-05T09:48:11 | 2018-03-05T09:48:11 | null | UTF-8 | Python | false | false | 7,768 | py | # Copyright 2008-2018 Univa Corporation
#
# 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... | [
"mfrisch@univa.com"
] | mfrisch@univa.com |
ab958f2bbc272631ae086eaa0bf5cfab4ad7ed6b | 747755833862b8e9d0f58ebc62879d6ef47c23c8 | /python-master (5)/python-master/test/tree.py | 2b41e05f60a4593aa20574d59fedcd8f65037cf4 | [] | no_license | tangsong41/stu_py | 98a06730dbca6e158cf81c18d98fe1317c1ae512 | d41507cd8dd9e8a54084872dfa15c36da443c02b | refs/heads/master | 2022-12-11T23:53:57.530946 | 2019-01-15T18:29:19 | 2019-01-15T18:29:19 | 163,953,100 | 3 | 0 | null | 2022-12-07T23:24:01 | 2019-01-03T09:41:29 | Jupyter Notebook | UTF-8 | Python | false | false | 2,287 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: tree.py
@time: 2017/5/22 下午6:57
"""
import json
from collections import defaultdict
def tree():
"""
定义一棵树
python 字典的特性,赋值操作必须事先声明,所以这里使用 collections 很方便的为字典设置初始值
:return:
"""
return defaultdict(tree)
de... | [
"369223985@qq.com"
] | 369223985@qq.com |
a83ace36cf0328a163b1d22f951b524039dc30db | db1b327c4913c453b2fdd9dda661938c4abc5c0e | /abc/89/C.py | 1dad6e66a1695248dab6a8d662bbaa2d771d8383 | [] | no_license | oamam/atcoder | 0c129aab72e3c7090c9799fdf52f6e8119ef5238 | 658054b69b7586eed896484535dcfa1fef498e43 | refs/heads/master | 2021-06-26T09:01:12.389266 | 2020-10-30T02:01:11 | 2020-10-30T02:01:11 | 165,225,322 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | import itertools
def main():
N = int(input())
d = {'M': 0, 'A': 0, 'R': 0, 'C': 0, 'H': 0}
for _ in range(N):
S = input()
if S[0] in d:
d[S[0]] += 1
ans = 0
for a, b, c in list(itertools.combinations(d.keys(), 3)):
ans += d[a] * d[b] * d[c]
print(ans)
main... | [
"chapa0106@gmail.com"
] | chapa0106@gmail.com |
a2921655da4108ff25537002abd8ac828267b205 | 461bb1cd322c381be77cafdd2deb78223abfe79b | /tests/test_config_locator.py | 82611972aa5315bb85e8d38d511aa66e7c601536 | [
"MIT"
] | permissive | ryankanno/py-configurator | 7a3b205cae2d424b4671c1154ba97d5afa8809a6 | 749a4dc329d23d976712d241da13c1d942ad3d01 | refs/heads/master | 2020-06-02T10:38:51.554795 | 2015-03-16T22:45:56 | 2015-03-16T22:45:56 | 17,777,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from nose.tools import eq_
from nose.tools import ok_
import os
from py_configurator import Locator
import unittest
class TestLocator(unittest.TestCase):
def test_locator_construction(self):
config_name = 'foo.bar'
local_dir = './'
system_dir... | [
"ryankanno@localkinegrinds.com"
] | ryankanno@localkinegrinds.com |
bdffbc8830f8b59e9e1ff61aa4da2822cdd77638 | a1c5e68d93cd7d7a5620c34c0567b006fa33cd38 | /.eggs/PyScaffold-3.0.3-py3.6.egg/pyscaffold/extensions/travis.py | 3d97d584f36aa204824901ac55d8ded1f6778621 | [
"MIT"
] | permissive | csm-adapt/citrine_converters | 4f4e3e57379460f0e1205bf643e6251b36ade772 | 32eef5f5e733e7ab9031b2f129bb23b90cedc6bf | refs/heads/master | 2021-01-21T19:13:50.156881 | 2020-01-05T05:48:07 | 2020-01-05T05:48:07 | 92,125,603 | 0 | 2 | BSD-2-Clause | 2018-08-13T22:39:56 | 2017-05-23T03:36:09 | Python | UTF-8 | Python | false | false | 1,367 | py | # -*- coding: utf-8 -*-
"""
Extension that generates configuration and script files for Travis CI.
"""
from __future__ import absolute_import
from ..templates import travis, travis_install
from ..api import Extension
from ..api import helpers
class Travis(Extension):
"""Generate Travis CI configuration files"""
... | [
"bkappes@mines.edu"
] | bkappes@mines.edu |
d8bdb2f6559ca6362e0ef57c900953ab34883af0 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/GluGluSpin0/GluGluSpin0ToZGamma_ZToLL_W_0p014_M_750_TuneCUEP8M1_13TeV_pythia8_cfi.py | f60fb1b53fc8fc0548de2a77ed013835f321393b | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,393 | py |
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection = cms.untracked.double(1.095e-3),... | [
"sheffield@physics.rutgers.edu"
] | sheffield@physics.rutgers.edu |
4a2a7043ddff842f7ad9b18905ebc72ba0379d26 | 9975b2681a079b46d901b994d2bb50609d62791a | /StringSplitAndJoin.py | 5a97e7a31950412b8579f1742aeb40604a4a44f8 | [] | no_license | elvinyeka/Hakker_Rank | 1b0d4aae7a6f4c9ac08f8948be4e5740950057c9 | ab8c42a3e373d4e4460a6c261b77bde65cf56bfb | refs/heads/master | 2022-12-17T00:32:41.279518 | 2020-09-14T12:09:31 | 2020-09-14T12:09:31 | 294,422,920 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | def split_and_join(line):
result = ""
for i in line:
if i == " ":
result += "-"
else:
result += i
return result
if __name__ == '__main__':
line = input()
result = split_and_join(line)
print(result)
# https://www.hackerrank.com/challenges/python-string-... | [
"elvinyeka@gmail.com"
] | elvinyeka@gmail.com |
a1e65e5164610be033d72ac8d03ab0a25093dbfa | 3851d5eafcc5fd240a06a7d95a925518412cafa0 | /Django_Code/gs129/gs129/asgi.py | eba9818d2ad8b07e93af3c77180c5cc2d4df5d63 | [] | no_license | Ikshansaleem/DjangoandRest | c0fafaecde13570ffd1d5f08019e04e1212cc2f3 | 0ccc620ca609b4ab99a9efa650b5893ba65de3c5 | refs/heads/master | 2023-01-31T04:37:57.746016 | 2020-12-10T06:27:24 | 2020-12-10T06:27:24 | 320,180,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for gs129 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('D... | [
"ikshan3108@gmail.com"
] | ikshan3108@gmail.com |
e46bc6e3189a1504a348b21db1fec3ed510eeda1 | ab1d659a36a7af22bd65b8a91f5059cc24eb7a01 | /bigfish_functions/Lowest.py | a19bab32e7d4762357a0df46ccca153cec09d610 | [] | no_license | xingetouzi/Bigfish | e1afc23c59dc139418678611bf44d00e2e67a09d | 7b18192149f0e2c42c8491f9bc7ea5dede11398b | refs/heads/master | 2021-01-21T04:55:34.255633 | 2016-06-06T03:18:15 | 2016-06-06T03:18:15 | 48,084,560 | 4 | 3 | null | 2016-06-06T03:18:15 | 2015-12-16T03:18:38 | Python | UTF-8 | Python | false | false | 730 | py | # -*- coding:utf-8 -*-
# 计算一组时间序列数据(如开盘价、收盘价、最高价、最低价、收益率等)的最低值
# 输入参数:
# length 时间长度 int
# price 时间序列数据 序列数组 默认为最低价数据
# offset 位移数(从前多少根bar开始) int 默认为0
# 若当前K线总数不足以支持计算,(BarNum>length+offset时才能支持计算)返回None
def Lowest(length, price=None, offset=0):
if length <= 0:
return None
if price is None:
p... | [
"541795600@qq.com"
] | 541795600@qq.com |
bb38a9043b0745fa075e2646e3f8c1a003e7c6a5 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/ddos_protection_plan_py3.py | b29926c6d258440a7323c347d31c5c0c172bfb8d | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 3,110 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.