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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f185549659b1458eaeb6ef033927b20c30d86e5 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/services/terrain_service.py | 287676bbe17c4a414916a8e71674a6b4e4736235 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,236 | py | from objects.components.types import PORTAL_COMPONENT
from objects.object_enums import ItemLocation
from objects.pools import pool_utils
from objects.terrain import PoolPoint, OceanPoint, TerrainPoint
from routing import SurfaceIdentifier, SurfaceType
from sims4.tuning.tunable import TunableReference, TunablePackSafeRe... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
786ce76b9c0e3cd364fdd1bf6f967b4dbd31f9f0 | c11d6562d19d859a58bcfe732e4c79547da69d8e | /sveedocuments/views/board/page.py | a777c9990699631190b6f01cf2c50e7f9f2c984d | [
"MIT"
] | permissive | sveetch/sveedocuments | b660975a9f1a63732c436acb814fd62c7aa8f011 | c829ec78da79f8735935548ca881574cb8a8dfd2 | refs/heads/master | 2020-05-18T20:44:12.171776 | 2015-03-15T21:19:26 | 2015-03-15T21:19:26 | 3,849,505 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,979 | py | # -*- coding: utf-8 -*-
"""
Pages management views
"""
from datetime import datetime
from django.conf import settings
from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_404
from django.template.loader import render_to_string
from django.views import generic
from django.views.generi... | [
"sveetch@gmail.com"
] | sveetch@gmail.com |
f319b0048d956c2c8dad5ce32f46aec5d1e2e51a | 2b797a3cb6c417bbfeac7b650beb98f8867e49bf | /src/apps/cyd/api_views.py | 0084d510b63004060b5842ce9d9eb3f961e6892e | [] | no_license | mcante/app-suni | 496c57b55b983c4317fb80d9c86de182e9017ffd | 3990048b22081fa69c805df07b215613dc0d0998 | refs/heads/master | 2020-03-18T19:41:59.180355 | 2018-05-24T20:16:24 | 2018-05-24T20:16:24 | 135,171,273 | 1 | 0 | null | 2018-05-29T21:51:30 | 2018-05-28T14:23:21 | Python | UTF-8 | Python | false | false | 4,087 | py | import django_filters
from braces.views import CsrfExemptMixin
from rest_framework import generics, viewsets
from rest_framework.filters import SearchFilter
from django_filters import rest_framework as filters
from apps.main.mixins import APIFilterMixin
from apps.cyd.serializers import (
SedeSerializer, GrupoSeria... | [
"jinchuika@gmail.com"
] | jinchuika@gmail.com |
7c5ba5f0d16a97a709dd2d09c5951790b6ade655 | b3c84733a5554bdc62688673c1ac0083568fc4bb | /testscaffold/views/admin/entries.py | 2fcbdd65662526439831e5ebcb3107c56945ebef | [] | no_license | peletiah/testscaffold | 869af786201efd6bd565d4654530be2348ad9b19 | e3af1c0a6de460569c6bca669912b3fe2838b6b9 | refs/heads/master | 2020-01-23T21:45:23.977963 | 2016-11-24T14:18:48 | 2016-11-24T14:18:48 | 74,681,740 | 0 | 0 | null | 2016-11-24T14:45:19 | 2016-11-24T14:45:18 | null | UTF-8 | Python | false | false | 7,822 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import logging
import pyramid.httpexceptions
from pyramid.i18n import TranslationStringFactory
from pyramid.view import view_config, view_defaults
from ziggurat_foundations import noop
from ziggurat_foundations.models.services.group impo... | [
"info@webreactor.eu"
] | info@webreactor.eu |
674cf0c715beef748265325f12dc58173b1d2a69 | 09560baaa05e96b0312523a41ccd1d64d56fcc64 | /Exams/Change Bureau.py | d485c110ee9b92dc9910a8090328209f26a845f1 | [] | no_license | MagdalenaSvilenova/Programming-Basics-Python | d59e682825b0bc52767219b05024706ba9bf9463 | b3d69a7408a39d39a482309204563ffc5e751886 | refs/heads/main | 2023-02-04T12:55:28.086558 | 2020-12-23T17:12:03 | 2020-12-23T17:12:03 | 321,402,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | bitcoin = int(input())
chinees = float(input())
commition = float(input())
sum_bitcoini = bitcoin * 1168
sum_chines = (chinees * 0.15) * 1.76
total = (sum_bitcoini + sum_chines) / 1.95
sum_komisionna = (commition * total) / 100
final = total - sum_komisionna
print(f'{final:.2f}') | [
"noreply@github.com"
] | MagdalenaSvilenova.noreply@github.com |
d2dff3f834763905381487474fd08759fbe17947 | 3e6c0e46a318fd8583f207103e96fff755e0e128 | /22. Class in Python/theory_encapsulation/theory_encapsulation.py | 348c2d60cdbdfbafb3b995a3e34ef3a7ee2b4b3a | [] | no_license | demikaiser/BeautifulCodingWithProcessingPyBasic | c16842df79671baa5282480b35989671c95738c1 | 69d82be9a183ba89598934ebd5de81ed0c83f52a | refs/heads/main | 2023-08-26T10:12:25.761523 | 2021-10-22T17:12:50 | 2021-10-22T17:12:50 | 387,465,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py |
jake_name = "Jake"
jake_gender = "Male"
jake_residence = "South Korea"
jake_occupation = "Teacher"
jake_hobby = "Fishing"
alice_name = "Alice"
alice_gender = "Female"
alice_residence = "USA"
alice_occupation = "Teacher"
alice_hobby = "Music"
bob_name = "Bob"
bob_gender = "Male"
bob_residence = "Germany"
bob_occupati... | [
"demikaiser13@gmail.com"
] | demikaiser13@gmail.com |
70967fc5134b0101bfcbbfdb628e84ca34f67529 | 1f8c83fd0c03cad647c07c1676ec05779698b222 | /machine_learning/tf_autoencoder/test/test_dense_ae.py | 230f9fa88c7568a03e428aedfd514f0b26905b3e | [
"MIT"
] | permissive | samsgood0310/til | 1b6e6f256deda4cd08ba618279b8490743fed3cc | a3994d272d812261ba694954554cfa213dfe795e | refs/heads/master | 2022-11-28T19:04:25.169331 | 2020-08-13T09:28:46 | 2020-08-13T09:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,543 | py | # default packages
import pathlib
import unittest
from typing import Tuple
# third party
import tensorflow as tf
from tqdm import tqdm
# my packages
from src.data import history
from src.data.checkpoint import Checkpoint
from src.models import dense_ae as network
from src.visualization import visualize
class TestNe... | [
"iz.primary.story+github@gmail.com"
] | iz.primary.story+github@gmail.com |
a353b27ce2130d4a6bd48ebcfde196bb4733810c | 339f6ed8cbcc5439fecd437f35d8b62f4d1f618f | /蓝图/goods.py | de3150e07c69f5f229839730505a021466a1c082 | [] | no_license | llf-1996/base_demo_flask | 456ba8f0ae1759686b60e9de92b31caa45a8e2b6 | 751e1fe211aca3ed2acb73a861a368f7fab6adc4 | refs/heads/master | 2020-04-24T07:28:13.470066 | 2019-03-25T10:21:49 | 2019-03-25T10:21:49 | 171,799,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | """
__title__ = ''
__author__ = 'llf'
__mtime__ = '...'
# code is far away from bugs with the god animal protecting
I love animals. They taste delicious.
┏┓ ┏┓
┏┛┻━━━┛┻┓
┃ ☃ ┃
┃ ┳┛ ┗┳ ┃
┃ ┻ ┃
┗━┓ ┏━┛
... | [
"2367746876@qq.com"
] | 2367746876@qq.com |
c9c71abcc46251b1f28ad06829a3a3c0c72fe636 | 612325535126eaddebc230d8c27af095c8e5cc2f | /depot_tools/external_bin/gsutil/gsutil_4.15/gsutil/gslib/tests/test_creds_config.py | e8a3fc2c47cf103fcb828a2fb3d01c8556e9606c | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,691 | py | # -*- coding: utf-8 -*-
# Copyright 2014 Google Inc. 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
#
# Unles... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
6b342fa651255e86995002778555af3c92d02d08 | fb9993a333659306817dad9900b7e2b558eb0b14 | /wine_data_mining_research/association_rule.py | 3284fb8bc2f04e3f64df90442a0332209f4d1f4e | [
"MIT"
] | permissive | Williano/Data-Mining | 183766fdcc5b6e187bd26f1bef9a9768a4da516d | 496cb658e5fdbfeb74b298a2a84f21253bad6495 | refs/heads/master | 2023-08-08T21:25:26.085103 | 2022-12-10T04:30:51 | 2022-12-10T04:30:51 | 246,199,593 | 1 | 1 | MIT | 2023-07-25T20:49:05 | 2020-03-10T03:29:27 | Python | UTF-8 | Python | false | false | 5,471 | py | import itertools
"""prompt user to enter support and confidence values in percent"""
support = int(input("Please enter support value in %: "))
confidence = int(input("Please enter confidence value in %: "))
print()
"""Compute candidate 1-itemset"""
C1 = {}
"""total number of transactions contained in the file"""
tr... | [
"paawilly17@gmail.com"
] | paawilly17@gmail.com |
4e456362613807b080cfba864d039b778eac2048 | d52ab659e8751b51c266ff532b4fb6d66220eaf2 | /Object_oriented_pg/N11-Address_book.py | fef15300963acea6beebce610a693dc46e55b55f | [] | no_license | antonyalexcm/Bridgelabz_updated | 13b115e1522bb8e6d0e451536fac2b8725061377 | d1c971b911a6a3bacd0e7d421949842602026f02 | refs/heads/master | 2020-07-29T23:04:19.638206 | 2019-09-26T13:51:08 | 2019-09-26T13:51:08 | 209,995,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,166 | py | class Person:
# creating and initializing person
def __init__(self):
self.first_name = input("Enter the first name of the person : ")
if not self.first_name.isalpha():
raise ValueError
self.last_name = input("Enter the last name of the person : ")
if not self.last_nam... | [
"antonyalexcm@gmail.com"
] | antonyalexcm@gmail.com |
b289c9b1ec485c401afb89ebe2ca4bd3e49a99ba | 42671940bde623ba50c5ffaea8719f9183f2888e | /Quotes/apps/BLT_EXM_app/views.py | 452eb1caf28f579b65556e39a80bd56849ac54d7 | [] | no_license | jshin07/Projects | 4559a2dc68e2831699f762c293c053cf3ae0e324 | 408a90ac5b6652997e664bd4852555a89353865b | refs/heads/master | 2021-07-07T21:59:29.691433 | 2017-10-04T21:10:17 | 2017-10-04T21:10:17 | 105,801,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect,reverse
from .models import User, Quote, Fav
from django.contrib import messages
from django.db.models import Count
def index(request):
return render(request, 'BLT_EXM_app/index.html')
def reg... | [
"jshin07@gmail.com"
] | jshin07@gmail.com |
1caa3ff6836346f609486b3dff0a3bfdf81746ac | 3d4a6bd2297ac04b112bc8d24fa1118f692a4e2b | /procon_python/src/atcoder/abc/past/C_024.py | fc35adca7af883c52b28944feefa670065fda757 | [] | no_license | WAT36/procon_work | beba626d9b9c1effded8c9b9f56fbc37abd13636 | 2e6bc42e6f25938afe740682ad7b6c21a0838d42 | refs/heads/master | 2021-08-16T11:56:25.048392 | 2021-06-17T14:13:10 | 2021-06-17T14:13:10 | 162,991,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | n,d,k=map(int,input().split())
l=[]
r=[]
for i in range(d):
li,ri=map(int,input().split())
l.append(li)
r.append(ri)
s=[]
t=[]
for i in range(k):
si,ti=map(int,input().split())
s.append(si)
t.append(ti)
for i in range(k):
most_row=s[i]
most_high=s[i]
if(s[i] == t[i]):
print... | [
"motohari.xanadu@gmail.com"
] | motohari.xanadu@gmail.com |
572789dca3e0000e904f60960714b80aeb4c91b6 | cb1a14075e9b616d9d8e4751e94d8f15c7c1ff3d | /backend/greenleaffinancials_27802/settings.py | cc8f5215ea54d9f318059c6430614a05a1133d59 | [] | no_license | crowdbotics-apps/greenleaffinancials-27802 | ab5b97ad72463471dbd8c7e6dfaefde0a1cd833e | c7a36ebae19117d0ea2903c05f1140ec27f503ac | refs/heads/master | 2023-05-14T21:02:23.491054 | 2021-06-07T15:10:55 | 2021-06-07T15:10:55 | 374,708,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,141 | py | """
Django settings for greenleaffinancials_27802 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7e50ef2565ce6d159f986f9463b6321bb9e6be5b | 0c511f242ce54d066d4929a4c5fb73c176551504 | /xml_parsing.py | 24013d7f08351eaa0ccfd9a81b3ec809721c9d70 | [] | no_license | sbm367/networking | c449406db5fb011dd52bc2ecc06dd708014ce44a | 300362455b01dc608fcdfad6821b701711cc6654 | refs/heads/master | 2023-03-14T03:45:59.718832 | 2021-02-25T21:12:31 | 2021-02-25T21:12:31 | 339,221,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | import xml.etree.ElementTree as et
data = '''
<people>
<person>
<name>Chuck</name>
<phone type="intl">
+1 734 303 4456
</phone>
<email hide="yes" />
</person>
<person>
<name>Charles</name>
<phone type="intl">
+1 555 867 5309
</phone>
<email hide="yes" />
</person>
... | [
"replituser@example.com"
] | replituser@example.com |
00f35aa559494e28228a2a2ace2ff9015ddd8468 | 0533d0ceb5966f7327f40d54bbd17e08e13d36bf | /python/HashMap/Minimum Swaps to Make Strings Equal/Minimum Swaps to Make Strings Equal.py | a4e6131b180036c2e233a4af0a19e73291175411 | [] | no_license | danwaterfield/LeetCode-Solution | 0c6178952ca8ca879763a87db958ef98eb9c2c75 | d89ebad5305e4d1a185b0c6f101a88691602b523 | refs/heads/master | 2023-03-19T01:51:49.417877 | 2020-01-11T14:17:42 | 2020-01-11T14:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | from collections import Counter
class Solution(object):
def minimumSwap(self, s1, s2):
"""
:type s1: str
:type s2: str
:rtype: int
"""
c1 = Counter(s1)
c2 = Counter(s2)
dic = {
"xy": 0,
"yx": 0,
}
if (c1["x"]... | [
"zjuzjj@gmail.com"
] | zjuzjj@gmail.com |
59727ad167cdce2d5f5a58f03f0d91ba7f23fde6 | 830bd6d8a4785a9e07698a01fffb6a3636c43f66 | /Others/SortAlg.py | e65b550993c48638ab654735bc91f7784d00926f | [] | no_license | Daishijun/InterviewAlgorithmCoding | 1f5ccac3084476583802be952ac8fc4b4a1b020a | 49606650d369f9d0f0288f8425569fb2159d1b69 | refs/heads/master | 2020-05-21T07:33:46.197110 | 2019-09-05T10:59:30 | 2019-09-05T10:59:30 | 185,963,757 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/6/28 10:32
# @Author : Daishijun
# @Site :
# @File : SortAlg.py
# @Software : PyCharm
'''排序算法'''
'''
希尔排序
'''
def xierSort1(arr):
gap = len(arr)//2
while gap:
for i in range(gap, len(arr)): #相当于从每组的第二个元素开始向前进行插入排序,把每组的左侧变成有... | [
"1939274655@qq.com"
] | 1939274655@qq.com |
ac6f71d9bbdf1a5896713a2faddc621567fcc16c | d85c67830222e7093c6eaf1f0e9ee538a8e513ba | /src/justchat/urls.py | 9bb9ad07a6e4b299f0fe57c1bda9044a0ac8fe96 | [] | no_license | maxhasan882/Django-Live-chat-using-Channels | 24cdecaa682e0938d0eee604294393f78985da85 | 770dc1bb8668d2b186402739597e614edc061834 | refs/heads/master | 2022-11-16T12:55:02.245491 | 2019-10-07T05:55:40 | 2019-10-07T05:55:40 | 212,983,329 | 2 | 0 | null | 2022-11-04T19:28:06 | 2019-10-05T10:46:57 | Python | UTF-8 | Python | false | false | 186 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('chat/', include('chat.urls', namespace='chat')),
]
| [
"rhmithu50@gmail.com"
] | rhmithu50@gmail.com |
b258d452d8482175ae439a4db43e2a25c6c404c3 | a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c | /venv/Lib/site-packages/numpy/typing/tests/data/fail/ndarray_misc.py | b64fcc8dd8150edaac8e19f4bea677d97adfd327 | [] | no_license | mylonabusiness28/Final-Year-Project- | e4b79ccce6c19a371cac63c7a4ff431d6e26e38f | 68455795be7902b4032ee1f145258232212cc639 | refs/heads/main | 2023-07-08T21:43:49.300370 | 2021-06-05T12:34:16 | 2021-06-05T12:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:fc3c92bd342301b1c7e3ad2d014454ffe12a3a47c616247fd74176d03312778c
size 587
| [
"chuksajeh1@gmail.com"
] | chuksajeh1@gmail.com |
7fadc6ab12904ec5cdca0c54247931971096eb07 | cb40c83018cfa49770ed953d90cbbfb2960a35f3 | /sdoc/command/BaseCommand.py | 3687304ec1aea6e598d6c8d4cbd46b8687706635 | [
"MIT"
] | permissive | OlegKlimenko/py-sdoc | 75870a2092a000762a66c416d685bc0d346f9e0d | 0e201a00673277f390fc7d3a5af2bc018f4a6083 | refs/heads/master | 2020-04-05T04:56:44.661396 | 2016-11-04T13:47:34 | 2016-11-04T13:47:34 | 52,348,742 | 1 | 0 | null | 2016-11-04T13:47:34 | 2016-02-23T09:52:57 | Python | UTF-8 | Python | false | false | 863 | py | """
SDoc
Copyright 2016 Set Based IT Consultancy
Licence MIT
"""
# ----------------------------------------------------------------------------------------------------------------------
from cleo import Command
class BaseCommand(Command):
"""
Abstract parent command for all out commands.
"""
# ----... | [
"p.r.water@setbased.nl"
] | p.r.water@setbased.nl |
a5c587003641d2be22fdbdcc8776e4a8f404adee | e6a9aad864f4f1f1e97294086c95e58a031a73d7 | /tests/nlu_core_tests/training_tests/trained_pipe_tests/model_load_tests.py | 1da84b51050d895f817069902fbdad8ba8fc1099 | [
"Apache-2.0"
] | permissive | prakashcinna/nlu | 0bb72a551868552971ab6d37478a842bb6669502 | fd7e73bc3e331b49361fca93cf8d07cccd934adc | refs/heads/master | 2023-08-23T05:36:20.995831 | 2021-10-31T18:02:18 | 2021-10-31T18:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | import tests.test_utils as t
import unittest
from nlu import *
import pandas as pd
class PipelineLoadingTests(unittest.TestCase):
def test_pipeline_load_from_hdd_after_training(self):
train_df = self.load_classifier_dl_dataset()
train_df.columns = ['y','text']
pipe = nlu.load('train.classi... | [
"christian.kasim.loan@gmail.com"
] | christian.kasim.loan@gmail.com |
3e72c85954e1c5868142bf7f4e19602bafb78e75 | fe91e0f7f74c3156a5c194713a69d9846b9e26a2 | /migrations/versions/dafc141fefb9_add_traceback_size_field.py | 7e07bf24900bbfb677fd8f44d6daf4041cda62a4 | [
"BSD-3-Clause"
] | permissive | getslash/backslash | cbf963006e3de565a1512f79c6c9ab84e705c67e | 67554c039f8ac6a648deb191cc7fb69480f28253 | refs/heads/develop | 2023-01-10T22:26:11.666887 | 2022-06-17T05:06:00 | 2022-06-17T05:06:00 | 23,376,788 | 17 | 15 | NOASSERTION | 2022-12-27T16:17:59 | 2014-08-27T04:30:58 | Python | UTF-8 | Python | false | false | 638 | py | """Add traceback size field
Revision ID: dafc141fefb9
Revises: fd8a0947699c
Create Date: 2019-04-01 08:36:14.360589
"""
# revision identifiers, used by Alembic.
revision = 'dafc141fefb9'
down_revision = 'fd8a0947699c'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated ... | [
"vmalloc@gmail.com"
] | vmalloc@gmail.com |
d53dc054008ff61d4b1b92605f6e35aa059d5e1b | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/5727795/snippet.py | 9ee64e6b71c4fc28e00808300cf01ec75906ea43 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,086 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Example app using bottle and multiprocessing for queuing long jobs
and using several workers.
"""
from multiprocessing import Process, Queue, cpu_count
from bottle import Bottle, run
import time
app = Bottle()
app.queue = Queue()
app.nb_workers = cpu_count()
... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
95424df632280ca56ef7db98ee768c6235a87d39 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/extremum_dto.py | 78a06ad8bb6f1f76bbc7f43d7c8473a3e7b6773e | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,316 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ExtremumDto:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
79205759e44904843ef5999daeaeaf4fb8e02563 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetCode/698 Partition to K Equal Sum Subsets.py | 318e128eda0eb948ec496b8f9fd01f6416ccbd48 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 3,307 | py | #!/usr/bin/python3
"""
Given an array of integers nums and a positive integer k, find whether it's
possible to divide this array into k non-empty subsets whose sums are all equal.
Example 1:
Input: nums = [4, 3, 2, 3, 5, 2, 1], k = 4
Output: True
Explanation: It's possible to divide it into 4 subsets (5), (1, 4), (2,... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
49ed08f1178fd45dbbb25af98e5739097d660e65 | 9816f1460de340aac3de692a780197dc62c9056c | /Portfolio_assign/Portfolio_assign/settings.py | e5612cb6fc44f4e7a420b5becb102d938f237a36 | [] | no_license | LovelyHoltz/LovelyHoltz-django_courses | eb1a72040f0afab021b2f1b252ef874e1ba15576 | 7a933e86354a7f062c02ccdb393a1080cabc4eee | refs/heads/master | 2020-03-31T15:35:36.640226 | 2018-10-09T22:36:19 | 2018-10-09T22:36:19 | 152,342,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,150 | py | """
Django settings for Portfolio_assign project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
im... | [
"pearlholtz13@yahoo.com"
] | pearlholtz13@yahoo.com |
926802a58a061681183ec91c631c0d38d0af871f | ec931e7c494005ac3cba5049a016546440b2b58e | /SVGMath/svgmath/enclosures.py | a47f559a8c05f17f20084002001d0e64c9fa75ed | [
"MIT"
] | permissive | epodreczniki/epodreczniki-transformacje | 6e62651a77f946096161ea1856950e38ff29f989 | b44f7634edfd0270baaa7912efc9e3ffcddbddbe | refs/heads/master | 2021-01-19T03:42:53.962010 | 2016-07-29T11:13:13 | 2016-07-29T11:13:13 | 64,475,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,633 | py | """Functions to format enclosures around MathML elements."""
import sys, math, mathnode
def addRadicalEnclosure(node):
# The below is full of heuristics
node.lineWidth = node.nominalThinStrokeWidth()
node.thickLineWidth = node.nominalThickStrokeWidth()
node.gap = node.nominalLineGap()
if n... | [
"kontakt@epodreczniki.pl"
] | kontakt@epodreczniki.pl |
1cb8345f31d7e171ebf8f1b1ac46fbafc99b7d0c | 399fb29d8525b6d7ac298783675d0d56e37bcac7 | /rllib/algorithms/ppo/ppo_base_rl_module.py | 94effb80517a539ef9f98f4e62231e714985fd4d | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | AmeerHajAli/ray | 40c9aebe0da59e9bcd70303d981bfe6b65007991 | 1ffd032f5f793d8817217a040f0f636f9372cd56 | refs/heads/master | 2023-03-28T10:50:09.186561 | 2023-03-24T23:08:08 | 2023-03-24T23:08:08 | 175,129,851 | 1 | 0 | Apache-2.0 | 2019-03-12T03:39:16 | 2019-03-12T03:39:14 | null | UTF-8 | Python | false | false | 882 | py | """
This file holds framework-agnostic components for PPO's RLModules.
"""
import abc
from ray.rllib.core.rl_module.rl_module import RLModule, RLModuleConfig
from ray.rllib.utils.annotations import ExperimentalAPI
from ray.rllib.core.models.base import ActorCriticEncoder
@ExperimentalAPI
class PPORLModuleBase(RLMod... | [
"noreply@github.com"
] | AmeerHajAli.noreply@github.com |
51e067cf73c737028a3563cee14cebe99d84ec07 | a9c3db07c29a46baf4f88afe555564ed0d8dbf2e | /src/0167-two-sum-ii-input-array-is-sorted/two-sum-ii-input-array-is-sorted.py | 2873fdc20ec7d54cab4d5284250b5d0da7dfad92 | [] | no_license | HLNN/leetcode | 86d2f5b390be9edfceadd55f68d94c78bc8b7644 | 35010d67341e6038ae4ddffb4beba4a9dba05d2a | refs/heads/master | 2023-03-13T16:44:58.901326 | 2023-03-03T00:01:05 | 2023-03-03T00:01:05 | 165,402,662 | 6 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | # Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Let these two numbers be numbers[index1] and numbers[index2] where 1 <= index1 < index2 <= numbers.length.
#
# Return the indices of the two numbers, index1 a... | [
"Huangln555@gmail.com"
] | Huangln555@gmail.com |
21ee26f6d0b17b7a938770b1c97d2ac7e1bc9fc4 | 138398c1d03b276e900874361d15b41697382f2b | /social_bridge_sample_time/pd_c_cost_b_local_learn_bridge_lattice.py | 1e6cb4597ecdace36ec063bc36c746de8a711daa | [] | no_license | Dcomplexity/Social_Distance_and_Reputation | 80004208f26552c0330e76ba60eb95a4de02f51d | 961e73dc8cb419957c9ff110ba1880cc9d42fd78 | refs/heads/master | 2022-02-18T18:53:10.179557 | 2019-05-27T14:32:07 | 2019-05-27T14:32:07 | 181,622,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,028 | py | import random
import math
import datetime
import os
import itertools
import pandas as pd
import sys
sys.path.append("..")
from sim_env.game_env import *
from sim_env.network_env import *
from sim_env.log_file import *
class Agent:
def __init__(self, agent_id, link, strategy):
self.agent_id = agent_id
... | [
"cdengcnc@sjtu.edu.cn"
] | cdengcnc@sjtu.edu.cn |
264bec65e6f8a3ec3b65bd54ca3dbf240ea28e87 | d6a165271729a11bbe20c3724e877f29bdb580d1 | /yabgp/message/attribute/linkstate/prefix/igpflags.py | 8fea536d2f25c3975ba2f4d749916311ab1f6270 | [
"Apache-2.0"
] | permissive | smartbgp/yabgp | 67482f4368a39f777a99f9428ee5034fe8672977 | 24cbb732d4380ab54d000ac08690e521c60d4f2a | refs/heads/master | 2023-06-22T23:44:20.481844 | 2023-06-21T11:01:08 | 2023-06-21T11:01:08 | 33,908,998 | 227 | 82 | Apache-2.0 | 2023-06-21T11:01:10 | 2015-04-14T03:36:40 | Python | UTF-8 | Python | false | false | 2,027 | py | # Copyright 2015-2018 Cisco Systems, Inc.
# 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 req... | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
005e10caa62e1972211267476f810a3e59991c90 | 880aeff2ae5d70c8a01c11f0c0d9f6154d390229 | /ccxt_rate_limiter/rate_limiter_group.py | 50eaba37ac7acd77dfb7435a9aba60eb4aa7cc05 | [
"CC0-1.0"
] | permissive | bellyfat/ccxt_rate_limiter | 8799c097589de876040521573f382f1615260609 | d37d675829eb2c1b89980c5001022b63c554ed90 | refs/heads/master | 2023-04-12T22:15:28.280063 | 2021-04-21T04:57:14 | 2021-04-21T04:57:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | import copy
from .rate_limiter import RateLimiter
class RateLimiterGroup:
def __init__(self, limits=[], wait_sec=0.1):
self.limits = copy.deepcopy(limits)
self.limiters = []
for limit in limits:
self.limiters.append(RateLimiter(period_sec=limit['period_sec'], count=limit['count'... | [
"a@example.com"
] | a@example.com |
748badb46912e5e13b7b2201f980a1bab1dc25bb | 2bc0ecba05876be2a674bdc215ed7bf7332956aa | /cs6265/lab03/tut03-pwntool/exploit_local.py | 1ba6be05d0cb7aa8176524ca462f03b3da64a883 | [] | no_license | Silentsoul04/ctfs | 04c29c28347f3336d8feb945da20eba83326699e | fa3b187be2c8a1d20f414c2b37277d3961a366b0 | refs/heads/master | 2023-02-18T10:20:46.508273 | 2021-01-23T18:30:57 | 2021-01-23T18:30:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python2
from pwn import *
context.terminal = ['tmux', 'splitw', '-v']
context.update(arch='i386', os='linux')
shellcode = shellcraft.cat("/tmp/flag")
payload = cyclic(cyclic_find(0x61616167))
local = 0xfffdcd60
start = 0xfffdc000
start = local
end = 0xffffe001
size = 10000
for i in range(local, ... | [
"vagrant@ubuntu1804.localdomain"
] | vagrant@ubuntu1804.localdomain |
8cc4438818bb3cdfda172ce9e7cb3c89aa0261e6 | 664e34e1d265a63effbb51ed0e35333cd2e2df9f | /methods/annotate_suggest/BubbleNets/bn_input.py | 5901c318bc628ccbe904927c3fa0df915c79f8bc | [] | no_license | Jarvis73/BubbleNets-Python3 | 667ad4cbbe5d9375187a0854a40041e4dfff26b4 | 4e173ca8b03a808624ba890702b60642be881a2c | refs/heads/master | 2020-05-27T14:49:52.839864 | 2019-05-26T14:31:11 | 2019-05-26T14:31:11 | 188,668,552 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | import pickle
import numpy as np
import random
class BN_Input(object):
def __init__(self, vector_file, n_ref=3):
self.vectors = pickle.load(open(vector_file, 'rb'))['frame_resnet_vectors']
self.n_ref = n_ref
self.n_frames, self.vector_dim = self.vectors.shape
def video_batch_n_ref_no_... | [
"zjw.math@qq.com"
] | zjw.math@qq.com |
3d3ebd866e340d98848eb429439b228aba8dfed8 | c80b3cc6a8a144e9858f993c10a0e11e633cb348 | /components/ally-http/ally/http/impl/processor/cors.py | 9ad151ee26be9fd55dff688a17808a5e86841bcc | [] | no_license | cristidomsa/Ally-Py | e08d80b67ea5b39b5504f4ac048108f23445f850 | e0b3466b34d31548996d57be4a9dac134d904380 | refs/heads/master | 2021-01-18T08:41:13.140590 | 2013-11-06T09:51:56 | 2013-11-06T09:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | '''
Created on Apr 29, 2013
@package: ally http
@copyright: 2011 Sourcefabric o.p.s.
@license: http://www.gnu.org/licenses/gpl-3.0.txt
@author: Gabriel Nistor
Provides the cross origin resource sharing delivering.
'''
from ally.container.ioc import injected
from ally.design.processor.attribute import requires, optio... | [
"gabriel.nistor@sourcefabric.org"
] | gabriel.nistor@sourcefabric.org |
6e5d1b8dcce5e84f1d4729a500e553bf7c5e30d5 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/largest-series-product/ad4b869f1ff74f23bd6a302f056a1447.py | 21a04d702897cfcc59b8c338434a89e80f634c2a | [] | 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 | 504 | py | import operator
def slices(string, length):
if length > len(string) or length < 1:
raise ValueError('Length must be between 1 and the string length.')
return [[int(number) for number in string[i:i+length]] for i in xrange(0, len(string) - length + 1)]
def prod(iterable):
return reduce(oper... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
fb8c08384686a71dd4815c9a6f9fa03411a8842e | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/SceneTypeListResult.py | f2eaf5cae92ac29e4bc58833c208eea052875b0c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,605 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.SceneTypeVO import SceneTypeVO
class SceneTypeListResult(object):
def __init__(self):
self._scene_type_list = None
@property
def scene_type_list(self):
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
7c40840033df9e662da63eb41b32aa66a4386209 | a71582e89e84a4fae2595f034d06af6d8ad2d43a | /tensorflow/python/data/kernel_tests/batch_test.py | 30fdd4b39feff472778422cc94fd75284a81b9ae | [
"Apache-2.0"
] | permissive | tfboyd/tensorflow | 5328b1cabb3e24cb9534480fe6a8d18c4beeffb8 | 865004e8aa9ba630864ecab18381354827efe217 | refs/heads/master | 2021-07-06T09:41:36.700837 | 2019-04-01T20:21:03 | 2019-04-01T20:26:09 | 91,494,603 | 3 | 0 | Apache-2.0 | 2018-07-17T22:45:10 | 2017-05-16T19:06:01 | C++ | UTF-8 | Python | false | false | 6,570 | py | # -*- coding: utf-8 -*-
# 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
#
# Un... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
e410458cf96f7a1aee4e119a38314094e801f74b | 157f407d5050ff35d2f9c47dc13ea271b7611fcf | /naming.py | 2f8df157762768fb737bb7d73721f4d6a2a9097d | [] | no_license | DingZhan/TensorFlow2.0Learning | e7679a37af52919da3382ad08bff716f1b528919 | aa6040dbf45bbb331d120e7566917e6275025a8c | refs/heads/master | 2020-07-30T15:05:40.850061 | 2019-10-08T01:26:55 | 2019-10-08T01:26:55 | 210,271,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | #renaming such as "第二十六课..." to "第26课..."
import os
dir = os.getcwd()
print("Current direcotyr is \""+dir+"\"")
files = os.listdir(dir)
titles = [
"第五十九", "第五十八", "第五十七", "第五十六", "第五十五",
"第五十四", "第五十三", "第五十二", "第五十一", "第五十",
"第四十九", "第四十八", "第四十七", "第四十六", "第四十五",
"第四十四", "第四十三", "第四十二", "第四十一", "第四十",
"第三十... | [
"you@example.com"
] | you@example.com |
cc08a665573c16f34683bc1e71cb84176e853d7c | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Pytest/pytest/bench/bench_argcomplete.py | b53c94464537ebdf6f8ab08459a60f239db4bd0a | [
"MIT"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:41df62dc843df23a549969c3f19fc25a7466ac5bc1af3d1711b370fc111923fa
size 613
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
c75073d309f01f52fcfa33e230bd246c65e0ee2f | 57235e5fbd29dc5e0b3f24649e15a48935edd65f | /boa3_test/test_sc/while_test/WhileContinue.py | c2fc8e9fbd6f4bf6662c637faaef4a694e414224 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | DanPopa46/neo3-boa | ae75543bdc4e0aeadf45578b6b5e4c45b9253557 | e4ef340744b5bd25ade26f847eac50789b97f3e9 | refs/heads/development | 2023-04-01T19:25:08.216180 | 2021-04-15T17:45:38 | 2021-04-15T17:45:38 | 358,663,228 | 0 | 0 | Apache-2.0 | 2021-04-16T16:46:46 | 2021-04-16T16:46:31 | null | UTF-8 | Python | false | false | 251 | py | from boa3.builtin import public
@public
def Main() -> int:
a = 0
b = 0
sequence = (3, 5, 15)
while a < len(sequence):
x = sequence[a]
a += 1
if x % 5 != 0:
continue
b += x
return b
| [
"mirellamedeiros.09@hotmail.com"
] | mirellamedeiros.09@hotmail.com |
ed581ecb7d98f57f9670b89f1371640b1b23d270 | 8ad573e455450ce45b8dfd1cb995a8ce43f9a114 | /core/result/success/success_auto_type_consumable_items.py | 031d0eb02c96c4d7cc637cffe0b8aa4bf9e59843 | [] | no_license | afsaneh92/dr_autol | 4da458b8a6682603c227e34a1a827a5918d40831 | a1bd6d55ce9b67543ad7387631c48440dd38f68d | refs/heads/master | 2022-12-23T08:32:47.851059 | 2019-12-10T13:51:24 | 2019-12-10T13:51:24 | 227,130,083 | 0 | 0 | null | 2022-12-08T01:05:23 | 2019-12-10T13:38:52 | Python | UTF-8 | Python | false | false | 478 | py | from core.messages.keys import Keys
from core.result import Result
class SuccessListAutoTypesConsumableItems(Result):
def dictionary_creator(self):
params = []
for param in self.params:
dct = {Keys.PRICE: str(param.price), Keys.PRODUCT_ID: param.product_name,
Keys.BR... | [
"forafsaneh.91@gmail.com"
] | forafsaneh.91@gmail.com |
fbd03a9b6f69f640a92fd21a3931397c7f63a9d8 | f4cee37b83bc14d3c7d11289b58d7d971d87a8fb | /tests/core/testing_tools.py | 14a2716b4a9069ec8534005c7370c895f2b6a56f | [
"BSD-3-Clause"
] | permissive | MatthieuDartiailh/eapii | 8e4aa7257e485912f71e343832583c2f40a5060e | 0c525d9e0be6f6e152b8ace9129b5aaedfb3186c | refs/heads/master | 2021-01-25T07:19:23.386532 | 2015-03-18T08:26:33 | 2015-03-18T08:26:33 | 27,335,761 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,653 | py | # -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# Copyright 2014 by Eapii Authors, see AUTHORS for more details.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENCE, distributed with this software.
#------------... | [
"marul@laposte.net"
] | marul@laposte.net |
e952c441c5037f121912de50b28ec767950b3098 | b7341581abaf2fb50e10e14911cc579e606a23d2 | /sirius_sdk/agent/microledgers/abstract.py | 9fdc4263a161a2fd19fdd8ee8728fb24100b1005 | [
"Apache-2.0"
] | permissive | GarlonHasham/sirius-sdk-python | 3e627af6c2b3ef641b27514787fb08d0e0b30808 | 715b12c910574d78502f186aa512bc1ef5b63fbc | refs/heads/master | 2023-05-14T03:56:29.141362 | 2021-06-03T10:42:01 | 2021-06-03T10:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,173 | py | import json
from abc import ABC, abstractmethod
from typing import List, Union, Dict, Optional
# from sirius_sdk import acquire as resources_acquire, release as resources_release
from sirius_sdk.errors.exceptions import *
METADATA_ATTR = 'txnMetadata'
ATTR_TIME = 'txnTime'
def serialize_ordering(value: dict) -> byt... | [
"minikspb@gmail.com"
] | minikspb@gmail.com |
931bd9f03a1b0eedec0500839a2e23c6c077f581 | ba2eea85cef560c54d5cb4af0e4f2c7c3ee3eb2f | /nesfr3_workspace/catkin_ws/build/nesfr3/wu_ros_tools/joy_listener/catkin_generated/pkg.develspace.context.pc.py | 97f9f4a6cd89dd398256779598d9ae4040394ea9 | [] | no_license | HiSeun/nesfr3_selfwork | 0c782597ffd66d736d53ae05594d23fa7f1d9a85 | 855d43117a235462335c6693b334e7a6235d1d31 | refs/heads/master | 2023-02-08T07:33:15.637998 | 2021-01-05T08:48:45 | 2021-01-05T08:48:45 | 326,935,430 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "rospy;sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "joy_listener"
PROJEC... | [
"ksw05088@naver.com"
] | ksw05088@naver.com |
5d463ec6298a779e1daeacec1680142baf37517c | effce116340b7d937bd285e43b49e1ef83d56156 | /data_files/271 Encode and Decode Strings.py | 2cddebc767034aefa54dc3a0904edefb86c7d880 | [] | no_license | DL2021Spring/CourseProject | a7c7ef57d69bc1b21e3303e737abb27bee3bd585 | 108cdd906e705e9d4d05640af32d34bfc8b124da | refs/heads/master | 2023-04-11T18:52:30.562103 | 2021-05-18T09:59:59 | 2021-05-18T09:59:59 | 365,733,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py |
__author__ = 'Daniel'
class Codec(object):
def encode(self, strs):
strs = map(lambda x: str(len(x))+"/"+x, strs)
return reduce(lambda x, y: x+y, strs, "")
def decode(self, s):
strs = []
i = 0
while i < len(s):
j = s.index("/", i)
... | [
"1042448815@qq.com"
] | 1042448815@qq.com |
e85aa28f4136ecb5f801cd8866387194a0aa93f2 | 0131f6d91da5b063b3d79330b014871c128c67ed | /school/FRC_2412_CODE/python_10/Futachimaru/debug_tests.py | 996b7c559d4c93d6ebe04b7b6dfed43f7f9385c6 | [
"Zlib"
] | permissive | moneytech/code-2 | f31602a702cc7e13b24c1ab5817d30d2314dde76 | d970038329f7c4e4f0ee9dcd1b345741dd0fcc51 | refs/heads/master | 2021-10-02T18:24:20.159492 | 2018-11-30T02:14:18 | 2018-11-30T02:14:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,478 | py | #!/usr/bin/python
import cmd, os
test = None
var = []
def do_args(args):
print args.split()
def do_driver(args):
arg = args.split()
test_passed = False
if len(arg) > 0:
var1 = float(arg[0])
print var1
var2 = float(arg[1])
print var2
var3 = float(arg[2])
print var3
... | [
"xena@yolo-swag.com"
] | xena@yolo-swag.com |
29d2fa8d1ee4ee06e8911f4ab4a0b10cfb9e96b0 | 4dbd93e05a694476251230aec848407799f1da5e | /backend/maxjailbreak_25486/urls.py | 3ac0510f7fd53a60396de92a308d2b94cb5b790f | [] | no_license | crowdbotics-apps/maxjailbreak-25486 | c9a50092da9a95ae82b8ce7bc454dd20c4ea0ac7 | dcc7b140bab9a29c5438f6bca130f276735290bf | refs/heads/master | 2023-03-29T13:24:45.002173 | 2021-04-06T08:40:26 | 2021-04-06T08:40:26 | 355,117,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,235 | py | """maxjailbreak_25486 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
796848149db635ae23d1e615682e5087682b6aac | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4187/codes/1834_1280.py | b51004bc3ffce8dd12554ec602e0218373344718 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | from numpy import *
from numpy.linalg import *
tabuleiro = array(eval(input("Tabuleiro: "))) # Leitura do tabuleiro
mov = input("Movimentos: ") # Sequencia de movimentos do personagem
xtab = 0 # Posicao inicial do personagem
ytab = 0
moeda = 0 # Contadores de atributos do personagem
life = 100
# Limites do tabuleiro... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
3f31397993ce5570bd995b21350bb64e291809b2 | 4766d241bbc736e070f79a6ae6a919a8b8bb442d | /archives/leetcode2/0091. Decode Ways.py | 2d49940e7161b362ddc65804c1b30f92ea6c3d53 | [] | no_license | yangzongwu/leetcode | f7a747668b0b5606050e8a8778cc25902dd9509b | 01f2edd79a1e922bfefecad69e5f2e1ff3a479e5 | refs/heads/master | 2021-07-08T06:45:16.218954 | 2020-07-18T10:20:24 | 2020-07-18T10:20:24 | 165,957,437 | 10 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py |
class Solution:
def numDecodings(self, s: 'str') -> 'int':
if not s:
return 0
if s[0]=='0':
return 0
dp=[1,1]
for k in range(1,len(s)):
cnt=0
if 10<=int(s[k-1:k+1])<=26:
cnt+=dp[-2]
if s[k]!='0':
... | [
"noreply@github.com"
] | yangzongwu.noreply@github.com |
e77d41e5f2ddf19304e21198fa4359339adc4cfe | 21e64accb9c05bdda26d9f405a03451d90745b8b | /trimer.py | 0f58fdfb965ffe891a8672a584b3f86731fd1a45 | [
"MIT"
] | permissive | malramsay64/Artemis-GPU-Computing | cf34fdfc38d8f002cdbf0b91f72643155f1390c6 | c186022744cb46aef9b38490c3f3dd7fa149acaa | refs/heads/master | 2021-01-20T20:53:09.954423 | 2016-11-18T01:19:14 | 2016-11-18T01:19:14 | 61,599,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | #!/usr/bin/env python
""" Script to setup trimer for an interactive hoomd session"""
#
# Malcolm Ramsay 2016-03-09
#
# Hoomd helper functions
import math
import numpy as np
import hoomd
from hoomd import md
from hoomd import deprecated
# This sets up the processing configuration for the simulation run,
# looking for... | [
"malramsay64@gmail.com"
] | malramsay64@gmail.com |
184be1cffe635ce27443fdfa41124faea0efe278 | 1fb73fb9270f976d643059f757d47f0080be2b35 | /dj01/mysite/news/forms.py | 0f19a871c52bb594ee72cb8b48d4351e57ae71d3 | [] | no_license | keys4words/django-sandbox | b5bdac251d94b768f483f9aa45f9fb0fe342342c | 5f90f3215db328177ded01108d3d0330b7703ea2 | refs/heads/master | 2023-05-04T21:50:07.192459 | 2021-05-14T12:54:57 | 2021-05-14T12:54:57 | 289,741,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | from django import forms
from .models import Category, News
class NewsForm(forms.ModelForm):
class Meta:
model = News
# fields = '__all__'
fields =['title', 'content', 'is_published', 'category']
widgets = {
'title': forms.TextInput(attrs={'class': 'form-control'}),
... | [
"keys4words@gmail.com"
] | keys4words@gmail.com |
cc7f736218b33d89bd7a5b39762dc8d8d10c5534 | 65c001b5f572a6b0ca09dd9821016d628b745009 | /frappe-bench/env/lib/python2.7/site-packages/faker/providers/automotive/ar_JO/__init__.py | 2fb0bd6e27441af66dd99338255579f2ab04f6e6 | [
"MIT"
] | permissive | ibrahmm22/library-management | 666dffebdef1333db122c2a4a99286e7c174c518 | b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506 | refs/heads/master | 2022-10-30T17:53:01.238240 | 2020-06-11T18:36:41 | 2020-06-11T18:36:41 | 271,620,992 | 0 | 1 | MIT | 2022-10-23T05:04:57 | 2020-06-11T18:36:21 | CSS | UTF-8 | Python | false | false | 1,246 | py | # coding=utf-8
from __future__ import unicode_literals
from .. import Provider as AutomotiveProvider
class Provider(AutomotiveProvider):
# Source:
# https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Jordan
license_formats = (
'{{initials}}-####',
'{{initials}}-#####',
)
... | [
"iabouelftouh@trudoc24x7.com"
] | iabouelftouh@trudoc24x7.com |
4e02943ca6f75dde92e6593d2bba1d41ccb1c7d8 | 244e751aa882c6df1abb04db8a4de70a0e804ece | /Lesson 7/22 - Plotting Line Charts.py | e0a5057dd586bb637f35b67cf7324eed09337761 | [] | no_license | Mostafa-At-GitHub/Intro-to-Data-Science--Udacity | 0c0656234a26edee84b430745302f330b8857885 | 6519e60eb23df6568d64f47cfe7d8600acb8e933 | refs/heads/master | 2021-09-01T00:40:13.821220 | 2017-12-23T20:07:47 | 2017-12-23T20:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py |
import pandas as pd
from ggplot import *
def lineplot_compare(hr_by_team_year_sf_la_csv):
# Write a function, lineplot_compare, that will read a csv file
# called hr_by_team_year_sf_la.csv and plot it using pandas and ggplot.
#
# This csv file has three columns: yearID, HR, and teamID. The data in th... | [
"mohamedanwarvic@gmail.com"
] | mohamedanwarvic@gmail.com |
810552c12ee3958b530ec3c0b880c978b75621d8 | 70bcdd97318a85acc5bc3f4d47afde696fb7a33b | /jqdata/gta_tables/MAC_FOREIGNCAPITALYEAR.py | cf1fbfd379b130c02c0ae4a1d73e35a1875c1000 | [] | no_license | Inistlwq/tulipquant-code | f78fe3c4238e98014f6d4f36735fb65a8b88f60d | 5959bfe35b6ae2e0e2a204117bda66a13893c64c | refs/heads/master | 2020-03-31T11:25:12.145593 | 2018-04-22T02:16:16 | 2018-04-22T02:16:16 | 152,175,727 | 2 | 0 | null | 2018-10-09T02:31:34 | 2018-10-09T02:31:33 | null | UTF-8 | Python | false | false | 650 | py |
# coding: utf-8
from sqlalchemy import BigInteger, Column, DateTime, Integer, Numeric, SmallInteger, String, Table, Text, text
from sqlalchemy.dialects.mysql.base import LONGBLOB
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
metadata = Base.metadata
class MAC_FOREIGNCAPITALYEAR... | [
"wonghiu45@163.com"
] | wonghiu45@163.com |
167f5f57a4d53c8732c649490e90b41d6fc9223a | 527e5e91d5fac9f24bb73929c4821d01637b904b | /normal_data_distribution.py | a448bc4b5d57de824a88e68980844e2a947cb312 | [
"MIT"
] | permissive | khinthandarkyaw98/Python_Practice | 78031c731e20458f8550774f4b864551abb8c40a | 9b431129c79315a57dae81048a22bf85c4b5132c | refs/heads/master | 2021-05-21T03:49:36.017797 | 2020-04-16T14:32:43 | 2020-04-16T14:32:43 | 252,529,365 | 0 | 0 | MIT | 2020-04-14T16:50:12 | 2020-04-02T18:01:19 | Python | UTF-8 | Python | false | false | 313 | py | # a typical normal data distribution
import numpy as np
import matplotlib.pyplot as plt
x = np.random.normal(5.0, 1.0, 100000)
# np.random.normal(mean, standard_deviation, no of data)
# so 5 +- 1 : values are between 4.0 and 6.0
# Bell curve = Normal distribution graph
plt.hist(x, 100)
plt.show() | [
"noreply@github.com"
] | khinthandarkyaw98.noreply@github.com |
1528c7d9c69332dc472e96bfa8a9843bb9ad74b9 | b366806c99ac30e77789f80417978902e25628da | /boto3_exceptions/apigateway.py | 26315a19a644e291c624574cfec44ecd09f60a01 | [
"MIT"
] | permissive | siteshen/boto3_exceptions | 9027b38c238030859572afec7f96323171596eb7 | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | refs/heads/master | 2020-04-19T03:15:02.525468 | 2019-10-23T07:37:36 | 2019-10-23T07:37:36 | 167,928,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | import boto3
exceptions = boto3.client('apigateway').exceptions
BadRequestException = exceptions.BadRequestException
ConflictException = exceptions.ConflictException
LimitExceededException = exceptions.LimitExceededException
NotFoundException = exceptions.NotFoundException
ServiceUnavailableException = exceptions.Ser... | [
"xiaojiang@actwill.com.cn"
] | xiaojiang@actwill.com.cn |
c97bdd8621e523d6fb7daa0bb7a1682599abe6a5 | 5761a8d1aa8b76fd8d2ec90eaef22f5dc8675f75 | /pythonEssential/decorators.py | b2b0066a0f0884dd1e12b8464621e54c56e3119d | [] | no_license | stcybrdgs/myPython-refresher | 5646a81fd810aa7384981e207d9dadc3f49e9210 | 9e5823c3fde305f1cb252865b0de1f4965b159da | refs/heads/master | 2020-04-02T03:33:28.077337 | 2019-07-11T18:22:02 | 2019-07-11T18:22:02 | 153,972,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | # decorators
# A decorator is a form of metaprogramming and it can be described as a
# special type of function that returns a wrapper function
# imports ===============================
# functions =============================
# rem everything in python is an object, so a function is a type of object
# in f1(), we ... | [
"stcybrdgs@gmail.com"
] | stcybrdgs@gmail.com |
e9532d44cb91b634e89fb785ea13c9c3d702a059 | 462fcece859e10039b718aa670584b0750fdede9 | /test_lib/numba_lib.py | 85c54f6dc69d09780831747367a8ac463aa2aa55 | [] | no_license | hvdthong/Transportation_NEC | c4d918fd5e696de1078e5a7b252f7d4b6592f854 | 4ad8acab002fa045d67a17b8ccd161dd37111edd | refs/heads/master | 2021-01-19T00:06:42.199468 | 2016-06-07T11:28:02 | 2016-06-07T11:28:02 | 43,537,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,102 | py | from numba import vectorize
from numba import autojit, double, jit
import math
import numpy as np
@vectorize(['f8(f8)','f4(f4)'])
def sinc(x):
if x == 0:
return 1.0
else:
return math.sin(x*math.pi) / (x*math.pi)
@vectorize(['int8(int8,int8)',
'int16(int16,int16)',
'int3... | [
"hvdthong@gmail.com"
] | hvdthong@gmail.com |
1f82d471d6e788d7052e411df92edd1adb54839f | e801e82b17a7ddbdc13b87b2fbc16cb133cd9e9d | /src/data_api/kitti.py | 4310b0c8987c80df3333e3c267621ebd72dab6d5 | [] | no_license | lrjconan/img-count | 5644de551dfbdc777d1688e2d72c59ad381823ea | fb6893b72fbf66e43ae63a7b82cc9c42ad9877d7 | refs/heads/master | 2021-01-18T11:06:11.207996 | 2016-04-15T04:58:55 | 2016-04-15T04:58:55 | 56,351,011 | 1 | 1 | null | 2016-04-15T21:31:38 | 2016-04-15T21:31:38 | null | UTF-8 | Python | false | false | 7,506 | py | import sys
sys.path.insert(0, '../')
from utils import logger
from utils import progress_bar as pb
import cv2
import numpy as np
import os
import re
import h5py
log = logger.get()
"""
Image size are around 375 x 1240.
We may want to resize it first to
160 x 480 (32 padding)
128 x 448
64 x 224
32 x 112
16 x 56
8 x 28
... | [
"renmengye@gmail.com"
] | renmengye@gmail.com |
f1d48aeb56c659e3e2f112564e2344f21ba0bed4 | c105570f12f1d56087ffb831f5d34cd763d6c90b | /top/api/rest/FenxiaoProductAddRequest.py | 61b60163a47774b1567c88bc11246cde99c4b665 | [] | no_license | wjianwei126/Alinone | 01607423833d7736b2fd3c77e9e21f63c69b4e4c | 80144d4657cb049d651c09647eb245405240f12f | refs/heads/master | 2020-12-07T05:14:58.746777 | 2015-05-06T12:48:33 | 2015-05-06T12:48:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | '''
Created by auto_sdk on 2014-11-09 14:51:18
'''
from top.api.base import RestApi
class FenxiaoProductAddRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.alarm_number = None
self.category_id = None
self.city = None
self.cost_price =... | [
"rapospectre@0163.com"
] | rapospectre@0163.com |
8cd2d9153bd77fe8d75f9c13c35592f3fad4e5e1 | 9eb128193bb36b9e13fc6fc61d23fa645782374d | /corregir_tabla_rutas.py | edfd2d3344e7bc24e1061467d0247c2e48f04851 | [] | no_license | OscarMaestre/pruebas_proceso | c20928a9bccce548a66c8a2777055664ed681d82 | 6e8e1ab4a245295ee5f317afd4133b1f8b0ca338 | refs/heads/master | 2020-04-05T23:47:54.944025 | 2020-02-10T16:25:26 | 2020-02-10T16:25:26 | 45,133,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/env python3
#coding=utf-8
import os, sys
DIRECTORIO_UTILIDADES="."+os.sep+"utilidades"+os.sep+"src"
sys.path.insert( 0 , DIRECTORIO_UTILIDADES )
from utilidades.basedatos.GestorBD import GestorBD
gestor_bd=GestorBD(".."+os.sep+"docencia.db")
gestor_bd.activar_depuracion()
gestor_bd.cambiar_nombres_por_c... | [
"profesor.oscar.gomez@gmail.com"
] | profesor.oscar.gomez@gmail.com |
1969b143c4c3b8ef35905f3f24ca11c97b0a5752 | 5cdb0aa12b0b8d5f8b6c4a68bfa21be429e38e51 | /official/r1/mnist/mnist_eager_test.py | 2fe7e66fd165dd5a03e4a81f85b9ba8a39b93643 | [
"Apache-2.0"
] | permissive | ayushmankumar7/models | b33af8812b54b5fdd7d72db06a6875d2551946aa | 965cc3eef54a3a173a2347fe0059a35f1e5f2496 | refs/heads/master | 2021-01-08T16:10:02.872236 | 2020-04-21T16:40:49 | 2020-04-21T16:40:49 | 244,682,923 | 4 | 0 | Apache-2.0 | 2020-04-21T16:40:51 | 2020-03-03T16:14:26 | Python | UTF-8 | Python | false | false | 2,913 | py | # Copyright 2018 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
8fbee796a41bca92134185708e5ce5a50f10ae71 | 94bd1e0d8caae89e8ae7b917d78fb241df650d46 | /old/step2/catchDot_part2.py | bd9244a53fc07381b410ad0a6cbb637bef526cb2 | [
"MIT"
] | permissive | NingAnMe/GFSSI | 79d36449764a96482b9e2bc3224675c7160ddcd3 | 066ac3dcffe04927aa497ee8b2257bee3ec3789a | refs/heads/master | 2021-06-23T22:00:24.367544 | 2021-02-05T06:10:44 | 2021-02-05T06:10:44 | 196,914,413 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | import os,sys,glob,time,pickle
import numpy as np
from math import ceil,floor,sqrt,pow
from datetime import datetime,timedelta
def readAndWrite(files,fileName_str):
print(files,fileName_str)
with open(files[0]) as fd:
for line in fd:
oriData = line.split()
if oriData[0]=='lon':
... | [
"ninganme@qq.com"
] | ninganme@qq.com |
ba39af7492834a04833a18213987fec687c74982 | 9c04755f5bd322e908e353db8aa8c40231866c94 | /survival/ptprocesses/base.py | 6a20336b7980b51887dfce31816f5867267dd98c | [
"MIT"
] | permissive | ryu577/survival | 89340e3597eff7ba2ebdd031b5ef13b352d69db5 | cd21c845fb75fea2ed87e44097b2379ec34996d4 | refs/heads/master | 2021-06-02T20:22:40.979202 | 2021-02-21T23:30:18 | 2021-02-21T23:30:18 | 133,910,866 | 39 | 3 | MIT | 2019-03-31T06:49:46 | 2018-05-18T06:10:55 | Python | UTF-8 | Python | false | false | 2,288 | py | import numpy as np
import abc
class Base(object):
def gradient_descent(self, params=np.array([2.0, 2.0]),numIter=2001,
verbose=False, set_zero=60,
step_lengths=[1e-8, 1e-7, 1e-5, 1e-3, 1e-2, .1, 1, 2]
):
'''
Performs gradient descent to fit the parameters of our distribution... | [
"rohitpandey576@gmail.com"
] | rohitpandey576@gmail.com |
4eb6dec448162653ab34e696c72fb9500d3b1c2e | 9ecf55bf2601e0d4f74e71f4903d2fd9e0871fd6 | /my_seg_tf/v9_segcap_128_128/history/unet.py | 2a9c7d19c936a33390dacb6b918fcb4b413c9206 | [] | no_license | qq191513/mySeg | 02bc9803cde43907fc5d96dc6a6a6371f2bef6fe | 4337e6a0ca50b8ccbf6ed9b6254f2aec814b24db | refs/heads/master | 2020-04-10T09:57:37.811133 | 2019-06-26T08:21:23 | 2019-06-26T08:21:23 | 160,951,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,261 | py | import os
import tensorflow as tf
import sys
sys.path.append('../')
import config as cfg
lr_init = cfg.lr_init
#自己写的Unet,无法解决的bug
class Unet(object):
def __init__(self, sess, config, is_train):
self.sess = sess
self.name = 'Unet'
self.mask = config.mask
self.ckpt_dir = config.ckpt_... | [
"1915138054@qq.com"
] | 1915138054@qq.com |
9d0a85889a5c0f9369aeba7424d0ba7d09700c4e | d051f3fe9fda31b72fa0ddce67aa1f4293c7c37c | /tests/test_graph.py | c495de92921d4b94886637f42bcbafc215c352ea | [
"BSD-3-Clause"
] | permissive | davmre/sigvisa | 4e535215b6623310d8f5da64258f6fa9a378f9fd | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | refs/heads/master | 2021-03-24T10:24:52.307389 | 2018-01-05T19:33:23 | 2018-01-05T19:33:23 | 2,321,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,024 | py | import numpy as np
from sigvisa.graph.nodes import Node
from sigvisa.graph.dag import DAG, DirectedGraphModel, CyclicGraphError
from sigvisa.graph.sigvisa_graph import SigvisaGraph
from sigvisa.source.event import get_event
from sigvisa.signals.io import load_event_station
import pickle
import os
import unittest
cl... | [
"dmoore@cs.berkeley.edu"
] | dmoore@cs.berkeley.edu |
da11dc3c75e7f2f1e6000a65ab0764bd7b0ecbce | 53323ebc751a2afed626b2fa8f29042e907d1630 | /GA_Pattern - 副本.py | 58de46170a12c7b4956f01f44f65bf0b016406d1 | [] | no_license | Tesla2fox/Pattern-base-GA | 97ad702a5e785e28694af0e7b2a141d56243c7b6 | cd2548f0878d6963ca8c16bacfb98fef4cfdb086 | refs/heads/master | 2020-03-22T21:23:48.870012 | 2018-08-29T08:07:31 | 2018-08-29T08:07:31 | 140,683,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,308 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 11 21:24:46 2018
@author: robot
"""
import math
import plotly.plotly as py
import plotly.graph_objs as go
import plotly
import copy
from plotly import tools
from env import *
def GClockWise(point):
x = point[0]
y = point[1]
a = math.sqrt(x*x + y*y)
b =... | [
"stef_leon_gao@outlook.com"
] | stef_leon_gao@outlook.com |
d9ba50eaf051548847526e653d675d76df716c88 | 045ae5479c41a5562351714eb6cc134cf1602cc5 | /dearhr/user/migrations/0010_auto_20201112_1912.py | 9a4eb635433bc7502ad01004ed12d01e97d8a06e | [] | no_license | zamanehsani/working | 58d94ec02de82039ec876efb5f54ed157b201262 | 191c186acfba65e6cdc2110e47746c49430a16ef | refs/heads/master | 2023-02-27T21:07:06.872464 | 2021-02-02T08:41:36 | 2021-02-02T08:41:36 | 307,046,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | # Generated by Django 3.1.1 on 2020-11-12 15:12
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('user', '0009_auto_20201112_1904'),
]
operations = [
migrations.RemoveField(
... | [
"zamanehsani@gmail.com"
] | zamanehsani@gmail.com |
5f342ea107b66276abf8f166b488cdc70e2496e0 | 73832d62f4e982517f36265617c17bea3b715719 | /04cem/Programming_Software_Tools/PYTHON/lab1/sorts.py | d1c8d2735e8323b62a13c2435c0cbbf1cab527bb | [] | no_license | keipa/bsuir-labs | fa9018a121ec1b040bae27326607cd82ac7652a4 | a7a3eca34d095568c7f8cbbe976cc91e515dc756 | refs/heads/master | 2021-06-15T23:37:27.249024 | 2020-06-09T09:33:32 | 2020-06-09T09:33:32 | 34,018,391 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | def prepare_for_sort(st):
return [int(n) for n in st.split()]
# list comprehension
###################################################################
def algorithm_quick_sort(lst):
if len(lst) <= 1:
return lst
smaller = [x for x in lst[1:] if x < lst[0]]
larger = [x for x in lst[1:] if x >= l... | [
"nichogaus@gmail.com"
] | nichogaus@gmail.com |
9cb8e0281c440c39ef92bd5858d7e677f03a4042 | 56eee123941d2abc803b0dd7e48b7ab31fa44f9b | /tensorflow_probability/python/layers/initializers.py | 948c9c7c482a48beeb8cfaa0f516b80dbe0421ce | [
"Apache-2.0"
] | permissive | cafeal/probability | 45e7bb484afa36163d644e360e5c7fe2fe06d77d | f968a32d601d29ec31a10568ccfe30263cf91ef2 | refs/heads/master | 2020-08-10T15:41:09.427027 | 2019-12-06T21:56:56 | 2019-12-06T21:58:02 | 214,369,817 | 0 | 0 | Apache-2.0 | 2019-12-06T22:55:41 | 2019-10-11T07:18:10 | Jupyter Notebook | UTF-8 | Python | false | false | 4,576 | 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 |
a969a9d1edfedf655d689325d47f6e55826659b0 | 7e2214619d5948d0d5f7e22f46dee679d722d7b3 | /combinations.py | e2eb1703c3a2d79074d64e6da06144fc3dbe62d0 | [] | no_license | udwivedi394/misc | ef6add31a92e0d2d0505e8be016f0a868a6ac730 | 64dffb5db04c38465fffb415bec1d433b1caa8f6 | refs/heads/master | 2021-09-09T06:16:32.124586 | 2018-03-14T05:10:55 | 2018-03-14T05:10:55 | 116,167,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #https://www.interviewbit.com/problems/combinations/
def combinations(A,B):
final_arr = []
combinationsUtil(A,B,1,0,[],final_arr)
return final_arr
def combinationsUtil(A,B,num,level,cur_list,final_arr):
if level==B:
final_arr.append(cur_list)
return
for i in xrange(num,A+1):
... | [
"utkarshdwivedi394@gmail.com"
] | utkarshdwivedi394@gmail.com |
4171834ce3b64cff0ffeaabcf68bd2ee6bbc5804 | ed41b8baf07fa2707fff753182300cd61c81f84b | /configuration.py | 27c94fe6c9b05cb616f1f3d6bff3b85e9b279c10 | [
"PostgreSQL"
] | permissive | dalibo/temboard-toolkit | 61742077f46844ec8f0a733900369d8ee4187a86 | 6b8824f43fe6b8d43f3047e2d648a859af854e84 | refs/heads/master | 2022-05-24T17:19:42.336326 | 2022-03-07T09:46:36 | 2022-03-07T09:46:36 | 136,478,561 | 0 | 7 | PostgreSQL | 2022-03-07T09:46:37 | 2018-06-07T13:05:42 | Python | UTF-8 | Python | false | false | 6,346 | py | # The configuration API merges args, file, environment and defaults safely,
# even when reloading.
import logging
import os
from argparse import SUPPRESS as SUPPRESS_ARG
from .utils import DotDict
from .errors import UserError
logger = logging.getLogger(__name__)
class OptionSpec(object):
REQUIRED = object()
... | [
"etienne.bersac@dalibo.com"
] | etienne.bersac@dalibo.com |
2a6ffd0c720531c91746a39f3ebbeef02a09917a | fc141c11542d9b7cc73d3e773fc522375d443b76 | /1/Blocky/Network.py | 0e0c9de7cf555055f776063fdfff2ea1d0dcb1b1 | [] | no_license | curlyz/BlockyFirmware | 4157bce89f80c99a6537f02f55a26a949df865d8 | c96c7c7ccc85a9d0c41b65f05290f300814d7a8e | refs/heads/master | 2020-03-22T07:53:40.891234 | 2018-07-04T14:18:34 | 2018-07-04T14:18:34 | 139,731,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,235 | py | from Blocky.MQTT import *
from Blocky.Indicator import indicator
from machine import unique_id , reset
from binascii import hexlify
import gc
from time import sleep_ms
from Blocky.Timer import *
from ujson import dumps , loads
#import uasyncio as asyncio
import Blocky.uasyncio as asyncio
BROKER = 'broker.get... | [
"noreply@github.com"
] | curlyz.noreply@github.com |
46714b9fba14ae9bcb0d5dd334389ac315cbd42e | 28729bdabcb1c83429752bc15b14f2ac1950028f | /firmware/python_modules/shared/dashboard/terminal/orientation.py | 820d26a0608f240bc3e5cd81d8ae2a8abba1f04a | [] | no_license | badgeteam/ESP32-platform-firmware | 434020769b36df164fd1719b3bcf996851d55294 | 04282f7fe84ddd0f0c3887fa948da68a9ade8126 | refs/heads/master | 2023-08-17T07:07:51.048777 | 2023-08-14T20:53:37 | 2023-08-14T20:53:37 | 194,534,857 | 31 | 49 | null | 2023-08-15T21:00:09 | 2019-06-30T15:59:30 | C | UTF-8 | Python | false | false | 1,128 | py | import term, orientation, system, time, consts
system.serialWarning()
def getOrientationString(currentValue):
orientationString = str(currentValue)
if currentValue == 0:
orientationString = "Landscape"
if currentValue == 90:
orientationString = "Portrait"
if currentValue == 180:
orientationString = "Landsca... | [
"renze@rnplus.nl"
] | renze@rnplus.nl |
369abc27ce507c75cd7e84d5257e81a97c78c425 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4001/codes/1592_2043.py | 38d265c0c0a13b7d12d95e57a98e89e3a52ecae8 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | num = float(input("nota:"))
num2 = float(input("nota:"))
num3 = float(input("nota:'"))
num4 = float(input("nota:"))
total = ((num*1 + num2*2 + num3*3 + num4*4)/10)
print(round(total, 2)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
cba0c5015f4c610d28647d1a9649109c7e5f7c84 | d32c0f5a81e2c0f32289edef261ca5171282db7b | /questions/string/find_nonrepeating_char.py | 33f882059d85b7335b9fbf8e7c0ee4b59dc32604 | [] | no_license | mpettersson/PythonReview | 5a9c863a298855d4949fb06c52e31c8a114736c3 | 14be619208dfffeafcab1a6ba5c3ff0b1e31c0b5 | refs/heads/master | 2022-03-05T00:18:42.397061 | 2022-02-19T15:15:35 | 2022-02-19T15:15:35 | 233,277,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | """
FIND NONREPEATING CHARACTER
Write a function, which when given a string, will return the first nonrepeating character or None if all characters
repeat.
Example:
Input = "aabcb"
Output = "c"
"""
# Naive/Brute Force Approach: For each character, check all other characters; if no d... | [
"matt@mpettersson.com"
] | matt@mpettersson.com |
19085e397929c643d60267ce8792e36aa8fbea57 | 5d48aba44824ff9b9ae7e3616df10aad323c260e | /two_pointers/42.trapping_rain_water.py | a3de4c38064251f8f2fcb1c2883fe32b718d069a | [] | no_license | eric496/leetcode.py | 37eab98a68d6d3417780230f4b5a840f6d4bd2a6 | 32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17 | refs/heads/master | 2021-07-25T11:08:36.776720 | 2021-07-01T15:49:31 | 2021-07-01T15:49:31 | 139,770,188 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | """
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
The above elevation map is represented by array [0,1,0,2,1,0,1,3,2,1,2,1]. In this case, 6 units of rain water (blue section) are being trapped. Thanks Marcos for co... | [
"eric.mlengineer@gmail.com"
] | eric.mlengineer@gmail.com |
a2f73935fed287ac8b0f4b581410faaf16710eca | 51e77e985d9b6c6bb0972ccee14b867e289aae61 | /fundamentalsOfComputing/interactiveProgramming/notes_global&local_variables.py | 2108550b5811cf364fc27892234e15afadd889d9 | [] | no_license | ErhardMenker/MOOC_Stuff | 7c397059f62ba39f21a877c7fcf71a97751dda4b | 7cdd581e9f9dcdd0b0c27dbbb9216bc76df8fff5 | refs/heads/master | 2021-01-17T10:38:06.805197 | 2017-03-29T23:50:18 | 2017-03-29T23:50:18 | 84,018,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | # A variable built outside of a Python function is a global variable
# A variable built within a Python function is a local variable
# global vs local examples
# num1 is a global variable:
num1 = 1 # outside a function, so a global variable
print num1
# num2 is a local variable:
def fun():
num1 = 2
num2 = ... | [
"ejmenker@gmail.com"
] | ejmenker@gmail.com |
922d65877ca8ca759e0380f64c9de7251a0ffe7c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2471/60623/285390.py | 0c68cd6c60dac2d55759e4a511f73bc5e5f3bdb6 | [] | 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 | 746 | py | size=int(input())
for i in range(size):
s=input()
l=[]
signal=0
for var in s:
if var=='[' or var=='{' or var=='(':
l.append(var)
elif var==']':
if len(l)==0:
signal = 1
print("not balanced")
break
t=l.pop()
if t!='[' and signal==0:
signal=1
print("not balanced")
break
elif ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
8d6a6fa4319ef9fd9b7db1ed5fb98fddbb19eb7a | bf2b402f57573b533fac79277ed4883d60f5003e | /chap07_exams/exam02완성.py | bd984105f1c9ab67556fab8d9ebe6d2b224c60f1 | [] | no_license | Elly-bang/python | 945909670c021f2903483cb6fecfcc88c2fc72ea | f9c1f918d8b2e3964fabf763a43855dff07c3c46 | refs/heads/master | 2022-11-14T23:07:41.726850 | 2020-06-30T06:48:12 | 2020-06-30T06:48:12 | 271,227,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | '''
문제2) 서울 지역을 대상으로 '동' 이름만 추출하여 다음과 같이 출력하시오.
단계1 : 'ooo동' 문자열 추출 : 예) '개포1동 경남아파트' -> '개포1동'
단계2 : 중복되지 않은 전체 '동' 개수 출력 : list -> set -> list
<출력 예시>
서울시 전체 동 개수 = 797
'''
try :
file = open("../data/zipcode.txt", mode='r', encoding='utf-8')
lines = file.readline() # 첫줄 읽기
print(l... | [
"noreply@github.com"
] | Elly-bang.noreply@github.com |
3d3f7858a63528346c44c11351aa2f55b2c4c9e9 | 3b262c248577aec866ab9d4ca69c663cc1a680ad | /I_contact/login/migrations/0001_initial.py | 65e5dd552a8e0f270634b90732f2259cf42d15ea | [] | no_license | dkyou7/I_contact | e8da00b8fc83650bd2eba4c13b96b21862aee826 | 69f739e81caea5722e6270f4d69039bdda9e2981 | refs/heads/master | 2023-04-29T21:09:37.926134 | 2019-11-09T22:47:38 | 2019-11-09T22:47:38 | 220,624,692 | 0 | 2 | null | 2023-04-21T20:40:55 | 2019-11-09T10:14:24 | JavaScript | UTF-8 | Python | false | false | 875 | py | # Generated by Django 2.2.7 on 2019-11-09 16:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"rkdtmddnjs97@gmail.com"
] | rkdtmddnjs97@gmail.com |
42768a57f3ac379106767b1c6db95878e8a55df8 | ae2dd8659b7afedc637d24b8237b0a0d78b7e658 | /pokemonTerminalByWeather.py | 887647b6f59652250b115fe21a7db0cf7c9fa429 | [] | no_license | Lischero/Nonflammable-trash | 062a44359701de3f4e2cf012a1d6e83ab068e506 | 22a859b6c01cb6993ae9727684c8b4e00996dc38 | refs/heads/master | 2021-01-11T15:46:21.226861 | 2018-11-30T07:30:09 | 2018-11-30T07:30:09 | 79,927,766 | 0 | 1 | null | 2017-01-31T04:44:16 | 2017-01-24T16:07:40 | Shell | UTF-8 | Python | false | false | 960 | py | # -*- coding:utf-8 -*-
import os
import subprocess
import shlex
import urllib.request
import json
if __name__ == "__main__":
api_key = os.environ.get('WEATHERAPPID')
area_name = os.environ.get('WEATHERPLACE')
url = "http://api.openweathermap.org/data/2.5/forecast?"+"q="+area_name+"&units=metric"+"&appid="+... | [
"vermouth.lischero@gmail.com"
] | vermouth.lischero@gmail.com |
828b54574fdc41f27c69599031b20bfe2cb33134 | b7eb41b068614e04f38a969326f43d8f8119cb05 | /6_zig_zag_conversion.py | 53574fef824a9847d0928f9247345a8e67326d65 | [] | no_license | YI-DING/daily-leetcode | ddfb6985bf5014886cba8d6219da243e0aa28d71 | a6d3898d900f2063302dc1ffc3dafd61eefa79b7 | refs/heads/master | 2020-05-19T06:07:21.557077 | 2019-07-19T16:31:46 | 2019-07-19T16:31:46 | 184,866,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | class Solution:
def convert(self, s: str, numRows: int):
if not s:
return ""
leng=len(s)
if numRows >= leng or numRows == 1:
return s
result=""
for row in range(1,numRows+1):
index=row-1
iterr=[2*numRows-2,2*numRows-2]... | [
"yiding1@uchicago.edu"
] | yiding1@uchicago.edu |
5b014465e7c43df74671ebc035d65dd754a6f20b | 085486ba480b406ec7d25df749953d0ddaa3f295 | /script/base_api/service_research/courseWareScoreController.py | 056f145522c14ed2d6082cf446aa4e8a9e1c1e72 | [] | no_license | WDD185/Interface-automation | 0256d8772a5c25b8207ecfa640a29b50a4d56616 | 36cdcc30194ab9064fd9a06388cb34be30adbdc5 | refs/heads/main | 2023-06-19T21:15:17.518032 | 2021-06-22T10:17:40 | 2021-06-22T10:17:40 | 358,517,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,557 | py |
from common.run_method import RunMethod
import allure
@allure.step("备课评价/打分")
def courseWareScoreController_courseWareScore_get(params=None, header=None, return_json=True, **kwargs):
'''
:param: url地址后面的参数
:body: 请求体
:return_json: 是否返回json格式的响应(默认是)
:header: 请求的header
:host: 请求的环境
:return... | [
"2356401963@qq.com"
] | 2356401963@qq.com |
c2000c864577dcf5aa07e82aaff223ad31fc39ca | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_snowiest.py | 6a87310a772fe44260fe4a7e344a7c3e3c1e39e5 | [
"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 | 245 | py |
from xai.brain.wordbase.adjectives._snowy import _SNOWY
#calss header
class _SNOWIEST(_SNOWY, ):
def __init__(self,):
_SNOWY.__init__(self)
self.name = "SNOWIEST"
self.specie = 'adjectives'
self.basic = "snowy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fb1eb1e505355d186756efc80425ad3b02ec5fb1 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5639104758808576_1/Python/fershady19/StandingOvation.py | dd9764a9cc6da0f13d64bd8ecd21b9f269044a62 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | f = open("/Users/fernandorenteria/Documents/CodeJam/A-large.in", "r")
inputData = []
for line in f:
inputData.append(line)
def StandingOvation(a):
people = 0
add = 0
for x in range(len(a)):
people += int(a[x])
if people < x+1:
add+=1
people += 1
r... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
1a9bd20ecae7419859a5736027ee5aaae63ac48c | 92bfcfaedb69b0d5c032f6a9b3ad70c0e06f7c53 | /loop.py | 9ed0ec85baafc9c47ab591bd242a6bc7aa187877 | [] | no_license | hellstrikes13/sudipython | cf529ed60cca09afa185f3b56fe7ce17059212b0 | a789fc33cdab12d64ab674cb1c2ad7849617251f | refs/heads/master | 2022-01-03T09:12:14.192724 | 2021-12-23T05:38:31 | 2021-12-23T05:38:31 | 184,371,582 | 2 | 1 | null | 2021-12-23T05:38:31 | 2019-05-01T05:07:18 | Python | UTF-8 | Python | false | false | 269 | py | import pdb
num_list = [500, 600, 700]
alpha_list = ['x', 'y', 'z']
def nested_loop():
for number in num_list:
print(number)
pdb.set_trace()
for letter in alpha_list:
print(letter)
if __name__ == '__main__':
nested_loop()
| [
"hellstrikes13@gmail.com"
] | hellstrikes13@gmail.com |
c6e690aa0bd0ce9e5e92b926f09e127161f34654 | 91f5a7bf2f60b4894dc5c5285f5e819d25d50a54 | /get_streams.py | 0adfe7c6398c447ea214f7e787ddb026659ffc7c | [] | no_license | dmalt/neurowrestling | dc308ef7d22d4b0f70c282455ea47fbaaa212fb2 | ada65c6bd6a4abdac1d7c48cead1bf901dda1bb0 | refs/heads/master | 2021-09-08T01:58:02.916734 | 2018-01-06T12:05:46 | 2018-01-06T12:08:39 | 112,008,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | """
Define functions to resolve LSL streams
"""
class MyException(Exception):
def __init__(self, value):
self.parameter = value
def __str__(self):
return repr(self.parameter)
def get_streams_2_players():
"""
Resolve protocols from two players
"""
from pylsl import resolve... | [
"dm.altukhov@ya.ru"
] | dm.altukhov@ya.ru |
cb71d92836e1fa0702189d546387ffeeacbeb17b | 536aa3e7833ead462ccb087e827f2a490e1b5216 | /stripe/api_resources/order.py | 5c15a815b398944d301cfe564120b714b7a8c67f | [
"MIT"
] | permissive | condemane/stripe-python | 83b6026fec6742535b352a396622453fb6fc8f84 | 1ca277051cf212c6ac8a22b49321cfe9e1ffd405 | refs/heads/master | 2021-07-23T16:39:05.896112 | 2017-11-03T02:47:45 | 2017-11-03T02:47:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
class Order(CreateableAPIResource, Upd... | [
"ob@stripe.com"
] | ob@stripe.com |
76d1441e51c346702ed88a5ec340f26f2210a942 | 853fd83a5ae64810fb4cf85a96f0537fa55dcf85 | /pytorch_d/knowledge/梯度下降.py | 08a3698f4354ea4c369f9553dce03188dfd77f58 | [] | no_license | xrw560/KK_AI | 5fda91d83fb1b1366bc69625967c1920fb2398a6 | c96b9a84f09f7e9a7e51ea363424a4213540fdfa | refs/heads/master | 2020-08-23T10:30:07.108982 | 2020-03-01T00:29:06 | 2020-03-01T00:29:06 | 216,595,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | import numpy as np
import torch
import math
import sys
sys.path.append("..")
import d2lzh_pytorch as d2l
def gd(eta):
x = 10
results = [x]
for i in range(10):
x -= eta * 2 * x # f(x) = x * x的导数为f'(x) = 2 * x
results.append(x)
print('epoch 10, x:', x)
return results
res = gd(1.2... | [
"ncutits@163.com"
] | ncutits@163.com |
586773b8e994ec85c23b9a77383164ed9c8c667a | 3bb662400dcd168c66f0ccf7b76c086508721408 | /ControlRegions/DY/samples.py | 4528fb77619e5352a332559670ec7b070046dfb8 | [] | no_license | amassiro/PlotsConfigurationsCMSDAS2019Beijing | 4dea76368e2af18e40b9342f2d9863518993be3a | 04733d5429c93f073294a942828811891984a2de | refs/heads/master | 2020-09-16T12:40:39.425764 | 2019-12-09T03:13:21 | 2019-12-09T03:13:21 | 223,772,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,619 | py | import os
from LatinoAnalysis.Tools.commonTools import getSampleFiles, getBaseW, addSampleWeight
#
# function to simplify the life later ...
#
def nanoGetSampleFiles(inputDir, sample):
return getSampleFiles(inputDir, sample, True, 'nanoLatino_')
# samples
try:
len(samples)
except NameError:
import coll... | [
"massironi.andrea@gmail.com"
] | massironi.andrea@gmail.com |
77c4dff956c11fe296c0fc352e2d171531044505 | 3ab494cac87a9f3c5ba17c903ffdbba7e72c305f | /algorithm/day19/연습문제 3.py | c88f39acb26625eebb3ae84b5b4c3d1696b26c2a | [] | no_license | sochic2/TIL | 6036cae002ce4c4ba5e7d2175e668c664de209de | eb2709f5ac1a4b9c79dda0e647f14044c7a4fb6e | refs/heads/master | 2023-01-10T03:51:14.057387 | 2022-12-21T01:27:38 | 2022-12-21T01:27:38 | 162,229,719 | 4 | 1 | null | 2023-01-09T11:56:04 | 2018-12-18T04:23:54 | Python | UTF-8 | Python | false | false | 673 | py | total = 0
N = 10
A = [0 for _ in range(N)]
data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
def printSet(n):
ssum = 0
for i in range(n):
if A[i] == 1:
ssum += data[i]
if ssum == 10:
for i in range(n):
if A[i] == 1:
print('{} '.format(data[i]), end="")
... | [
"netzzang12@gmail.com"
] | netzzang12@gmail.com |
67af7410bff1e4247c67755ba9fcf9f8d0b5abc4 | a722faf9fb50c794555861bb4858c3ed8a7a25f3 | /sandbox/feature-man/src/feature_man/__init__.py | 9bd9634e47b0df98e5ebff0b2bf84464db875c1b | [
"MIT"
] | permissive | ar90n/lab | 31e5d2c320de5618bc37572011596fee8923255d | 6d035e12f743e9ba984e79bfe660967b9ca8716b | refs/heads/main | 2023-07-25T17:29:57.960915 | 2023-07-22T12:08:18 | 2023-07-22T12:08:18 | 77,883,405 | 4 | 0 | null | 2023-07-17T08:45:14 | 2017-01-03T04:15:49 | Jupyter Notebook | UTF-8 | Python | false | false | 140 | py | from . import ops
from . import types
from . import exceptions
from . import scheduler
from .context import Context
__version__ = '0.1.0'
| [
"argon.argon.argon@gmail.com"
] | argon.argon.argon@gmail.com |
13ca4ddd2f34c6e122d4815aad41e6595acca8ee | 2e919a1e9f5d6b0ffef37b626d5dc97a5b2f63cd | /Guia_Ejercicios/13/13_4.py | 5e92af7a64f41076b374dcee39fe9bfb7759248d | [] | no_license | lucasguerra91/some-python | c3992ac6c49f015bf14f37996ff3c8b0ed7b4d0a | 0678e8d884e0641d592a3a457db11cc2085c8b27 | refs/heads/master | 2021-01-18T13:06:32.454114 | 2019-06-24T01:46:58 | 2019-06-24T01:46:58 | 80,723,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | """
Ejercicio 13.4. Escribir una funcion recursiva que reciba como parámetros dos cadenas a y b, y
devuelva una lista con las posiciones en donde se encuentra b dentro de a.
Ejemplo:
posiciones_de("Un tete a tete con Tete", "te") -> [3, 5, 10, 12, 21]
"""
def posiciones_de(a, b):
"""
:param a: cadena
:par... | [
"guerra986@gmail.com"
] | guerra986@gmail.com |
96b4eb32b36b960afc7916ab0acaf4c1d8d59388 | 0c325cf7a68ef51067ed8db566d525a20de5b635 | /other/panda365/panda365/migrations/versions/51083daea9cc_remove_order_payment_id.py | a4c2a1ee66f8cc3a43dfeac669e59ff1b3e3902c | [] | no_license | alinzel/NOTES | 2ab6aa1ef1d601a9ae8c0d23c0df2bca7e1aa241 | 3e0594641a605580e920d0b08a251fbc99f34e2f | refs/heads/master | 2023-01-08T22:48:30.762625 | 2020-01-17T09:14:47 | 2020-01-17T09:14:47 | 175,339,492 | 0 | 0 | null | 2022-12-27T15:01:19 | 2019-03-13T03:28:08 | HTML | UTF-8 | Python | false | false | 695 | py | """remove order.payment_id
Revision ID: 51083daea9cc
Revises: 2dce049600fb
Create Date: 2017-07-22 12:30:04.864530
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '51083daea9cc'
down_revision = '2dce049600fb'
branch_labels = None
depends_on = None
def upgrade... | [
"944951481@qq.com"
] | 944951481@qq.com |
69a69316be8e35af65d71cd0cf9bdb2e9013c645 | 601de141dcb768ae20810f205f53d6b43740b9d6 | /tests/test_shed.py | fbc88e26d805b95c330ce03963d3c68a90097ce0 | [
"AFL-3.0",
"CC-BY-2.5",
"AFL-2.1",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | CarlosHorro/planemo | 56e603ee257ded37f3aba55ececd1db7fd223a61 | b5da69cb22028505df0e84a275f5078c1885902e | refs/heads/master | 2020-04-24T08:37:11.644022 | 2019-02-18T21:53:29 | 2019-02-18T21:53:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | """
"""
import os
import random
import string
import yaml
from bioblend import toolshed
from planemo import io
from planemo.shed import username
from .test_utils import (
CliTestCase,
skip_unless_environ,
TEST_DIR
)
SHED_TEMPLATE = string.Template("""owner: ${owner}
name: ${name}
description: Planemo t... | [
"jmchilton@gmail.com"
] | jmchilton@gmail.com |
50c553a14ea44508fc6e17696683efc73c4db7fb | f191d5320a30eb4086b7012edc949bb6ff6de6b1 | /function_5.py | 84cf550f6e383db702260549a095271ed6bf97ae | [] | no_license | ravi4all/PythonJulyEve_19 | 760ab0c2fcb81dd4b6fa2e3fadcc1ab6cf4bb886 | 96fdabb978f934c9f0c0651a788df337c279c766 | refs/heads/master | 2020-06-18T06:56:16.454832 | 2019-08-02T03:32:41 | 2019-08-02T03:32:41 | 196,204,682 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # Dynamic Arguments
# *args
#
# def add(*x):
# # print(x)
# count = 0
# for i in range(len(x)):
# count += x[i]
# print(count)
#
# add(2,3)
# add(5,6,4,5,7)
# add(6,8,4,6,8,5,3,4)
def emp(id,name,dept,*prev_companies):
print("Id : {}".format(id))
print("Name : {}".format... | [
"noreply@github.com"
] | ravi4all.noreply@github.com |
01fe71eb0c342ad9a654c175ad7183bc172c44b9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_chaffed.py | 023ae4834f2ed545e45d69e9332e996a8d082369 | [
"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 | 220 | py |
#calss header
class _CHAFFED():
def __init__(self,):
self.name = "CHAFFED"
self.definitions = chaff
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['chaff']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
406c0c8ee5e7a172acd3d928cd797638fab404b6 | 19a32440205b2caeec67c73c10d917b5fb30a86a | /test/test_job_policies.py | 4bd65d17afa1acdbccd2243f0198fda376f32f9f | [
"Apache-2.0",
"MIT"
] | permissive | marrotte/isilon_sdk_python | 480e84312f5924a506aeb09c9c7cae79a2b9b7f4 | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | refs/heads/master | 2020-03-23T07:31:40.376316 | 2016-06-07T23:44:31 | 2016-06-07T23:44:31 | 141,277,076 | 1 | 0 | MIT | 2018-07-17T11:02:08 | 2018-07-17T11:02:08 | null | UTF-8 | Python | false | false | 1,223 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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 l... | [
"Alex.Pecoraro@isilon.com"
] | Alex.Pecoraro@isilon.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.