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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed8f1e7a9bca1240742287d1ba9ff1752519e407 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/wn2.py | 7e5061c53baa9c33c3a5a765f753cb76544cb01f | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"[email protected]"
] | |
c212b7abfa204151fd7118f9c1047b5c3fb541c4 | a9d4beb507b284e0a30b6f6522d448bec37ab7d6 | /math/0x01-plotting/5-all_in_one.py | c1616e1f02491a0cca18080e0f79cb2b3375c8b4 | [] | no_license | Danucas/holbertonschool-machine_learning | b9aedaccb93627adb9514f6c2fae1b67a1aeb0af | 83e6185ebe3935f4fea27afa5db9f448722f2e2a | refs/heads/main | 2023-07-12T17:08:02.813748 | 2021-08-17T05:22:30 | 2021-08-17T05:22:30 | 318,015,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | #!/usr/bin/env python3
import numpy as np
import matplotlib.pyplot as plt
y0 = np.arange(0, 11) ** 3
mean = [69, 0]
cov = [[15, 8], [8, 15]]
np.random.seed(5)
x1, y1 = np.random.multivariate_normal(mean, cov, 2000).T
y1 += 180
x2 = np.arange(0, 28651, 5730)
r2 = np.log(0.5)
t2 = 5730
y2 = np.exp((r2 / t2) * x2)
x3 ... | [
"[email protected]"
] | |
d20d0862c0bc14f8a343819a18037592d6950392 | 734a31e81f206c0bb9ab1e1fd6745a29aaa10b14 | /src/products/migrations/0015_auto_20180115_0209.py | 86f87585cdc543286771d23aa9edee108ffaf53d | [
"MIT"
] | permissive | shan18/Kart | d39974ba3f2eca14e68f6e51ed9132ffcf8a540a | a38f648d00b829a2f0a875e78c102c62c9718ee1 | refs/heads/master | 2022-12-10T05:33:41.198309 | 2022-11-29T07:16:32 | 2022-11-29T07:16:32 | 118,975,709 | 26 | 18 | MIT | 2020-06-08T09:47:11 | 2018-01-25T22:34:36 | Python | UTF-8 | Python | false | false | 622 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-14 20:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0014_auto_20180114_0359'),
]
operations = [
migrations.AddField... | [
"[email protected]"
] | |
8b363f046499487518a67cb87eb0ec039c027f5f | 025333407ea7219540c4873091ade8bff9ced829 | /manage.py | f2211cdbdecf378c6af5618fe89fcac935d26090 | [] | no_license | PyconUK/ironcage18 | 317b6250019f0173c421b0f1980dcee52c727528 | 4ffb1c8449437f8d4dc08a1f344d47383b542598 | refs/heads/master | 2021-04-15T18:24:30.180384 | 2019-05-15T08:48:57 | 2019-05-15T08:57:20 | 126,659,139 | 1 | 4 | null | 2018-10-10T07:38:22 | 2018-03-25T02:53:05 | Python | UTF-8 | Python | false | false | 714 | py | #!/usr/bin/env python
import os
import sys
import dotenv
if __name__ == "__main__":
if 'test' in sys.argv:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ironcage.settings.test")
else:
dotenv.read_dotenv()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ironcage.settings.local")
... | [
"[email protected]"
] | |
31ab032e54bf47596e702e42e35b49e5afb56914 | dbd87fe6e9466c4cada18b037667cfdddc62c193 | /data/Quandl/Quandl_to_Email/mailer.py | fc9f7c8bf40471494b8853214d35944ab0aff2b3 | [] | no_license | alexanu/Python_Trading_Snippets | 74515a40dc63ba50d95bd50330ed05d59b5dc837 | 85969e681b9c74e24e60cc524a952f9585ea9ce9 | refs/heads/main | 2023-06-25T03:27:45.813987 | 2023-06-09T16:09:43 | 2023-06-09T16:09:43 | 197,401,560 | 18 | 17 | null | 2023-02-08T22:25:25 | 2019-07-17T14:05:32 | Jupyter Notebook | UTF-8 | Python | false | false | 1,112 | py | import sendgrid
import os
from sendgrid.helpers.mail import Email, Content, Mail
class Mailer(object):
def __init__(self):
if os.environ["SENDGRID_API_KEY"] is None:
raise EnvironmentError("Missing env SENDGRID_API_KEY")
self.sendgrid_client = sendgrid.SendGridAPIClient(
... | [
"[email protected]"
] | |
0e83a10947f41ecdc8506924ac075dff32b6b7b0 | 5b6ec656a247d10011fd67a920aa002ebdf873c3 | /GithubOctarofile/GithubOctarofile/urls.py | d618d9a5c3257a4b79841c4d90f628af694f8d70 | [] | no_license | KhaledAbuNada-AI/Django-Projects | cfb46d46da5f5358171294ca8c02c62c5babf2cf | ff264426d7a650f3c513678bbd71b5519372f6d3 | refs/heads/master | 2022-04-24T10:52:26.791436 | 2020-04-22T15:27:37 | 2020-04-22T15:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | """GithubOctarofile URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"[email protected]"
] | |
b4d34fe8abe990c21dd3d582565360d613e2f4ca | 814a896307bc2b99ec20d0800cb106280fb1b303 | /venv/lib/python3.6/site-packages/pyquickhelper/pycode/venv_helper.py | 55ccc1978d821f067c1568795e6c9d9e12bfed3f | [] | no_license | mahagala/HecHms | ae0d4bedfcba33bc7e70eeefadcbd5361a00bd73 | 47521f9cd8dc0f2a51bb6e2660f67a81b3634b16 | refs/heads/master | 2021-09-20T04:16:23.691577 | 2018-08-03T12:46:38 | 2018-08-03T12:46:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,624 | py | """
@file
@brief Helpers for virtualenv
.. versionadded:: 1.2
"""
import os
import sys
from ..loghelper import noLOG, run_cmd
class VirtualEnvError(Exception):
"""
Exception raised by the function implemented in this file.
"""
pass
def is_virtual_environment():
"""
Tells... | [
"[email protected]"
] | |
cc33c74f1c0ac7232046e55292d8b413ca1bc988 | 5759c0ed3219c06437ce5b39ef9ad92b5e191fed | /py/0114_flatten_binary_tree_to_linked_list.py | 50bdf3fcfc9bb4e70f86523429fbe8d284228f61 | [] | no_license | mengnan1994/Surrender-to-Reality | ba69df7c36112ad19f19157a9f368eae6340630f | 66232728ce49149188f863271ec2c57e426abb43 | refs/heads/master | 2022-02-25T01:34:49.526517 | 2019-09-22T17:21:28 | 2019-09-22T17:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | """
Given a binary tree, flatten it to a linked list in-place.
For example, given the following tree:
1
/ \
2 5
/ \ \
3 4 6
The flattened tree should look like:
1
\
2
\
3
\
4
\
5
\
6
"""
class TreeNode:
def __init__(self, x):
self.v... | [
"[email protected]"
] | |
e2edb5d82d0b7b9a5ce5c04dca7d99743fcc26ab | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /week_or_work/give_group/go_place/fact/child/world.py | ef11efc3b6b9c83521114179cecdc22ea2e4faa1 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#! /usr/bin/env python
def fact_or_different_group(str_arg):
other_thing(str_arg)
print('last_life_and_time')
def other_thing(str_arg):
print(str_arg)
if __name__ == '__main__':
fact_or_different_group('part')
| [
"[email protected]"
] | |
ba89f8b4fbc89acfbdb68504386a71ea5e70c4ca | b3fc641d4a746401301d917d42dd204a8661874b | /authors/apps/articles/migrations/0009_reported_times_reported.py | 7fd11b5ff494f57db3c9d8ee75cc09f9b68ec1b0 | [
"BSD-3-Clause"
] | permissive | andela/ah-backend-lannister | 7998e0f9729036627ef2aabcdb1bb3c89b356727 | 091bd7e892eb0709a937f0f992f2675ab81ce40c | refs/heads/develop | 2020-03-29T02:31:52.662672 | 2018-11-20T09:14:50 | 2018-11-20T09:14:50 | 149,441,528 | 0 | 5 | BSD-3-Clause | 2018-11-20T09:14:51 | 2018-09-19T11:39:36 | Python | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.1.1 on 2018-10-18 13:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0008_auto_20181018_1517'),
]
operations = [
migrations.AddField(
model_name='reported',
name='times_repo... | [
"[email protected]"
] | |
d77cc9cfc19abaad7bd34df16677a4312d3ea8d1 | f7648ea1c8a9565371c3d4654f7bdf1f2c9278f5 | /BAEK_JOON/Python_algorithm/백준_11053번_가장긴증가하는부분수열.py | 46abd5d65adc6c66937eba0785359af736f28207 | [] | no_license | Sungmin-Joo/Algorithm-competition | 521e019d532cc73e7620c5d1218142d32820eb1f | 6b9513e15f284d95a21eecd84a0a4d0f2ff03402 | refs/heads/master | 2020-05-01T15:25:16.404513 | 2020-01-19T10:41:25 | 2020-01-19T10:41:25 | 177,546,171 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | import sys
input = sys.stdin.readline
global dp, l
n = int(input())
arr = [*map(int,input().split())]
dp = [0] * n
m = 0
for i in range(n):
if i == 0:
dp[i] = 1
else:
max_dp = 0
for j in range(0, i):
if max_dp < dp[j] and arr[j] < arr[i]:
max_dp = dp[j]
... | [
"[email protected]"
] | |
61b16488d1272ea297377739b9d59515dbe88c4f | 2f963d7989749037a3ec27aaa39b31416b33cbb2 | /ib_recommender/interfaces/ib_recommender_service_interface.py | d49a6e35f35d335762e37a87f3106329613780e4 | [] | no_license | migsantos121/phd3-backend | 3cd014908856c995de3c4473d82059bc9c1b5794 | 9d1d2bd6f55dc89719ce5a1916c5db3d573aec1e | refs/heads/master | 2022-12-12T17:25:59.334509 | 2020-03-09T09:24:08 | 2020-03-09T09:24:08 | 245,991,086 | 0 | 0 | null | 2022-06-28T14:45:50 | 2020-03-09T09:17:18 | Python | UTF-8 | Python | false | false | 1,562 | py | from django_swagger_utils.drf_server.decorators.handle_exceptions import handle_exceptions
from ib_common.interface_utils.interface_utils import InterfaceUtils
__author__ = 'ibhubs'
class IBRecommenderServiceInterface(InterfaceUtils):
def __init__(self, *args, **kwargs):
super(IBRecommenderServiceInterfa... | [
"[email protected]"
] | |
6211c93ef5e464339a3ece24a4c1a0c77ec991bc | 419873dd3b7412f704b1a7907b64a60b44cedf39 | /python/设计/157. 用 Read4 读取 N 个字符.py | 014893b2ac1f2b51dbcea4b77c5c3014bcf07fec | [] | no_license | Weless/leetcode | 0585c5bfa260713f44dabc51fa58ebf8a10e7814 | 0566622daa5849f7deb0cfdc6de2282fb3127f4c | refs/heads/master | 2021-11-13T07:59:20.299920 | 2021-10-25T02:09:53 | 2021-10-25T02:09:53 | 203,720,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | class Solution:
def read(self, buf, n):
count=0
while count<n:
temp = [''] * 4
cur = read4(temp)
if cur == 0 :
break
i = 0
while i < cur and count <n:
buf[count] = ... | [
"[email protected]"
] | |
99d0b1a49a4b2b619be7874cf19a6e505931f6d8 | 35b6013c1943f37d1428afd2663c8aba0a02628d | /appengine/flexible_python37_and_earlier/storage/noxfile_config.py | a97c6f1e260127c6b721ab0af921439d0e47fcf6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | 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,892 | py | # Copyright 2021 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, ... | [
"[email protected]"
] | |
764482f357be9bb1f771028e738e7a9b659a4c28 | f361126ee099303113b5ed3cc0e838bd01a9e41b | /Semana3/apoio_pense_python_01.py | 70ff1f0e90b4ccda9dbca5bab5a6967a4df4cce8 | [] | no_license | ju-c-lopes/Univesp_Algoritmos_II | e1ce5557d342ea75fe929cf7b207e633f9aa89cd | 5d4eec368be91c18f0ae5c17d342e6eb0f1c79be | refs/heads/master | 2023-06-05T11:09:25.415719 | 2021-07-07T22:26:53 | 2021-07-07T22:26:53 | 383,600,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | def list_sum(num_list):
the_sum = 0
for i in num_list:
the_sum = the_sum + i
return the_sum
print(f'Função {list_sum([1, 3, 5, 7, 9])}')
soma_1 = ((((1 + 3) + 5) + 7) + 9)
print(f'Soma 1 "((((1 + 3) + 5) + 7) + 9)" = {soma_1}')
soma_2 = (1 + (3 + (5 + (7 + 9))))
print(f'Soma 2 "(1 + (3 + (5 + ... | [
"[email protected]"
] | |
272fe74eaf3eb220407cf3f170f25e94cf1d1ea6 | 37908440ce625e4ad15c7fdae0f5c42a0f7f06cd | /exploits/efa_vbulletin_afd.py | 8b51cf55eb2f9dbda403b2f0c0a4eaa2fdf4901a | [] | no_license | sec-js/EaST | daff1c84e73e43825a87e3c2c1ec63d05d73141b | 4b1ab5333022bbd476e9a43f13c4a4b559488752 | refs/heads/master | 2023-01-07T13:14:28.480980 | 2022-09-18T18:21:19 | 2022-09-18T18:21:19 | 337,508,843 | 0 | 0 | null | 2022-12-21T23:26:22 | 2021-02-09T19:09:47 | null | UTF-8 | Python | false | false | 3,347 | py | #! /usr/bin/env python
# -*- coding: utf_8 -*-
# The exploit is a part of EAST Framework - use only under the license agreement specified in LICENSE.txt in your EAST Framework distribution
import sys
import os
import urllib2
from collections import OrderedDict
sys.path.append('./core')
from Sploit import Sp... | [
"[email protected]"
] | |
dd63d8ff2276e64b1806676cac723baf74f0ecb7 | 306afd5282d9c24d58297478a1728a006c29e57e | /lintcode/lintcode_0547_Intersection_of_Two_Arrays.py | ddcecd3100ee335a8a14d3b209fb6a19895c1786 | [] | no_license | ytatus94/Leetcode | d2c1fe3995c7a065139f772569485dc6184295a9 | 01ee75be4ec9bbb080f170cb747f3fc443eb4d55 | refs/heads/master | 2023-06-08T17:32:34.439601 | 2023-05-29T04:33:19 | 2023-05-29T04:33:19 | 171,921,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from typing import (
List,
)
class Solution:
"""
@param nums1: an integer array
@param nums2: an integer array
@return: an integer array
we will sort your return value in output
"""
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
# write your co... | [
"[email protected]"
] | |
1a770f79fd81c17269f4ed63636862fb554d30ca | 0f205fa73d927a15e27f065c6a198935f90d3ada | /src/pycones/proposals/migrations/0001_initial.py | 50994be6deb17fc6ba0539338afcce03c1f8e433 | [] | no_license | python-spain/web-pycones | b27bfb630cb6eafb8e1a5aadfa7b35368f81325a | 942516169738689f542b0856842372088f34fc2f | refs/heads/2020 | 2023-03-30T06:01:30.809205 | 2020-03-23T22:08:27 | 2020-03-23T22:08:27 | 80,434,627 | 3 | 4 | null | 2021-04-08T20:55:32 | 2017-01-30T15:36:49 | CSS | UTF-8 | Python | false | false | 4,690 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-31 12:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import markupfield.fields
import model_utils.fields
import taggit_autosuggest.managers
class Migratio... | [
"[email protected]"
] | |
643ff60586427861267b2eb9c8e880763094d83e | 4609ee89172d6f5f0b0bb59faf13f67f8a4bad28 | /gclient/mark_as_read.py | 21fb6040a8bf72d2e955bbfe3a497187132b5985 | [] | no_license | QuentinDuval/GmailClient | 82cf53f4d412280af608b9d90d50eded75b393e1 | c0a69fe75d22d1ddd932de16107d799473c68e6b | refs/heads/master | 2020-06-10T21:17:02.591884 | 2019-06-25T17:09:40 | 2019-06-25T17:09:40 | 193,750,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | from __future__ import print_function
from gclient.authentication import *
from googleapiclient.discovery import build
from typing import List
class Classification:
def __init__(self):
self.creds = get_credentials()
self.service = build('gmail', 'v1', credentials=self.creds)
def get_all_labe... | [
"[email protected]"
] | |
a57fa2b7364d63958571fb4e0853f4351b795d94 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Research/reinforcement-learning/ModelZoo_QMIX_TensorFlow/xt/benchmark/configs/default_xt.py | 3f596108539b438663d6aaf4a5988cd8513e8366 | [
"Apache-2.0"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 428 | py | """
default configure for benchmark function
"""
class XtBenchmarkConf(object):
"""benchmark conf, user also can re-set it"""
default_db_root = "/tmp/.xt_data/sqlite" # could set path by yourself
default_id = "xt_default_benchmark"
defalut_log_path = "/tmp/.xt_data/logs"
default_tb_path = "/tmp/.... | [
"[email protected]"
] | |
67ffa6937e05e7704b90376cbd3bb100ea85a51e | 901944f407f4a06a4c4027d6139ce21165976857 | /neural_net/Neural_Net_CC/main.py | 41bce1152dcd33c242b3bd32556f6a2f50ee5a48 | [] | no_license | chriscremer/Other_Code | a406da1d567d63bf6ef9fd5fbf0a8f177bc60b05 | 7b394fa87523803b3f4536b316df76cc44f8846e | refs/heads/master | 2021-01-17T02:34:56.215047 | 2020-05-26T13:59:05 | 2020-05-26T13:59:05 | 34,680,279 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py |
import numpy as np
import csv
import random
import pickle
from NN_cc import Network
from costs import *
from activations import *
from sklearn import preprocessing
if __name__ == "__main__":
####################################
#Load data
####################################
MY_DATASET = '/data1/morrislab/c... | [
"[email protected]"
] | |
3b9fe333e7d4065f42d1f796e206238245df2998 | 99d7a6448a15e7770e3b6f3859da043300097136 | /src/database/orms/api.py | e8c05566f0edc99644329043e8244fbdd6556648 | [] | no_license | softtrainee/arlab | 125c5943f83b37bc7431ae985ac7b936e08a8fe4 | b691b6be8214dcb56921c55daed4d009b0b62027 | refs/heads/master | 2020-12-31T07:54:48.447800 | 2013-05-06T02:49:12 | 2013-05-06T02:49:12 | 53,566,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #===============================================================================
# Copyright 2011 Jake Ross
#
# 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/license... | [
"jirhiker@localhost"
] | jirhiker@localhost |
149aed53ef04fe6d76ede1ef8340dd96c015d78c | e9cdf644f02c5f90e5af4ebcdfbd49e5739b379e | /lists/urls.py | fe220099563a5549be4bb60720a1f07720c68cff | [] | no_license | jaeyholic/airbnb-clone | 14e661012f3650a7c1486e43bbcb314eb0ac1ba1 | 68c1815e2b62bbf70dfe5a4a580d970015eaccc2 | refs/heads/master | 2022-12-13T08:11:04.759907 | 2020-02-12T02:22:28 | 2020-02-12T02:22:28 | 236,361,148 | 0 | 0 | null | 2022-12-10T17:29:25 | 2020-01-26T19:04:10 | Python | UTF-8 | Python | false | false | 143 | py | from django.urls import path
from . import views
app_name = "trips"
urlpatterns = [
path("", views.ListView.as_view(), name="trips"),
]
| [
"[email protected]"
] | |
3b2c8a39c47fb25067878ad79635a6e28b0ae266 | f6e03bc2747e8d1ca686b25e7f34a429886ba3f3 | /machinelearning/cbct/build_cbct_learner.py | 073853c6c8166f3e77a0a6c519c82cc5d099f2dc | [
"MIT"
] | permissive | randlet/pylinac | 2b3913d7d549b985a074ddcf291d018cfb1dd5d2 | df5dd913f429536180d998012b4f5cef8d443f88 | refs/heads/master | 2021-06-11T08:50:36.472577 | 2019-06-03T14:23:17 | 2019-06-03T14:23:17 | 151,657,740 | 1 | 0 | MIT | 2018-10-05T01:40:17 | 2018-10-05T01:40:16 | null | UTF-8 | Python | false | false | 276 | py | import os.path as osp
from machinelearning.tools import train
path = osp.join(osp.dirname(__file__), 'data', 'CatPhan 600')
parameters = {
'kernel': ['linear'],
'C': [1, 0.1, 5, 10, 50],
}
train(path, train_size=0.95, parameters=parameters, clf_name='catphan600')
| [
"[email protected]"
] | |
6a2be014eb9649c77461f9d7117a20e1f10fb3d6 | 0502750293383c6dae2aaf4013717d9c83f52c62 | /exercism/python/archive/circular-buffer/circular_buffer.py | c143a3cdcdf9880436d13286be272c674f6461d5 | [] | no_license | sebito91/challenges | fcfb680e7fc1abfa9fea9cd5f108c42795da4679 | b4f2d3b7f8b7c78f02b67d67d4bcb7fad2b7e284 | refs/heads/master | 2023-07-08T15:43:42.850679 | 2023-06-26T19:38:51 | 2023-06-26T19:38:51 | 117,160,720 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | """ Mdolue to implement a circular-buffer """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
class BufferFullException(Exception):
""" define execption when buffer is full """
def __init__(self, message=None):
if not message:
message = "buffer is full"
super(Buffer... | [
"[email protected]"
] | |
d6c6f07c20d59e2954fa76d05a86559f3dc82759 | a31c54cb9b27e315567ed865e07cb720fc1e5c8e | /revenge/techniques/native_timeless_tracer/timeless_trace_item.py | f94c99a65e749528e119e21889e9b5142e3c5bcd | [] | no_license | bannsec/revenge | 212bc15e09f7d864c837a1829b3dc96410e369d3 | 2073b8fad76ff2ba21a5114be54e959297aa0cf9 | refs/heads/master | 2021-06-25T12:26:02.609076 | 2020-05-29T15:46:45 | 2020-05-29T15:46:45 | 188,461,358 | 51 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py |
import logging
logger = logging.getLogger(__name__)
from ... import common
class NativeTimelessTraceItem(object):
def __init__(self, process, context=None, depth=None, previous=None):
"""Class describing a single step of NativeTimelessTracing
Args:
process (revenge.Process): Pro... | [
"[email protected]"
] | |
fee4d2124eac9fad1e5d0bc58e3c6649164ab65c | e245035c7bff120d5f7a8a26412f14d11a77a46f | /huggingface_transformer_src/src/transformers/commands/convert.py | 2ca5a57ca36d0a5c150959f2f1b7daaec455c17a | [
"Apache-2.0"
] | permissive | fuxuelinwudi/R-Drop | 82f27e623f319065b75b9e2b7ebe285c2aa0582b | 88bba6386f2edf7aa45ae6795103dbf4be085e99 | refs/heads/main | 2023-06-06T14:28:55.773778 | 2021-06-27T05:39:27 | 2021-06-27T05:39:27 | 381,313,887 | 2 | 0 | MIT | 2021-06-29T09:43:58 | 2021-06-29T09:43:58 | null | UTF-8 | Python | false | false | 7,555 | py | # Copyright 2020 The HuggingFace Team. 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 applicabl... | [
"[email protected]"
] | |
aa5c4a98512495974fb7608726a4f591fddd94e6 | 8e39a4f4ae1e8e88d3b2d731059689ad5b201a56 | /dev-util/itstool/itstool-2.0.2.py | 98413b632277dc442d4cbfa589f28591e237e38c | [] | no_license | wdysln/new | d5f5193f81a1827769085932ab7327bb10ef648e | b643824b26148e71859a1afe4518fe05a79d333c | refs/heads/master | 2020-05-31T00:12:05.114056 | 2016-01-04T11:38:40 | 2016-01-04T11:38:40 | 37,287,357 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | metadata = """
summary @ XML to PO and back again
homepage @ http://itstool.org/
license @ GPL3
src_url @ http://files.itstool.org/$name/$fullname.tar.bz2
arch @ ~x86_64
"""
depends = """
build @ dev-libs/libxml2
"""
| [
"[email protected]"
] | |
9bb91005f84d4d67416db899318bf4ddb657920e | 463febc26f9f6e09d51206c87c7450476b1dfa7c | /0x0C-nqueens/0-nqueens.py | b48a68afd83f68b7c5b517b2fcb380f754708017 | [] | no_license | Nahi-Terefe/holbertonschool-interview | 77a5fd0e668cabaa2f986ded265996061fcbc9f8 | e4842430f346d5b18e407ac468ba225aaeaae9d8 | refs/heads/master | 2023-02-17T13:31:31.389980 | 2021-01-12T00:24:42 | 2021-01-12T00:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | #!/usr/bin/python3
""" Solving n queens """
import sys
# error handling for argv[1]
if __name__ == "__main__":
if len(sys.argv) == 1 or len(sys.argv) > 2:
print("Usage: nqueens N")
sys.exit(1)
N = sys.argv[1]
try:
N_int = int(N)
except ValueError:
print("N must be a ... | [
"[email protected]"
] | |
e5864a2b83c01f7034aa3be5885b5d669876f36d | 2536dc92dff2eea7ebe7dcd3d10a6bc89ac78178 | /venv/Lib/site-packages/crypto/SelfTest/Cipher/test_DES.py | 62fcc20ffbee6a7ab5b8dad8638d507e6f5d20a8 | [] | no_license | AlamParihar/Cryptography-Challenges | 1eb2028b942d5a04a9aa27286e8d61b875d96021 | 05631e31285549b8c65c54c9397e09fb9bd22561 | refs/heads/master | 2020-03-27T23:22:01.674910 | 2018-09-24T04:50:26 | 2018-09-24T04:50:26 | 147,312,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,904 | py | # -*- coding: utf-8 -*-
#
# SelfTest/Cipher/DES.py: Self-test for the (Single) DES cipher
#
# Written in 2008 by Dwayne C. Litzenberger <[email protected]>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedicat... | [
"[email protected]"
] | |
c99cf3261ef3264d9556a7b23a4752ba3d1719ea | 95c9cfb57346a4ff45b05847c2fd740cdd60fb79 | /examples/2-hydrotrend/run_hydrotrend.py | fcff63ddf946fbbaae6da021a5b914505fc530ec | [
"MIT"
] | permissive | mdpiper/dakota-tutorial | 1234812eaf00e97999abcdccc0a3027ed2bb1d92 | de5177bc741a0475266011de8363ff1ad4ce5ff0 | refs/heads/master | 2021-01-17T22:07:44.576114 | 2015-05-25T18:54:24 | 2015-05-25T18:54:24 | 35,640,799 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,479 | py | #! /usr/bin/env python
# Brokers communication between HydroTrend and Dakota through files.
# Mark Piper ([email protected])
import sys
import os
import re
import shutil
from subprocess import call
import numpy as np
def read(output_file):
"""Reads a column of text containing HydroTrend output."""
retu... | [
"[email protected]"
] | |
2afb87b876777eba3345babac92efef1ee1fa736 | 0d0afd1dce972b4748ce8faccd992c019794ad9e | /integra/exata_personalizacao/wizard/projeto_relatorio.py | 4618ff3fdae885ab494f0eb9f31e24029bb9adc2 | [] | no_license | danimaribeiro/odoo-erp | e2ca2cfe3629fbedf413e85f7c3c0453fd16941e | d12577bf7f5266b571cbedeb930720d653320e96 | refs/heads/master | 2020-01-23T21:32:16.149716 | 2016-11-05T15:35:40 | 2016-11-05T15:35:40 | 67,892,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | # -*- encoding: utf-8 -*-
import os
from osv import orm, fields, osv
import base64
from finan.wizard.finan_relatorio import Report
from pybrasil.data import parse_datetime, mes_passado, primeiro_dia_mes, ultimo_dia_mes, hoje, agora, formata_data
from finan.wizard.relatorio import *
from datetime import date
import csv... | [
"[email protected]"
] | |
07e7569c8db903217b70a5cd79e4b4672e203cf9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03636/s795119653.py | d8a4b73447a786ef0435aa2faeea73c314446486 | [] | 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 | 114 | py | S = str(input())
l = int(len(S))
#print(l)
#print(S[0])
s1 = S[0]
s2 = S[-1]
L = int(l-2)
print(s1 + str(L) + s2) | [
"[email protected]"
] | |
bf896d27d0957d9c1b5952ca011f6569797647a3 | 7c1c1f156299d8da8135ee41d8076e9ea38dce6a | /backend/manage.py | 62f3a31db53e84f0bd4e130f6618874c6b84ec9c | [] | no_license | crowdbotics-apps/spell-15623 | 479832f65626f5963ec837285c13ba2acc85e64d | 3df3d7fbf2048b8cd0b4eae4cd0b89c6f72bc0c2 | refs/heads/master | 2023-02-06T06:32:29.867764 | 2020-04-09T01:30:03 | 2020-04-09T01:30:03 | 254,241,135 | 0 | 0 | null | 2023-01-24T03:34:31 | 2020-04-09T01:29:09 | JavaScript | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'spell_15623.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"[email protected]"
] | |
305da2da6f4b22e89e4160f93e3e470090d20926 | d78dfc5089717fc242bbd7097f507d811abb4260 | /USA/script.icechannel.Usefile.settings/default.py | bdf16309ca6cef9b0506ee0fee1844dc07dd00bb | [] | no_license | tustxk/AddOnRepo | 995b980a9ec737e2c25bed423fc83f710c697e40 | 6b86a06cb37e6e10b4119584dd7311ebc2318e54 | refs/heads/master | 2022-10-08T21:34:34.632346 | 2016-10-28T09:48:01 | 2016-10-28T09:48:01 | 70,684,775 | 1 | 1 | null | 2022-10-01T16:27:13 | 2016-10-12T09:31:16 | Python | UTF-8 | Python | false | false | 163 | py | addon_id="script.icechannel.Usefile.settings"
addon_name="iStream - Usefile - Settings"
import xbmcaddon
addon = xbmcaddon.Addon(id=addon_id)
addon.openSettings()
| [
"[email protected]"
] | |
31d493116b2e621b5d93a3977480ec7ae3fd48cf | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2157/60749/252819.py | e40d7365ee8419681863874c71cda7f98525182e | [] | 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 | 510 | py | str1=input()
def RomaToNum(str1):
dic={'I':1, 'V':5, 'X':10, 'L':50,'C':100,'D':500,'M':1000}
res=[]
for h in str1:
res.append(dic[h])
max1=0
for t in res:
max1=max(t,max1)
max_index=res.index(max1)
result=0
for h in range(0,max_index):
result-=res[h]
for h in... | [
"[email protected]"
] | |
98977ef8cf14cb3eacaaa82bf32eb3c854d0ca8d | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /CFD_from_scratch_Lignell/cfd.py | 759f232c789c441088b4d6a0d5ae6faa654aacdf | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 10,504 | py | import numpy as np
from scipy.sparse import diags
from scipy.sparse.linalg import spsolve
import matplotlib.pyplot as plt
IJ = np.ix_
def set_user_specifications():
global nx, ny, Lx, Ly, ν, ubc_t, ubc_b, vbc_r, vbc_l, n_τ_run, cfl
nx = 40 # number of grid points in x direction (P-grid)
ny =... | [
"[email protected]"
] | |
5d78ddfa44406d1b5fea5e775662f57a46d90688 | 7b3b859dd633eb2240d987b37e487ea8388e2f8d | /empirical/Chen2010/Chen2010.py | 0fe08644c1f533bdae0bdb3a81b33691ee231b19 | [] | no_license | yszhuang/assetPricing2 | 96956638f6c26e4e7d33e0abffe5c5c14460000a | 10af01a66bcd13cb516920e9cb1b46d8cfa6b598 | refs/heads/master | 2022-01-13T02:00:09.070100 | 2018-09-01T02:28:21 | 2018-09-01T02:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,023 | py | # -*-coding: utf-8 -*-
# Python 3.6
# Author:Zhang Haitao
# Email:[email protected]
# TIME:2018-05-09 16:23
# NAME:assetPricing2-Chen2010.py
from core.constructFactor import single_sorting_factor
from core.myff5 import regression_details_5x5, ts_panel, model_performance
from data.dataApi import Database, Benchmark
f... | [
"[email protected]"
] | |
87ffa029204a02b6b24eb241d0b349c255608b57 | ccfc8b4b6b7a48e387c3ecd56ca110eb9f174367 | /python/work/5.0-stable/project/videoclient/api/persons/photos/urls.py | 75d2aa555f21b805075d975db736c3fe7ef27c5c | [] | no_license | denis-pinaev/tmp_trash | c4d6c4a4cefaacc8af5e93d1175f0a56e3d8e656 | 7642c0ef0cc45b978e579023406abfbbb656896d | refs/heads/master | 2016-08-11T12:03:43.376455 | 2016-03-04T12:53:35 | 2016-03-04T12:53:35 | 52,145,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.conf.urls.defaults import patterns, include, url
import views
urlpatterns = patterns('',
url(r'^list/*$', views.list, {}, 'api_list_photos'),
url(r'^left/*$', views.left, {}, 'api_left_photos'),
) | [
"[email protected]"
] | |
42ea6542998ab172e883faf783222a5f90e1c0ad | ebcb092d796366d36a1afe9c381cd9e4c31026f1 | /python_markup/handlers.py | b4d1acfc276ad3b816d1d590b2c12416311792c6 | [
"MIT"
] | permissive | MiracleWong/PythonBasic | d2e0e56c88781ebf9c6870f185ceaba6ffaa21ca | cb8ec59dc646842b41966ea4ea4b1ee66a342eee | refs/heads/master | 2021-06-06T22:26:08.780210 | 2020-01-08T14:48:54 | 2020-01-08T14:48:54 | 96,536,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
# filename: handlers.py
# 为文本块打上合适的 HTML 标记
class Handler:
"""
处理程序父类
"""
def callback(self, prefix, name, *args):
method = getattr(self, prefix + name, None)
if callable(method): return method(*args)
def start(self, name):
s... | [
"[email protected]"
] | |
6344174edb82b52826ffe9156911e57162cf52b4 | c251223c9829a51fac8ae4d651dba0068da68f43 | /language_converter/main.py | 9d08979ae219e1e14aa3fa15aab2a9150fa319d7 | [] | no_license | Ajax12345/Web-Apps | b1c10e73f2c403cc900a0eddccb1d95b5f71e8aa | 105dfef93aa975cb95fa0216095939d33c2eb19a | refs/heads/master | 2021-01-23T17:34:05.962959 | 2017-09-18T23:44:37 | 2017-09-18T23:44:37 | 102,767,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from bottle import Bottle, template, request
app = Bottle()
users = [{"ajax1234":"zorro"}]
username = None
password = None
@app.route('/')
def index():
data = {"to_display":"HI, how are you"}
return template("simple.html", to_display = "HI, how are you?")
@app.route('/run_code', method = "POST")
def get_code()... | [
"[email protected]"
] | |
11372e1174c14bf0f2fcd7bcb02fba3c76370519 | 8ce87aa7b8230a3fd474501c35e23c564f2780d0 | /organizacion/migrations/0003_auto_20150725_0630.py | f233fa0171a7b7febfa5efddf0ad37f6e59aded2 | [] | no_license | ErickMurillo/canicacao | 46e7a485257ab95902fb427d4cb0b5e72fd14ab5 | d4a79260c87d1ae1cdd8ecb8bc4be82e9ddb0cc7 | refs/heads/master | 2020-12-29T02:24:36.519281 | 2018-03-16T15:38:26 | 2018-03-16T15:38:26 | 35,285,596 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('organizacion', '0002_auto_20150723_2221'),
]
operations = [
migrations.AddField(
model_name='comercializacion_or... | [
"[email protected]"
] | |
c54780fdaada792761b06a65b636b22338aef471 | b18d63d01c4442d746d5b4bd626d439ec75d273c | /arithmetic_operators.py | f9fb8cefa4a957d8b0d1d4b487712c27165c5115 | [] | no_license | crishonsou/hackerrank_solutions_submissions | 2f080f15eb0557ec633be265f065b991c2b5c456 | ccd5525cf6e96c119df13945ff28d3473a8c8c1c | refs/heads/main | 2022-12-26T03:07:24.759426 | 2020-10-06T15:13:17 | 2020-10-06T15:13:17 | 301,766,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | a = int(input())
b = int(input())
print(a // b)
print(a / b)
| [
"[email protected]"
] | |
b8a5ebd8681495fd6c38f0e14d85a0f3171860dd | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/printing/DEPS | bc43b418c77aafd04e87cead8cd587db70d587dc | [
"MIT",
"BSD-3-Clause"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 262 | include_rules = [
"+jni",
"+skia/ext",
"+third_party/icu/source/common/unicode",
"+third_party/icu/source/i18n/unicode",
"+third_party/skia",
"+ui/aura",
"+ui/base/resource",
"+ui/base/text",
"+ui/gfx",
"+ui/shell_dialogs",
"+win8/util",
]
| [
"[email protected]"
] | ||
0d8a223b3f1590a1b1e4491f34cf5321e061913b | 07eb17b45ce5414282a2464c69f50197968c312d | /stusched/app/urls.py | ffdfa5ca2f2ce34e32c9ac872ee1c74578091181 | [] | no_license | cmontemuino/dbschools | e15d4d03a3d2f0e1ee1fa47b8ce9748b7f09cdbc | d3ee1fdc5c36274e5d5f7834ca1110b941d097b9 | refs/heads/master | 2021-01-16T21:16:56.427183 | 2015-08-02T17:09:43 | 2015-08-02T17:09:43 | 6,158,940 | 0 | 0 | null | 2015-10-15T12:45:34 | 2012-10-10T14:49:16 | HTML | UTF-8 | Python | false | false | 783 | py | """stusched URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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-ba... | [
"[email protected]"
] | |
aaf20c2fe8ce1671ee96f32aad3cbdfa2ec5fc4a | 5f5c6809e9e68127262c843602185f3d6d6d556b | /thejoker/prior.py | ce3c89878d8784fd7d3f2c94b9ce086aeb86412f | [
"MIT"
] | permissive | minaskar/thejoker | e195bd361d4eadf051fb29380d110d214ea65a1b | b7ba1d094ce3d4d61c1db80da37981327f280d34 | refs/heads/master | 2023-03-16T02:55:04.644778 | 2020-06-15T19:39:29 | 2020-06-15T19:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,046 | py | # Third-party
import astropy.units as u
import numpy as np
from theano.gof import MissingInputError
# Project
from .logging import logger
from .samples import JokerSamples
from .prior_helpers import (get_nonlinear_equiv_units,
get_linear_equiv_units,
validate_pol... | [
"[email protected]"
] | |
584809ed53ad5619053d2185651806cf8714ed04 | 2195bec4cc44f5eb552f46fe62135d9f22e6dc03 | /apps/trade/migrations/0008_auto_20190122_1826.py | 25d6418999665e72e1ecc7a24ee97f90647b4dac | [] | no_license | DzrJob/gulishop | 5c802d1bba0ad6ec23aa4c29a8ac6abcc085497b | 5620f09cd6d2a99e7643d5ec0b6bc9e1203be6fe | refs/heads/master | 2020-04-16T17:58:17.404170 | 2019-02-07T07:17:59 | 2019-02-07T07:17:59 | 165,797,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2019-01-22 18:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trade', '0007_auto_20190122_1812'),
]
operations = [
migrations.AlterField(... | [
"[email protected]"
] | |
c7c6abe6ddd69173a76601375d5aa36b3acc06e4 | 0627cc5c3adb47fd4e780b31a76d17839ad384ec | /tensorflow_probability/python/layers/__init__.py | 55a5079eaf94190c21b271793559f7ec7f4b90b3 | [
"Apache-2.0"
] | permissive | ml-lab/probability | 7e57377ae15bcbb9a7878e23d53f4505823b9117 | 09c1e495c929f5bc461a4edbc7710ab81b5b4933 | refs/heads/master | 2021-09-09T04:40:10.045594 | 2018-03-13T23:26:59 | 2018-03-13T23:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,304 | 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... | [
"[email protected]"
] | |
a771a00c3fd049c6dc8482812b8ea1fb06246838 | 1c72aa6d53c886d8fb8ae41a3e9b9c6c4dd9dc6f | /Semester 1/Project submissions/Lewis Clarke/Lewis_Clarke_Python_Coding-2016-04-18/Python Coding/Week 6/position_in_alphabet.py | be2781345f12dca69e6c90d6d0f722351786bf62 | [] | no_license | codebubb/python_course | 74761ce3189d67e3aff964c056aeab27d4e94d4a | 4a6ed4a64e6a726d886add8364c65956d5053fc2 | refs/heads/master | 2021-01-11T03:06:50.519208 | 2016-07-29T10:47:12 | 2016-10-17T10:42:29 | 71,114,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | key = 'abcdefghijklmnopqrstuvwxyz'
def alpha():
word = raw_input('Enter a letter to find its numerical value: ')
if word not in key:
word = raw_input('You did not enter a letter.\nEnter a letter to find its numerical value: ')
for i in word:
n = 1
x = (key.index(i) + n)
... | [
"[email protected]"
] | |
08366dcc624471b8269aabe510ee9f4625242ad9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03012/s966640357.py | f6c0b5afb072f834dc2ec2f8bf626c997ed95245 | [] | 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 | 185 | py | N = int(input())
W = input().split()
W = [int(w) for w in W]
S = sum(W)
mini = pow(10, 10)
for i in range(N):
mi = abs(S - 2 * sum(W[0:i]))
if mi < mini:
mini = mi
print(mini) | [
"[email protected]"
] | |
dccbf0aa8ca5790f9398e781f70be9b622d73121 | 620b58e17d4851e43bd1270cabc8c26f43629a7b | /lib/candy_editor/core/project.py | 69425c8ff5a3552a6ad7ce5b1f6313225e568819 | [
"MIT"
] | permissive | lihaochen910/Candy | 78b9862cf06748b365b6fb35ac23f0e7a00ab558 | d12cb964768459c22f30c22531d3e1734901e814 | refs/heads/master | 2022-11-25T19:12:34.533828 | 2021-11-07T16:11:07 | 2021-11-07T16:11:07 | 141,284,960 | 1 | 1 | NOASSERTION | 2022-11-22T09:20:08 | 2018-07-17T12:12:02 | Lua | UTF-8 | Python | false | false | 13,353 | py | import logging
import sys
import os
import os.path
import re
import shutil
import hashlib
import time
from . import signals
from . import jsonHelper
##----------------------------------------------------------------##
from .cache import CacheManager
from .asset import AssetLibrary
##-------------------------------... | [
"[email protected]"
] | |
a915f7f5aac8290e569c4536650cbcb728edb52d | 5d1c178763908decbcd2d63481e3b240e4ab3763 | /build/iiwa_moveit/catkin_generated/pkg.installspace.context.pc.py | 9c57060b9bae0749f8b4fbdf4862ee4a39946335 | [] | no_license | ichbindunst/ros3djs_tutorial | 0f27127e00574411babc8127db5f57c542045db8 | f840e93445ffbc7228956ce5db1fbe706224dc59 | refs/heads/master | 2023-03-31T19:51:29.409983 | 2021-04-01T17:54:43 | 2021-04-01T17:54:43 | 353,783,567 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "iiwa_moveit"
PROJECT_SPACE_DIR = "/ho... | [
"[email protected]"
] | |
65ad7779c0771342e26563f4829f19544fe0d22a | b27dba9265e3fc46453293af33e215784cc60d15 | /pype/plugins/standalonepublisher/publish/extract_review.py | fbc14785a4091115ef61a811360275e740e545fd | [
"MIT"
] | permissive | tws0002/pype | f8f655f51282128b7ac42df77fca58957f416dcd | 80b1aad9990f6c7efabf0430a3da6633054bf4a8 | refs/heads/develop | 2020-04-29T21:51:22.583645 | 2019-12-09T04:23:17 | 2019-12-09T04:23:17 | 176,426,875 | 0 | 0 | MIT | 2019-12-09T04:23:18 | 2019-03-19T04:56:38 | Python | UTF-8 | Python | false | false | 7,630 | py | import os
import tempfile
import pyblish.api
from pype.vendor import clique
import pype.api
class ExtractReviewSP(pyblish.api.InstancePlugin):
"""Extracting Review mov file for Ftrack
Compulsory attribute of representation is tags list with "review",
otherwise the representation is ignored.
All new... | [
"[email protected]"
] | |
819ff6ab0594922528da4d79e8be19d32e18fad2 | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/test/modules/test_contiguous.py | 4d589b551f159a895bb5b71bb58e4fb4ae3bb792 | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 4,922 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"[email protected]"
] | |
6773d987b4e6d1240b1d25b96c6c347757f0c940 | 5af277b5819d74e61374d1d78c303ac93c831cf5 | /axial/worker_util.py | 41709759a5ceb21a7f25e4f616ed343461d35111 | [
"Apache-2.0"
] | permissive | Ayoob7/google-research | a2d215afb31513bd59bc989e09f54667fe45704e | 727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7 | refs/heads/master | 2022-11-11T03:10:53.216693 | 2020-06-26T17:13:45 | 2020-06-26T17:13:45 | 275,205,856 | 2 | 0 | Apache-2.0 | 2020-06-26T16:58:19 | 2020-06-26T16:58:18 | null | UTF-8 | Python | false | false | 8,610 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"[email protected]"
] | |
acf80746855eaad75fcbdc580daa49d5bee0bf95 | 20176bf4fbd8aec139c7b5a27f2c2e155e173e6e | /data/all-pratic/oinam_singh/myprogram/filewordcnt2.py | 993801d7b654e4f8041739bbfb5d975e82b48048 | [] | no_license | githubjyotiranjan/pytraining | 4ac4a1f83cc4270e2939d9d32c705019c5bc61c5 | 8b50c4ab7848bd4cbfdfbc06489768d577289c66 | refs/heads/master | 2020-03-19T06:22:20.793296 | 2018-06-15T20:08:11 | 2018-06-15T20:08:11 | 136,013,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | import operator
from collections import OrderedDict
from collections import defaultdict
mydict = defaultdict(int)
with open('tmpread.txt') as file:
for line in file:
line = line.strip()
for w in line.split():
mydict[w] += 1
#sorted_x = sorted(dics.items(), key=operator.itemgetter(1))
pr... | [
"[email protected]"
] | |
74f3ef6c3e844f6f8fa1234a783e57b16eddff82 | 8b57c6609e4bf3e6f5e730b7a4a996ad6b7023f0 | /persistconn/packet.py | 79a3d92edb26b212d7c04844f89ece59d3e93669 | [] | no_license | bullll/splunk | 862d9595ad28adf0e12afa92a18e2c96308b19fe | 7cf8a158bc8e1cecef374dad9165d44ccb00c6e0 | refs/heads/master | 2022-04-20T11:48:50.573979 | 2020-04-23T18:12:58 | 2020-04-23T18:12:58 | 258,293,313 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,103 | py | from builtins import range
from builtins import object
import sys, os
import json
import splunk.util
class PersistentServerConnectionProtocolException(Exception):
"""
Exception thrown when a recieved packet can't be interpreted
"""
pass
class PersistentServerConnectionRequestPacket(object):
"""
... | [
"[email protected]"
] | |
f729f18c246e778316b422232434075c31dd032f | d5f03681070efcf7be19f7b63c135479950948f3 | /scss/errors.py | 65f5350c394ea93656b0b27bfb8316ffb4b2fff6 | [
"MIT"
] | permissive | doug-fish/pyScss | 6f642634234960dbe03a6cca1db97135082c567b | f63a6964df84c193478a7cce14013a5f53f6aee7 | refs/heads/master | 2020-12-11T05:38:41.234931 | 2014-09-10T05:02:35 | 2014-09-10T05:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,537 | py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import six
import sys
import traceback
BROWSER_ERROR_TEMPLATE = """\
body:before {{
content: {0};
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
font-size: ... | [
"[email protected]"
] | |
55aa9b8bc82e37c05b6799ae8227f00cbc43dbd1 | 5608c2f74f8f929a461100c54aa02184c3c0a6f2 | /daemon/v2.0/ref/md01.py | 97b2022ff84f64907275b7deeaeebbf0df09b6a8 | [
"MIT"
] | permissive | vt-gs/tracking | c35c84cbb12d831a528f8cc5fd395fa05a3abf8c | 4588b840e69c1042d8e3560da44012101389e271 | refs/heads/master | 2021-01-02T22:42:27.694620 | 2019-06-23T16:52:40 | 2019-06-23T16:52:40 | 99,374,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,433 | py | #!/usr/bin/env python
#########################################
# Title: MD01 Controller Class #
# Project: VTGS Tracking Daemon #
# Version: 2.0 #
# Date: May 27, 2016 #
# Author: Zach Leffke, KJ4QLP #
# Comment: Expanded version of the MD-01#
# ... | [
"[email protected]"
] | |
828624b6a0bd565af050bba8f33e9056adbcecb7 | 7ac271f357f4c8f0c23c697b11966259f836880f | /app/web/api/dvdrental/actors/views.py | c01616606759e970c7df14c53e3b08550a941cdf | [] | no_license | cheng93/PythonWeb | 74a58eadee4ee7d2872a582a907bbf47630df371 | d5ced8dee1d5ba31778125c5e67169c92acf26a0 | refs/heads/develop | 2021-01-19T23:59:11.315871 | 2018-03-04T19:26:18 | 2018-03-04T19:26:18 | 89,063,916 | 0 | 0 | null | 2018-03-04T19:26:19 | 2017-04-22T11:09:14 | Python | UTF-8 | Python | false | false | 865 | py | from pyramid.view import view_defaults, view_config
@view_defaults(renderer='json', request_method='GET')
class ActorsView:
def __init__(self, request):
self.request = request
@view_config(route_name='get_actors')
def get_actors(self):
actors = self.request.actor_command.get_actors()
... | [
"[email protected]"
] | |
dc07e10ef638298141ad655475063b1d466b7bd6 | adbf09a31415e6cf692ff349bd908ea25ded42a8 | /challenges/custm_error.py | 6588a2c0db988b4e09b75f6b79a1402a21026bb8 | [] | no_license | cmulliss/gui_python | 53a569f301cc82b58880c3c0b2b415fad1ecc3f8 | 6c83d8c2e834464b99024ffd8cf46ac4e734e7a4 | refs/heads/main | 2023-08-12T22:33:01.596005 | 2021-10-11T12:35:41 | 2021-10-11T12:35:41 | 408,176,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | class TooManyPagesReadError(ValueError):
pass
class Book:
def __init__(self, name: str, page_count: int):
self.name = name
self.page_count = page_count
self.pages_read = 0
def __repr__(self):
return (
f"<Book {self.name}, read {self.pages_read} pages out of {se... | [
"[email protected]"
] | |
0231d5a6b9754525fcc80fa184b2442b8c4d82d2 | b449980703b2234e5610d20d22d54cb811722b68 | /netdisco/discoverables/nanoleaf_aurora.py | 135d785a425446491b59ae18c63cdcf06bf42dd8 | [
"Apache-2.0"
] | permissive | bdraco/netdisco | 81209c0ad21b2ca124b91fa67799034c337d62a8 | cf547a8bac673f5aa92cde98824929fc9a31f05b | refs/heads/master | 2023-06-17T09:40:18.001345 | 2020-06-17T21:23:05 | 2020-06-17T21:23:05 | 275,917,535 | 0 | 0 | NOASSERTION | 2020-06-29T20:20:12 | 2020-06-29T20:20:12 | null | UTF-8 | Python | false | false | 278 | py | """Discover Nanoleaf Aurora devices."""
from . import MDNSDiscoverable
class Discoverable(MDNSDiscoverable):
"""Add support for discovering Nanoleaf Aurora devices."""
def __init__(self, nd):
super(Discoverable, self).__init__(nd, '_nanoleafapi._tcp.local.')
| [
"[email protected]"
] | |
25164cbffde1974a5c531b3dfc519310cb45c313 | 334d0a4652c44d0c313e11b6dcf8fb89829c6dbe | /checkov/terraform/checks/resource/kubernetes/ImageDigest.py | 92de4c65bc61d761b0e9ee2ee9f999bd465db7c8 | [
"Apache-2.0"
] | permissive | schosterbarak/checkov | 4131e03b88ae91d82b2fa211f17e370a6f881157 | ea6d697de4de2083c8f6a7aa9ceceffd6b621b58 | refs/heads/master | 2022-05-22T18:12:40.994315 | 2022-04-28T07:44:05 | 2022-04-28T07:59:17 | 233,451,426 | 0 | 0 | Apache-2.0 | 2020-03-23T12:12:23 | 2020-01-12T20:07:15 | Python | UTF-8 | Python | false | false | 1,563 | py |
from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
class ImageDigest(BaseResourceCheck):
def __init__(self):
"""
The image specification should use a digest instead of a tag to make sure the co... | [
"[email protected]"
] | |
4485c5cf11f59565b40a8d538af812f0554de596 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03089/s906755257.py | 498b64bddcd6ad6dac9dc95de7a88f6376c3de4f | [] | 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 | 293 | py | N = int(input())
B = list(map(int, input().split()))
ans = []
for i in range(N):
last = 0
for j, b in enumerate(B, 1):
if b == j:
last = b
if last == 0:
print(-1)
exit()
else:
ans.append(B.pop(last - 1))
[print(a) for a in ans[::-1]] | [
"[email protected]"
] | |
f9ed940a47fbdbac4844f4fe5e0289a9e96b9a9d | 7012c3609f4aa5712f17bfee199d856d36a968d2 | /Python프로그래밍및실습/ch2-data type, if statement/lab2-1.py | eba2e37ec30a334cd15096c6e63ae65ba045c421 | [] | no_license | rrabit42/Python-Programming | 1688c2b21ab19f09d2491152ae2dd0ddb1910288 | 551efb6fe4ee3b92c5cb2ef61d2198d55966471a | refs/heads/master | 2021-07-23T01:27:42.657069 | 2020-07-28T17:23:40 | 2020-07-28T17:23:40 | 200,571,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | # 문자로 저장된 숫자들의 합 구하기
x = input("숫자1 : ")
y = input("숫자2 : ")
z = input("숫자3 : ")
sum1 = int(x) + int(y) + int(z)
print(sum1)
| [
"[email protected]"
] | |
df774daf61ba15eb90766bfcf097cd921934fd35 | bdcf56bc8fdf4255b34038bf0280f21917f185a7 | /005_landmarks_retrieval/test_data_generator.py | e8957bda42baa14c938c1e8339c6d7db082c7560 | [] | no_license | Apollo1840/United_Kagglers | 8dc05287f893a33f774efeaf0cd2ad436122dc69 | 80147867a6011da5a36e78473781481c805619ea | refs/heads/master | 2020-04-10T18:51:29.223449 | 2019-04-13T08:32:25 | 2019-04-13T08:32:25 | 161,214,800 | 1 | 0 | null | 2019-04-06T09:16:40 | 2018-12-10T17:53:31 | Python | UTF-8 | Python | false | false | 474 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 6 08:30:38 2019
@author: zouco
"""
from data_generator import triplet_generation
from data_generator import DataGenerator
tg = triplet_generation()
ID = "00cfd9bbf55a241e"
img3 = tg.get_one_input_tensor(ID)
print(len(img3))
print(img3[0].shape)
from tools.plot_image... | [
"[email protected]"
] | |
0b8635d05f232b3683ce31ae12276f9c46ef05a3 | 35b58dedc97622b1973456d907ede6ab86c0d966 | /day022/day22.py | 8f8b5cb73e108c01ced7d4dee535666b5e32f737 | [] | no_license | GithubLucasSong/PythonProject | 7bb2bcc8af2de725b2ed9cc5bfedfd64a9a56635 | e3602b4cb8af9391c6dbeaebb845829ffb7ab15f | refs/heads/master | 2022-11-23T05:32:44.622532 | 2020-07-24T08:27:12 | 2020-07-24T08:27:12 | 282,165,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | # from socket import *
# s = socket(AF_INET,SOCK_DGRAM) #创建套接字
# addr = ('192.168.14.25',8080) #准备接收方地址
# data = input('请输入:')
# s.sendto(data.encode(),addr)
# #发送数据时,python3需要将字符串装换成byte
# #encode('utf-8') 用utf-8对数据进行编码,获得bytes类型对象
# #decode()反过来
# s.close()
# from socket import *
# import time
#
# s = socket(AF_INE... | [
"[email protected]"
] | |
1eb767cf72d777c0f346fc7cee95917651a364a3 | b736c527824198e1b07c821b685ca679cede79dd | /classes/FileSystemTools.py | 6485992423ec7a372ece0d2d6edc96202280c550 | [] | no_license | LaoKpa/neat-3 | c276b58ce2dd77ea32b701820adc29b99f508ec7 | b2b89023db5822d498b3edc84f8b84880dc6e6b6 | refs/heads/master | 2022-03-19T08:57:40.857925 | 2019-11-16T05:29:17 | 2019-11-16T05:29:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,461 | py | from datetime import datetime
from os import mkdir
import os
from copy import copy,deepcopy
import time
import glob
import subprocess
def getDateString():
return(datetime.now().strftime('%d-%m-%Y_%H-%M-%S'))
def makeDir(dir_name):
# Even if this is in a library dir, it should make the dir
# in the script that cal... | [
"[email protected]"
] | |
0895c3c506eb9016c11feb353775a2cd9aed3f62 | f4b3be2a3955c26b4e05ab162fa4909cf9a14f11 | /CRB/validators/subsystems/csvwriters/pivalidatecsv.py | 50f60246ca50193cebf7afc4e52a74e9b776ef81 | [] | no_license | njovujsh/crbdjango | fd1f61403c1fbdac01b1bda5145faeb4b9ef9608 | fdf5cc6ca5920a596c5463187d29202719664144 | refs/heads/master | 2022-12-04T18:13:07.709963 | 2018-05-14T09:07:47 | 2018-05-14T09:07:47 | 133,333,767 | 0 | 0 | null | 2022-11-22T01:44:28 | 2018-05-14T09:04:17 | JavaScript | UTF-8 | Python | false | false | 21,868 | py | from validators.subsystems.csvwriters import processcsvs
from django.utils.encoding import smart_str
from validators.subsystems.datasets import validationstatus
from django.http import HttpResponse
from validators.subsystems.datasets import pcivalidate
from validators.subsystems.datasets import scivalidate
class C... | [
"[email protected]"
] | |
375a018c63de5a9df57f07c26829657f66bcfbeb | c369443df5ff98eccc0eee7f63bb8947f2943605 | /shop/migrations/0002_product_photo.py | 6f674858a235d0794a6b5cc89516d04cb88266a3 | [] | no_license | erllan/shop-test | d2934f484b25d141a60caa5aca31a61eec48f055 | 1f77de177192ce6a1f8c5ccf1d7ca93ec026acf5 | refs/heads/master | 2023-03-06T01:04:38.785383 | 2021-02-27T18:02:07 | 2021-02-27T18:02:07 | 341,929,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.1.7 on 2021-02-26 11:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='photo',
field=... | [
"[email protected]"
] | |
22a186c790c53f60967d236882877184068afc26 | e199c0648ee56c84d421bb47b2b5c163a1bd4cf1 | /prep/prep_wiktionary.py | 70fb588952e6e9f0cbea315305346013b12561da | [
"MIT"
] | permissive | inoue0406/VocabularyPF | 72a3abea4b920c7959997198ef02374e5d16782a | 077300f82ef358ceb77e80f79ecb66f8124efbf6 | refs/heads/main | 2023-06-23T00:56:46.477992 | 2021-07-23T15:38:05 | 2021-07-23T15:38:05 | 365,765,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | # prep for wiktionary data
import json
import pandas as pd
#import wiktextract
def extract_pronunciation(sounds):
# Extract American Pronunciation
#list_country = ["General American","Received Pronunciation","US","UK"]
ipa = ""
for i in range(len(sounds)):
if "ipa" in sounds[i].keys():
... | [
"[email protected]"
] | |
de8792347405aadd837977316f12004147297193 | 8ed1430279ae52fd950dd0afe88549a100001e26 | /share/qt/extract_strings_qt.py | fefe2a907b40cfcfc4faa38e5f166048293fadca | [
"MIT"
] | permissive | mirzaei-ce/core-najafbit | 9fb70dbd4e17ec1635d7b886db17f8aab3f592bb | 6de34210a9ba9cc3f21fee631bc1a1f4d12d445d | refs/heads/master | 2021-08-11T08:53:58.165742 | 2017-11-13T13:00:14 | 2017-11-13T13:00:14 | 110,548,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | #!/usr/bin/python
'''
Extract _("...") strings for translation and convert to Qt4 stringdefs so that
they can be picked up by Qt linguist.
'''
from subprocess import Popen, PIPE
import glob
import operator
import os
import sys
OUT_CPP="qt/najafbitstrings.cpp"
EMPTY=['""']
def parse_po(text):
"""
Parse 'po' fo... | [
"[email protected]"
] | |
29cb92ebf6d3cf17309ccaf072ef6e2e474b7d99 | 642b7138da231474154a83c2dc3b4a2a42eb441b | /dp/largest_divisible_pairs.py | e811a9c6a31e06296c315fdc14696bec6b2b0bc9 | [] | no_license | somanshu/python-pr | 15465ed7182413591c709f9978420f6a16c9db91 | 7bfee6fc2a8340ba3e343f991a1da5bdb4ae9cb2 | refs/heads/master | 2020-07-02T17:21:37.132495 | 2019-08-22T08:04:11 | 2019-08-22T08:04:11 | 201,602,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # Largest divisible pairs subset
# Input : arr[] = {10, 5, 3, 15, 20}
# Output : 3
# Explanation: The largest subset is 10, 5, 20.
# 10 is divisible by 5, and 20 is divisible by 10.
def get_largest(arr):
n = len(arr)
arr.sort()
dp = [0 for i in range(n)]
path = [f"{arr[i]}" for i in range(n)]
dp[... | [
"[email protected]"
] | |
a405dd016add0a976b3d15fb2efad48e5d1bb92a | f8eefef177c4794392ddbad008a67b10e14cb357 | /common/python/ax/kubernetes/swagger_client/models/v1_fc_volume_source.py | 9d448090061f6efbde6be77d0ffdd209014b098e | [
"Apache-2.0"
] | permissive | durgeshsanagaram/argo | 8c667c7e64721f149194950f0d75b27efe091f50 | 8601d652476cd30457961aaf9feac143fd437606 | refs/heads/master | 2021-07-10T19:44:22.939557 | 2017-10-05T18:02:56 | 2017-10-05T18:02:56 | 105,924,908 | 1 | 0 | null | 2017-10-05T18:22:21 | 2017-10-05T18:22:20 | null | UTF-8 | Python | false | false | 5,718 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1FCVolu... | [
"[email protected]"
] | |
23d826c97b4d4a30fe2c6510dc0c9978e0b79394 | 39354dfc8f61f57f022522a3e3a880c73a540d0d | /shenfun/chebyshev/la.py | f8577941aefb7ad55e988810e6a6e10afd9e8f08 | [
"BSD-2-Clause"
] | permissive | mstf1985/shenfun | aab9cd416ea7cb549ef191ed9e32f4cd66d522d0 | 83a28b3f7142ef3bf60b20d707ba8c1d2f13a8ff | refs/heads/master | 2022-12-10T20:27:51.825173 | 2020-08-28T13:58:58 | 2020-08-28T13:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,278 | py | #pylint: disable=line-too-long, missing-docstring
from copy import copy
import numpy as np
from shenfun.optimization import optimizer
from shenfun.optimization.cython import la
from shenfun.la import TDMA as la_TDMA
from shenfun.matrixbase import TPMatrix
class TDMA(la_TDMA):
def __call__(self, b, u=None, axis=... | [
"[email protected]"
] | |
4ec1e9d4f1bf6fc799449cbd2aab1ab8e609c661 | eed0523056fec042d24180bd1f5443d9c510c271 | /TheCannon/spectral_model.py | 0b189fab510068fb42b0233fa0d4e6f756e2b769 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | minzastro/TheCannon | 3c42c0e775193d8dd3f649cc850da4afa7d61ebb | 5e624f9e5699ef26b905832f166d13a9733153ff | refs/heads/master | 2021-01-21T09:02:11.711509 | 2016-04-14T11:52:50 | 2016-04-14T11:52:50 | 56,233,122 | 0 | 0 | null | 2016-04-14T11:49:49 | 2016-04-14T11:49:47 | Python | UTF-8 | Python | false | false | 8,969 | py | from __future__ import (absolute_import, division, print_function, unicode_literals)
import numpy as np
import os
import random
from .helpers.corner import corner
import matplotlib.pyplot as plt
from matplotlib import colorbar
def draw_spectra(model, dataset):
""" Generate best-fit spectra for all the test object... | [
"[email protected]"
] | |
a17913347b44df299ab37d00d470e56f8528439c | 3a533d1503f9a1c767ecd3a29885add49fff4f18 | /saleor/channel/migrations/0009_channel_order_mark_as_paid_strategy.py | 95a5a766de46242230839a732b42f3449cc37be9 | [
"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 | 885 | py | # Generated by Django 3.2.17 on 2023-02-08 14:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("channel", "0008_update_null_order_settings"),
]
operations = [
migrations.AddField(
model_name="channel",
name="orde... | [
"[email protected]"
] | |
c5d40f8d86bda2cc8edb8289f91a916ebb6672e0 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4254/codes/1664_1394.py | ec3158649ae06f42008199af8c1253c3184e5b02 | [] | 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 | 137 | py | h = float(input("Quantidade de horas: "))
if(h > 20):
p = (20*50 + ((h-20)*70))
print(round(p,2))
else:
p = (h*50)
print(round(p,2)) | [
"[email protected]"
] | |
1d9741f463b1d422f98b321108ff9be5434e51a6 | a9020c87d73200edd826719a751455033883c968 | /treeexamples/example_1.py | 0113e12ee3add24d617dd317054f9563cc854ab3 | [
"MIT"
] | permissive | martinohanlon/GPIOXmasTreeGame | 6d73f1bff190613481e29f2862250c339192e2c3 | 0d32ff7ca4fe3c2b536f5fa4490d09c1caf54b3a | refs/heads/master | 2021-01-25T08:37:28.163740 | 2014-12-30T09:10:20 | 2014-12-30T09:10:20 | 28,156,951 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | import tree
# Some constants to identify each LED
L0 = 1
L1 = 2
L2 = 4
L3 = 8
L4 = 16
L5 = 32
L6 = 64
ALL = 1+2+4+8+16+32+64
NO_LEDS = 0
tree.setup() # you must always call setup() first!
# Pattern: flash each LED in turn
for i in range(5): # repeat 5 times
tree.leds_on_and_wait(L0, 0.3) # LED 0 on for 0.3 second... | [
"[email protected]"
] | |
47e85f905e266f6fcbb4559c46c65de19a683b18 | d84441b3426c9966aa072ad2ce9e9f5216527a54 | /unfeed/sites/qdaily.py | aa774292eb813efd4ee54c7e4605b032b3cb9983 | [] | no_license | tonicbupt/unfeed | 96919010ab7dcca5cd120dfe739170ea42ea17e5 | 1fcab5acdbc1f41897f17eeabcf55c5867fc3d04 | refs/heads/master | 2020-12-25T10:34:53.962785 | 2014-05-24T10:57:10 | 2014-05-24T10:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,632 | py | import copy
from brownant import Site, Dinergate
from brownant.pipeline import (TextResponseProperty, ElementTreeProperty,
XPathTextProperty)
from werkzeug.utils import cached_property
from lxml.html import tostring
from dateutil.parser import parse as parse_datetime
from unfeed.utils.e... | [
"[email protected]"
] | |
10e3aaffe8146d35b918e3207254fa0f21c92912 | 80301f1cffc5afce13256e2ecab6323c5df00194 | /en.3rd/py/U7003_5.py | fffd6e2a94a4a0004232ce03d4503c83622406f9 | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 237,917 | py | from ED63RDScenarioHelper import *
def main():
SetCodePage("ms932")
CreateScenaFile(
FileName = 'U7003_5 ._SN',
MapName = 'Gaiden2',
Location = 'U7003.x',
MapIndex = 1,
MapDefaultBGM = "ed60000",
Flags ... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.