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
2407745c75d7ca85e8683e02f858075f868b447a
9b639327ffb1ee18e88904bc2e158d55205acc0b
/plot_multifreq_lic.py
cc2727d74c10908c58cfef293ca806223c30a714
[]
no_license
guanyilun/gc_plots
6aebfef07013a2d7feb3975a7b76cf3dfc5fbd22
f4c1c68a3364fe77f949c6121c38448374314c9e
refs/heads/master
2023-06-25T06:04:17.530867
2021-07-19T21:55:17
2021-07-19T21:55:17
339,585,457
0
0
null
null
null
null
UTF-8
Python
false
false
2,746
py
"""This script produces LIC plot based on multifrequency temperature plot """ import argparse, os, os.path as op import numpy as np import matplotlib.pyplot as plt from pixell import enmap, enplot, utils as u from matplotlib import colors from common import * import lib import plotstyle # parser defined in common p...
6a61f6445c74967d9422d6b4739e394a79e11568
6eae4a2f7326238820bca29f9a2d99fb054f91e4
/src/blog/settings.py
5348a0f815fe878e1bf8eb108d2fa5a1e15a2eb0
[ "MIT" ]
permissive
jach58/api-blog
88e69f80378be4ecfc110aa54363556eb3053c78
5e668289856669537f2d6dc7236ec4f1e566e765
refs/heads/master
2021-04-03T09:47:39.386947
2018-03-11T04:58:56
2018-03-11T04:58:56
124,724,713
0
0
null
null
null
null
UTF-8
Python
false
false
4,473
py
""" Django settings for blog project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os # Buil...
a219c8262e721f6e24772106f5656aa8aa9d534b
8c46e86716715197038e7976c3adc80bc4141bb0
/main/admin.py
f6ac995ba0e40da6bd34b832941f0087cc01e3b9
[ "MIT" ]
permissive
alan-turing-institute/autistica-filemanagement-demo
080495b3bfd147c9b0afae8b858d08e335c9f4c2
a1c84233131f6b1f09ad60b24edd97ae06cf8d4d
refs/heads/master
2022-12-10T14:23:10.544180
2019-09-23T12:49:35
2019-09-23T12:49:35
196,981,366
0
1
MIT
2022-04-22T21:56:36
2019-07-15T10:58:05
Python
UTF-8
Python
false
false
113
py
from django.contrib import admin from main.models import PublicExperience admin.site.register(PublicExperience)
3d83d809827e773663de094cbba319678dc088f5
a7db09b7681e8050e832da8198afde3cbff6da0e
/smap/tests.py
df277b08384afdcc2ed27fbb2b29a2d07740b53e
[ "MIT" ]
permissive
HakoCra/smap
0146b0b2da7c9d06423d3d49dec22b4b4138576f
88a6265cbb4777e6d1a032c4c792187debcaf41f
refs/heads/master
2021-01-11T22:03:07.376411
2017-08-29T16:48:43
2017-08-29T16:48:43
78,906,682
0
1
null
2017-02-19T04:56:08
2017-01-14T02:54:02
Python
UTF-8
Python
false
false
12,317
py
import json from django.test import TestCase, Client from django.core.urlresolvers import reverse from .models import Tag, Sumari class Test(TestCase): def create_data(self, data): for sumari in data: message = sumari["message"] name = sumari["name"] lat = sumari["lat...
83d484a3603a50c3b2228f355c9e23b816b93b7e
66f62ac192d82e4bd538879b205a5ddf4e005895
/relative_transformer/src/modules/ops.py
f289b67d247429a263cd3aa5a50946c6de0c05fe
[]
no_license
zqp111/NewMB-813
a66772811321fd34329416abb2c058d85901f915
b71cf3f22257b2c8059e3042a53876b5da7aed01
refs/heads/main
2023-03-17T18:50:10.487157
2021-03-01T12:28:06
2021-03-01T12:28:06
343,410,746
1
0
null
2021-03-01T12:35:41
2021-03-01T12:35:41
null
UTF-8
Python
false
false
21,028
py
# Copyright (c) Microsoft, Inc. 2020 # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # # Author: [email protected] # Date: 01/15/2020 # import math from packaging import version import torch from .jit_tracing import traceable # from config...
7aef8b494a915a43e4a8e942382d1bf445e7d293
4fa3cbe2fd0331c8b4e441ff7fca3cbf178f146e
/lectures/code/string_format.py
ff6b7d053dbd2b6110be39d21ffd24194203a4df
[ "MIT" ]
permissive
naskoch/python_course
ee909243b5be730694b0f8a1a9f9e8722235e625
84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3
refs/heads/master
2020-04-03T09:52:45.858591
2016-09-26T16:44:20
2016-09-26T16:44:20
69,268,231
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
fl = 0.23 wo = 'Hello' inte = 12 print "s: {} \t f: {:0.1f} \n i: {}".format(wo, fl, inte) # s: Hello f: 0.2 # i: 12
7d3b0358b02431cb03dbd79b5b445f66d3ffe27c
8e6e70f3c6e5aed96960a6de8983e72eafae1862
/wheelcms_valve/tests/conftest.py
5591a16354335efcbb43f8c77d1a730b58f56e24
[]
no_license
wheelcms/wheelcms_valve
c7988c2fe89f85e978272ed319e7057553dd24e9
8ea19cb8eb0081857b120c0f9bf55c128ee5d471
refs/heads/master
2021-01-19T08:01:43.063297
2015-04-04T18:28:20
2015-04-04T18:28:20
9,416,780
1
0
null
null
null
null
UTF-8
Python
false
false
139
py
from twotest.fixtures import client, django_client from wheelcms_axle.tests.fixtures import root, localtyperegistry, localtemplateregistry
04ffa2e8f7455958544e91ecde11a70434d25d2a
e67bd40ae85e09f832773b825bed6c43a6ba1f54
/pp_oscdriver.py
e21ffc62e00d94178eb3e07cedba1609ffe7df65
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-mit-taylor-variant" ]
permissive
KenT2/pipresents-beep
e00a516041edce05c09893c859096faeded29e90
0b1c008097bc1679966ba5fbf8f2ed150bb21fd3
refs/heads/master
2023-08-05T03:23:26.881544
2023-07-28T15:47:54
2023-07-28T15:47:54
140,758,841
56
18
NOASSERTION
2021-04-27T08:13:27
2018-07-12T19:57:02
Python
UTF-8
Python
false
false
18,392
py
""" added source name to loopback and info request Heavily modified from the examples here, with thanks: receiving OSC with pyOSC https://trac.v2.nl/wiki/pyOSC example by www.ixi-audio.net based on pyOSC documentation this is a very basic example, for detailed info on pyOSC functionality check the OSC.py file or ru...
7a1a17f7d564853eb7d0e2b10e90489f14279b8a
0c4b33d04cf7fb73b3752b03af89eeaf76b8a0d2
/第14章-网络编程/1.py
699170cf14d9fa720ccd1731412ecb2f52e1ece3
[]
no_license
kingflyfly/python_study
3b3ab427d23174b61b8f14c223059cfa9f303219
8a63a7c11b408bbc11a2b636517beaa424b37725
refs/heads/master
2020-06-11T01:39:52.655730
2020-03-24T16:09:39
2020-03-24T16:09:39
193,817,757
0
0
null
null
null
null
UTF-8
Python
false
false
144
py
a,b = {"yanzhe1":"yanzhe","shanshan":"shanshan1"}.items() print(type(a)) if a == "yanzhe1": print("ok") else:print("fial") print(a) print(b)
ecb1c8c9b5ecc3253e822b5e31639049244ed39d
0ad7476f82d662249d13527219c45916cc6fb063
/bayesian_AB/client_server_practice/server_starter.py
3687225b896a5015fb7e697403d26b5ee12a7524
[]
no_license
duilee/ab_testing
87d40edb0836cd78bf0e75f41947510c3f598316
d4bb900da4cf84cd28e5fcb8d37a2b6481eb94d8
refs/heads/master
2023-07-19T04:46:32.052780
2023-07-06T11:30:12
2023-07-06T11:30:12
331,349,413
0
0
null
null
null
null
UTF-8
Python
false
false
1,830
py
# From the course: Bayesin Machine Learning in Python: A/B Testing # https://deeplearningcourses.com/c/bayesian-machine-learning-in-python-ab-testing # https://www.udemy.com/bayesian-machine-learning-in-python-ab-testing from __future__ import print_function, division from builtins import range # Note: you may need to ...
ea3803063ed3dd780f0c88023d17df56d5909cf1
56be7f6b6a1243c532af9ea98310ccea165a1e66
/day27/s21crm - 2 - 部门列表/s21crm/urls.py
c0b31e33ed739fdfa064389c6eec0fd0b734ef8e
[]
no_license
214031230/Python21
55b0405ec4ad186b052cde7ebfb3f4bb636a3f30
d7fc68d3d23345df5bfb09d4a84686c8b49a5ad7
refs/heads/master
2021-05-26T06:00:53.393577
2019-01-09T02:29:04
2019-01-09T02:29:04
127,778,172
0
0
null
null
null
null
UTF-8
Python
false
false
924
py
"""s21crm URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
ef9d0219b3defe3ab0832191018e283c65de037e
c8baca8894b080e612ba2babf766698c737faef2
/config.py
54a15867adb3fa3cd41fadc5a6754fcb3d333e0c
[]
no_license
xiaobin1234/AutoTPshop
8796a690c4d1f3ada3ca23fba65ad3995e54ad6a
70b2caaa49b3ad4725df2295b75bbc846d67e64d
refs/heads/master
2021-02-18T01:45:24.479029
2020-03-05T12:17:16
2020-03-05T12:17:16
245,145,850
0
0
null
null
null
null
UTF-8
Python
false
false
66
py
import os BASE_DIR = os.path.dirname(os.path.abspath(__file__))
83bd32474d5fdd7943df61a2f550898f0e745c32
5b9035dbfe0750e9933728f9631ad7a183dd3429
/17/00/weakref.ref.callback.py
1e2d84ae969b05e9575767bcd18a17d0192a8745
[ "CC0-1.0" ]
permissive
pylangstudy/201709
271efbd4f337d912d0ca958a621eb2a040091528
53d868786d7327a83bfa7f4149549c6f9855a6c6
refs/heads/master
2021-01-21T12:16:21.950493
2017-09-30T00:02:34
2017-09-30T00:02:34
102,058,300
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
import weakref class ExpensiveObject(object): def __del__(self): print('Deleting ... %s' % self) def callback(reference): print('callback(', reference, ')') obj = ExpensiveObject() r = weakref.ref(obj, callback) print('obj:', obj) # <__main__.ExpensiveObject object at 0xb710adac> print('ref:', r) # <weakref ...
447309d3a7c5cd11e434e9eebbca587f1745d7b5
04f5b7913f5802813ed5b9b894d9723a96893d29
/xonsh2/prompt/__init__.py
a6524670600a5456eef8be8b014b0213eefb254b
[ "BSD-2-Clause" ]
permissive
anki-code/xonsh2
b0e52f01119622b383b37a27658c3615507ef6e7
bd96fcdce9319ab6b90c7d9ac47d2249b61144d0
refs/heads/master
2023-01-04T09:19:43.857637
2020-11-01T17:10:44
2020-11-01T17:10:44
309,102,477
3
0
null
null
null
null
UTF-8
Python
false
false
857
py
# amalgamate exclude import os as _os if _os.getenv("XONSH_DEBUG", ""): pass else: import sys as _sys try: from xonsh2.prompt import __amalgam__ cwd = __amalgam__ _sys.modules["xonsh2.prompt.cwd"] = __amalgam__ env = __amalgam__ _sys.modules["xonsh2.prompt.env"] = ...
[ "a" ]
a
938319c0ec9bf23932b135e6b736177504f56448
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/LearningToSeeInTheDark/src/unet_parts.py
98222051e28a37247b798b96c9df9180649f7d6c
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
3,576
py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
4d5abe700c5d48838af29b5be52a1e7aa59eee03
ba5c4c07d11e6f529ba7184ef3fe1ab0d61a19e6
/examples/btn_start.py
6b1c2aec64fb2f2ea08c9cf654e1fd702b12c056
[]
no_license
slightlynybbled/tkmats
920033adef46f41b67e99f3e7ba1b13a1c7ff4c5
73e03e519287b09436f547a532fbd33c1ce05cca
refs/heads/master
2020-04-30T17:58:19.036996
2020-02-19T03:44:33
2020-02-19T03:44:33
176,996,416
2
0
null
null
null
null
UTF-8
Python
false
false
2,287
py
import logging from random import random, choice from time import sleep import tkinter as tk from mats import Test from mats import TestSequence from tkmats import TkMatsFrame # The CommunicationTest class shows the minimum test structure that might # be reasonably be implemented. Only the `execute()` method is imp...
ab061fb9bc9e9a17133655c37bf8f7f9b529bc18
076dd40fcb9283a8e3d66dd3fa3745826b887378
/kashgari/embeddings/__init__.py
066291c4f5f8347689c72990be315e70c02a4db2
[ "MIT" ]
permissive
gongqingyi-github/Kashgari
54bb53bb618b9791433a61a7fd5e73f4951873f1
efc9510ed53f5bb78183e66d96d57a55cc290a91
refs/heads/master
2020-04-18T16:51:22.609685
2019-01-26T02:26:54
2019-01-26T02:26:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
# encoding: utf-8 """ @author: BrikerMan @contact: [email protected] @blog: https://eliyar.biz @version: 1.0 @license: Apache Licence @file: __init__.py.py @time: 2019-01-19 09:57 """ from .embeddings import BERTEmbedding from .embeddings import BaseEmbedding from .embeddings import CustomEmbedding from .embeddings...
98b29e78f354f896f27d9785a107e5bae46cb53a
8f70ad12af7eba07efa52eb29b8f99ed3900dbb9
/AGTGA data/AGTGA/posifon/posifon 2/TestSuite/TestSuite/TestCase01.py
038064c093137ade8a3097f9ca295bbb0ed13f50
[]
no_license
Georgesarkis/AGTGARowData
768952dc03dc342bcbe0902bf2fb1720853d0e14
e1faa7dc820b051a73b0844eac545e597a97da16
refs/heads/master
2022-10-01T17:06:04.758751
2020-06-05T07:25:41
2020-06-05T07:25:41
267,772,437
0
1
null
null
null
null
UTF-8
Python
false
false
1,717
py
import time from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from TestSuite.TestSuiteHelper import ElementFinder port = 'http://localhost:4723/wd/hub' driver = webdriver.Remote(command_executor=port, desired_capabilities={'automationName' : 'UiAutomator2','deviceName':...
d7a1221002f13976a612e4408bfb46073ae336ea
6f170878756cc2ee76ae70ab220201aa5c742f34
/tf_api/core/box_predictor.py
af0bf1ff054a19b03e0bdf918ec3d44e512dd8b5
[ "CC-BY-4.0" ]
permissive
abhineet123/animal_detection
293e4491d574e88aab73a2bd7bea0a05db7f3662
be0dd60d2b56b267f329b7be71d7f037499f98bc
refs/heads/master
2023-07-22T18:13:00.506591
2021-10-28T01:04:35
2021-10-28T01:04:35
217,391,182
31
8
null
2023-05-22T22:26:54
2019-10-24T20:37:32
Python
UTF-8
Python
false
false
25,358
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2b7e4631b4f29246d007524d058aaac3d67a8629
4c91879e3bb3ef24cd4d1d2c79eedecc7030c2e8
/python/191_number_of_1_bits.py
131d0670c4972e14a4560d586b35fe92f7a62424
[ "MIT" ]
permissive
PepSalehi/leetcode-soln
a47d827c2973ad06d22d0b8b83f2fadfb5b283d1
cbf2db0d81d5ef98f48c8d1df486559f89142bfd
refs/heads/master
2020-09-15T14:14:11.422791
2018-04-19T15:27:38
2018-04-19T15:27:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
""" Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit integer ’11' has binary representation 00000000000000000000000000001011, so the function should return 3. Credits: Special thanks to @ts for adding this problem...
4b25a66c3105bc9c257188f19dd63ec0e14d457a
af7050b659e48a979809a705066baf7cd1a84255
/350_intersection-of-two-arrays-ii.py
72c4b527f143261a9739c1272e905024c6f6b4b7
[]
no_license
zyk930/leetcode
b9547cbbeaf0202c2bb3e1a22d30f1ecddd4244e
27c9da844550080c41fae60906274347f9e62919
refs/heads/master
2020-04-10T15:13:45.886717
2019-06-04T01:37:10
2019-06-04T01:37:10
161,101,906
0
0
null
null
null
null
UTF-8
Python
false
false
1,302
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/12/21 10:10 # @Author : zyk ''' 给定两个数组,编写一个函数来计算它们的交集。 示例 1: 输入: nums1 = [1,2,2,1], nums2 = [2,2] 输出: [2,2] 示例 2: 输入: nums1 = [4,9,5], nums2 = [9,4,9,8,4] 输出: [4,9] 说明: 输出结果中每个元素出现的次数,应与元素在两个数组中出现的次数一致。 我们可以不考虑输出结果的顺序。 进阶: 如果给定的数组已经排好序呢?你将如何优化你的算法? ...
0c8c29ae00b620614383c24a6b9db48d3c488117
27a8692c6bed25bd92868a519d95e9570ea204cd
/bot/handlers/stickers/remove.py
d477b5721bf292f79c74e4fc29fa806ac467e504
[ "MIT" ]
permissive
metti61680/sticker-thief
f3d7fc49a3337eaead84d4d682fac98cd367fc5a
3006b8367f8e09aab1e60428338021b95e5d0b13
refs/heads/master
2020-12-14T02:23:41.684888
2019-12-04T11:27:28
2019-12-04T11:27:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,203
py
import logging # noinspection PyPackageRequirements from telegram.ext import ( CommandHandler, MessageHandler, ConversationHandler, CallbackContext, Filters ) # noinspection PyPackageRequirements from telegram import ChatAction, Update from bot import stickersbot from bot.strings import Strings fr...
672321ebf82e31c14af3274cd5b61a7650715780
baf3736092f9aecf79fc717b6d5efc19c5ac3ba9
/ArticleSpider_splash/pipelines.py
74a77623ba5d113d94d8f288a8a4a0d1124ad2ac
[]
no_license
tang1323/ArticleSpider_splash
6215224cd5c36a243b950590faf7da2671c4014a
992e50f93ba705ffbf3d8282f0c47cd3c9f638f2
refs/heads/master
2023-04-08T13:07:26.526856
2021-04-15T01:55:13
2021-04-15T01:55:13
358,095,518
1
0
null
null
null
null
UTF-8
Python
false
false
7,016
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import codecs # 可以避免编码的繁锁的工作 import json from scrapy.pipelines.images import ImagesPipeline from scrapy.exporters import Jso...
d0db4dd53fc928a47070993d812e526112a25bb3
4a0f8c5c0e8324fa614da776f2a704b5c369ccbb
/Contact_maps/dealFile.py
5816c559c07cbd917443fb8e7f1b4a6c81f4de53
[]
no_license
magic2du/contact_matrix
9f8ae868d71e7e5c8088bf22a9407ea3eb073be6
957e2ead76fabc0299e36c1435162edd574f4fd5
refs/heads/master
2021-01-18T21:15:07.341341
2015-09-16T02:14:53
2015-09-16T02:14:53
24,237,641
0
0
null
2015-09-10T19:58:24
2014-09-19T16:48:37
null
UTF-8
Python
false
false
2,197
py
import os def readListFile(filename):#read file:filename lines into list data_file = open(filename) data = [] for line in data_file.readlines(): line = line.strip() #print line data.append(line) data_file.close() print "number of lines in %s:" %filename +str(len(data)) return data def readGrepFile(filenam...
9be4c0cfe1528de5ee29c120480cb7e74ee1c110
b3ad6d480873ac91fc284efc6341568649898684
/cohort/week6/cs1.py
b50661dfbe30716c9a6b8392c7f7626cd65dd870
[ "MIT" ]
permissive
jamestiotio/DW2020
e88af5f84f477e911b8414c02893da039fff9cf0
1639ccbcf77b64719bdc29bf2a373d19296fbd75
refs/heads/master
2022-10-30T12:48:39.147705
2022-08-14T12:16:35
2022-08-14T12:16:35
269,898,881
0
1
MIT
2021-11-04T16:30:20
2020-06-06T07:03:23
Jupyter Notebook
UTF-8
Python
false
false
142
py
def reverse(string): new_string = "" for char in range(1, len(string) + 1): new_string += string[-char] return new_string
975de9975a9a39cbe4c0d7727322685bc5762de1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03645/s702030481.py
0676433bb304179255b0f58e28e7315e9f4ba85a
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
from sys import stdin def input(): return stdin.readline().strip() n, m = map(int, input().split()) edge = [[] for _ in range(n)] for _ in range(m): i, j = map(int, input().split()) i -= 1 j -= 1 edge[i].append(j) edge[j].append(i) for i in edge[0]: if n - 1 in edge[i]: print('POSS...
a89f7551c6e7110c925d5c588dffb97eee504470
c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce
/flask/flaskenv/Lib/site-packages/tensorflow/_api/v1/strings/__init__.py
ce1ec660353ce6c9b3396ee91e02d9336d97ded8
[]
no_license
AhsonAslam/webapi
54cf7466aac4685da1105f9fb84c686e38f92121
1b2bfa4614e7afdc57c9210b0674506ea70b20b5
refs/heads/master
2020-07-27T06:05:36.057953
2019-09-17T06:35:33
2019-09-17T06:35:33
208,895,450
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:99d3d433550637101bcb96e96fa3ad768bd4fcf5d594eb911c360868a4a5bf1f size 2083
[ "github@cuba12345" ]
github@cuba12345
c2e523ab1ff7e56a1209026225b6a1f5d1049f9a
d62863d049c0206bfa744ca4c9e886030bfce1ab
/apps/sw_shop/sw_order/filters.py
8fbf2cab68517611516c4be1eb8e79e99f52ae1a
[]
no_license
jurgeon018/box
51738b99e640202936ed72357d3c67d2517e589b
50b84a0afa73fab85a00eef54194f3c126d15397
refs/heads/master
2021-07-17T13:37:08.665292
2020-10-15T09:50:33
2020-10-15T09:50:33
232,013,297
0
1
null
2020-03-27T02:16:44
2020-01-06T03:01:34
Python
UTF-8
Python
false
false
142
py
from admin_auto_filters.filters import AutocompleteSelect class TagsFilter(AutocompleteSelect): title = 'тег' field_name = 'tags'
d1548533bbd4772134b1eb35f4625917f8311929
4c2c1775b6b319ae07155f46e70a6726ab0980c2
/algo/algo_code/personal/cvr_space/model_train_exp/script/model_predict.py
d83956c20f098ea44510c425f8fc4512584682ff
[]
no_license
kiminh/util
8e4b204849a57941120e37c9330772f03c8892d0
763a71031d9c0ef207b87dc03ebc55208a2dd5ad
refs/heads/master
2022-06-09T06:09:13.221754
2020-04-27T04:23:00
2020-04-27T04:23:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
import sys import math model_dict = {} for raw in open(sys.argv[1]): felds = raw.strip("\n\r").split(" ") if len(felds) < 2: continue model_dict[felds[0]] = float(felds[1]) for raw in open(sys.argv[2]): s = 0 for sp in raw.strip().split()[1:]: w = model_dict.get(sp, 0) s +...
6d72c628644e2d398d8db125a9bc5a7d8ef0a069
79baf4404e51bdc0f33038b3b16bea86ff09e82f
/azext_iot/sdk/deviceupdate/controlplane/operations/__init__.py
fcfbd4b1f52e9fbba906f0b37ee993a23e66a0b3
[ "MIT" ]
permissive
Azure/azure-iot-cli-extension
80b6cb29e907f7512c7361a85d6bfdea5ae2dd9e
bdbe65c3874ff632c2eba25c762e9ea8e9175b5f
refs/heads/dev
2023-09-04T10:57:16.118442
2023-08-28T17:12:05
2023-08-28T17:12:05
103,456,760
95
80
NOASSERTION
2023-09-13T00:02:54
2017-09-13T22:04:36
Python
UTF-8
Python
false
false
1,443
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
3d556d8e0c6be1368b829f2f9e0d84e4eea75160
db12b990924703cd74748d8585cd9c11fafa6746
/h2o-py/h2o/schemas/metadata.py
9582a1aaee3cc62f7c74ffa2f0fa2e14384a9fc0
[ "Apache-2.0" ]
permissive
h2oai/h2o-3
919019a8f297eec676011a9cfd2cc2d97891ce14
d817ab90c8c47f6787604a0b9639b66234158228
refs/heads/master
2023-08-17T18:50:17.732191
2023-08-17T16:44:42
2023-08-17T16:44:42
17,371,412
6,872
2,345
Apache-2.0
2023-09-14T18:05:40
2014-03-03T16:08:07
Jupyter Notebook
UTF-8
Python
false
false
2,142
py
# -*- encoding: utf-8 -*- # # Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details) # # noinspection PyUnresolvedReferences from h2o.utils.compatibility import * # NOQA class H2OMetadataV3(object): @classmethod def make(cls, json_kv_pairs): return cls(json_kv_pairs) def _...
734bf8211cf76d87497a9023f0a6036d2c89b55b
6a33cb94d4af1d8a7329ddc6c9d42f870c35bb2f
/python/euler88.py
438947a9585065bb73e52c6e4fe46d5db173dc3c
[]
no_license
vochong/project-euler
836321cc8e7d2e7cdf22b3b136d44dcba74a8701
6a0c7103861ff825bf84800b6e2e62819a41e36d
refs/heads/master
2020-04-29T10:41:48.487159
2018-09-19T00:13:34
2018-09-19T00:13:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
def prodsum(prod, sm, facs, curfac, mins): k = prod - sm + facs if k < 12000: mins[k] = min(mins[k], prod) for fac in range(curfac, 24000/prod): prodsum(prod*fac, sm+fac, facs+1, fac, mins) def euler88(): mins = [24000]*12000 prodsum(1, 1, 1, 2, mins) return su...
0de714e49f871d8ef0eaad488040bcbabbacca73
f3cdb2bae2ca6cbd045941ae0c2f4052e52de622
/p2p/dataset.py
04e28cc0ef5d167401736ee3081182e3dbb724bd
[ "Apache-2.0" ]
permissive
IQTLabs/3-D_DataAugmentation
bab6aead07235cccb2056b0ce25179e5bb871a82
3eb7fe156906df46151de5c4472274a1ccdcfbed
refs/heads/master
2023-01-21T15:57:39.173956
2020-12-03T20:23:18
2020-12-03T20:23:18
298,663,332
0
0
Apache-2.0
2023-01-23T13:56:28
2020-09-25T19:32:59
Jupyter Notebook
UTF-8
Python
false
false
2,028
py
import numpy as np from PIL import Image from torch.utils.data import Dataset from torchvision import transforms __all__ = ['P2PDataset'] class P2PDataset(Dataset): """ Pose to Pose dataset definition loads two frame/pose pairs """ def __init__(self, df=None, transform=None, data_path=''): ""...
c2615df1c73b8edf1406f870f6e2f819b8bd4f9f
25d4c31d5ebe470118b14beb84f3cd1e53d99c15
/01_Tutorials/Udemy Kurs Ehical Hacking/06_Praxisprojekt_Firefox_Daten_auslesen/48_Profilordner_Firefox_Alle_OS_Call_function.py
a59ecffd3590e860a7e464367aafb21873f9b8a1
[]
no_license
daltdoerfer/Python_Templates-1
ea4b59489feb7b7617e81b7c94d4375dbf25def3
c2471cebeaf20bbfdfd3fd263d458e5a67ad8d1e
refs/heads/master
2023-05-10T15:07:10.109280
2021-06-08T06:45:53
2021-06-08T06:45:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
846
py
# Doku places.sqlite https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Database # z.B: Bookmarks in moz_boookmarks import os import sqlite3 # Datenbankspaket zum auslesen der Datenbank import pandas as pd from get_firefox_path import get_firefox_path # Alternativ: import get_firefox_path as gfp # -> Hier nüs...
bd5e4997bb0c3e02480b1d1c0c9fa0581edf3442
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/davison.py
c3e85a811b86444a5ada880723d58cfd45457d4f
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
238
py
ii = [('WilbRLW4.py', 1), ('PettTHE.py', 3), ('ChalTPW2.py', 1), ('GellWPT.py', 2), ('ClarGE2.py', 2), ('GellWPT2.py', 1), ('FitzRNS4.py', 1), ('RoscTTI.py', 1), ('JacoWHI2.py', 2), ('JacoWHI.py', 1), ('ClarGE3.py', 1), ('RogeSIP.py', 2)]
4e10eac91084153cc536425f96e080401d2b33d9
6679fd1102802bf190294ef43c434b6047840dc2
/openconfig_bindings/bgp/neighbors/neighbor/graceful_restart/config/__init__.py
9dc0f15194dac761e4f0d1481680c9a59d024546
[]
no_license
robshakir/pyangbind-openconfig-napalm
d49a26fc7e38bbdb0419c7ad1fbc590b8e4b633e
907979dc14f1578f4bbfb1c1fb80a2facf03773c
refs/heads/master
2023-06-13T17:17:27.612248
2016-05-10T16:46:58
2016-05-10T16:46:58
58,091,515
5
0
null
null
null
null
UTF-8
Python
false
false
14,255
py
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
4f442defc3e20cd08d0d0bd1c7cfecc372987eaf
f52997ac7e1b41f34018c3a0028ced8638072b2b
/src/feedback/migrations/0002_migrate_search_feedback.py
99e69225ca6320d0a38a794a12ad8bb49a371897
[ "MIT" ]
permissive
uktrade/digital-workspace-v2
49fae1fca819b625c6f6949fb5ce51b89fbcab96
7e328d0d55c9aa73be61f476823a743d96e792d0
refs/heads/main
2023-09-03T12:03:47.016608
2023-09-01T12:07:55
2023-09-01T12:07:55
232,302,840
6
0
MIT
2023-09-13T15:50:24
2020-01-07T10:41:18
Python
UTF-8
Python
false
false
999
py
# Generated by Django 4.1.10 on 2023-08-08 14:35 from django.db import migrations def migrate_search_feedback(apps, schema_editor): Feedback = apps.get_model("django_feedback_govuk", "Feedback") SearchFeedbackV1 = apps.get_model("feedback", "SearchFeedbackV1") for feedback in Feedback.objects.all(): ...
965bc7e325875ed234ebf3d269bc9a012f110885
c987e888b0ccd9051e26335b3641cbd80aa14e2a
/tests/circular/template/test_context.py
5db0e9c17d97674ab5b8c8d6f013bfc57113b782
[ "MIT" ]
permissive
jonathanverner/circular
fa47eef5f2914da8540d0c0c50f3fe5d2d87d598
e29bb9cc846566943febd8ba85104d796943819c
refs/heads/master
2020-12-04T11:49:48.587539
2017-08-17T11:12:58
2017-08-17T11:12:58
66,577,154
7
2
null
null
null
null
UTF-8
Python
false
false
882
py
import asyncio import pytest from src.circular.template.context import Context def test_extension(): base = Context() base.a = 10 base.c = 30 child = Context(base=base) # Child should have access to parent assert child.a == 10 # The _get method should work for accessing parent asse...
d9a7f7e7bc166bb6f1556dbcbf9c4e875c736b66
e4dd3e5d76073b2ba2c8a06a713582a7b8fd6983
/eveauth/models/role.py
2bf7e073cbbce0bddcd8bc43d7af18ff587e8483
[]
no_license
extraquoo/avrse-auth
792f1f217c682dfdace1467d81f2225976078750
5c94ac5e61954e37cc52dda0e884977b01eeff2a
refs/heads/master
2020-05-20T00:24:58.466016
2018-10-17T22:40:53
2018-10-17T22:40:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
313
py
from django.db import models from .character import Character class Role(models.Model): character = models.ForeignKey(Character, related_name="roles") name = models.CharField(max_length=128, db_index=True) def __str__(self): return "%s on %s" % (self.name, self.character.name)
7a5f2c55c36a06658250b34cb109fbd1e78770d3
46279163a543cd8820bdc38133404d79e787c5d2
/caffe2/python/operator_test/instance_norm_test.py
fb4f3c935ba8e1014e403825550754eddd382d98
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
erwincoumans/pytorch
31738b65e7b998bfdc28d0e8afa7dadeeda81a08
ae9f39eb580c4d92157236d64548b055f71cf14b
refs/heads/master
2023-01-23T10:27:33.628897
2020-12-06T01:22:00
2020-12-06T01:23:40
318,930,000
5
1
NOASSERTION
2020-12-06T01:58:57
2020-12-06T01:58:56
null
UTF-8
Python
false
false
9,926
py
import numpy as np from hypothesis import given, assume, settings import hypothesis.strategies as st from caffe2.python import core, model_helper, brew, utils import caffe2.python.hypothesis_test_util as hu import caffe2.python.serialized_test.serialized_test_util as serial import unittest import os class TestI...
bdc3df8f4e675387177e4c1e95dbfe2ce8ad0c84
a46b064486b703b5424a5e59fb6d567a0c08d480
/scripts/pushmsg
fed86e723478dbd82c088dc2756750e5c891a332
[ "MIT" ]
permissive
nick-youngblut/pushmsg
1dd3ca23dbfa8277f92b7261c5eabeb6ea5bd3c6
389cd22476077198593bd4b4af3900fd1644da65
refs/heads/master
2022-07-23T14:52:46.886835
2020-05-23T19:21:22
2020-05-23T19:21:22
71,820,460
3
1
null
null
null
null
UTF-8
Python
false
false
530
#!/usr/bin/env python import sys import argparse import pushmsg parser = argparse.ArgumentParser( description='Send messages with Pushbullet', epilog='For all options, see the line magic help' ) parser.add_argument('msg', help='Message to send via Pushbullet') parser.add_argument('--version', action='version'...
64811b756a4e41173c5e5898912f0448a3f966dc
1a3e6ff7b86fa34e4ef88f3e0fe7e1472f7f6821
/vortex-methods/vel_integration.py
7700104a2b37c85b4b1ae011fe0449ca7db1b4e2
[]
no_license
rbonvall/tesis
0c901746c1b93aa300c928104455e23ef93bcf87
a93a07965387fc5a944a39eb734cfc34d0c09404
refs/heads/master
2020-05-30T22:09:38.621467
2011-07-04T14:47:33
2011-07-04T14:47:33
213,789
3
0
null
null
null
null
UTF-8
Python
false
false
912
py
#!/usr/bin/env python from numpy import zeros_like import functools import vm def euler(x, y, circ, dt, squared_blob_size): u, v = vm.eval_velocity(x, y, circ=circ, squared_blob_size=squared_blob_size) return u, v def runge_kutta(x, y, circ, dt, squared_blob_size): u, v = ze...
821fd4f3941c3016fc767da9f978015d7ee9d854
416e303e3c64fbc3571f204c3b3b281b4ce642be
/examples/1.3/special_batch_compo/list_dataset.py
4d37a894ac6da61939269cd7c3d88ef00cef73b7
[ "Apache-2.0" ]
permissive
fastestimator-util/fastestimator-misc
6cba0f25ee5e9ace30bef392adc8081777db510f
c46e901d84745f35b7b49bdbb7b7121d39759b3f
refs/heads/master
2023-08-09T13:58:27.846807
2023-07-27T01:27:32
2023-07-27T01:27:32
208,510,459
8
9
Apache-2.0
2023-07-27T01:27:41
2019-09-14T22:14:56
Python
UTF-8
Python
false
false
1,455
py
import pdb from os import pipe from torch.utils.data import Dataset import fastestimator as fe from fastestimator.architecture.tensorflow import LeNet from fastestimator.dataset import BatchDataset from fastestimator.dataset.data import mnist from fastestimator.op.numpyop.univariate import ExpandDims, Minmax from fas...
698bdeeb48ab9e92ecab93669f2d8d302bc0673a
abd7504f6562babf79fb4e86af7529b2cb40fb54
/tests/pyre.pkg/descriptors/dataDescriptor_set.py
7d7a5fd65cabe1f2c11b54febcf9ac6f7623788f
[]
no_license
aivazis/p2
266c1728554b3f7a89e72f09ba2d9e5ff8d4447d
fd9a82d7dafa815dd68f679eb2b4b1a6287d02ea
refs/heads/main
2022-01-08T12:45:16.646028
2022-01-01T17:31:10
2022-01-01T17:31:10
225,452,981
2
0
null
null
null
null
UTF-8
Python
false
false
2,247
py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis <[email protected]> # (c) 1998-2022 all rights reserved def test(): """ Verify that the {__set__} method behaves as expected """ # get the descriptor class from p2.descriptors.DataDescriptor import DataDescriptor ...
57e3464578970c186bbf72034ecffedcb4f1e8e3
2b6ca87b32c18a1e48ffb64675abc97fda3bc6f6
/src/onecontainer_api/routers/ai.py
c017be766571aee37b503baa3b212c8fb8a5d995
[ "BSD-3-Clause" ]
permissive
gabrielbriones/oneContainer-API
7882b86ff1c0b4fb4461de09deb96633e7fbed51
ea81ed31b921711d38d352ee3a9e56bd4231bf43
refs/heads/main
2023-01-22T17:45:20.345662
2020-12-04T20:50:18
2020-12-04T20:50:18
318,630,019
0
0
null
2020-12-04T20:39:23
2020-12-04T20:39:23
null
UTF-8
Python
false
false
2,008
py
"""AI vertical entrypoint.""" from typing import List from fastapi import APIRouter, Depends, File, UploadFile import databases from onecontainer_api import models, schemas, errors from onecontainer_api.routers import services, drivers import re router = APIRouter() @router.get("/ai/{service_id}/usage", desc...
487a6cba227881b051690e18f580cda7c3918873
e77cbe31ed7eb052571a41cd7d68d110d3ca20ad
/procurement_request/wizard/procurement_request_wizard.py
b6a19b8f2dcd61f67039a71e4d929959d90cfdde
[]
no_license
lopin123/falinwa_branch
237fa59d934e0672d1c55b95e619a7f4c97eb3b4
051821ec3d2691338953a38a5aed64a60c35113e
refs/heads/master
2021-01-02T22:34:36.390758
2015-04-08T07:58:27
2015-04-08T07:58:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,316
py
# -*- coding: utf-8 -*- from openerp.osv import fields, orm from openerp.tools.translate import _ import openerp.addons.decimal_precision as dp from dateutil.relativedelta import relativedelta from datetime import date class procurement_request_wizard(orm.TransientModel): _name = "procurement.request.wizard" _...
6cf1014ce60dbc8ae7505b3d9a75e4852b1a3698
8f1c3c76bf8514818b733ba29fe575d8a5243add
/eduerp_attendance/models/__init__.py
e27612b75f471c9162dd01c4529d7609eddb4edc
[ "Apache-2.0" ]
permissive
westlyou/eduerp
27f1c7dcd0d2badf50cb6c69f5e761d7f0c6a898
968d79b5adc729bc81192604f1fc223517d38ccf
refs/heads/master
2021-06-04T05:11:13.858246
2016-09-12T07:21:17
2016-09-12T07:21:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
# -*- coding: utf-8 -*- ############################################################################### # ############################################################################### from . import attendance_line from . import attendance_register from . import attendance_sheet # vim:expandtab:smartindent:tabstop=...
9814950516db9ba9bb772ad323f3ccd46b929a7a
b72c37e3ccda507b231649cddd5c7845c6c34ba1
/PythonBasic/Day10/eval.py
7f3920d20dfe006d406b4920d5251b7016469ca2
[]
no_license
ljrdemail/AID1810
51c61c255b5c5efc1dc642b46691a614daedd85e
b417bd831bc1550ab953ce7ca23f54e34b8b2692
refs/heads/master
2020-04-24T09:45:14.781612
2019-02-21T11:26:49
2019-02-21T11:26:49
171,866,267
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
s = "1+2*3" print(eval(s)) x = 100 y = 200 v2 = eval("x+y") print(v2)
[ "root" ]
root
f9a52da70f400cadaddf780a7db144d291e1f193
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/iotcentral/_inputs.py
037588016bbe804fa5963d69b4ae4f963d2bd3ef
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,024
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
894b65e24be5bbe3bb8ae5de43cf5a4301381c52
7cc141beb2948f64e1b187862108b883f09bf71c
/NotasCorretagens/chromedriver.py
66a8495368cc630687cbb1b08c9fedc457e3a6c0
[ "MIT" ]
permissive
felipemaion/scraping_xpi
5829a83d67da398cccd4d91c096108fe6f3cf0a7
522a5955c05a7da1e70055f7668f0e5e3593cf72
refs/heads/master
2020-05-02T15:39:59.604808
2019-04-01T07:58:05
2019-04-01T07:58:05
178,048,850
6
1
null
null
null
null
UTF-8
Python
false
false
1,578
py
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait, Select from selenium.webdriver.support.expected_conditions import presence_of_element_located class Scraper: def __init__(self, *args...
e3a292441f1962e474bd358f71425ba3ac374a99
8f48d12b88048e424ebb0d72ca6dfab5cf12ae0f
/1500_1999/1910.py
05f3524ffd5384049fc271225340944a7db37961
[]
no_license
renjieliu/leetcode
e1caf13c18a8107ed9252588b339fb76bcb1b246
4668b64fcb9320b6c316d8608fc61911ce43b6c7
refs/heads/master
2023-03-18T18:16:06.187741
2023-03-14T20:31:59
2023-03-14T20:31:59
128,823,819
7
0
null
null
null
null
UTF-8
Python
false
false
467
py
class Solution: def removeOccurrences(self, s: str, part: str) -> str: output = "" for c in s: output += c while len(output) >= len(part) and output[-len(part):] == part: output = output[:-len(part)] return output # previous approach # class Solution:...
54902efb2e961b3c0e80bfdb0b26efaa72d60f79
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_313/ch54_2020_03_31_00_22_57_884915.py
d4a200b530199c65a717529b916d673f8331f920
[]
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
182
py
def calcula_fibonacci(n): fibonacci = [0]*100 fibonacci[1] = 1 fibonacci[0] = 1 n=2 while(n<100): fibonacci[n] = fibonacci[n-1]+fibonacci[n-2] n = n + 1
81f2858581aeddee8d0342e21d1ce3c9479530e8
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02262/s141204203.py
4d4e0e7ed1cedd407f0385ff3cc2d2558a5c8cde
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
cnt = 0 m = 0 g = [] def insertion_sort(a, n, g): # cnt+=1 のときにローカルスコープの外を見にいくようにするため global cnt for i in range(g, n): v = a[i] k = i - g while k >= 0 and a[k] > v: a[k+g] = a[k] k -= g cnt += 1 a[k+g] = v def shell_sort(a, n): global m, ...
537ea782435fb47f81c6431c0278bb50ccfe0c70
d8afb2e678d9da745a114e8feffee930218716b4
/backend/adv_test_3_23538/settings.py
ae68df3785b6f69fbc2d8f0ca426a63043c5a8f4
[]
no_license
crowdbotics-apps/adv-test-3-23538
fd03929a6a4d8e984c2daad895d0c20fd80b4df5
e2af927fa78de374384d9d6b59a74207f4209bba
refs/heads/master
2023-02-12T15:18:53.318287
2020-12-24T19:38:53
2020-12-24T19:38:53
324,224,353
0
0
null
null
null
null
UTF-8
Python
false
false
7,035
py
""" Django settings for adv_test_3_23538 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/ """ imp...
4016835924c889c2ef390dd8f82ba30088442636
0cd799684098c374ec6d0806410f2077814b2e9e
/advisor/migrations/0002_booking.py
7e9a8232b8d404a10fdf566e1ecff43de219c083
[ "MIT" ]
permissive
diyajaiswal11/User_Advisor
bc2e6828f899e08dcf3a1ef0fbe041a8013c43b4
332001e874add115b19cccd2fb0b6622321f32c2
refs/heads/main
2023-04-17T07:48:24.801798
2021-04-25T11:25:30
2021-04-25T11:25:30
361,345,324
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
# Generated by Django 3.2 on 2021-04-25 09:56 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('advisor', '0001_initial'),...
23495c8203860fae627a8100b1b8e2e9ba365996
e58b3b41505eea2848624c69282327b8531c5a9d
/apps/operations/adminx.py
10c0907278f8e6753f7998be043e6b8374d71df9
[]
no_license
GoYMS/mxonline
9d4a9624921a389308896ddba9a817282e910532
3b9e27aaaf8f47a89083806cb8f885a5b8c31c36
refs/heads/master
2022-12-13T11:50:24.218015
2020-02-21T07:25:34
2020-02-21T07:25:34
242,054,819
1
0
null
2022-12-08T06:19:00
2020-02-21T04:34:42
JavaScript
UTF-8
Python
false
false
1,608
py
import xadmin from apps.operations.models import UserAsk,CourseComments,UserCourse,UserFavorite,UserMessage,Banner class BannerAdmin(object): list_display = ['title', 'image', 'url', 'datetime','index'] search_fields = ['title', 'image', 'url','index'] list_filter = ['title', 'image', 'url', 'datetime','...
3e439ae8454afc8a677657435ca9e6aa7819fae8
c38b72d9003283979e5902735bb123643ba4fba9
/backend/home/migrations/0002_load_initial_data.py
58c76493163b4c675b73dd1999db358280227029
[]
no_license
crowdbotics-apps/hugz-club-22211
e486a1588d6a3e6f2e1ffa9466c3dcc46fe13176
3b5b344a49254f2d95d5780d1c8171d3d774133b
refs/heads/master
2023-06-30T21:45:53.007449
2020-11-02T13:56:53
2020-11-02T13:56:53
309,385,160
0
1
null
2021-08-03T20:05:12
2020-11-02T13:53:57
JavaScript
UTF-8
Python
false
false
1,290
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "hugz club" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") ...
83c98a7314dbb6e447542e4db0c9c74799724ab0
28e8ab381a8c1b4321cd83acff6aa33468166d6b
/python3.4Smartforest/lib/python3.4/site-packages/django/db/models/fields/related_lookups.py
de10ef835e1b5bc97d453c1cbe325ee794746ac2
[ "MIT" ]
permissive
letouriste001/SmartForest_2.0
343e13bc085d753be2af43aecfb74a5fffaa5e3b
109b78bf1e8c8404800f377ab969395ccbb617be
refs/heads/master
2020-12-21T16:54:22.865824
2016-08-11T14:17:45
2016-08-11T14:17:45
59,734,259
0
0
null
null
null
null
UTF-8
Python
false
false
6,241
py
from django.db.models.lookups import ( Exact, GreaterThan, GreaterThanOrEqual, In, IsNull, LessThan, LessThanOrEqual, ) class MultiColSource(object): contains_aggregate = False def __init__(self, alias, targets, sources, field): self.targets, self.sources, self.field, self.alias = targets, so...
657f17c89bb380087b63af9fc39c0adbc2c84463
63bf6161532eefa72aa3be8b01cde601b08507dc
/python-mapping-example/fhir_model_generator/tests/model/relatedperson_tests.py
629062d82fc060e23224a32864793023ac5e11af
[ "Apache-2.0" ]
permissive
Healthedata1/mFHIR
4ef370b87e03e973918e5683977d32fe262655bc
1b4ea441cfa08b661416a3badedf7e90f2809163
refs/heads/master
2022-12-10T21:07:03.948406
2021-06-18T01:58:23
2021-06-18T01:58:23
129,964,251
9
5
null
2022-12-09T05:23:54
2018-04-17T20:57:15
HTML
UTF-8
Python
false
false
10,491
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 on 2020-02-10. # 2020, SMART Health IT. import os import io import unittest import json from model import relatedperson from model.fhirdate import FHIRDate class RelatedPersonTests(unittest.TestCase): def instantiate_from(s...
a8c9f7cf950293dcc4cd6b1a2029129783a07270
41bee87d712a9460ab2d79a7439cd9f98e861d63
/TgwlDataCenter/TgwlDataCenter/main/views.py
a4ea7f9d3fa2fca724acbb0daa9c2a22beb5e1aa
[]
no_license
liulixiang1988/iis_flask_demo
e72e209281441521b2b952dbf3547a5dc6507ec1
f1d77f363b64fc52859c83fbffb6da563df561c4
refs/heads/master
2021-01-10T08:12:20.164278
2015-11-27T01:59:45
2015-11-27T01:59:45
46,954,319
1
0
null
null
null
null
UTF-8
Python
false
false
949
py
# -*- coding:utf-8 -*- from datetime import datetime from flask import render_template from TgwlDataCenter import db from TgwlDataCenter.models import Fruit from TgwlDataCenter.main import main @main.route('/') @main.route('/home') def home(): """Renders the home page.""" fruit = Fruit(fruit=u"苹果") db.s...
2c896f2e371789e95671bb85e89272c49208ec25
52f00638c8773b001da5a341e16abc05934457f8
/rlpyt/agents/pg/mujoco.py
0ac8ff5e3dad5ea0dc9f92de401c713934064014
[ "MIT" ]
permissive
abagaria/rlpyt
8e72dde5f3750c72da1fd8a97badf2c9691ea633
9d35217f2ecec60891753cf313d482d7887c16e1
refs/heads/master
2020-09-04T00:16:35.320779
2019-11-21T19:21:49
2019-11-21T19:21:49
219,614,849
0
1
MIT
2019-11-04T23:17:11
2019-11-04T23:17:10
null
UTF-8
Python
false
false
1,049
py
from rlpyt.agents.pg.gaussian import (GaussianPgAgent, RecurrentGaussianPgAgent, AlternatingRecurrentGaussianPgAgent) from rlpyt.models.pg.mujoco_ff_model import MujocoFfModel from rlpyt.models.pg.mujoco_lstm_model import MujocoLstmModel class MujocoMixin: def make_env_to_model_kwargs(self, env_spaces): ...
72dc80d819fcaab11a208c849483dcbb988c9a1f
4a31308430d06cc3743e0dcc52501c0addd19008
/nodeA/p2p/core_node_list.py
a6782b3f7f3b6d28e02543a5bfab7d3c94796956
[]
no_license
hyo07/bc2odpt-dev
b22ad08139c311164cabce63b547dd076df52c08
2f11ae5b4dad410ba66179c7701b2e25ceeff371
refs/heads/master
2022-12-12T18:16:23.250608
2020-11-06T07:23:06
2020-11-06T07:23:06
247,711,283
0
0
null
null
null
null
UTF-8
Python
false
false
2,002
py
import threading class CoreNodeList: def __init__(self): self.lock = threading.Lock() self.list = set() def add(self, peer): """ Coreノードをリストに追加する。 param: peer : Coreノードとして格納されるノードの接続情報(IPアドレスとポート番号) """ with self.lock: print('A...
084e4cf81257ae12d846254bbff0055434fc7d89
e97e727972149063b3a1e56b38961d0f2f30ed95
/test/test_double_operation_resource.py
31eb32a0b4acb0777dcf050bca89159001193ac1
[]
no_license
knetikmedia/knetikcloud-python-client
f3a485f21c6f3e733a864194c9acf048943dece7
834a24415385c906732437970db105e1bc71bde4
refs/heads/master
2021-01-12T10:23:35.307479
2018-03-14T16:04:24
2018-03-14T16:04:24
76,418,830
0
0
null
null
null
null
UTF-8
Python
false
false
1,073
py
# coding: utf-8 """ Knetik Platform API Documentation latest This is the spec for the Knetik API. Use this in conjunction with the documentation found at https://knetikcloud.com. OpenAPI spec version: latest Contact: [email protected] Generated by: https://github.com/swagger-api/swagger-codeg...
c5e3cf8ccaee00baf6e761221f47c8375c551c50
35b6013c1943f37d1428afd2663c8aba0a02628d
/enterpriseknowledgegraph/search/lookup_sample_test.py
14bb48921ebb2818291664e810db90c14a1145eb
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/python-docs-samples
d2a251805fbeab15d76ed995cf200727f63f887d
44e819e713c3885e38c99c16dc73b7d7478acfe8
refs/heads/main
2023-08-28T12:52:01.712293
2023-08-28T11:18:28
2023-08-28T11:18:28
35,065,876
7,035
7,593
Apache-2.0
2023-09-14T20:20:56
2015-05-04T23:26:13
Jupyter Notebook
UTF-8
Python
false
false
1,013
py
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
0675a7e82f00c13dde5bb2af921db8747c34bf25
ca18d8953ab75d6921ff0ddf3c41459438b8cddd
/qwergram_bots/smtp/get_articles.py
ae50ac0ed376d7cff455c74a8cfa8640c7d8ea99
[]
no_license
qwergram/automatic-happiness
f00eb64f32947d88b0ea827fc515501ca38deebb
af86e6a5ca5300a6327a5cf6ace7c001f17e028c
refs/heads/master
2021-01-17T10:19:43.913698
2016-06-03T05:40:24
2016-06-03T05:40:24
58,597,301
0
1
null
2016-06-03T06:06:15
2016-05-12T01:39:52
Python
UTF-8
Python
false
false
9,073
py
"""Read emails from $EMAIL_ADDR and post them to the api.""" import imaplib import smtplib import email import datetime import time from smtp.email_template import EMAIL_CONTENTS from requests.auth import HTTPBasicAuth HOUR = 0 def http_get(*args, **kwargs): return requests.get(*args, **kwargs) def http_post...
8cac4644eff66d8248b36ad0fe230a008a9a7619
ae1870a6da50a292f86aa631acbea5b02bf7e057
/mootdx/contrib/pytdx/trade/trade.py
ccb2911feeec4ef82a12d7e6e4fbb17821b5b43b
[ "MIT" ]
permissive
sxlxnyw/mootdx
30ccbfd362836b78326997fdade1b072cac02b6e
dd3065f3189eacc0ba6efbd17f60e9848bbffcd4
refs/heads/master
2022-11-27T17:46:15.388082
2020-08-06T06:45:06
2020-08-06T06:45:06
288,402,383
2
0
MIT
2020-08-18T08:43:53
2020-08-18T08:43:52
null
UTF-8
Python
false
false
8,507
py
# -*- coding: utf-8 -*- """ Created on Mon Aug 21 14:24:31 2017 Trade 模块需要配合TdxTradeServer使用... @author: RainX """ import base64 import json import urllib import requests from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes try: fr...
d7c11080139ed0bff1800582fef010d1bedb96c7
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_201/1514.py
0f27373d40ddcd82cb07423f15c79eea3f3c6422
[]
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
736
py
from math import floor, ceil def get_result(num, k): if num == k: return 0, 0 if num == 2: return 1, 0 if k == 1: if num % 2 == 0: return (num / 2), (num / 2) - 1 else: return (num - 1) / 2, (num - 1) / 2 num_1 = ceil((num - 1) /...
76d9587e6d2da6a2ae65a1af0c795772945e3433
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/batch/v20170901/outputs.py
452a83712bf6f04f51188e3ad3d12c90641da9b1
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
90,752
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
615a7ce2809c9bdded6aa8d12c3fb35fe9b1ec63
d094ba0c8a9b1217fbf014aa79a283a49aabe88c
/env/share/doc/networkx-2.2/examples/drawing/plot_four_grids.py
9123bb27725a34a30be61f73d9402afefc496e05
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
Raniac/NEURO-LEARN
d9274e0baadd97bb02da54bdfcf6ca091fc1c703
3c3acc55de8ba741e673063378e6cbaf10b64c7a
refs/heads/master
2022-12-25T23:46:54.922237
2020-09-06T03:15:14
2020-09-06T03:15:14
182,013,100
9
2
Apache-2.0
2022-12-09T21:01:00
2019-04-18T03:57:00
CSS
UTF-8
Python
false
false
838
py
#!/usr/bin/env python """ ========== Four Grids ========== Draw a graph with matplotlib. You must have matplotlib for this to work. """ # Author: Aric Hagberg ([email protected]) # Copyright (C) 2004-2018 # Aric Hagberg <[email protected]> # Dan Schult <[email protected]> # Pieter Swart <[email protected]> #...
2fcd265f4cfb612be33f39b9c2a640b0e8ebb430
fd18ce27b66746f932a65488aad04494202e2e0d
/d11_spider/codes/Adv_Spider/Adv_Spider/spiders/baidu_request.py
2700834d6cf9b738aef84a4995acbedad18f4c50
[]
no_license
daofeng123/ClassCodes
1acbd843836e550c9cebf67ef21dfca9f6b9fc87
fbcd1f24d79b8bb56ad0669b07ad118064609612
refs/heads/master
2020-06-24T12:34:28.148197
2019-08-15T03:56:40
2019-08-15T03:56:40
198,963,469
3
0
null
2019-07-26T06:53:45
2019-07-26T06:53:44
null
UTF-8
Python
false
false
1,268
py
# -*- coding: utf-8 -*- import json import scrapy import scrapy.http class BaiduRequestSpider(scrapy.Spider): name = 'baidu_request' allowed_domains = ['fanyi.baidu.com'] start_urls = ['https://fanyi.baidu.com/sug'] def start_requests(self): # Request headers = { 'content...
703e62e2db63fdf7b1f11b8d7276719c0d544cd9
3f9e960174cfc5c8bd6827ce5362124c467a3952
/python/data_structure/api_fields_values_histogram.py
09fed45101551344fdd765d4719736c3bf9bb234
[]
no_license
monobinab/python
f3ec6d462d7149c007ac9e14e72132eae73b4acd
265621b045969c819eb86fa7ba2a3bdfad34ecb6
refs/heads/master
2020-12-03T00:04:29.185880
2017-07-01T18:53:11
2017-07-01T20:06:16
95,982,002
0
0
null
null
null
null
UTF-8
Python
false
false
792
py
#!/usr/bin/env python #this script parses storm log files and creates pipe delilited storm log files import sys from datetime import date, timedelta, datetime #from dateutil import parser counts = dict() tmp_lst = list() # input comes from STDIN (standard input) for line in sys.stdin: client = "" try: ...
7bd38216ab778e3afaf00fe52d4e142572267d0c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03862/s008273879.py
920a1b732a14199ec1f52a59849810aee0710dc2
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
n, x = map(int, input().split()) A = list(map(int, input().split())) ans = 0 for i in range(n - 1): if A[i] + A[i + 1] > x: ans += A[i] + A[i + 1] - x A[i + 1] = max(x - A[i], 0) print(ans)
246f7e3ba7f6dd25ba307531bd7af5a603be58c7
802c002ecd90be6b489e0250ec4454a11c17ed1d
/src/homework/homework13/main_homework7.py
301a2f393bbefdf4b2ea9b60e17fa62bb2949b97
[ "MIT" ]
permissive
acc-cosc-1336/cosc-1336-spring-2018-EricScotty
3a088285ae853a9ff5d747f2301f755c5e3749b3
80c0249a583dc178cfc7bb95b851d7f3240dc3e9
refs/heads/master
2021-09-14T05:54:02.132705
2018-05-08T23:27:04
2018-05-08T23:27:04
118,071,042
0
0
MIT
2018-04-23T02:51:05
2018-01-19T03:22:13
Python
UTF-8
Python
false
false
969
py
from src.homework.homework7 import get_p_distance_matrix, print_get_p_distance_matrix ''' Write a main function to... Read p_distance.dat file From the file data, create a two-dimensional list like the following example: [ ['T','T','T','C','C','A','T','T','T','A'], ['G','A','T','T','C','A','T','T','T','C'], ...
1dbb1088e45851aaa83d57c2a6646e4158d3da5a
d746f9f262961fd4c65eb332d8325f7fdacf3757
/dingureu/settings.py
f9c67e688925e9835faf2ffc1592a29418a4d0d6
[]
no_license
Ganodab-Brothers/dingureu-django-backend
c69c84e48c64874bb283fec07dee2c203fca6b08
2aa37bbdd5c8b003b0e73854c2eca23a3deccb06
refs/heads/master
2023-04-20T21:10:26.686591
2021-04-28T00:33:39
2021-04-28T00:33:39
359,873,187
0
0
null
null
null
null
UTF-8
Python
false
false
3,866
py
""" Django settings for dingureu project. Generated by 'django-admin startproject' using Django 3.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib ...
3771a201b73d42edf636e5b428045ba1ac66f5c6
27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f
/tests/unit/modules/network/fortios/test_fortios_wireless_controller_hotspot20_anqp_venue_name.py
bdf6ef323ce1aea195b6df34a3ba3bf890a406c3
[]
no_license
coll-test/notstdlib.moveitallout
eb33a560070bbded5032385d0aea2f3cf60e690b
0987f099b783c6cf977db9233e1c3d9efcbcb3c7
refs/heads/master
2020-12-19T22:28:33.369557
2020-01-23T18:51:26
2020-01-23T18:51:26
235,865,139
0
0
null
null
null
null
UTF-8
Python
false
false
8,760
py
# Copyright 2019 Fortinet, Inc. # # 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 3 of the License, or # (at your option) any later version. # # This program is distributed in the...
651237ce3104a4d44722f7c75a12ee6769a94487
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03937/s470682175.py
1480749348da6cfb1296018b442d2120f2ab5b1e
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
H,W=map(int,input().split()) field=[] for i in range(H): s=input() a=[] for j in range(W): a.append(s[j]) field.append(a) def dfs(x,y): field[x][y]='.' dx=[0,1] dy=[1,0] for i in range(2): nx=x+dx[i] ny=y+dy[i] if 0<=nx and nx<H and 0<=ny and ny<W and fie...
5677e9d43343d9fc12b254471edc7a2171109106
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_149/ch21_2019_04_02_16_06_50_086554.py
3aa4e84d55d5d3fd7844bb18f9713fcc3c6ff6ca
[]
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
113
py
valor=float(input('Digite o valor da conta: ')) print('Valor da conta com 10%: {0} R$'.format(valor-(valor*0.1)))
e58c18ae7deb5e3276db3668b31f0aac64272045
8ea7912401d3f609765738f38b44561e4b2dbd5f
/tests/__init__.py
efa5acf44b1b4a1e8786eee4fbe0aab916e05cd1
[ "MIT" ]
permissive
zeroam/sshmng
1b46099ef6d9b174e7debf64e35663c6998b01c9
c3b705aeb6b086ec02664e74a31650ec2ffc41f6
refs/heads/master
2023-03-15T13:52:02.056589
2021-03-22T12:16:32
2021-03-22T12:16:32
343,767,017
1
1
MIT
2021-03-22T12:16:33
2021-03-02T12:29:04
Python
UTF-8
Python
false
false
36
py
"""Unit test package for sshmng."""
283e213ddbd425032b95f95fc7675f17753b61d8
3a6d382503e11753dd81b291145847a2eabb8ec6
/util/lmk/lmk.py
e8bec87cf504fdbb8c9fd60491dd617c7d103d6a
[ "MIT" ]
permissive
QuXing9/phd
7e6f107c20e0b3b1de2b25eb99e0b640a4a0bfcf
58ba53b6d78515ed555e40527f6923e28941cc19
refs/heads/master
2022-02-27T03:29:05.126378
2019-10-22T02:46:57
2019-10-22T02:46:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,016
py
#!/usr/bin/env python """let me know - Email output of command upon completion Attributes ---------- __description__ : str Package description. DEFAULT_CFG : str Default configuration. DEFAULT_CFG_PATH : str Default path to the configuration file. E_CFG : int Non-zero return code for configuration e...
1d6b97e765f3a7f16caed9f39bd488474adf650e
b0dbd2e4dd83fe012cde29c8474bae5e33c23e2a
/harbor_client/model/robot_create_v1.py
2f99d134e25272b617002f74eb94bb0b6fce1cd4
[]
no_license
DevotionZhu/harbor-python-client-api
0ba3999e5af126dbe97f0234c4a9601660a97dbb
f0cc6c453b488d5f456eff94000156182eb3a468
refs/heads/master
2023-04-17T22:06:06.024871
2021-04-11T22:20:28
2021-04-11T22:20:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,200
py
""" Harbor API These APIs provide services for manipulating Harbor project. # noqa: E501 The version of the OpenAPI document: 2.0 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from harbor_client.model_utils import ( # noqa: F401 ApiTypeError...
80acd454dc42c8718c69d967d6cb1d86e6ac4d21
a9e81c87022fdde86d47a4ec1e74791da8aa0e30
/tensorflow-learning/base/loss-function/03-sigmoid.py
0f8dabd13b8e2db95a38496a8efb6bcc08f2cfd1
[ "Apache-2.0" ]
permissive
ymli1997/deeplearning-notes
c5c6926431b7efc1c6823d85e3eb470f3c986494
f2317d80cd998305814f988e5000241797205b63
refs/heads/master
2020-07-29T11:15:43.689307
2018-05-05T10:58:18
2018-05-05T10:58:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
# -*- coding:utf-8 -*- import numpy as np import tensorflow as tf a = tf.constant([[1.0,2.0],[1.0,2.0],[1.0,2.0]]) res = tf.nn.sigmoid(a) init_opt = tf.global_variables_initializer() with tf.Session() as sess: sess.run(init_opt) result = sess.run(res) print(result)
168f2b6ee6d80686195d7b2050a91cb4bf2b82ea
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Sklearn_scipy_numpy/source/scipy/sparse/linalg/_onenormest.py
e34652a68df67fc873eecf2ed42327786c624f1e
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
15,138
py
"""Sparse block 1-norm estimator. """ from __future__ import division, print_function, absolute_import import numpy as np from scipy.sparse.linalg import aslinearoperator __all__ = ['onenormest'] def onenormest(A, t=2, itmax=5, compute_v=False, compute_w=False): """ Compute a lower bound of the 1-norm of ...
3fbe1bceff869e837fbf8bc1c9ada9178969a38c
e7d791d3f24076cad781b963ed4375cace3ba734
/examples/dataloader_test.py
fac7ec386d4585dafd320a52387fd369c2cf7a49
[ "Apache-2.0" ]
permissive
jiniaoxu/bi-lstm-crf
d9512cc524f8a5d60509391d3eb0e931d299b230
0667537207b8cb43b68fe5ab4378f770d05bf45a
refs/heads/master
2020-04-13T18:06:51.797880
2018-12-24T08:12:44
2018-12-24T08:12:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
from dltokenizer.data_loader import DataLoader if __name__ == '__main__': data_loader = DataLoader("../data/src_dict.json", "../data/tgt_dict.json", batch_size=64) generator = data_loader.generator("../data/2014") for _ in range(1): sent, chunk = next(generator) assert len(sent) == len(chu...
02701604a58c249a1488f5470f94671ab4bf44ad
15b801de0dd019411135aad75f7cd653061489d3
/actions/migrations/0001_initial.py
d0c21952f659882959d85157b7158114b4c98957
[]
no_license
007vict/bookmarksbyexample
ff73befa059de10cd4b425b615678ac0fd1fa528
6b614affe46ebc2ac0687ed5cdf50c6439784932
refs/heads/master
2020-04-29T16:59:37.434190
2019-03-22T21:29:27
2019-03-22T21:29:27
176,282,231
0
0
null
2019-03-18T19:15:24
2019-03-18T12:38:50
Python
UTF-8
Python
false
false
1,262
py
# Generated by Django 2.2rc1 on 2019-03-22 15:10 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), ('con...
e0bb05f7819d66e7ae57c40d5566afcc54aeedac
e4920c4fe4290bde524e0c141189f80fddfe44b7
/dashboard/urls.py
524c5746de8285b0cc666f48b3c5563297731e11
[]
no_license
ShahadatShuvo/Django_portfolio
42af2b0aa686bff08730cdb105f95d6b63adb620
795ed7cbb6444245af08582ea63f57a0f32679a0
refs/heads/master
2023-05-30T01:43:50.409584
2021-06-14T08:29:18
2021-06-14T08:29:18
376,372,632
1
0
null
null
null
null
UTF-8
Python
false
false
925
py
from django.urls import path from django.contrib.auth.views import LogoutView from .views import ( dashboard, profile, profile_edit, messages, messages_api, projects, projects_api, LoginView, EducationView, ) app_name = 'dashboard' urlpatterns = [ path('', dashboard, name=...
b8aa7c0fbbbc85ced858cb68b0a50f1132f1d81e
f6fee9397e858bce2d2e4258602d4a029b9a859e
/LinkedList/Leetcode 2. Add Two Numbers.py
1e00848552ec84c31c195e4f04828dcbc7479c86
[ "MIT" ]
permissive
sriharsha004/LeetCode
e180dc4c0e1af217d3fbe026650b4035c50a388b
95ca845e40c7c9f8ba589a45332791d5bbf49bbf
refs/heads/master
2022-12-07T11:37:28.843751
2020-08-21T03:05:45
2020-08-21T03:05:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: dummy = ListNode(0) cur = dummy carry = 0 while l1 or l2: sums = 0 if l1: sums += l1.val l1 = l1.next if l2: sums += l2...
f57f7a2a1489715fa67b8cc3ca5912999c0b2b63
0f41b3564b08045f56b8ee4743ef8834b88a274e
/otree/management/commands/resetdb.py
b7de7fb73d101b0efdeaccd536b8a8f86fc9d5d5
[ "MIT" ]
permissive
bjgoode/otree-core
b04911f00671ef6bbfeeb184359133f85ec221cb
ab6bbcbdb53cb1d74b205f04f16eb40ea099a45d
refs/heads/master
2021-05-11T18:31:00.398740
2018-01-17T23:28:22
2018-01-17T23:28:22
117,827,105
1
0
null
2018-01-17T11:27:21
2018-01-17T11:27:21
null
UTF-8
Python
false
false
6,623
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================= # IMPORTS # ============================================================================= import logging from django.conf import settings from django.core.management.base import BaseCommand ...
8aa639aff98132e95e43aa967b1655b5351b5783
880d9cc2704f7de649ad4455dd7ec2806b6a9e95
/PythonExam/北京理工大学Python语言程序设计-Book/Chapter6/e10.3CalThreeKingdoms.py
7dfc8f674c32c92b48171bf8ba1a75ce241cab31
[]
no_license
shunz/Python-100-Days_Practice
14795757effcff50a4644f57c5c109fa1c9c38ac
82f508ff6911ce3aa5c5a69cd481a6cc87f02258
refs/heads/master
2020-12-26T18:52:32.755384
2020-04-07T15:49:36
2020-04-07T15:49:36
237,604,470
0
0
null
null
null
null
UTF-8
Python
false
false
1,784
py
"""《三国演义》人物出场统计 - 输入 - 从网上找到三国演义全文,保存为threekingdoms.txt - 处理 1. 分解并提取中文文章的单词 - 采用jieba对文章分词 - 排除不是人物的单词,用集合类型构建一个排除词汇库 - 合并同人不同名的单词,比如:刘备=刘玄德=玄德=刘皇叔=主公 2. 对每个单词进行计数 - 将单词保存在变量word中 - 使用一个字典类型counts={} - counts[word]...
11f87053a9b778f57300d4430253f97fcf77ccc6
3a533d1503f9a1c767ecd3a29885add49fff4f18
/saleor/graphql/translations/mutations/product_translate.py
bfb252870e111b3c02e367b5f1d589c8e89a8ce5
[ "BSD-3-Clause" ]
permissive
jonserna/saleor
0c1e4297e10e0a0ce530b5296f6b4488f524c145
b7d1b320e096d99567d3fa7bc4780862809d19ac
refs/heads/master
2023-06-25T17:25:17.459739
2023-06-19T14:05:41
2023-06-19T14:05:41
186,167,599
0
0
BSD-3-Clause
2019-12-29T15:46:40
2019-05-11T18:21:31
TypeScript
UTF-8
Python
false
false
2,059
py
import graphene from ....core.tracing import traced_atomic_transaction from ....permission.enums import SitePermissions from ....product import models as product_models from ...channel import ChannelContext from ...core import ResolveInfo from ...core.enums import LanguageCodeEnum from ...core.types import Translation...
f792e5de0ef32f047b98b4a3d27b410d7185e5ad
d69bff5c124177d16074034da7b87859a4e9a525
/src/pretix/plugins/statistics/__init__.py
eb7d476351730b84ea392eb9ec1ac39e48ad3ec5
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
snadal/pretix
f377313d52cb57d0193c8d102af1e47f64de7ce6
430ccece9a3af6fd93c51626a9551ef79cee8002
refs/heads/master
2021-02-15T09:17:07.063355
2020-03-04T11:44:37
2020-03-04T11:44:37
244,885,007
0
0
NOASSERTION
2020-03-04T11:38:09
2020-03-04T11:38:09
null
UTF-8
Python
false
false
588
py
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ from pretix import __version__ as version class StatisticsApp(AppConfig): name = 'pretix.plugins.statistics' verbose_name = _("Statistics") class PretixPluginMeta: name = _("Statistics") author = _(...
f16a8c1bae7847be6dfceb67897dee835eca9958
907b3bbd44c95be1542a36feaadb6a71b724579f
/files/home/gcloud/google-cloud-sdk/lib/surface/container/builds/create.py
c0d1af759913e065a72a78222c6ad59bf6ef3554
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
vo0doO/com.termux
2d8f536c1a5dbd7a091be0baf181e51f235fb941
c97dd7b906e5ef3ec157581fd0bcadd3e3fc220e
refs/heads/master
2020-12-24T09:40:30.612130
2016-11-21T07:47:25
2016-11-21T07:47:25
73,282,539
2
2
null
2020-07-24T21:33:03
2016-11-09T12:33:01
Python
UTF-8
Python
false
false
919
py
# Copyright 2016 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 # # Unless required by applicable law or ag...
eacc4ec788812a02d38d19d23aea55d3f053a2dc
b3699724907850fd26cbce4509fec83a33b89760
/python/ray/autoscaler/_private/event_summarizer.py
d877bf424459d75777a728931f35e79993c01ecb
[ "Apache-2.0", "MIT" ]
permissive
BonsaiAI/ray
5e2f26a81d865a795261d11f9182aca7f07c7b97
941d30f082fe879ea30618af14327c25b5a21a74
refs/heads/master
2023-06-12T05:15:29.370188
2021-05-06T07:03:53
2021-05-06T07:03:53
233,708,687
3
5
Apache-2.0
2023-05-27T08:06:37
2020-01-13T22:41:47
Python
UTF-8
Python
false
false
1,430
py
from typing import Any, Callable, Dict, List class EventSummarizer: """Utility that aggregates related log messages to reduce log spam.""" def __init__(self): self.events_by_key: Dict[str, int] = {} def add(self, template: str, *, quantity: Any, aggregate: Callable[[Any, Any], Any]) ...
06314f3ca3db5a2d02cba00204b892ee97077b78
aafba3346120db47cf87ba67dee21848576c337f
/beet/cmds/plotnft_funcs.py
70271f1226437a44e86815952b6492edb4905af0
[ "Apache-2.0" ]
permissive
beetseeds/beet-blockchain
9f7fa9e221364bb865a8b9f60455afc82b4a022b
e5d93f1f9041c48dd0c38416d845c8675bf22738
refs/heads/main
2023-07-14T21:30:18.089664
2021-09-10T01:40:00
2021-09-10T01:40:00
401,708,903
5
3
Apache-2.0
2021-09-05T09:26:51
2021-08-31T13:14:50
Python
UTF-8
Python
false
false
16,252
py
from collections import Counter import aiohttp import asyncio import functools import json import time from pprint import pprint from typing import List, Dict, Optional, Callable from beet.cmds.wallet_funcs import print_balance, wallet_coin_unit from beet.pools.pool_wallet_info import PoolWalletInfo, PoolSingletonSt...
0d1c07214d02cff04c05d3e2658206175b689f11
166e2e2095ca86e44735d3dd85b54d3f30e03baf
/app/__init__.py
f8617206c3f0409fdb445c1498a0a463afbb73f6
[ "MIT" ]
permissive
joss13aws/damgteam
e04502e7c89142a9e060a2d879cfcb9cf0d2e29a
ce5beedc5b187141bcec76c15011fe8c4ae33743
refs/heads/master
2022-01-25T08:22:44.387636
2018-09-12T07:15:39
2018-09-12T07:15:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
896
py
# -*- coding: utf-8 -*- """ Script Name: __init__.py.py Author: Do Trinh/Jimmy - 3D artist. Description: """ # ------------------------------------------------------------------------------------------------------------- from __future__ import absolute_import import os, subprocess BASE = os.path.dirname(__file__)....
44c47b384ed863cdf879918152b36a475360e439
3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be
/google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/ssh_utils.py
3202d910b3cb387c13be5ad292755430c5662abd
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
twistedpair/google-cloud-sdk
37f04872cf1ab9c9ce5ec692d2201a93679827e3
1f9b424c40a87b46656fc9f5e2e9c81895c7e614
refs/heads/master
2023-08-18T18:42:59.622485
2023-08-15T00:00:00
2023-08-15T12:14:05
116,506,777
58
24
null
2022-02-14T22:01:53
2018-01-06T18:40:35
Python
UTF-8
Python
false
false
46,404
py
# 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 # # Unless required by applicable law or ag...
fa4720480d99598478d88893f74730d1b74f153b
bfd6ac084fcc08040b94d310e6a91d5d804141de
/PulseSequences2/SidebandOptimization.py
5b3223a3788320f39d1161c1d19f3a5584fa78af
[]
no_license
jqwang17/HaeffnerLabLattice
3b1cba747b8b62cada4467a4ea041119a7a68bfa
03d5bedf64cf63efac457f90b189daada47ff535
refs/heads/master
2020-12-07T20:23:32.251900
2019-11-11T19:26:41
2019-11-11T19:26:41
232,792,450
1
0
null
2020-01-09T11:23:28
2020-01-09T11:23:27
null
UTF-8
Python
false
false
2,590
py
from common.devel.bum.sequences.pulse_sequence import pulse_sequence from labrad.units import WithUnit as U from treedict import TreeDict class SidebandOptimization(pulse_sequence): scannable_params = {'SidebandCooling.sideband_cooling_amplitude_854' : [(-30., -6., 3., 'dBm'), 'curren...
e8a8ecb58043ca609ec177e0f5e27fae7d5abada
fdbb74a95924e2677466614f6ab6e2bb13b2a95a
/third_party/python/Lib/http/client.py
619f67f41b59fa45985383e152639c8e2ea7868d
[ "ISC", "Python-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-copyleft" ]
permissive
jart/cosmopolitan
fb11b5658939023977060a7c6c71a74093d9cb44
0d748ad58e1063dd1f8560f18a0c75293b9415b7
refs/heads/master
2023-09-06T09:17:29.303607
2023-09-02T03:49:13
2023-09-02T03:50:18
272,457,606
11,887
435
ISC
2023-09-14T17:47:58
2020-06-15T14:16:13
C
UTF-8
Python
false
false
55,660
py
r"""HTTP/1.1 client library <intro stuff goes here> <other stuff, too> HTTPConnection goes through a number of "states", which define when a client may legally make another request or fetch the response for a particular request. This diagram details these state transitions: (null) │ │ HTTPConnection(...
abc5778f8d9954d10c526765fe14fd1b7d08ab46
33789ec4b4a2d35f06cd89068f90686650057102
/object_oriented_programming/polymorphism/function_overloading.py
2b41cb5df64489594b40d2cdb5f9750b69d6a1df
[]
no_license
unnievarghese/originalpythonluminar
d9c342a5b34b7236bf34f8a53b35188b12e90b3d
616929ff471700248b0619c35025562c131ea459
refs/heads/master
2023-03-01T20:59:41.165467
2021-01-23T11:26:09
2021-01-23T11:26:09
315,814,013
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
def add(): print('inside no arg add method') def add(num): print('inside 1 arg add method') def add(num1,num2): print('inside 2 arg add method') # def without a class is funtion #fucntion overloading is same as method overriding but without class # same fuction but different number of arguments print(add(1,...
be86e46364d706fb41a1344fe6cdb49253da255f
3f345ac4cad6dc931260ab40c40d0977ba51db77
/src/__init__.py
24b34714951bc77838edb3c7468a1acd0abc9a0b
[]
no_license
fran-jo/EngineME
f586831f55942320a0dc07dbf70a409c2fc475d5
69555183d5b8a3bc3c4a0c406da2a58b2f9fcb70
refs/heads/master
2020-03-23T21:03:39.305112
2019-02-09T22:03:09
2019-02-09T22:03:09
142,078,920
1
0
null
null
null
null
UTF-8
Python
false
false
179
py
from eme.logiclayer.engine import enginedym from eme.logiclayer.engine import engineomc from eme.logiclayer.command import CommandOMC # from engine.engineJModelica import EngineJM
96e4c704ecf4e1e33f84c8abce3e5307dfcb01bc
33294c238bd5c6ad0cb69d7b6d6922a54b1f7d95
/src/wrf/g_omega.py
f2f70ba8836d6204a9722f15fdb14897dc289f60
[ "Apache-2.0" ]
permissive
NCAR/wrf-python
a3b81aa0de3c7dd8b20d390bd949e3f4e3100bed
79dda8329dd814aaba44cddf62cd12db0f5e2e97
refs/heads/develop
2023-06-30T03:14:14.380762
2023-06-16T22:26:09
2023-06-16T22:26:09
59,517,733
384
155
Apache-2.0
2023-06-23T19:43:18
2016-05-23T20:55:40
Python
UTF-8
Python
false
false
3,272
py
from __future__ import (absolute_import, division, print_function) from .constants import Constants from .destag import destagger from .extension import _omega, _tk from .util import extract_vars from .metadecorators import copy_and_set_metadata @copy_and_set_metadata(copy_varname="T", name="omega", ...