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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e99b1b904a183481565ed38808f38f03702f4e60 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2739/60825/244336.py | 391935b7e27570792c33d23a3858845f5b95b823 | [] | 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 | 440 | py | res=[]
def printAns(currList, currSum, target, k):
if(currSum==target&&currList.size()==k):
res.append(currList)
return
elif currSum>target||currList.size()>k:
return
else:
for i in range(currList[len(currList)-1], 9):
t=currList[:]
t.append(i)
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3e241bca87c1106e07b8d5ffd8e53da25cae808a | 8e1141fb8d9bf02d7e1c2fb887d66049d0860714 | /InvenTree/build/models.py | d09e7518785858212cb1d0f2ae5b953b0b916930 | [
"MIT"
] | permissive | ksanchezcld/InvenTree | 73ec392db5149814604e79690b465ae900af0c94 | ceea0533686305077c07c78ffa20ab4227ce2cf4 | refs/heads/master | 2023-02-28T10:07:02.741814 | 2018-05-12T02:44:29 | 2018-05-12T02:44:29 | 165,738,059 | 1 | 0 | MIT | 2023-02-11T19:31:42 | 2019-01-14T21:28:53 | JavaScript | UTF-8 | Python | false | false | 3,216 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.utils.translation import ugettext as _
from django.db import models
from django.core.validators import MinValueValidator
class Build(models.Model):
""" A Build object organises the creation of new parts from the component parts
It u... | [
"oliver.henry.walters@gmail.com"
] | oliver.henry.walters@gmail.com |
3b81da56caa93e61d28fabd2fb15cbe2d6049842 | af6feb644d2435e1d656556261e5e100209beb1c | /helper/show_pred.py | 3e501e41b0d01880007c112e02a8e8be86dcecf8 | [
"MIT"
] | permissive | liusida/TorchServe_FaceLandmark_Example | f2ca5d1e9cde2eed340ce46584a06cb0e16ef4ac | 1e854f2f82874255b59ca27b19d3a3254fe69636 | refs/heads/main | 2023-04-26T16:25:18.421724 | 2021-05-26T03:25:00 | 2021-05-26T03:25:00 | 370,864,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | import collections
import matplotlib.pyplot as plt
def show_pred(preds, input_img, only_2d=True, filename=None):
# 2D-Plot
plot_style = dict(marker='o',
markersize=4,
linestyle='-',
lw=2)
pred_type = collections.namedtuple('prediction_type', ['sl... | [
"sliu1@uvm.edu"
] | sliu1@uvm.edu |
c97124271bc6733cf52b3bba45b66aac83594937 | c50598d4ce8e6c906748021060f1df84e16372ca | /Cell_BLAST/rmbatch.py | 655f033ddd7728aabe6e52fbaf541a4df57fa836 | [
"MIT"
] | permissive | BacemDataScience/Cell_BLAST | f4407571e321fbc6aeb8642a994767e6e1f381fa | d0e25fa695cb8cebcba68dd32fe5e7e96743803f | refs/heads/master | 2020-09-10T02:31:00.758648 | 2019-09-28T16:06:55 | 2019-09-28T16:06:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,479 | py | """
Batch effect removing modules for DIRECTi
"""
import tensorflow as tf
from . import nn
from . import module
from . import utils
class RMBatch(module.Module):
"""
Parent class for systematical bias / batch effect removal modules.
"""
def __init__(self, batch_dim, delay=20, name="RMBatch"):
... | [
"caozj@mail.cbi.pku.edu.cn"
] | caozj@mail.cbi.pku.edu.cn |
b57127734749739690a92ea4af6da4fa3a1d9bd5 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-storage/azure/mgmt/storage/v2017_06_01/models/sku_py3.py | 8bb382d6481045d2cc41fe140e170b08d4bbffa6 | [
"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,319 | 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 |
daa712434a43b1506008cb02c38d0182d39483c2 | b9c55de2b21ca781ab5522da8a1db34ed55bd644 | /django-app/member/urls.py | cee47f79b216288c4dad0072c53238b1df7520be | [] | no_license | JeongEuiJin/model-wed-p | 04a8ed2aa8145a860e214c563fcebae9d7e39692 | 9fb987f5fe65c05825c519d6ef4bd4d802e0dccb | refs/heads/master | 2021-01-21T21:05:07.169721 | 2017-06-19T12:11:51 | 2017-06-19T12:11:51 | 94,772,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.student_list, name='student_list'),
url(r'^(?P<s_pk>\d+)/$', views.student_del, name='student_del')
]
| [
"hehar1020@gmail.com"
] | hehar1020@gmail.com |
e789385cd300ec837af0be820f02f87154600e1d | 8a4a4cab76ddf1b19a017c3e5c765caf9a5fe3cc | /test/test_remote_app_permission_update_user.py | 45ffee2297dddce630ab3389a4f5adc204e15ffc | [] | no_license | ibuler/testsdk | fa724ff129e2a6144c05b8330cd4014c8bfb9a58 | 015bc6ca7da64180a2a11756a4e7cce733aca806 | refs/heads/master | 2020-06-23T09:02:50.322517 | 2019-07-25T05:51:26 | 2019-07-25T05:51:26 | 198,577,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | # coding: utf-8
"""
Jumpserver API Docs
Jumpserver Restful api docs # noqa: E501
OpenAPI spec version: v1
Contact: support@fit2cloud.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swag... | [
"ibuler@qq.com"
] | ibuler@qq.com |
2fafa7209aecd8c1e4b79ff259093980bd081564 | b9a73fe404ee30baf8a88276030363ad2d1d4cc5 | /old/BRNN_Gap/eval.py | d8cfef3415e874b7220fbd604a5df6822553a2ff | [] | no_license | everglowing/Language-Models | 06da6befceef9b4fd1f43ba7d6708fcf8862f715 | 67db3fc5d0b0ef099cac306bd78294764d3587cf | refs/heads/master | 2021-01-13T04:12:41.341299 | 2016-12-27T18:53:24 | 2016-12-27T18:53:24 | 77,684,222 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | from __future__ import print_function
import numpy as np
import tensorflow as tf
import argparse
import codecs
import time
import os
from six.moves import cPickle
from utils import TextLoader
from model import Model
from six import text_type
def main():
parser = argparse.ArgumentParser()
parser.add_argument... | [
"kalpeshk2011@gmail.com"
] | kalpeshk2011@gmail.com |
cedcb016825d6154f200e7ccfe1d53847c674bb6 | 9512f329d9326ed0b9436202947de9eee0c6c387 | /Cap07-estruturas_de_repeticao/for_03.py | dcfe65ac3989ce9551d9ca9f6b3a0ccdf9f82056 | [] | no_license | frclasso/CodeGurus_Python_mod1-turma1_2019 | 9fffd76547256ac480db41536223682a5b152944 | e34d60498ee45566dbf1182551d91250a9aab272 | refs/heads/master | 2020-04-30T02:01:50.757611 | 2019-06-10T15:38:58 | 2019-06-10T15:38:58 | 176,546,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # loop aninhado
lot_2D = [
['Toyota', 'Audi', 'BMW'],
['Lexus', 'Jeep'],
['Honda', 'Kia', 'Mazda']
]
#print(lot_2D[0][0]) # lista 0 , elemento 0 da lista 0
# for linha in lot_2D:
# for carro in linha:
# print(carro)
lot_3D =[
[
['Tesla', 'Fiat', 'BMW'],
['Honda', 'Jeep'... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
5ea3abe3100127da5d59957fa8e7d512baa17b7f | 9a7b7f90aa62ce52643e2df83d8aef7ba7803afd | /src/input_handlers/inventory_drop_handler.py | f467da4003f1c32e9ad309fed15c3b0a08d53594 | [] | no_license | voidnologo/tcod_roguelike | d82a060a94784a18156fefe105a3e26a540525e9 | 23d806f960134c17ccbd4e6ca5527f35e654df65 | refs/heads/main | 2023-02-28T11:05:52.809161 | 2021-02-07T16:36:38 | 2021-02-07T16:36:38 | 331,168,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | import actions
from input_handlers.inventory_event_handler import InventoryEventHandler
class InventoryDropHandler(InventoryEventHandler):
"""
Handle dropping an inventory item
"""
TITLE = 'Select an item to drop'
def on_item_selected(self, item):
return actions.DropItemAction(self.engin... | [
"(none)"
] | (none) |
e5fc3b96e27fd580d60715aa2a9faae4dfa0113f | 7f7ba9fa96eb7741e3a7956aae439802376099d1 | /excel_sync/db/models/mixins.py | 27dc97215b789f0bf7f1c8a652037d36b68db776 | [
"BSD-3-Clause"
] | permissive | FriedrichK/django-excel-sync | bd34911960fab6580985378da7427f7823163bf7 | 3e649231dcdd26b29278dc2e9563ad0ab67d9f1c | refs/heads/master | 2021-01-02T14:46:34.420031 | 2014-04-21T09:59:47 | 2014-04-21T09:59:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | from excel_sync.db.models.fields import SpreadsheetMixin
class SpreadsheetModelMixin:
@staticmethod
def import_spreadsheet_data(klass):
source = get_spreadsheet_datasource(klass)
fields_with_spreadsheet_metadata = get_fields_with_spreadsheet_metadata(klass)
field_settings = build_field... | [
"friedrich@cartogami.com"
] | friedrich@cartogami.com |
ff93f4c4e03c2723185097e82af8b56b2598c151 | 16be53c2dc4eee5602d3f7a38c599917009fb802 | /account/migrations/0002_remove_profile_address.py | 02e0e499ef82da7cbf16355972f4610131d12c84 | [] | no_license | surajit003/mubango | 35f37fb992782ae168a407922b494c3be0605e00 | 603e13cd07417d200330ca7292d9032af568a0b9 | refs/heads/main | 2023-03-28T07:59:57.967026 | 2021-03-27T09:34:46 | 2021-03-27T09:34:46 | 315,040,701 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | # Generated by Django 3.0.4 on 2021-01-12 21:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("account", "0001_initial"),
]
operations = [
migrations.RemoveField(
model_name="profile",
name="address",
),
]
| [
"surajit@poweredbypeople.io"
] | surajit@poweredbypeople.io |
7111f32084156c05493026e38ec44b185622bb09 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_198/ch73_2019_09_03_19_31_47_647277.py | 33be594abb99268b65cbb1ae31306829a17afa62 | [] | 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 | 126 | py | def remove_vogais(palavra):
return palavra.replace('a','').replace('e','').replace('i','').replace('o','').replace('u','') | [
"you@example.com"
] | you@example.com |
2398d673bdef1187105868a48ac3e87d4555d20f | 3c01d7928029e74a19d646f5a40b3bf099b281a7 | /typeshed/stdlib/mimetypes.pyi | 5a3ec91acbcdb71fb39f59656555c7233be0d66e | [
"MIT"
] | permissive | arpancodes/protectsql | f3ced238c103fca72615902a9cb719c44ee2b5ba | 6392bb7a86d1f62b86faf98943a302f7ea3fce4c | refs/heads/main | 2023-08-07T16:33:57.496144 | 2021-09-24T19:44:51 | 2021-09-24T19:44:51 | 409,894,807 | 0 | 1 | MIT | 2021-09-24T19:44:52 | 2021-09-24T08:46:02 | Python | UTF-8 | Python | false | false | 1,554 | pyi | import sys
from _typeshed import StrPath
from typing import IO, Sequence, Tuple
if sys.version_info >= (3, 8):
def guess_type(url: StrPath, strict: bool = ...) -> Tuple[str | None, str | None]: ...
else:
def guess_type(url: str, strict: bool = ...) -> Tuple[str | None, str | None]: ...
def guess_all_extensio... | [
"arpanforbusiness@gmail.com"
] | arpanforbusiness@gmail.com |
b4891a5b540f1bd8e420aa57dab3d7ec38f825b6 | 232d0a99df3ad03ce7811b4e96ebb6982cc0f865 | /aggregate.py | 396c21a0343add8ef7e949e48692f0f5f77f2ad8 | [] | no_license | tomalrussell/aggregation-case-study | 9e6db17e3a43f436dfce8cb84e608cb61b607239 | d23217d94e61d89043baffcfd157883fc474b8ae | refs/heads/master | 2020-06-23T03:46:44.340892 | 2016-11-24T11:23:43 | 2016-11-24T11:23:43 | 74,666,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,478 | py | from __future__ import print_function
import argparse
from collections import namedtuple
import fiona
from shapely.geometry import shape
from rtree import index
def proportion_of_a_intersecting_b(a, b):
intersection = a.intersection(b)
return intersection.area / a.area
ShapeWithValue = namedtuple('ShapeWithVa... | [
"tomalrussell@gmail.com"
] | tomalrussell@gmail.com |
ba683fa2671b6bcd12fa5fce3c7356675c5f5a60 | db697271157368eb39ee9d9479d0c6a7eb9d06dd | /virtual/bin/easy_install | f22e90e735bfeae51bc3a727bc7716715ebadcd1 | [
"MIT"
] | permissive | amoskipz/instagram | 5edaf03fd784c44fb325dc9f294fab41acc7bc4c | 120e5ef1213567297689e04d5b8620508ce18fea | refs/heads/master | 2023-04-09T13:09:27.379801 | 2021-04-10T17:29:14 | 2021-04-10T17:29:14 | 352,740,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | #!/home/moringa/Desktop/amoz/amosinstagram/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"oduorthomas14@gmail.com"
] | oduorthomas14@gmail.com | |
0571f647ae3ab197917c302a532b8449f7afe44d | f504253210cec1c4ec6c3ea50a45564db7d6cd7f | /scripts/parse_pyi.py | d4b35524274e7a8a2fb6d2ba5b401434ca6486d5 | [
"MIT"
] | permissive | phil65/PrettyQt | b1150cb4dce982b9b8d62f38f56694959b720a3e | f00500d992d1befb0f2c2ae62fd2a8aafba7fd45 | refs/heads/master | 2023-08-30T21:00:08.905444 | 2023-08-17T12:24:45 | 2023-08-17T12:24:45 | 177,451,205 | 17 | 5 | MIT | 2020-08-15T22:21:18 | 2019-03-24T18:10:21 | Python | UTF-8 | Python | false | false | 1,049 | py | import pathlib
import sys
from typed_ast import ast3
def add_parents(tree):
for node in ast3.walk(tree):
for child in ast3.iter_child_nodes(node):
child.parent = node # type: ignore
def find_enums(tree):
for node in ast3.walk(tree):
if not isinstance(node, ast3.Assign):
... | [
"philipptemminghoff@googlemail.com"
] | philipptemminghoff@googlemail.com |
59de5f4d684f1fcbb412201731cec5a17abe4081 | 08f42d68aaea64c986a532b86562365f2a6fe3b5 | /src/addlayouttable.py | 3e32ab12ae34fdcd43ccd0ad5cf36d01a2dfbff6 | [
"MIT"
] | permissive | sos82/micropython-microbit-v2 | da65da0c4ae8a3e2189bb598f75fec43d4628007 | a44573c623a9e935257c8db51a3f0c2e75ea10aa | refs/heads/master | 2023-07-19T07:03:40.101099 | 2021-09-11T15:13:42 | 2021-09-11T15:13:42 | 402,835,132 | 0 | 0 | MIT | 2021-09-11T15:13:43 | 2021-09-03T16:35:34 | null | UTF-8 | Python | false | false | 7,683 | py | #!/usr/bin/env python3
"""
Add a flash layout table to a hex firmware for MicroPython on the micro:bit.
Usage: ./addlayouttable.py <firmware.hex> <firmware.map> [-o <combined.hex>]
Output goes to stdout if no filename is given.
The layout table is a sequence of 16-byte entries. The last entry contains the
header (... | [
"damien@micropython.org"
] | damien@micropython.org |
af3d10e72f46f60903f229b8c409d1372fd9b5e8 | b282ccdc65f969e45b36630f9008f54d2087b9c1 | /thrift-0.11.0/test/py/gen-py-slots/ThriftTest/ThriftTest.py | 3f67ce151c41cbf8af305c8a581a5e09db97f816 | [
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"FSFAP",
"Apache-2.0"
] | permissive | jdencala10/Proyecto-Distribuidos | 36727fb314159393eda86385d8908bb3ae70a549 | 5b34ece54cc9e8240e9f0106ffbf76449fea507d | refs/heads/master | 2020-03-24T02:26:52.556503 | 2018-08-23T07:44:08 | 2018-08-23T07:44:08 | 142,375,884 | 1 | 0 | null | 2018-07-26T04:59:33 | 2018-07-26T02:10:13 | Python | UTF-8 | Python | false | true | 160,877 | py | #
# Autogenerated by Thrift Compiler (0.11.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py:slots
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursiv... | [
"lufezuro@gmail.com"
] | lufezuro@gmail.com |
67b2a9dd24d52509e01bfca824c18c8a25229ef6 | 52e2224538bfa7e69f9e0688dc49c53a247070d7 | /app/api/serializers/offers.py | 5a8539cca5bad81d59223205eb8855f955c825cc | [] | no_license | averdier/epsi_my_learning_chain_api | 2958f8ab6333e87f8b5d1a97f8d485361cdcba9d | ea85dced579f6285f3acd0edd0d64ead4f6f2332 | refs/heads/master | 2022-12-09T19:56:27.836637 | 2018-04-13T09:23:46 | 2018-04-13T09:23:46 | 129,227,310 | 1 | 0 | null | 2022-12-08T01:02:30 | 2018-04-12T09:32:18 | Python | UTF-8 | Python | false | false | 1,666 | py | # -*- coding: utf-8 -*-
from flask_restplus import fields
from .nested import facilitator_nested, api
offer_post_model = api.model('Offer POST model', {
'name': fields.String(required=True, min_length=4, description='Name'),
'tags': fields.List(fields.String(), required=False, description='Tags'),
'price... | [
"a.verdier@outlook.fr"
] | a.verdier@outlook.fr |
68bce261a32438af944cc7a39d301fd1bed0c9b1 | e260e72c6d8f24ef250173025b2ecf129960cf03 | /src/python/py27hash/key.py | 34b6e925ab62923b6e110a518a7371a6aa5cb145 | [
"MIT"
] | permissive | neuml/py27hash | 1cdce30b9480ff338ca0488c2d80a196fc783370 | 4d814de4ab616f33bb2d74c687e74fa57c399a56 | refs/heads/master | 2022-11-23T21:21:56.220330 | 2022-11-20T12:45:21 | 2022-11-20T12:45:21 | 223,510,843 | 11 | 3 | MIT | 2022-03-27T14:46:02 | 2019-11-23T00:57:33 | Python | UTF-8 | Python | false | false | 5,425 | py | """
Compatibility methods to support Python 2.7 style key iteration in Python 3.X+
This is designed for compatibility not performance.
"""
import ctypes
# pylint: disable = E0401
from .hash import Hash
class Keys(object):
"""
Compatibility class to support Python 2.7 style iteration in Python 3.X+
Logi... | [
"561939+davidmezzetti@users.noreply.github.com"
] | 561939+davidmezzetti@users.noreply.github.com |
fc451ae5171ff6413eb5371ac7f7c792cf544866 | e874e3b4312b2beebaa42fa1489b50c618055190 | /venv/Lib/site-packages/onyx/core/datatypes/rdate.py | 96d0f5c2af82ec4900dac49253b490f6f1a8a386 | [] | no_license | CarlosDinart/PUC-SP | 611a9acb6a82b7db2174d2d439b5666db48a530e | 5f5f1ea4b9c55c7d20b2dcd92c461b3d8ebbb664 | refs/heads/master | 2023-01-23T06:46:42.492764 | 2020-12-09T19:41:01 | 2020-12-09T19:41:01 | 320,058,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,973 | py | ###############################################################################
#
# Copyright: (c) 2015 Carlo Sbraccia
#
# 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:/... | [
"cdinart@hotmail.com"
] | cdinart@hotmail.com |
6828a845e8b4a33abe9c434db3f96ee98f8001fa | 36b624c0b7f0e691772f7521695c02f0709f9f89 | /day8.py | cc9d00263a5a71ed2da284db2e9df17031b7dd4f | [] | no_license | alex-huff/advent-of-code-2020 | 4ee30fdcd6b67aceb0c0fb919de9a18f61d9987c | 701cfcba1c952710c0bf0b9336f670141a9ac276 | refs/heads/main | 2023-02-02T13:51:37.722815 | 2020-12-22T01:32:21 | 2020-12-22T01:32:21 | 323,081,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | def getValueBeforeLoop(code):
acc = 0
pc = 0
executionSet = set()
finished = False
while True:
if pc == len(code) - 1:
finished = True
break
if pc in executionSet:
break
inst = code[pc][0]
value = code[pc][1]
executionS... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
301d507040d644d6ddc8e77d11c75c42c9c382f2 | 81fe7f2faea91785ee13cb0297ef9228d832be93 | /HackerRank/Contests/101Hack42/cutting_paper_squares.py | fc51e8c2e28f90db86021f38bf68df6bf3be5567 | [] | no_license | blegloannec/CodeProblems | 92349c36e1a35cfc1c48206943d9c2686ea526f8 | 77fd0fa1f1a519d4d55265b9a7abf12f1bd7d19e | refs/heads/master | 2022-05-16T20:20:40.578760 | 2021-12-30T11:10:25 | 2022-04-22T08:11:07 | 54,330,243 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | #!/usr/bin/env python
import sys
# any way of cutting is minimal and uses n*m-1 cuts
n,m = map(int,sys.stdin.readline().split())
print n*m-1
| [
"blg@gmx.com"
] | blg@gmx.com |
e3f89f91d8c69abb44601e70897a53673388b28d | 87fdd8850df131b1f5df60ecad781ce0e79b1d28 | /models4CWProject/models4CWProject/urls.py | c80e8822580ca1366f5b958b11c6c5ceffeca4e2 | [] | no_license | cs-fullstack-2019-spring/django-models4-cw-Joshtg1104 | 3e1094fca12df27abbed756b137ff5f8d14a730c | 7a3e1e8a6e965ad63f9a9cc1799f55a89aa9f4d6 | refs/heads/master | 2020-04-24T12:09:08.907751 | 2019-02-24T22:17:19 | 2019-02-24T22:17:19 | 171,947,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | """models4CWProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/dev/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')
Cl... | [
"joshtg1104@gmail.com"
] | joshtg1104@gmail.com |
300abebbed2333e357357a47e73f19850524efd9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/392/usersdata/310/71048/submittedfiles/formula.py | ea9ddc63827097528e7fa6c3641fd8e29889c94f | [] | 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 | 208 | py | # -*- coding: utf-8 -*-
# STARTING
p = float(input('Digite o valor de p: '))
i = float(input('Digite o valor de i: '))
n = float(input('Digite o valor de n: '))
v = p*((((1+i)**n)-1)/i)
print ('%.2f' %v )
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
513c734e5f42fa3c0906eb3309cba7ef169d6c1b | a7da58ad91b007b3650003708eb91928f1e3684a | /bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyLine_init.py | c4b6e6d09c91538afb94bb6ecf72091943ac25a9 | [] | no_license | jgpjuniorj/j | 042d1bd7710fa2830355d4312a6b76103e29639d | dc02bfa887ffab9841abebc3f5c16d874388cef5 | refs/heads/master | 2021-01-01T09:26:36.121339 | 2020-01-31T10:34:17 | 2020-02-07T04:39:18 | 239,214,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # XXX Set a resource for the supply line inside a resource
parent_value = context.getParentValue()
if parent_value.getPortalType() in context.getPortalResourceTypeList():
context.setResourceValue(parent_value)
# Predicate ?
context.setMappedValuePropertyList([
'base_price', 'additional_price',
... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
2d157e6b043c49bbf4392ba1010da1ab43617f94 | 1698fe3ff15a6737c70501741b32b24fe68052f4 | /py-elasticsearch-django-master/spider/ESearch/spiders/haoyang_spider.py | a227d4b4b41603f8a992a695342ceb534df4a4bb | [] | no_license | menhswu/djangoapps | 4f3718244c8678640af2d2a095d20a405e337884 | 039a42aa9d1537e7beb4071d86bea7a42253d8b3 | refs/heads/master | 2023-03-04T03:56:01.070921 | 2021-01-28T07:35:02 | 2021-01-28T07:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | # -*- coding:utf-8 -*-
import scrapy
import re
import urllib2
from scrapy.http import Request
from scrapy import Selector
from ESearch.items import XiangmuItem
from ESearch.utils.common import get_md5
# 32406
class DmozSpider(scrapy.Spider):
name = "haoyang"
start_urls = []
main_url = "http:... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
44b3f8b9bf6336102b52df080e47ad6e0a0e1c8d | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/python/gyp/test/win/gyptest-quoting-commands.py | c6e3167e76c582ad10c5852afaa2c21f62439533 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 565 | py |
"""
Make sure batch files run as actions. Regression test for previously missing
trailing quote on command line. cmd typically will implicitly insert a missing
quote, but if the command ends in a quote, it will not insert another, so the
command can sometimes become unterminated.
"""
import TestGyp
import sys
... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
e60bc54cc535f4ab73531ba9f4f5eac45fce071c | 09145b3b07273e0e064a855cf2302220cebcf181 | /textwrap_ex.py | 95b08fe738e17f49e6c04d9e5cc134b0a91c315a | [] | no_license | 01x01/python3-standard-library | 7fa762a12cbcb3535bd8b31128bd9c3aed167e10 | 1af424a04d3f16abf1c6bc42abf80ae357e35920 | refs/heads/master | 2020-06-24T12:23:38.563609 | 2019-08-12T09:42:34 | 2019-08-12T09:42:34 | 168,808,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | # coding: utf-8
# 文本段落格式化处理
# 主要功能: 类似文件编辑器覆盖或填充特性的编程功能
# 文本内容
sample_text = '''The textwrap module can be used to format text for output in
situations where pretty-printing is desired. It offers
programmatic functionality similar to the paragraph wrapping
or filling features found in many text editors.
... | [
"John.Wen@ehealth.com"
] | John.Wen@ehealth.com |
b741fb5ad71c5f866583c59b99471308f3687b26 | f3fb46ec8167c3d7e451265a76e1646aef78233f | /world/stat_checks/utils.py | 3d228a15fb3d369bed4b3c54c83fd1a965011308 | [
"MIT"
] | permissive | Arx-Game/arxcode | d1196941db4b551bb8ec96024241787cf4f34af3 | 363a1f14fd1a640580a4bf4486a1afe776757557 | refs/heads/stable_orphan | 2023-08-03T04:27:24.388330 | 2023-07-29T15:10:38 | 2023-07-29T15:10:38 | 144,421,010 | 52 | 45 | MIT | 2023-08-19T00:52:23 | 2018-08-11T22:06:07 | Python | UTF-8 | Python | false | false | 685 | py | """
Just a few utilities. Should NOT import anything in global scope to avoid
circular imports.
"""
def get_check_by_name(name: str):
"""
Convenience method to avoid worrying about circular imports when
fetching checks.
"""
from world.stat_checks.models import StatCheck
check = StatCheck.get_... | [
"surly.mime@gmail.com"
] | surly.mime@gmail.com |
e9f3f9f51a547f3f2aa65e33127282f566ad08a5 | 39b8aa964883b2bde4349e0c9c38e3233c310548 | /src/Implement Queue using Stacks.py | 421724c0e798d0e25106167e09fd34fd1f92ff3e | [] | no_license | orifake/leetcode-python | 053b82491e0b8d6197dd12d92eec5883211285db | 8e375ebebe0a0285efefc33ed61afb22f41d0c75 | refs/heads/master | 2023-03-09T14:32:17.833456 | 2021-02-26T16:09:31 | 2021-02-26T16:09:31 | 264,466,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | class MyQueue:
def __init__(self):
"""
Initialize your data structure here.
"""
self.queue = []
def push(self, x: int) -> None:
"""
Push element x to the back of queue.
"""
return self.queue.append(x)
def pop(self) -> int:
"""
... | [
"349758699@qq.com"
] | 349758699@qq.com |
800bfc292b541e358ca68c9e6c326a8a80714489 | 6581a1c0b04af75ab7d386597ec436bd4937b6df | /pystache/tests/main.py | 7342c91712b8528bdc016eb6c3da6dde4a999216 | [
"MIT"
] | permissive | trenchmortar/pystache | f3ab3263ca0e990176306d3a0de9a4fba441c78f | cc262abf19cd90e34390d5ddb5db30d6f04620fa | refs/heads/master | 2020-04-23T00:33:47.600879 | 2012-04-26T05:49:19 | 2012-04-26T05:49:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,685 | py | # coding: utf-8
"""
Exposes a run_tests() function that runs all tests in the project.
This module is for our test console script.
"""
import os
import sys
import unittest
from unittest import TestProgram
import pystache
from pystache.tests.common import PACKAGE_DIR, PROJECT_DIR, SPEC_TEST_DIR, UNITTEST_FILE_PREFI... | [
"chris.jerdonek@gmail.com"
] | chris.jerdonek@gmail.com |
15f633e272b1b92e4d97a869ad3ba15c12d17163 | b1b86d8528df27d99ed56ed16f1ba15b5ae78661 | /build_isolated/velodyne_pcl/catkin_generated/generate_cached_setup.py | 4f904fedba7e034ad97a16d679350a13b75ec8ee | [] | no_license | gychen-n/match | 8754ac128b43f81e00faf3ab2af160af70a1d4a3 | ec91f19d104aa4a827c9f66d362f94fe44739cad | refs/heads/main | 2023-04-09T19:56:55.507118 | 2021-04-15T13:39:02 | 2021-04-15T13:39:02 | 358,268,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"gyc@autolabor-host.autolabor-domain"
] | gyc@autolabor-host.autolabor-domain |
413503c12f4dc6734628644e7c8b0fb1e3e15539 | aeec646a9a2feb6fbaac31d4548d9aa09ad125e3 | /peer_module.py | 879a6662404995a3a8da03457bae8f7f63f7be5e | [
"MIT"
] | permissive | hslee1539/p2p | c0a9798e6da54029373ddf3d2b74ff30dc27e567 | c472271eff409ef345f29ef32f562a5f5e00d3ba | refs/heads/master | 2020-07-18T14:45:33.260168 | 2019-09-10T07:45:45 | 2019-09-10T07:45:45 | 206,264,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,674 | py | import socket
import threading
import random
import p2p
class Peer:
""""""
ip : str
controlPort : int
connectionPorts : list
service : str
peerList : list
maxConnection : int
serverThreads : list
clientThreads : list
serverState : list
running : bool
controlSocket : s... | [
"qq1539@naver.com"
] | qq1539@naver.com |
7f53a02ffe54ce6ac59ddf141ab26147d828a8de | c79779a1233e95858499143d717a41205932c53d | /pypi_practices/check_readme.py | 87c4304a51e43f77a2ba84c739eb4ed25c7ac8d5 | [
"MIT"
] | permissive | asottile-archive/pypi_practices | a8915fca09619f741f385c000bc98d84f9fd515f | a4da562c471198dd35806c52016fac44bb46c08d | refs/heads/master | 2021-09-15T02:01:34.023997 | 2018-05-24T00:46:27 | 2018-05-24T00:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from __future__ import print_function
import os.path
from pypi_practices.errors import FileValidationError
from pypi_practices.make_entry import make_entry
def check_readme(cwd):
readme_path = os.path.join(cwd, 'README.md')
if not os.path.exists(readme_path):
raise FileValidationError(
... | [
"asottile@umich.edu"
] | asottile@umich.edu |
6cef9ae7e0a2600c467a578aeb711fdf209a3328 | f72c9e46af5ce5ac738693daf65e67a0962a229a | /sdk/lusid/models/fx_option.py | 6f45a06959519c74da7262d99971e7531c3a0536 | [
"MIT"
] | permissive | finbourne/lusid-sdk-python | db8ce602f8408169f6583783c80ebbef83c77807 | 32fedc00ce5a37a6fe3bd9b9962570a8a9348e48 | refs/heads/master | 2023-08-29T18:22:49.488811 | 2023-08-29T15:57:26 | 2023-08-29T15:57:26 | 125,082,278 | 11 | 11 | NOASSERTION | 2023-04-28T07:16:48 | 2018-03-13T16:31:54 | Python | UTF-8 | Python | false | false | 28,291 | py | # coding: utf-8
"""
LUSID API
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 1.0.463
Contact: info@finbourne.com
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getful... | [
"concourse@finbourne.com"
] | concourse@finbourne.com |
612a1943b2e44d5c298c6f1cc9756958d649bcfc | 3fa6edd22b4c826431d2b55d1aced446bf2755ac | /tests/blockchain/test_blockchain_transactions.py | 24838b3476029cfdc5243ac3ac25c6cbd7291240 | [
"Apache-2.0"
] | permissive | luzofex/plottingid-blockchain-1 | f3bca87316e93466b7512039f2c588a9baadd4a7 | d8a6bdfeb4474b4075e89c129853a606f55dd778 | refs/heads/main | 2023-06-11T12:32:36.690472 | 2021-07-06T19:23:19 | 2021-07-06T19:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,394 | py | import asyncio
import logging
import pytest
from clvm.casts import int_to_bytes
from plottingid.consensus.blockchain import ReceiveBlockResult
from plottingid.protocols import full_node_protocol
from plottingid.types.announcement import Announcement
from plottingid.types.condition_opcodes import ConditionOpcode
from ... | [
"cengndupak@gmail.com"
] | cengndupak@gmail.com |
fe08790f0a1ce9cb7efb4031c9bbf11adbbfcec9 | 6efdee46507c2f2d05e4986c963f189a1e754e9b | /ex15.py | 048204e2129b9aea9b9230e4d635d3eca03a682d | [] | no_license | SachinPitale/Python | b0d2d08f6f12bdce8a30ba9e9c370d3415721168 | 6889527b4b04e394feedcd6516e0298cccb6c5ee | refs/heads/master | 2020-07-26T05:59:46.325528 | 2019-09-15T07:26:24 | 2019-09-15T07:26:24 | 208,557,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py |
from sys import argv
script, filename = argv
txt = open(filename)
print "Here's your file %r :" %filename
print txt.read()
print "type the file name again "
file_again = raw_input("> ")
txt_again = open(file_again)
print txt_again.read()
| [
"sachinpitale22@gmail.com"
] | sachinpitale22@gmail.com |
689f182aaf2c3e12e5345b5f4029c3a84a26d873 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_unshakeable.py | e5580220c428d26267e79c308054751c325bd982 | [
"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 | 464 | py |
#calss header
class _UNSHAKEABLE():
def __init__(self,):
self.name = "UNSHAKEABLE"
self.definitions = [u"If someone's trust or belief is unshakeable, it is firm and cannot be made weaker or destroyed: "]
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adje... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1fb2df762dd45f6aa9845f161da2ee0c3e55bf03 | 77f5a8d34aadc697e95671f1c9b17ca547e2b4c1 | /xierpa3/contributions/filibuster/content/creditcard.py | 3038f19db04632a24c976e6344a1a4cf9dd30217 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dungmv56/Xierpa3 | ef9f37a62a5b739e6e41f8bbe683820771a2f22e | 1e5fecaee84204401f3cc7ccea10092cb31029bf | refs/heads/master | 2020-12-24T11:17:31.945821 | 2016-02-25T11:39:08 | 2016-02-25T11:39:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,697 | py | # -*- coding: UTF-8 -*-
# -----------------------------------------------------------------------------
# xierpa server
# Copyright (c) 2014+ buro@petr.com, www.petr.com, www.xierpa.com
#
# X I E R P A 3
# Distribution by the MIT License.
#
# ---------------------------------------------------------------... | [
"michiel@concretejungle.nl"
] | michiel@concretejungle.nl |
de8214dd5f2792bdca5eccdda107e72222c30130 | 58115fa94a81b02a8b194fe7f1c1cd4ff996df97 | /src/anyconfig/schema/__init__.py | 1437437066cf8b3c7b6580abe489d66ce4816ad7 | [
"MIT"
] | permissive | Terrance-forks/python-anyconfig | 9f77de334c162e1c2334a749c29f63bd0294a09b | 21d7c0e30287569b394972557b5a54fab03bcd5c | refs/heads/master | 2021-06-19T09:11:18.697637 | 2021-05-17T04:35:10 | 2021-05-17T04:35:10 | 202,930,334 | 0 | 0 | MIT | 2019-08-17T20:52:23 | 2019-08-17T20:52:22 | null | UTF-8 | Python | false | false | 451 | py | #
# Copyright (C) 2021 Satoru SATOH <satoru.satoh@gmail.com>
# SPDX-License-Identifier: MIT
#
r"""misc global constants, variables, classes and so on.
"""
try:
from .jsonschema import validate, is_valid, gen_schema
SUPPORTED: bool = True
except ImportError:
from .default import validate, is_valid, gen_schem... | [
"satoru.satoh@gmail.com"
] | satoru.satoh@gmail.com |
89018a833caf16c361c788be55349a65e85782d1 | 30e58b930c31526a1e226a928bc77e23f232080e | /mapfunctions/plotMaker.py | e04deb5fbb17956d5e7c3e0ca08b53359a0972c8 | [] | no_license | bbw7561135/anisotropy | c8688f9d705234c6a90f607acb3e8cc28ea5be28 | a21f85788c16d8aa14fc5934f476def4c8954f34 | refs/heads/master | 2021-06-01T05:35:48.727845 | 2016-05-13T00:27:37 | 2016-05-13T00:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,679 | py | #!/usr/bin/env python
import subprocess, glob, math, os, argparse
import myGlobals as my
from anisotropy.icesim.analysis import readDist as readDist_IC
from anisotropy.topsim.analysis import readDist as readDist_IT
from anisotropy.mapfunctions.energyCuts import getEbins, getEnergyMaps
def medianLabel(config, emin, e... | [
"jrbourbeau@gmail.com"
] | jrbourbeau@gmail.com |
98730ea9cabba62f347e29709bcad21695798feb | b6dce5523115d7e51ce1c5bf11ca963f9a17f04c | /shift/utils/timer.py | 4be249aeb97ad182f8bf6179f4a88b92a227a55e | [
"MIT"
] | permissive | fyabc/Py2016 | 1fcb345df6bcd89348686e13337158aa4325a8e0 | a7e2b4ad11c96be97107821defef379d6e6f7595 | refs/heads/master | 2020-12-29T02:37:17.580568 | 2017-02-27T16:18:02 | 2017-02-27T16:18:02 | 54,388,415 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | # -*- coding: utf-8 -*-
__author__ = 'fyabc'
import pygame
import time
class ShiftTimer:
"""The Timer of this game. Copied from pgu.timer.
This is a singleton class. Do NOT have two ShiftTimer object at the same time.
"""
# The game time when one of the clock parameters was last changed
lastGame... | [
"fyabc@mail.ustc.edu.cn"
] | fyabc@mail.ustc.edu.cn |
2db6b9d03d9ffa6ad05fa7db612b7e2db5364dd6 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/02_preprocessing/merraLagScripts/443-tideGauge.py | 1cfa0de339d2f9659ec80f2176dd2e40a6ad8413 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
64411eeed18edf4d09de5cf319c24119d1bea4e2 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/lag82/443-tideGauge.py | 00c7b277a09c1bb696c020bb8ff48ee0b7724626 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,984 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
f5c65c37b451bb7845cec225a79a12aa20bfce04 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /KPicBthv6WhHFGapg_17.py | 7aa3aa5f1a8fb508597b2d6bcee51885d1d6d0bd | [] | 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 | 595 | py | """
Create a function that returns the **number of syllables** in a simple string.
The string is made up of _short repeated words_ like `"Lalalalalalala"` (which
would have _7 syllables_ ).
### Examples
count_syllables("Hehehehehehe") ➞ 6
count_syllables("bobobobobobobobo") ➞ 8
count_syllable... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f066cea6f931f46a65d678f695ba5d46150afd2f | 75402b6c851a12ae41359fdd83e89d2160c308af | /zentral/core/stores/backends/kinesis.py | a5c04ab974baab80ac23fec6e49719b18ff53a28 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-commercial-license"
] | permissive | neocode12/zentral | 7b05aeeb823a5a3d7d268cc2b01e0bf1a5e4be71 | 9ecc8d8334148627fcccaa875f100adacd7a018b | refs/heads/main | 2023-04-09T12:06:45.355559 | 2023-03-15T14:05:05 | 2023-03-15T14:05:05 | 327,651,549 | 0 | 0 | Apache-2.0 | 2021-01-07T15:30:00 | 2021-01-07T15:30:00 | null | UTF-8 | Python | false | false | 4,096 | py | import logging
import boto3
from kombu.utils import json
from zentral.core.exceptions import ImproperlyConfigured
from zentral.core.stores.backends.base import BaseEventStore
from zentral.utils.boto3 import make_refreshable_assume_role_session
logger = logging.getLogger('zentral.core.stores.backends.kinesis')
class... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
af646b7ff78e8c9fcdc8fbc2cb08695b04778a24 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/127/usersdata/218/35224/submittedfiles/ex11.py | 4cdc5c3d13ba6d1d5401867a17bcaa65083f3520 | [] | 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 | 543 | py | # -*- coding: utf-8 -*-
D1=int(input('digite o dia da data 1:'))
D2=int(input('digite o dia da data 2:'))
M1=int(input('digite o mês da data 1:'))
M2=int(input('digite o mês da data 2:'))
A1=int(input('digite o ano da data 1:'))
A2=int(input('digite o ano da data 2:'))
if A1>A2:
print(data1)
elif A2>A1:
print(d... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0fc2541411dcb465d061d206bdbd4ed4a27b5913 | ea97a6d0d5ffc5ec2730b63a20b1f4de0bd8112d | /scurgen/test/axes_demo.py | a74c934af8fb6965cae2a134495e19057c3db58d | [] | no_license | daler/scurgen | 35d5ee35243a41b75c444f5bb71380ba80ba72c6 | ca0e4f30e9573684b90a8123e31982490b5fe473 | refs/heads/master | 2020-12-24T19:18:19.587609 | 2013-03-11T16:35:33 | 2013-03-11T16:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
import matplotlib.gridspec as gs
import numpy as np
fig = plt.figure(figsize=(10,10))
nchroms = 21
nrows = int(np.round(np.sqrt(nchroms)))
ncols = nrows
nfiles = 3
CHROM = dict(
left= 0.05,
right=0.8,
top=0.9,
bo... | [
"dalerr@niddk.nih.gov"
] | dalerr@niddk.nih.gov |
9854d7859fa4e053576c83e5b67de5d52be02adc | ae646229187ab11607e4889e1cf0e380b26fae5c | /experiment_code/loadtensor_runfactorization_printphenotypes.py | 7733aba7df01dbc0f8b66758c204b1db20dc5dc9 | [] | no_license | aschein/tensor_analysis | cb60caf56713cfb7191c46d3cc20c32ea591d382 | 155754be7fa8cfb97432997cb66aa37b1a7b582b | refs/heads/master | 2021-01-17T07:44:00.657311 | 2014-09-11T20:45:14 | 2014-09-11T20:45:14 | 34,183,143 | 1 | 2 | null | 2018-08-25T20:15:18 | 2015-04-18T21:19:08 | Python | UTF-8 | Python | false | false | 9,319 | py | ## this combines the 2 scripts into one comprehensive one:
##
## last modified aug 28, 2014
##
## 1. run_factorization_localadmin.py
## 2. analyze_tensor_factors_withGamma.py
##
## INPUT:
## R
## alpha
## gammaForTF: numbers separated by commas, ex: '0.001, 0.1, 0.1'
## tensor_filename
## sav... | [
"robchen401@gmail.com"
] | robchen401@gmail.com |
6fbab4480a4dbe295810065fd70027aba431136e | 65fcf07ea6d6dfe0c5a4090343b098807e075010 | /app/send_sms.py | ddf1616e9f2939a4869869007f444ac64bf91988 | [] | no_license | parkhongbeen/study_selenium | 0e7e0bc23809c57c29d5352e2ee81b9a74060026 | f1bdfd3c3aa3299791cc53363eea0a811c6dcedc | refs/heads/master | 2021-04-20T11:27:39.522904 | 2020-03-26T12:54:59 | 2020-03-26T12:54:59 | 249,679,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from sdk.api.message import Message
api_key = "NCSGLMHSQ2FTVZUA"
api_secret = "LCSOKSWPDNLZF971PMZ4XAQPZPYD60EW"
params = dict()
params['type'] = 'sms'
params['to'] = '01082128997'
params['from'] = '01050022354'
params['text'] = '야 홍빈아 내가 내일 커피사줄께'
cool = Message(api_key, api_secret)
try:
response = cool.send(pa... | [
"pack122@naver.com"
] | pack122@naver.com |
7734622e41048306a547129450508bf4c50e9f13 | 094627e84a63cdeb97c8917cc6581cc55fa8f583 | /brl_baselines/deepq/models.py | 4309da5e793c8494de2fd8a12a042c7a978427f7 | [
"BSD-3-Clause"
] | permissive | gilwoolee/brl_baselines | 844f23b31f53648796325d13cb3c252cda0fc55d | c85df28c0f2dfbd69d3d27928bcbabf36a3663bb | refs/heads/master | 2022-11-28T22:31:31.195138 | 2020-08-04T02:17:28 | 2020-08-04T02:17:28 | 278,916,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,059 | py | import tensorflow as tf
import tensorflow.contrib.layers as layers
def _mlp(hiddens, input_, num_actions, scope, reuse=False, layer_norm=False):
with tf.variable_scope(scope, reuse=reuse):
out = input_
for hidden in hiddens:
out = layers.fully_connected(out, num_outputs=hidden, activat... | [
"gilwoo301@gmail.com"
] | gilwoo301@gmail.com |
3dcd85c38401d06af2e66326a9b522210cb53cf9 | 1f006f0c7871fcde10986c4f5cec916f545afc9f | /apps/ice/plugins/oxml/oxml2xhtml_basic_states.py | aa5a0c3fb0c927117618d8300e5a12d3ff58f720 | [] | no_license | ptsefton/integrated-content-environment | 248b8cd29b29e8989ec1a154dd373814742a38c1 | c1d6b5a1bea3df4dde10cb582fb0da361dd747bc | refs/heads/master | 2021-01-10T04:46:09.319989 | 2011-05-05T01:42:52 | 2011-05-05T01:42:52 | 36,273,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,587 | py | # Copyright (C) 2010 Distance and e-Learning Centre,
# University of Southern Queensland
#
# This program 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 of the License, or
# ... | [
"raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05"
] | raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05 |
a28750d60b8ec5ca5296f66052472828b084a86a | 293763954ad29020d68d17bb20b2ac8ce09b2412 | /Learning & Documentation/Create Models in Tensorflow/linear_regression.py | de2ef0001bad013224eaa176c22b37be896378d2 | [
"MIT"
] | permissive | grebtsew/Object-and-facial-detection-in-python | b4371d86ca1b997c310c961b4eeb975af42a8f78 | 4ef987f1de7509876ca1e3588b2d6f4afaef2a75 | refs/heads/master | 2023-03-30T16:52:07.192025 | 2022-07-29T16:00:50 | 2022-07-29T16:00:50 | 122,378,661 | 17 | 5 | MIT | 2023-03-25T01:49:15 | 2018-02-21T18:52:07 | Python | UTF-8 | Python | false | false | 3,681 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"danwe980@student.liu.se"
] | danwe980@student.liu.se |
4e0dade735408ec02614201f3dce6b1d129075a7 | a518141ca3ba2b6fa63a7961b51936d9438ff022 | /10812 - Beat the Spread!.py | 5d9944100b2a7760d5decf4054a94f3decb2b9c7 | [] | no_license | jlhung/UVA-Python | ec93b2c98e04c753e8356f3e4825584fae4a8663 | 7a0db4fecffd7ac4f377f93da41291a8e998ee9b | refs/heads/master | 2022-11-28T04:47:49.270187 | 2020-08-10T13:19:58 | 2020-08-10T13:19:58 | 116,969,745 | 19 | 9 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | n = int(input())
while n:
x, y = map(int, input().split())
if (x+y) % 2 or (x+y) < 0 or (x-y) < 0:
print("impossible")
else:
print(int((x+y) / 2), int((x-y) / 2))
n -= 1 | [
"35291112+jlhung@users.noreply.github.com"
] | 35291112+jlhung@users.noreply.github.com |
62085bac7af2c75ef4995d947ebe57ef7dcf9cb2 | 44a2741832c8ca67c8e42c17a82dbe23a283428d | /cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/ak6CaloJetSequence_pPb_mix_cff.py | 43faa9de8f5e464f8f33daa997f0ff65a0071833 | [] | no_license | yenjie/HIGenerator | 9ff00b3f98b245f375fbd1b565560fba50749344 | 28622c10395af795b2b5b1fecf42e9f6d4e26f2a | refs/heads/master | 2021-01-19T01:59:57.508354 | 2016-06-01T08:06:07 | 2016-06-01T08:06:07 | 22,097,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,457 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
ak6Calomatch = patJetGenJetMatch.clone(
src = cms.InputTag("ak6CaloJets"),
matched = cms.InputTag("ak6HiGenJetsCleaned")
)
ak6Calopar... | [
"dgulhan@cern.ch"
] | dgulhan@cern.ch |
5a75b711fb29537898981bed0b06a74806f2c9fd | d6ed05e23faa20beb5e47624870608a9219ea81c | /TuningTools_old/scripts/analysis_scripts/dev/Trigger_20161214_20_7_7_3_LHbins/create_data.py | 085d2aa684d3438748ca6040bac02c4a8c3587d0 | [] | no_license | kaducovas/ringer | f6495088c0d54d622dcc707333b4c2fbf132d65f | 603311caab016ad0ef052ea4fcc605c5ac4e494b | refs/heads/master | 2020-06-16T21:37:15.228364 | 2019-07-08T01:29:57 | 2019-07-08T01:29:57 | 195,477,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,462 | py | #!/usr/bin/env python
import numpy as np
useLHBins = True
if useLHBins:
etaBins = [0.00,0.60,0.80,1.15,1.37,1.52,1.81,2.01,2.37,2.47]
etBins = [15,20,30,40,50000]
# Thresholds
thres_lh_etavect = [0,0.6,0.8,1.15,1.37,1.52,1.81,2.01,2.37,2.47]
thres_lh_etvect = [4,7,10,15,20,25,30,35,40,45,50]
tight201... | [
"kaducovas@gmail.com"
] | kaducovas@gmail.com |
0ff42ffdcd69c859b093f5e2f320ba03debf77c8 | fea9e7fc8b5ae1752a8917f415ddfcadc62ae540 | /practice/week2/css-selector/sel_books.py | 9e571bd96e24c0ce80be33267c1c92621b9eed3f | [] | no_license | Dadajon/dl-with-big-data | fc85e0dd13aa857b89c9b707faabcfc69b51fe24 | 8e7b543948be0773550a114dc6467627c88e445f | refs/heads/main | 2023-07-26T05:43:02.901241 | 2021-09-09T06:09:43 | 2021-09-09T06:09:43 | 328,919,918 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from bs4 import BeautifulSoup
fp = open("books.html", encoding='utf-8')
soup = BeautifulSoup(fp, 'html.parser')
sel = lambda q: print(soup.select_one(q).string)
sel("#nu") # id로 찾는 방법
sel("li#nu") # id와 tag로 찾는 방법
sel("ul > li#nu") # 부모 tag로 id와 tag로 찾는 방법
sel("#bible #nu") # id로 아래의 id를 찾는 방법
sel("#bible > #nu") # id... | [
"dadajonjurakuziev@gmail.com"
] | dadajonjurakuziev@gmail.com |
4dd2952b692d1eb7f9535151212982a8483654d6 | 0bf183f870d39037a254695b163c833512a826f8 | /wapps/migrations/0016_auto_20161024_0925.py | 5799f374b78a09d39052c63d158a41562f899572 | [
"MIT"
] | permissive | apihackers/wapps | 47c57a762aec89bc398a152763a2b26005d8ffdc | e8158747aa3d77246d41142580faf9a5f2b0d968 | refs/heads/master | 2022-06-19T19:40:28.615502 | 2018-05-02T12:42:51 | 2018-05-02T12:42:51 | 59,942,417 | 7 | 2 | MIT | 2022-05-21T21:45:25 | 2016-05-29T12:40:01 | Python | UTF-8 | Python | false | false | 723 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-24 09:25
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
from wapps.utils import get_image_model
class Migration(migrations.Migration):
dependencies = [
('wapps', '0015_iden... | [
"noirbizarre@gmail.com"
] | noirbizarre@gmail.com |
12a314df473b007e01fcd646a5de9d22189aca4b | 9b7d1472086eed304320312043a95610a39baf9c | /easy_maps/migrations/0001_initial.py | 63a5e3ffb746437d92af2bbe813d7a74e7c6e4bc | [
"MIT"
] | permissive | duct-tape/django-easy-maps | 1831785952c5ef40028197d5ab618074b5a6053a | 790196fcb5652a76a64f7f513c4c4ef4a1c905df | refs/heads/master | 2020-05-28T05:14:18.312914 | 2019-04-21T04:40:29 | 2019-04-21T04:40:29 | 188,890,561 | 0 | 0 | MIT | 2019-05-27T18:20:17 | 2019-05-27T18:20:16 | null | UTF-8 | Python | false | false | 1,103 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Address',
fields=[
('id', models.AutoField(verb... | [
"basil.shubin@gmail.com"
] | basil.shubin@gmail.com |
64ccdd263ca98e95b24a5cf753dcf440d430245d | 10e1a046d2fb02d0742364c5d2ca3a40f9380416 | /py_wake/tests/test_windturbines/test_generic_wind_turbines.py | 0dec1eb35265b6ee19a256e891ed3db51e58c090 | [
"MIT"
] | permissive | Bowen-Du/PyWake | e1c407d4ff20101c95c28cd856faec729b414320 | 9a3c9a85f50082da01286b2dc8551a4e8f5fc037 | refs/heads/master | 2023-06-10T20:36:00.213649 | 2021-07-02T11:43:51 | 2021-07-02T13:14:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,371 | py | from py_wake.examples.data.hornsrev1 import V80, Hornsrev1Site
from py_wake.wind_turbines._wind_turbines import WindTurbine
from py_wake.wind_turbines.generic_wind_turbines import GenericWindTurbine, GenericTIRhoWindTurbine
from py_wake.examples.data import wtg_path
from py_wake.examples.data.dtu10mw import DTU10MW
imp... | [
"mmpe@dtu.dk"
] | mmpe@dtu.dk |
01d3ab118c111cade14811b445555a634d2d86f8 | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Dsz/PyScripts/Lib/dsz/mca/file/cmd/logedit/errors.py | 9078f31a6058462a9312fcb46aac6150a7228736 | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 1,344 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: errors.py
import mcl.status
ERR_SUCCESS = mcl.status.MCL_SUCCESS
ERR_INVALID_PARAM = mcl.status.framework.ERR_STAR... | [
"francisck@protonmail.ch"
] | francisck@protonmail.ch |
3ce562a5e5b5881b87d936099c74eb0efc486b7b | 05de912d5579e031a8ccaeb9b8ea70f1431b82ad | /mopidy/audio/mixers/__init__.py | feaccc3d077f9d2b34cbf8dfeb1dad65870713f2 | [
"Apache-2.0"
] | permissive | cave-scorpion/mopidy | bcb0939ddacb0bd295ad36c2b073b369869a15cf | 5d83e3e97a47efcfa62558ba57fd394b8c311aa6 | refs/heads/master | 2021-01-16T22:16:21.134218 | 2013-03-31T14:59:30 | 2013-03-31T14:59:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | from __future__ import unicode_literals
import pygst
pygst.require('0.10')
import gst
import gobject
from .auto import AutoAudioMixer
from .fake import FakeMixer
from .nad import NadMixer
def register_mixer(mixer_class):
gobject.type_register(mixer_class)
gst.element_register(
mixer_class, mixer_cla... | [
"stein.magnus@jodal.no"
] | stein.magnus@jodal.no |
e6ba65a1e4349381acba5c01404dcd17efb2c8d3 | f023692f73992354a0b7823d9c49ae730c95ab52 | /AtCoderBeginnerContest/1XX/186/E_another.py | 5cd6db2ce83b44b90602978bdf66cc3d4f96d6b5 | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 1,876 | py | """
以下を参考に作成
https://twitter.com/kyopro_friends/status/1341216644727676928
s + k * x ≡ 0 mod n を解く(xを求める).
鳥の巣原理から x <= n のため,
x = im + j (0 <= i, j <= m = n**0.5)
と表せる.
j が 0 ~ m の時の位置(s + k * j mod n)を前計算し,mapに持っておく(jmap).
s + k * (im + j) ≡ 0 mod n
s + k * j + k * im ≡ 0 mod n
((s + k * j) mod n) + ... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
61b606c1dfe74cfc71a5244dcf12c871c3d47dee | 1fea3ad1608fbe8d7a695176ce001c32992baab4 | /web_scraping/ec2files/ec2file0.py | bdcb33fe4e712a9908fed1ce7a984655bbc9e087 | [
"MIT"
] | permissive | cmgospod/Groa | 2119714f57bb911d5c9c91597a1b6558448d5dd6 | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | refs/heads/master | 2021-01-02T08:06:29.570942 | 2020-02-07T20:10:54 | 2020-02-07T20:10:54 | 239,560,447 | 1 | 0 | MIT | 2020-02-10T16:38:32 | 2020-02-10T16:38:31 | null | UTF-8 | Python | false | false | 109 | py | from scraper import *
s = Scraper(start=0, end=1781, max_iter=30, scraper_instance=0)
s.scrape_letterboxd() | [
"cmgospod@users.noreply.github.com"
] | cmgospod@users.noreply.github.com |
a3b8e7c2bd30a297c6acbb500964593d46332088 | 3d82768d4f912eb940a1238a3b6347c727e52558 | /expense/migrations/0004_auto_20201024_1825.py | 83e59278f488ec0faee9c08743a0a6ee6c64bc63 | [] | no_license | surajit003/tdd-expense-app | b4dd53c1328f4dd40b39593e09f8afe9e811ff4a | 603c6f56ce35944c1acf8deefd6d7b420576e65d | refs/heads/main | 2023-01-08T16:01:42.102279 | 2020-11-08T20:47:04 | 2020-11-08T20:47:04 | 305,830,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | # Generated by Django 3.1.2 on 2020-10-24 18:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("expense", "0003_auto_20201024_1816")]
operations = [
migrations.AlterField(
model_name="expense",
name="expense_id",
... | [
"surajit@poweredbypeople.io"
] | surajit@poweredbypeople.io |
7514b141abc126e5037f7efc1213d03689bc0d9c | e7a87d9eca87d8be7b23b3a57c1d49f0ad6d20bc | /django_evolution/tests/test_evolution_graph.py | 6605ada4d37302b6934cfd1385ab441c14c50fee | [
"BSD-2-Clause"
] | permissive | beanbaginc/django-evolution | 19a775a223b61861f503925216fb236b822122c0 | 756eedeacc41f77111a557fc13dee559cb94f433 | refs/heads/master | 2023-06-22T07:25:32.401292 | 2022-11-10T03:23:50 | 2022-11-10T03:23:50 | 14,189,401 | 22 | 13 | null | 2015-01-07T01:15:08 | 2013-11-07T00:04:43 | Python | UTF-8 | Python | false | false | 24,833 | py | """Unit tests for django_evolution.utils.graph.EvolutionGraph."""
from __future__ import unicode_literals
from django.db import DEFAULT_DB_ALIAS, connections
from django_evolution.compat.apps import get_app
from django_evolution.models import Evolution, Version
from django_evolution.support import supports_migration... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
2e43ad66add5cc370ee3dc18b1754c8d45d8b1fe | 31eaed64b0caeda5c5fe3603609402034e6eb7be | /ignorancia_zero/iz_aula-064 - programação orientada a objetos.py | e7aa8a74376c2e9fbd0ede1bee421dec1ba61654 | [] | no_license | RaphaelfsOliveira/workspace_python | 93657b581043176ecffb5783de208c0a00924832 | 90959697687b9398cc48146461750942802933b3 | refs/heads/master | 2021-01-11T17:39:49.574875 | 2017-06-28T20:55:43 | 2017-06-28T20:55:43 | 79,814,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | # metodo especial construtor de objeto
# instancia o objeto
'__init__'
# devolve o objeto no formato de um dicionario
'__dict__'
# transforma o objeto em string, tem sempre que retornar uma string
'__str__'
# faz operações com outra instancia do objeto somente com sinal + - / *
'__add__'
#imprime na tela a docum... | [
"raphaelbrf@gmail.com"
] | raphaelbrf@gmail.com |
bfb960beefa750bcc845e2efc49507af9740647a | 52a61caff0aeb434c32e5657e38762643e9f57dd | /DataStructuresAndAlgorithms/SearchAndSort/Search/BinarySearch/functionBinarySearch.py | 6a7e15608caca8460acd2988b9f9a53c5f770492 | [] | no_license | AndrewErmakov/PythonTrainingBasics | 1480a6378d1ec59884760e2b3014ccc3d28f058f | 639e15bbfc54da762cb9e366497754cfece30691 | refs/heads/master | 2021-06-10T15:57:58.682335 | 2021-03-25T13:37:30 | 2021-03-25T13:37:30 | 153,678,760 | 0 | 0 | null | 2018-10-30T13:52:51 | 2018-10-18T19:45:47 | Python | UTF-8 | Python | false | false | 596 | py | def binary_search(list_num: list, number: int) -> int:
"""Выводит индекс значения, которое мы ищем, иначе выводится НЕ НАЙДЕНО"""
low_border = 0
high_border = len(list_num) - 1
while low_border <= high_border:
mid = low_border + (high_border - low_border) // 2
guess = list_num[mid]
... | [
"andrew.67@list.ru"
] | andrew.67@list.ru |
06b82317f341de041aa076425ac0ea6a0b157357 | fdb9b553a23647f7ea06f690613707c40b54902f | /src/main/resources/resource/LocalSpeech/LocalSpeech.py | 3c699a5680887399d9993fd401bcfa08d5ebce64 | [
"CC-BY-2.5",
"Apache-2.0"
] | permissive | ShaunHolt/myrobotlab | d8d9f94e90457474cf363d36f4a45d396cfae900 | 92046d77abd560f0203050b3cccb21aa9df467f2 | refs/heads/develop | 2021-07-08T04:55:01.462116 | 2020-04-18T19:58:17 | 2020-04-18T19:58:17 | 122,795,957 | 0 | 0 | Apache-2.0 | 2020-04-18T19:58:18 | 2018-02-25T01:37:54 | Java | UTF-8 | Python | false | false | 886 | py | #########################################
# LocalSpeech.py
# description: used as a general template
# categories: speech
# more info @: http://myrobotlab.org/service/LocalSpeech
#########################################
# start the service
mouth = Runtime.start('mouth','LocalSpeech')
#possible voices ( selected voic... | [
"grog@myrobotlab.org"
] | grog@myrobotlab.org |
474938eddcd278b842c02f4bc13beab9969ae5d4 | cbf448f9fa287b38a6b175040141e9ee445cfcd1 | /DNN_3L/evaluation_matrics.py | cbb95bef1984a401aac76d2f267d039a67d8c78a | [] | no_license | rnaimehaom/SST-Result | 271c115d6ab1f14265169d98f604d4a63c71184e | 829029b060010b2928032b3d6728c660b538b5cf | refs/heads/main | 2023-03-27T23:17:53.935109 | 2021-04-09T02:49:58 | 2021-04-09T02:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 2 15:39:34 2020
@author: tanzheng
"""
import pickle
import numpy as np
with open('DNN_3L_SST_predict.pkl', 'rb') as f:
MT_predict_result = pickle.load(f)
f.close()
first_pred_out_y, second_pred_out_y, out_prop_y, tasks = MT_predict_result
... | [
"noreply@github.com"
] | rnaimehaom.noreply@github.com |
ef5cfcba95a6606c5510682302bc8b7563f002b6 | e90bf4b372da78ceec15282d060b48d18ba8d4e9 | /supervisor/backups/const.py | c4b5e593e438d1e447c34ebcb2e8cc63ca5d919e | [
"Apache-2.0"
] | permissive | home-assistant/supervisor | 67f2e1755ff5fbf7cf2084351e1c32c6995274e0 | 4838b280adafed0997f32e021274b531178386cd | refs/heads/main | 2023-08-31T22:51:25.949277 | 2023-08-31T08:01:42 | 2023-08-31T08:01:42 | 84,926,758 | 928 | 477 | Apache-2.0 | 2023-09-14T17:11:27 | 2017-03-14T08:54:15 | Python | UTF-8 | Python | false | false | 945 | py | """Backup consts."""
from enum import StrEnum
BUF_SIZE = 2**20 * 4 # 4MB
class BackupType(StrEnum):
"""Backup type enum."""
FULL = "full"
PARTIAL = "partial"
class BackupJobStage(StrEnum):
"""Backup job stage enum."""
ADDON_REPOSITORIES = "addon_repositories"
ADDONS = "addons"
DOCKER... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
c553d74eaa132d25fe4fc5ed0e0a10d05a9ff9e5 | f2a55f94783fed2a53bc2ff1a0096cfdb75dc5a3 | /3rd Year Diatomic Simulation Exercise/Particle1D.py | 9b7e688d4446b103fb241661e708022f216dd910 | [] | no_license | callous4567/UoE-Projects | c7b307878ae1d6b7e00227bb1a681aec2ad55b1f | 5a4ee803f70f7da9d860f905114a71278c7f50e7 | refs/heads/master | 2023-02-18T22:19:25.496429 | 2023-02-13T01:00:19 | 2023-02-13T01:00:19 | 245,646,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | """
CMod Ex2: Particle1D, a class to describe 1D particles
"""
class Particle1D(object):
"""
Class to describe 1D particles.
Properties:
position(float) - position along the x axis
velocity(float) - velocity along the x axis
mass(float) - particle mass
Methods:
* formatted output
... | [
"plasmolian@gmail.com"
] | plasmolian@gmail.com |
d2797398c8da6c4fb49aafc3d736a1391d150f12 | b6f0b3932f8cdee542f3f1fe7f5c27c67e5d1c2d | /conf/train_conf_dense_7.py | 1c88e9db0a9644002cbed124c0e05c35b5d75b9d | [] | no_license | fuding/codes_for_sicheng | dcab85b66d9f3a0f0c78c5e471223d919a3d14f7 | c8ba21572921ba0aa9686174305ab48fa614cd5d | refs/heads/master | 2022-02-26T16:32:01.253870 | 2019-10-11T06:10:27 | 2019-10-11T06:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | from easydict import EasyDict
def get_config():
conf = EasyDict()
conf.arch = "dense_7"
conf.model = "MultiHDR"
conf.model_name = conf.arch + ""
conf.use_cpu = False
conf.is_train = True
conf.gpu_ids = [0]
conf.epoch = 400
conf.start_epoch = 0
conf.learning_rate = 0.0002
... | [
"907682447@qq.com"
] | 907682447@qq.com |
c3025edb9e0a4bfafad31ec4def223cfdd8a6809 | 3cc2f47de6d78d610a2887f92bfba150b2994888 | /application/forms/account.py | b709a49955ab50546f45efab620eda042081cd50 | [] | no_license | fengliu222/blogbar | c8a66df586187d0a16063e4536e76d155863fe17 | ff6e7182f000777112101eed12ae9e2ca4298d25 | refs/heads/master | 2021-01-15T08:59:51.478354 | 2014-12-20T08:13:53 | 2014-12-20T08:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # coding: utf-8
from flask_wtf import Form
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
from ..models import User
class SigninForm(Form):
"""Form for signin"""
email = StringField('邮箱',
validators=[
DataRe... | [
"hustlzp@qq.com"
] | hustlzp@qq.com |
8d3c1b8bce69b57d0d51802846a66c1e439b70e4 | ca4faa1c6d4d87d1702b2c42a64ea6a063d71de9 | /q2_micom/_transform.py | bc96be1fc23acd5496509e2495ad09d70dc7cd8b | [
"Apache-2.0"
] | permissive | Gibbons-Lab/q2-micom | cb0ed1185a50248eae94a415e03443dbacfa8bfb | 2d954d4f584675c29aa2eccb5245e4469f1740b6 | refs/heads/master | 2020-12-07T08:48:10.020690 | 2020-01-07T23:27:39 | 2020-01-07T23:27:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | """Transformers for MICOM types."""
import pandas as pd
from q2_micom.plugin_setup import plugin
import q2_micom._formats_and_types as ft
@plugin.register_transformer
def _1(data: pd.DataFrame) -> ft.MicomMediumFile:
mm = ft.MicomMediumFile()
data.to_csv(str(mm), index=False)
return mm
@plugin.register... | [
"ch.diener@gmail.com"
] | ch.diener@gmail.com |
3f3fb632bea88ffa2e488c584544669d6e396c19 | f7328c45c872b69c3b7c2a2bf563257f51e5fbff | /src/sound.py | 02015b9b715fb2938284ce88bb0d22e84a8a2496 | [
"MIT"
] | permissive | whoji/banjiu_2048 | ffc45ff9e0b65cccea2b3cc6e91b233db9f7ae79 | d99522f2f0f6d159b5ecb49d023ee06da5f0f5a5 | refs/heads/master | 2020-04-21T04:01:06.870805 | 2019-02-10T09:09:31 | 2019-02-10T09:09:31 | 169,301,201 | 0 | 0 | null | 2019-02-07T03:58:40 | 2019-02-05T19:42:21 | Python | UTF-8 | Python | false | false | 2,088 | py | import pygame
from flags import F
class SoundPlayer(object):
"""docstring for SoundPlayer"""
def __init__(self, pygame):
self.pygame = pygame
self.__load_sound()
self.is_playing = False
def __load_sound(self):
self.sounds = {
'move' : self.pygame.mixer.Sou... | [
"minli1985@gmail.com"
] | minli1985@gmail.com |
a76b4bd5db57d7d3f6e4f183973cdbe0b2485ff0 | 700c7801958dd4789caf94785b5dc8c5e3daa4fd | /ttp/lightsail_enum_keypairs.py | b60a67c5e6315a9d9da0f5817af2698ca230cd17 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | blackbotsecurity/AWS-Attack | 24d4cd6ebda067e9672f4f963d414a7b176e3551 | ad4668ab60173aabce3c6b9c7685160be5e3f14d | refs/heads/master | 2023-03-14T00:05:54.965341 | 2021-03-05T12:44:27 | 2021-03-05T12:44:27 | 331,603,794 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | #!/usr/bin/env python3
import datetime
#'description': "This module examines Lightsail data fields and automatically enumerates them for all available regions. Available fields can be passed upon execution to only look at certain types of data. By default, all Lightsail fields will be captured.",
import argparse
from... | [
"github.nk@blackbot.io"
] | github.nk@blackbot.io |
1a7bacfc9808852cf7b990a159af019328d3deb0 | 9c0f691393abbeb5754e1624e0c48dfcdf857352 | /2017/Helpers/day_06.py | b8fc0de773effcccfda5ee364b548908e7b0101b | [] | no_license | seligman/aoc | d0aac62eda3e6adc3c96229ca859bd2274398187 | 9de27ff2e13100770a3afa4595b15565d45bb6bc | refs/heads/master | 2023-04-02T16:45:19.032567 | 2023-03-22T15:05:33 | 2023-03-22T15:05:33 | 230,493,583 | 17 | 10 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | #!/usr/bin/env python3
DAY_NUM = 6
DAY_DESC = 'Day 6: Memory Reallocation'
def calc(log, values, redo):
banks = [int(x) for x in values[0].replace("\t", " ").split(" ")]
seen = set()
while True:
key = tuple(banks)
if key in seen:
if redo == 0:
break
... | [
"scott.seligman@gmail.com"
] | scott.seligman@gmail.com |
7d694881d590f7fe45d3be9f6d9c0c180d407993 | 0049d7959ff872e2ddf6ea3ce83b6c26512425a6 | /django_demo_applications/djangoprojectsot/modelinheritanceproject/testapp/models.py | 2ba2ba663d87e53e60132476cad2e672ab93660a | [] | 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 | 695 | py | from django.db import models
# Create your models here.
# class ContactInfo1(models.Model):
# name=models.CharField(max_length=64)
# email=models.EmailField()
# address=models.CharField(max_length=264)
#
# class Student1(ContactInfo1):
# rollno=models.IntegerField()
# marks=models.IntegerField()
#
# c... | [
"sourabhaws09@gmail.com"
] | sourabhaws09@gmail.com |
2a8d31ce9ce3683a0d4c071feaf1b1488a845422 | 48dab42eeef7f971af1fe98045e669edb8e57ab0 | /behavioural/observer_pattern.py | 864f36310cf2de51d7e96f2ba31734a1eb35c03e | [
"MIT"
] | permissive | cosmos-sajal/python_design_patterns | b7df3e83e74ac5eccd30e8037ebc70987407ca2b | d270989f1dfafaef48e4b585eca91603a6c0ac8e | refs/heads/master | 2022-06-06T16:41:41.638518 | 2020-05-05T08:20:16 | 2020-05-05T08:20:16 | 260,250,022 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | py | # Docs - https://deductionlearning.com/design-patterns/observer-pattern-introductory-example/
# https://www.youtube.com/watch?v=wiQdrH2YpT4&list=PLF206E906175C7E07&index=4
# https://www.quora.com/What-are-some-real-world-uses-of-observer-pattern
# difference between PubSub and Observer Pattern -
# https://hackernoon.c... | [
"sajal.4591@gmail.com"
] | sajal.4591@gmail.com |
1e5122dc89c65f5bcead30da6a84115a1b6723ee | 94f978c65b6368f936e18364cc477591094750f5 | /quart/__init__.py | c7fa2b897ed9969c7681fd2a6aa8a28fd1fd4750 | [
"MIT"
] | permissive | tharvik/quart | 2a4ff330dd384dc9f917b179e8d247808e7ccd6c | 038680bcc1c0966481d73bdbe474f55a3ce104f4 | refs/heads/master | 2021-04-18T21:54:18.339532 | 2018-03-06T08:06:33 | 2018-03-06T08:11:48 | 126,790,492 | 0 | 0 | null | 2018-03-26T07:29:58 | 2018-03-26T07:29:58 | null | UTF-8 | Python | false | false | 2,082 | py | from jinja2 import escape, Markup
from .__about__ import __version__
from .app import Quart
from .blueprints import Blueprint
from .config import Config
from .ctx import (
after_this_request, copy_current_request_context, copy_current_websocket_context,
has_app_context, has_request_context, has_websocket_conte... | [
"philip.graham.jones@googlemail.com"
] | philip.graham.jones@googlemail.com |
8463f1d6308fa2292d9dfa2ea550c1529e9d3cd5 | 1c3c155f39573ca9b382bc2520dde359cc6f8fe6 | /mix_traffic.py | 0480d3f061e9e726c1ed9516f74c19b851135496 | [] | no_license | zxyap/mix_traffic_collection | 885a60a3f30783d05124e26eb7ddc97fc6ecbf5d | 14f34dec56226ca2ed1ac6c29cb5f155cb9420e1 | refs/heads/master | 2022-12-11T10:02:19.215427 | 2019-10-03T13:35:04 | 2019-10-03T13:35:04 | 211,783,201 | 0 | 0 | null | 2022-12-08T06:39:30 | 2019-09-30T05:38:15 | Python | UTF-8 | Python | false | false | 14,711 | py | import os
from selenium import webdriver
import subprocess
import datetime
import logging
import socket
import random
from fake_useragent import UserAgent
import time
from urllib.request import Request, urlopen
import urllib.error
import argparse
from bs4 import BeautifulSoup
import sys
from selenium.common.exceptions ... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9c49f34c4e0af8d51ca97a03a373e5fc2d76440a | f0a5ad7b8aa39f51f233391fead0da3eabecc4ee | /.history/toolbox/middleware_20191129081531.py | bed0186b917d604de34c93cc7df6e8c7ddb4bfb8 | [] | no_license | OseiasBeu/webScrapping | e0a524847e55b24dbbd3d57bbe7fa43b4e101f48 | 1e72c7551aea355a891043baecfcbab8a89e719a | refs/heads/master | 2022-10-25T18:12:50.858653 | 2020-06-18T01:29:24 | 2020-06-18T01:29:24 | 224,681,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,601 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from datetime import datetime
import toolbox.sheets as sheet
import pandas as pd
def middleware():
driver = webdriver.Chrome(executable_path='chromedriver.exe'... | [
"oseiasbeu@outlook.com"
] | oseiasbeu@outlook.com |
43d3606680c7c08b541d8e66a106bbe7f13c0fa7 | 2923b9f58e6a143a3e070169612165585c301def | /LA/gp_rupture_test/LA/gp_rupture_test/gp_021219_Scott_7.35_noplas_2hz/fault_full_loc.py | d3f385c3d1a7f68a7593b81008a1ecdc93ae3228 | [] | no_license | hzfmer/summit_work_021421 | 16536dd716519bc9244da60007b9061ef5403429 | 6981b359fefb2af22e0bea6c47511de16cad22bd | refs/heads/master | 2023-03-11T15:34:36.418971 | 2021-02-05T23:22:10 | 2021-02-05T23:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 17 2018
@author: Zhifeng Hu <zhh076@ucsd.edu>
"""
import numpy as np
from numpy import sin, cos, pi, sqrt
import os
import sys
import glob
import time
nt_ref = 2000
nt_des = 10 * nt_ref
theta_rot = 35
f = open(glob.glob('./*.srf')[0],'r')
f.readl... | [
"hzfmer94@gmail.com"
] | hzfmer94@gmail.com |
3a2aace405551240c749077517533bdee9b234de | e562f7e0a51273475e50a7e61d1d377f88775622 | /flags.py | 39c29607dfbc5649d50a4d7b0c0d48d7e2e0df9b | [] | no_license | bloodcurdle/ReadableWebProxy | d1c6ae0220fdb04ea7ab82963c86e776a0dbbfd9 | 10f68f913a78f8b0e47582996d9860a61da55dd6 | refs/heads/master | 2021-05-29T19:58:32.965610 | 2015-11-09T18:25:00 | 2015-11-09T18:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py |
RUNSTATE = True
FEEDER_STARTED = False
RSS_DEBUG = False
RULE_CACHE = None
SPECIAL_CASE_CACHE = None | [
"something@fake-url.com"
] | something@fake-url.com |
c553f3cf8e814068e3de80a5d5d74670c9a32497 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_212/62.py | 2e921c86f22c4e6edb1a0681c1da5040d943a43a | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import sys
import itertools
sys.setrecursionlimit(10000000)
tc = int(sys.stdin.readline().strip())
for tmp_tc in xrange(tc):
[ N, P ] = map(lambda x: int(x), sys.stdin.readline().strip().split(' '))
gs = map(lambda x: int(x), sys.stdin.readline().strip().split(' '))
cnts = [ 0 ] * P
for g in gs:
cnts[g % ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
73be991d92aa7d1f221c705467c3b65a83ab1b85 | c8faa6a4343a1b3775eb0cd707271f6c4aede6be | /quant/platform/deribit.py | 3d076c1c19b2afd753315af68b2af69209a0dfa9 | [
"MIT"
] | permissive | 51bitquant/thenextquant | adada6c2b88723971413f12df23505bd250c86d0 | b0b9d60439a916bc4b1980f908f648aa863d5918 | refs/heads/master | 2023-05-29T21:23:18.198952 | 2023-05-14T08:42:56 | 2023-05-14T08:42:56 | 640,403,755 | 6 | 2 | null | 2023-05-14T01:06:46 | 2023-05-14T01:06:45 | null | UTF-8 | Python | false | false | 13,662 | py | # -*- coding:utf-8 -*-
"""
Deribit Trade module 交易模块
https://docs.deribit.com/v2/
Author: HuangTao
Date: 2019/04/20
"""
import json
import copy
import asyncio
from quant.utils import logger
from quant.const import DERIBIT
from quant.position import Position
from quant.utils.websocket import Websocket
from quant.t... | [
"huangtao@ifclover.com"
] | huangtao@ifclover.com |
b2fc4e3cfd43f94cd2d66299af2e1b8145681be7 | fea4402f50b7a340db6122bf900243ada95018d4 | /src/password_manager/panel.py | 95422dcff8e5867e452ed91b6ffda710644ee538 | [] | no_license | CloudPadovana/openstack-security-integrations | ae516c5e7b15cee50fd01da3d69f66bfb26dde10 | fc22a9930aecc466d7b29af4095fbe922962077a | refs/heads/master | 2023-08-08T09:51:30.659062 | 2023-07-28T10:00:28 | 2023-07-28T10:00:28 | 14,750,978 | 0 | 2 | null | 2017-11-17T14:29:47 | 2013-11-27T15:31:37 | Python | UTF-8 | Python | false | false | 936 | py | # Copyright (c) 2014 INFN - "Istituto Nazionale di Fisica Nucleare" - Italy
# 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/LIC... | [
"paolo.andreetto@pd.infn.it"
] | paolo.andreetto@pd.infn.it |
6d73d131e26cfb65c423acd5a641958d3283c4e9 | 8704a683e1fa8c7c15d114fca47345eef060326b | /类/Pingclass.py | 37f162cbbd1550ec1a90053f63e4624826cfe8ab | [] | no_license | jiaojiner/Python_Basic | 823be07e8c02585174d933bc3e4ecf528086162c | 788243f95746e2a00890ebb3262085598ab84800 | refs/heads/master | 2020-12-31T22:47:04.561208 | 2020-11-23T13:59:04 | 2020-11-23T13:59:04 | 239,061,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #!/usr/bin/env python3
# -*- encoding = utf-8 -*-
# 该代码由本人学习时编写,仅供自娱自乐!
# 本人QQ:1945962391
# 欢迎留言讨论,共同学习进步!
from scapy.layers.inet import IP, ICMP
from scapy.sendrecv import sr1
class Pingclass:
def __init__(self, srcip, dstip, qua=1):
self.srcip = srcip
self.ip = dstip
self.qua = qua
... | [
"15148365776@163.com"
] | 15148365776@163.com |
970b585846494138f5ad4e230612d400e3710200 | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/util/lazy_loader.py | 44594aaf70c93ad1b1494c16df3e8a52cb7efb6d | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 178 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/util/lazy_loader.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
66e0c84a835d00f66e63f4eabefe603562658452 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/EBackend/CollectionBackendClass.py | 9bef82e9cc16e52ae4c3acc39b19c2255df0443e | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 6,476 | py | # encoding: utf-8
# module gi.repository.EBackend
# from /usr/lib64/girepository-1.0/EBackend-1.2.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes o... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
815daa7a085d07da2383291fdfe140fe3de24d40 | 667f153e47aec4ea345ea87591bc4f5d305b10bf | /Solutions/Ch1Ex005.py | 0a2cd702fe7a62a4875fa2674961e86c12ac5580 | [] | no_license | Parshwa-P3/ThePythonWorkbook-Solutions | feb498783d05d0b4e5cbc6cd5961dd1e611f5f52 | 5694cb52e9e9eac2ab14b1a3dcb462cff8501393 | refs/heads/master | 2022-11-15T20:18:53.427665 | 2020-06-28T21:50:48 | 2020-06-28T21:50:48 | 275,670,813 | 1 | 0 | null | 2020-06-28T21:50:49 | 2020-06-28T21:26:01 | Python | UTF-8 | Python | false | false | 342 | py | # Ch1Ex005.py
# Author: Parshwa Patil
# ThePythonWorkbook Solutions
# Exercise No. 5
# Title: Bottle Deposits
def main():
lessThan1 = int(input("Less than 1 L: "))
moreThan1 = int(input("More than 1 L: "))
refund = (0.1 * lessThan1) + (0.25 * moreThan1)
print("Refund: $" + str(refund))
if __name__... | [
"noreply@github.com"
] | Parshwa-P3.noreply@github.com |
8a4708add6cdfe447fdcca3cdccadf54add34fad | 220f1e6f1bd604b0ce452d2337669ad72ef7c11e | /quiz.py | a002fa0a884bdd8c7e27d8c73631451a5e2cfbde | [] | no_license | bikashlama541/RoomA | 9545fa75cf0f02ef4022b692de366423b27d906d | a7f9035ad67ad7cc7e32e2bbb488d65f4ec5c4a1 | refs/heads/master | 2020-07-23T01:29:44.354382 | 2019-09-09T21:45:52 | 2019-09-09T21:45:52 | 207,400,892 | 0 | 1 | null | 2019-09-09T21:45:53 | 2019-09-09T20:42:38 | Python | UTF-8 | Python | false | false | 547 | py | class Question:
def __init__(self, prompt, answer):
self.prompt = prompt
self.answer = answer
questions_prompts = [
"What colors are apple?\n (a) Red/Green\n (b) Orange",
"What colors are bananas?\n (a) Red/Green\n (b)Yellow",
]
questions = [
Question(question_prompts[0], "a"),
Question(question_prompts[1],... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
4cce4300cd93c522062d17864b7d7b6579a90919 | eaeb685d13ef6c58364c5497c911f3e2f8c49a43 | /Solution/520_Detect_Capital.py | 72853824378aa294f92113350b1c6fc2394d75c7 | [] | no_license | raririn/LeetCodePractice | 8b3a18e34a2e3524ec9ae8163e4be242c2ab6d64 | 48cf4f7d63f2ba5802c41afc2a0f75cc71b58f03 | refs/heads/master | 2023-01-09T06:09:02.017324 | 2020-09-10T02:34:46 | 2020-09-10T02:34:46 | 123,109,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | class Solution:
def detectCapitalUse(self, word: str) -> bool:
if word.isupper() or word.islower():
return True
elif word[1:].islower() and wprd[0].isupper():
return True
else:
return False
'''
Runtime: 40 ms, faster than 42.73% of Python3 onlin... | [
"raririn.sandbag@gmail.com"
] | raririn.sandbag@gmail.com |
8451258e50d96e33c60b41669ed2db703480788c | c5e4a9a66f686de6eaca331f1ee3823ac925101b | /apps/management/models.py | 56efc0b62de24b22ffdb241452489a41abeab41d | [] | no_license | Tiilon/Hospital_project | b1409be60f0d6daecb0e294bfbe81698d97b7c1f | 6506218f4ad504f9031482999d9b33c92b350df8 | refs/heads/main | 2023-01-23T13:30:11.564836 | 2020-11-24T16:15:12 | 2020-11-24T16:15:12 | 303,461,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,585 | py | from random import randrange
from django.db import models
from django.conf import settings
from django.utils import timezone
# Create your models here.
class Ward(models.Model):
label = models.CharField(max_length=100, blank=True, null=True)
incharge = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=mo... | [
"tiilon42@gmail.com"
] | tiilon42@gmail.com |
268df992d4a58fa7d9720b5e331578c2652054a2 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_segmentation/NAS-SEGM_ID1142_for_PyTorch/src/engine/trainer.py | 6e598066959d4fb2592982d4218e84c0c4d156e0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 11,811 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
639eb6874b95a9e96a37069b983815ce6ac2bc13 | 227c102ed508ad2b1d046340dcb598a7b16e2925 | /.history/Forritun/Verkefni með einkunn/Lokaverkefni/lokaverkefni_20201208144514.py | abaca0b10d37452fa155d2847cc3949d691d5db1 | [] | no_license | larusarmann/Skoli-haust-2020 | 298e48f1c20d7ec0c92124018650253f13bcbb2f | 3061a0238b74919daccaa74117bc1c32b3436619 | refs/heads/master | 2023-02-07T09:15:45.493928 | 2020-12-09T19:46:53 | 2020-12-09T19:46:53 | 292,543,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,104 | py | """
Show how to do enemies in a platformer
Artwork from: http://kenney.nl
Tiled available from: http://www.mapeditor.org/
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.sprite_enemies_in_platformer
"""
import random
import arcade
import os
SPRITE_SCA... | [
"larus.armann@gmail.com"
] | larus.armann@gmail.com |
4e05342bbe67e0b1ef38fe46f34073cc3d59822c | 0567b686db4d05b44a70fdfd7a61ed07f3be1fb4 | /flask_mail.py | 50630a3d0f3206394769458abef4da70620487e8 | [
"MIT"
] | permissive | achiang/flask-unchained | 624271d903a8d2af2c15d83c79571e8b5f91a56e | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | refs/heads/master | 2020-04-19T20:21:10.731764 | 2018-12-29T07:06:14 | 2018-12-29T07:06:14 | 168,411,738 | 0 | 0 | MIT | 2019-01-30T20:39:42 | 2019-01-30T20:39:41 | null | UTF-8 | Python | false | false | 22,070 | py | # -*- coding: utf-8 -*-
"""
flaskext.mail
~~~~~~~~~~~~~
Flask extension for sending email.
Copyright (c) 2010 by danjac.
Some rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source c... | [
"briancappello@gmail.com"
] | briancappello@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.