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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aaa97426ee0d05304df5803298c9cbb2908083a9 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/.install/.backup/lib/surface/meta/list_gcloud.py | aca56be40ca25b93a18ebd563aec4334956a5e10 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 1,529 | py | # Copyright 2015 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... | [
"toork@uw.edu"
] | toork@uw.edu |
a1080db1e9852583c2a131acbce39e57d3ed3cb4 | 81b438781ecc307225fcc6141238f8a8ef03bd64 | /Project/src/Modules/Computer/Web/test/test_web_schedules.py | f1ad8d42bbb06df26e123cf621071fc12f95b025 | [] | permissive | DBrianKimmel/PyHouse | b7d61be4dc6ce9e3332228a6c633e81fdfd8a908 | a100fc67761a22ae47ed6f21f3c9464e2de5d54f | refs/heads/develop | 2021-01-23T09:30:08.722975 | 2020-02-29T16:30:08 | 2020-02-29T16:30:08 | 4,125,178 | 3 | 1 | MIT | 2020-07-19T22:07:18 | 2012-04-24T13:53:33 | Python | UTF-8 | Python | false | false | 5,250 | py | """
@name: PyHouse/src/Modules/Computer/Web/_test/test_web_schedules.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2016-2017 by D. Brian Kimmel
@license: MIT License
@note: Created on Nov 23, 2016
@summary: Test
"""
__updated__ = '2020-02-14'
# Import system type st... | [
"d.briankimmel@gmail.com"
] | d.briankimmel@gmail.com |
b77dc987837ce20bc241b82773bba8ed60e29ac5 | e67f356c45c91e47834ac99857a3ce8f64bd2de1 | /examples/neural_doodle.py | f8b139ee5fd26dba83c2bf6c10ada59e3738daa7 | [
"MIT"
] | permissive | DNAdeveloper/keras | 021c9a5211e645d27ce50732cf588cf9489a9767 | d81a590da23b63aec6949f1da118e504d04726ea | refs/heads/master | 2020-04-02T21:35:26.120471 | 2019-10-18T17:08:36 | 2019-10-18T17:08:36 | 154,804,760 | 0 | 0 | NOASSERTION | 2019-10-18T17:12:39 | 2018-10-26T08:47:48 | Python | UTF-8 | Python | false | false | 14,050 | py | '''Neural doodle with Keras
# Script Usage
## Arguments
```
--nlabels: # of regions (colors) in mask images
--style-image: image to learn style from
--style-mask: semantic labels for style image
--target-mask: semantic labels for target image (your doodle)
--content-... | [
"francois.chollet@gmail.com"
] | francois.chollet@gmail.com |
6311f7b89ee2f8009890d3d635535ee964df850e | 9249947c07f8addf64dd3d2a2f9f37d379f83921 | /libs/gluon/contrib/login_methods/extended_login_form.py | 6946531dfbc5fecf6a21073d44b2af2fadb7a183 | [
"MIT"
] | permissive | operepo/ope | eb71aa763d157416009d7c3052ace11852660e0a | 018c82af46845315795c67c36801e2a128f515d5 | refs/heads/master | 2023-08-08T15:05:28.592589 | 2023-07-25T00:22:24 | 2023-07-25T00:22:24 | 96,855,111 | 12 | 11 | MIT | 2023-03-03T15:10:34 | 2017-07-11T05:42:14 | Perl | UTF-8 | Python | false | false | 3,526 | py | #!/usr/bin/env python
# coding: utf8
"""
ExtendedLoginForm is used to extend normal login form in web2py with one more login method.
So user can choose the built-in login or extended login methods.
"""
from gluon import current, DIV
class ExtendedLoginForm(object):
"""
Put extended_login_form under web2py/g... | [
"ray@cmagic.biz"
] | ray@cmagic.biz |
529cbb3c14010579f4a8ac73624e0ee51ada5781 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_156/502.py | 489952f85543e7b6aeb79ea05e6691ff9fc22386 | [] | 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 | 1,097 | py | import copy
import sys
def parse(f):
D = int(f.readline())
pancakes = map(int, f.readline().split())
return D, pancakes
MEMO = {}
def solve(D, pancakes):
pancakes.sort()
highest_pile = pancakes[-1]
if highest_pile < 4:
MEMO[tuple(pancakes)] = highest_pile
return highest_p... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
97770a36adcbdc591661d2e7463eaf1f2fa933a8 | 11e2b0b4ab34e00ecc8a2585a51ea8252ee61eff | /MixedPrecision/tools/train.py | a97c9fa8d43d7a134e27616b7b43341789b60196 | [] | no_license | wuyan-ai/MixedPrecision | 1271211ad03fa17fa501b59e49db27cdfe6ebc43 | c51aeb1608663ce042b38b6c968d613bc9010e84 | refs/heads/master | 2022-03-22T13:27:01.566267 | 2019-06-13T13:13:31 | 2019-06-13T13:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,440 | py | import time
import torch
import os
from MixedPrecision.tools.chrono import MultiStageChrono
from MixedPrecision.tools.nvidia_smi import make_monitor
from MixedPrecision.tools.utils import throttle
class Trainer:
def __init__(self, model, criterion, loader, optimizer):
self.model = model
self.crit... | [
"pierre.delaunay.tr@gmail.com"
] | pierre.delaunay.tr@gmail.com |
e7dceba2d63cca3abf899d482671eeb0a335e1ad | 2c5b25d0b5d6ba66d013251f93ebf4c642fd787b | /wrong_answer_codes/Diameter_of_Binary_Tree/Diameter of Binary Tree_291432994.py | 0e965f8af403cb0ff08f044a28001f3710d2d429 | [] | no_license | abhinay-b/Leetcode-Submissions | da8099ac54b5d36ae23db42580064d0f9d9bc63b | d034705813f3f908f555f1d1677b827af751bf42 | refs/heads/master | 2022-10-15T22:09:36.328967 | 2020-06-14T15:39:17 | 2020-06-14T15:39:17 | 259,984,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def diameterOfBinaryTree(self, root: TreeNode) -> int:
if not root:
return 0
def maxDepth(root):
... | [
"abhinayb.sssihl@gmail.com"
] | abhinayb.sssihl@gmail.com |
56cd041b41df1847f33658fd95b662b551f86005 | 84108ae54987955233447c20e1dc4ddba272a42f | /python/PYTHONexam/day8_collection_filter_zip/exercise8/answer/strLab2.py | 7877e577dd96851331eb0e48abaaa0da6a21704a | [] | no_license | MyChoYS/K_TIL | bb82554a6b68f9d3fcd39c9031331ea4df0d8716 | 8417a6f22addcfe08bcb708d61c91091f702b2cb | refs/heads/master | 2023-04-24T05:58:29.253920 | 2021-05-07T06:13:34 | 2021-05-07T06:13:34 | 325,244,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | s1 = "pythonjavascript"
s2 = "010-7777-9999"
s3 = "PYTHON"
s4 = "Python"
s5 = "https://www.python.org/"
s6 = '891022-2473837'
s7 = '100'
s8 = ' The Zen of Python'
print(len(s1))
a = s2.split('-')
print(''.join(a))
print(s3[::-1])
print(s4.lower())
i = s5.split('/')
print(i[2])
def gender(a):
if s6[7] == '1' or s6... | [
"sin94soon@gmail.com"
] | sin94soon@gmail.com |
6942c209afc217023e316cb8f0653b85c689bcd9 | ce07ccf78739a768971f393222fdca4a56315241 | /employee_management/config/docs.py | 7ba62b112abed1e6ce3a112ab442e98fefb013c8 | [
"MIT"
] | permissive | Gdinesh03/Frappe | 563e0ddbe925be536f65f925787ed321a6098c0d | efd2d1568b6f5b8a4e0ff31e06a415c717a3d32a | refs/heads/master | 2023-08-27T19:24:12.024442 | 2021-09-14T07:04:27 | 2021-09-14T07:04:27 | 406,260,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/employee_management"
# docs_base_url = "https://[org_name].github.io/employee_management"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_... | [
"vivekananthan112599@gmail.com"
] | vivekananthan112599@gmail.com |
6839652aa3dfd4428af5f03fed397c20cc0787a6 | a8ab9e12f07a1e58a6416e6fab991192bf7a76eb | /blog/models.py | 2e93c7a911a78682441ea40a8aa2fa10e72f3f03 | [] | no_license | satish24011993/mysite | 25216e56f5471cb74491080db9c12de76c6cb441 | 81ae14e26c79a6b7f6783bdbbca7d02bcbce786a | refs/heads/master | 2022-04-23T05:14:58.056262 | 2020-04-27T07:02:09 | 2020-04-27T07:02:09 | 259,256,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
from taggit.managers import TaggableManager
# Create your models here.
class PublishedManager(models.Manager):
def get_queryset(self):
return super().get_queryset().fil... | [
"satishkurakula073@gmail.com"
] | satishkurakula073@gmail.com |
bbbfa2d60408d62edc6690781e6d2356fdb6b4f8 | 72d010d00355fc977a291c29eb18aeb385b8a9b0 | /Launchpad_Pro/ClipActionsComponent.py | c4a54e9d641890598e33dbc132b71c8498c7ae5e | [] | no_license | maratbakirov/AbletonLive10_MIDIRemoteScripts | bf0749c5c4cce8e83b23f14f671e52752702539d | ed1174d9959b20ed05fb099f0461bbc006bfbb79 | refs/heads/master | 2021-06-16T19:58:34.038163 | 2021-05-09T11:46:46 | 2021-05-09T11:46:46 | 203,174,328 | 0 | 0 | null | 2019-08-19T13:04:23 | 2019-08-19T13:04:22 | null | UTF-8 | Python | false | false | 5,430 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Launchpad_Pro/ClipActionsComponent.py
# Compiled at: 2018-04-23 20:27:04
from __future__ import absolute_import, print_function, unicode_literals
import Live
from _Framework.SubjectSlot import Subject, su... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
55b34ccc86ce00d91f714ecfaf0bb5ee92628518 | 0327ef924b8f5026a16520d2b7c4b62722bf3a13 | /qaamus2/patterns.py | a3297d9b64df00f13b3cb829ed94ca8172c41500 | [] | no_license | ihfazhillah/qaamus2 | e7722454f26b4a56df73d9e4af58bebd809648f2 | 165e7b9cfc59d50f21b2248ba81d85c79943ddcb | refs/heads/master | 2021-01-11T20:56:55.026480 | 2017-02-20T00:31:23 | 2017-02-20T00:31:23 | 79,219,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | """Pattern lists"""
import re
IDAR = re.compile("""<div class=lateef2>(.+?)</div>.+<em.+?>(.+?)</em>.+?<div class="panel-footer">(.+?)</div>""")
IDAR_BING = re.compile("""<div class=lateef2>(.+?)</div>.+?<div class="panel-footer">(.+?)</div>""")
ANGKA_PEGON = re.compile("""<div class=lateef2>(.+?)</div>""")
BERHUBUNG... | [
"mihfazhillah@gmail.com"
] | mihfazhillah@gmail.com |
a87ba2b0f4b475d22053ce60496f296bb50d94bd | ef6fd87fcf6a74f9fe39850a9e5edc77fe971f7a | /index/migrations/0016_character.py | 1f9723628a18802f8fd302c70303bd675dbe3976 | [] | no_license | Aditta-das/gaming-site | a3bc432069f84284e9d6f9188566ae51179e4285 | 2dddc056e8ecf2395494d96ffa841f6a45910fa8 | refs/heads/master | 2021-04-02T23:42:59.412921 | 2021-02-07T16:42:37 | 2021-02-07T16:42:37 | 248,337,074 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | # Generated by Django 2.2.7 on 2020-03-19 10:52
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),
('index', '0015_delete_cha... | [
"ndas5662@gmail.com"
] | ndas5662@gmail.com |
8f48f4aafec9404001cc49331cf3636a7f2ddeff | 1afec7d1d3099138b5afe5fd73dfd3d24ff4eb15 | /test/functional/rpc_estimatefee.py | 97d03773e68a32e6cfb4b0118b3e8ed9ada048ea | [
"MIT"
] | permissive | republic-productions/finalcoin | 5c7c6b0734178fe22db63f0946ec555f59e8d0eb | 7c0f335ded1e5c662034c822ca2c474b8e62778f | refs/heads/main | 2023-09-04T17:04:32.683667 | 2021-10-14T17:45:22 | 2021-10-14T17:45:22 | 417,209,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2020 The Finalcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the estimatefee RPCs.
Test the following RPCs:
- estimatesmartfee
- estimaterawfee
"""
f... | [
"republicproductions@protonmail.com"
] | republicproductions@protonmail.com |
7a125b149e8606a9456d1e81ec2e3b5b7c1220ba | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_confessional.py | ef5e9b31039691a6547adf6865d8a4b669ac57d4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py |
#calss header
class _CONFESSIONAL():
def __init__(self,):
self.name = "CONFESSIONAL"
self.definitions = [u'a small structure like a box in a church, especially a Roman Catholic church, in which people can privately confess to a priest']
self.parents = []
self.childen = []
self.properties = []
self.json... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
64ef25a88f8c818159e384239387aa83eaa16930 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnpowerloom.py | 1cc11957156d772413251897d4f29004c6ca5657 | [] | 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 | 44 | py | ii = [('PeckJNG.py', 1), ('BabbCEM.py', 10)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
c0385a6f74ff249ba8ad5ffeddb343b7d847fb61 | 621dfccf1ace31bcf48cd1e7cc80b8dbd556b21b | /02_Raspberry_pi/2_simulator_controller_interlock_0808/client (1).py | d03ac05c609b87f47e73801ce9df337c0b22165f | [] | no_license | hansangwoo1969/iot_python2019 | 35d90997b442845d1f5fa5a6119d5352a8dbe46f | e1ea46bb4afcc33e1fc28b43e845759d8688098b | refs/heads/master | 2020-06-14T22:19:47.647686 | 2019-09-19T07:40:16 | 2019-09-19T07:40:16 | 195,142,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,186 | py | # -*- coding:utf-8 -*-
import threading
import time
import ctypes
import urllib.request
import json
from bs4 import BeautifulSoup
from socket import *
'''
1조 프로그램_문수
현 pc
'''
g_Radiator = False
g_Gas_Valve = False
g_Balcony_Windows = False
g_Door = False
g_AI_Mode = False
scheduler_cycle = 300
port = 8080
server_ip ... | [
"you@example.com"
] | you@example.com |
6cbcb6a6a4a9e29520cb57bf6b986dcdbdcb6c80 | 5337e891f148d7f349d21d0359d61f286c9d6dc1 | /MACS2/Constants.py | 5d69bbb3b8026016c6e0fe93459d5a93cc32430a | [
"BSD-3-Clause"
] | permissive | taoliulab/MACS | a210e974e873fef57d43d4e8a8f96635f7c62c19 | a9ad006a6fa502f47df31b334691f3d01d492500 | refs/heads/master | 2020-07-08T17:50:23.514108 | 2019-08-22T06:34:21 | 2019-08-22T06:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | MACS_VERSION = "2.1.3"
#MACSDIFF_VERSION = "1.0.4 20110212 (tag:alpha)"
FILTERDUP_VERSION = "1.0.0 20140616"
RANDSAMPLE_VERSION = "1.0.0 20120703"
MAX_PAIRNUM = 1000
MAX_LAMBDA = 100000
FESTEP = 20
BUFFER_SIZE = 100000 # np array will increase at step of 1 million items
from array import array
... | [
"vladimir.liu@gmail.com"
] | vladimir.liu@gmail.com |
ded6bdd74cf898211a643d181f4ad5e198b93d8d | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/luhn/2febdcdbaa1f4af0a6c4dc816b5f80a9.py | 20f98aa3c0bea46aa44ebe107cfc130f0c72f72c | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 742 | py | class Luhn():
def __init__(self, intid):
self.intid = intid
self.id = map(int,[digit for digit in str(intid)])
def addends(self):
idlist = self.id[::-1]
for i in xrange(len(idlist)):
if not i % 2 == 0:
idlist[i] *= 2
if id... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
9efa64b5aa2e099fe9525da52c0a428471589df9 | 3c934c97bd5748237ac8963c8be779a7d77be629 | /validParentheses.py | c2f450cd23c050893d4457983eec3e9a12cc3eea | [] | no_license | Franktian/leetcode | 2b0d0280d18e3401b9f337f027c5d70f26237f02 | 98e7852ba144cefbdb02f705651b1519155ee4d6 | refs/heads/master | 2021-06-12T15:23:09.733650 | 2020-06-17T23:09:18 | 2020-06-17T23:09:18 | 128,710,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | def isValid(s):
st = []
for c in s:
if c == '{' or c == '(' or c == '[':
st.append(c)
print(st)
else:
if not st:
return False
if c == '}' and st[-1] != '{':
return False
if c == ']' and st[-1] != '[':
... | [
"tianyawen201209@hotmail.com"
] | tianyawen201209@hotmail.com |
35d43bc472285c7e0992663973490f06452981b3 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /DgL3Ka5tBwF9SC6zn_14.py | 95935547fe47c52d225d719814d0ac119631e6d6 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py |
def equation(s):
return eval(s)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1c0fda0d363b2cda3f95b50cb859fc5a6eceef9b | 76050b0002dac757866a9fb95dc199918da665bb | /acme/jax/snapshotter_test.py | 40a1a7509f9eb56458b15fb51fca682a528e2bc4 | [
"Apache-2.0"
] | permissive | RaoulDrake/acme | 2829f41688db68d694da2461d301fd6f9f27edff | 97c50eaa62c039d8f4b9efa3e80c4d80e6f40c4c | refs/heads/master | 2022-12-29T01:16:44.806891 | 2022-12-21T14:09:38 | 2022-12-21T14:10:06 | 300,250,466 | 0 | 0 | Apache-2.0 | 2020-10-01T11:13:03 | 2020-10-01T11:13:02 | null | UTF-8 | Python | false | false | 4,348 | py | # Copyright 2018 DeepMind Technologies Limited. 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 ... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
da11d07aa98976c9291ba28c228744e676dd7a86 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_get_bind_adgroup_response_wrapper.py | c940007fd192978ac7f73b7605f50d5485e425b3 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 1,080 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.common.model.api_response_header import ApiResponseHeader
from baiduads.crowdfeed.model.get_bind_adgroup_response_wrapper_body import GetBi... | [
"tokimekiyxp@foxmail.com"
] | tokimekiyxp@foxmail.com |
1efd045ada1c64f416c09ee50d584d37a0d6bdf1 | d0f2f7f220c825d827643ca81a08a23cfb871965 | /backend/code/rankor/auth/models.py | deb8340fce9b552a373ecd80716cbd5ac01fdcd2 | [] | no_license | socek/rankor | 7e5e73f8f13bc3d12bd1b18ef01bef04f8f38f0a | eaf5002dd1e852895670517a8cdcb07bf7c69f66 | refs/heads/master | 2021-04-12T07:52:20.341699 | 2018-06-03T20:07:17 | 2018-06-03T20:07:17 | 125,769,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | from bcrypt import checkpw
from bcrypt import gensalt
from bcrypt import hashpw
from sqlalchemy import Binary
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import String
from rankor.application.model import Model
class User(Model):
__tablename__ = 'users'
name = Column(String,... | [
"d.dlugajczyk@clearcode.cc"
] | d.dlugajczyk@clearcode.cc |
10f5f65d13641dd95a8a5e6945db9598292d0db0 | 15d84cff3c02a37db42d831e781a6ec519d668bf | /Books/2_Vasilev_Python_on_exaples/Test_32_7.5_multiple_inheritance.py | ea86162e7a687bd564fd4ffdaf0f8a5089c5d170 | [] | no_license | vnpavlukov/Study | 40c61fc575409bdb301de6f3b98ffffd0f35071e | 0ffbe9a55e6a0972bb42643205134d06924f96c4 | refs/heads/master | 2023-03-01T07:05:23.109572 | 2021-01-26T19:54:29 | 2021-01-26T19:54:29 | 289,244,558 | 0 | 0 | null | 2021-01-26T19:55:11 | 2020-08-21T10:41:18 | Python | UTF-8 | Python | false | false | 1,057 | py | class BoxSize:
def __init__(self, width, height, depth):
self.width = width
self.height = height
self.depth = depth
def volume(self):
return self.width * self.height * self.depth
def show(self):
print('Sizes of the box:\n',
'\tWibth:', self.width, "\n"... | [
"47551027+Alfavoland@users.noreply.github.com"
] | 47551027+Alfavoland@users.noreply.github.com |
481d5d062a5255607513cbb29b3caae4f50f13e1 | de2cd4e9ebd0d10aed54bc569c1416744ab9b2a6 | /qhana_openapi/dataPreparation/resources/data_preparator.py | 45e76031296a315702db0c99736ee337254713c1 | [] | no_license | IndikaKuma/quantum | 4d7d3e9c19d91e5b5b6e9f22e8beb9ba701c71df | ee78db14c0d5fc37d9990cf8ad634f5e264c161b | refs/heads/main | 2023-07-09T01:49:16.810814 | 2021-08-25T12:27:34 | 2021-08-25T12:27:34 | 399,156,086 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,471 | py | import os
from threading import Thread
from flask import request, jsonify
from calculation.aggregator import AggregatorType
from calculation.entityComparer import EntityComparer
from calculation.transformer import TransformerType
from entityLoadingService import EntityLoadingService
from fileService import FileServic... | [
"ipkumarawd@yahoo.com"
] | ipkumarawd@yahoo.com |
d9d45853c46953848fc2d7f8419383df20eb9866 | 26192962dc2627e7ca5f0e3b249c3fabcf52442c | /Python/Strings/2651 - Link Bolado.py | 271d29147945668b21b4d7dd2ba20f0e513f387a | [] | no_license | PierreVieira/URI | 77278ccb1724ca206ab2c12afbea1e51fa08ff73 | c1eb211c788d26b5cb9bedf5dda4147a2961fa19 | refs/heads/master | 2023-04-10T07:03:13.954639 | 2023-03-22T00:18:28 | 2023-03-22T00:18:28 | 189,321,748 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | """
Autor: Pierre Vieira
Data da submissão: 14/01/2020 21:47:53
"""
if 'ZELDA' in input().upper():
print('Link Bolado')
else:
print('Link Tranquilo')
| [
"pierrevieiraggg@gmail.com"
] | pierrevieiraggg@gmail.com |
c5b5dba596b8938f9f7c6d81cd9996f5c501d9ca | 9ae2868958498cf0245ead4ce86fc4037c984e88 | /myQuiz.py | 69b9de0611087e50980fce92c3afd182b8257db1 | [] | no_license | bhobbs20/Basic-Python-Projects | b83581e78f075a1f7cd0593586923a0872727866 | fbe8877f5efe95aa9c86f6d0291b7a70fb28243c | refs/heads/master | 2021-01-09T03:03:03.048839 | 2020-03-09T17:23:24 | 2020-03-09T17:23:24 | 242,223,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | def calcBills():
myBills = { "Electric": 120.00, "Rent": 1200.00, "Water_Sewer": 60.00, "Car_insurnace": 75.00, 'Phone': 65.00}
total = 0
for i in myBills:
total += myBills[i]
owed = 'The total owed for bills this month is: ${}'.format(total)
return owed | [
"brianhobbs216@gmail.com"
] | brianhobbs216@gmail.com |
f0545890eba6f3f1e10ce0314b5206d909e28ed8 | df4037f361bbb6face45c13c0162bbfe515a0ecb | /src/pytorch_translate.py | d94fbc21ec547966db95b3d6e6c65dd436884e50 | [
"MIT"
] | permissive | jiahuei/demo-docker-streamlit | 862b2ff0a521b53bc18b1bc169bc0bd39f8c9c7d | e2171f2d05a90e752d5ed893eb3d3cb3d8eb82c7 | refs/heads/main | 2023-09-03T19:03:23.954606 | 2021-09-30T09:42:58 | 2021-09-30T09:42:58 | 407,824,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | # -*- coding: utf-8 -*-
from transformers import pipeline
translate = pipeline("translation_en_to_zh", "Helsinki-NLP/opus-mt-en-zh")
translate("My name is Wolfgang and I live in Berlin")
| [
"tanjiahuei@gmail.com"
] | tanjiahuei@gmail.com |
0c6ebde3e2d2045bfaa5d2a64a3e9680e7dfd28d | 0e4dc82a94563dacb0c25d0d43fbcbe3def21f72 | /136-Single-Number/solution01.py | be4fe396c0821ea227994a6d75bf416d6046abe5 | [
"CC-BY-3.0",
"MIT"
] | permissive | Eroica-cpp/LeetCode | 3ce3b05b3098e8097c1090e2116b813efaadd2a3 | 07276bd11558f3d0e32bec768b09e886de145f9e | refs/heads/master | 2021-06-20T05:41:30.506250 | 2017-03-16T05:17:39 | 2017-03-16T05:17:39 | 35,126,816 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | #!/usr/bin/python
# ==============================================================================
# Author: Tao Li (taoli@ucsd.edu)
# Date: May 4, 2015
# Question: 136-Single-Number
# Link: https://leetcode.com/problems/single-number/
# ========================================================================... | [
"eroicacmcs@gmail.com"
] | eroicacmcs@gmail.com |
3ebc55101dec052929f158bf2e512451dad4c52a | d75371f629cf881de3c49b53533879a5b862da2e | /python/defanging-an-ip-address.py | de605e0f5eb31c574db7c574ff0767861b32895b | [] | no_license | michaelrbock/leet-code | 7352a1e56429bb03842b588ba6bda2a90315a2f4 | 070db59d4e0ded3fb168c89c3d73cb09b3c4fe86 | refs/heads/master | 2020-04-01T05:40:49.262575 | 2019-10-10T22:03:10 | 2019-10-10T22:03:10 | 152,914,631 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | class Solution:
def defangIPaddr(self, address: str) -> str:
new_ip = []
for char in address:
if char == '.':
new_ip.extend(['[', '.', ']'])
else:
new_ip.append(char)
return ''.join(new_ip)
| [
"mykel.bock@gmail.com"
] | mykel.bock@gmail.com |
513d99deaf96927b3564f6f4b58a5bec7ee1950e | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /DQM/SiStripMonitorTrack/python/SiStripMonitorTrack_cff.py | 7954ceb5941b74631fcac32ba1e35a9ee562fe36 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 829 | py | import FWCore.ParameterSet.Config as cms
from DQM.SiStripMonitorTrack.SiStripMonitorTrack_cfi import *
# TrackInfo ####
from RecoTracker.TrackProducer.TrackRefitters_cff import *
#-----------------------
# Reconstruction Modules
#-----------------------
from RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppress... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
20128268603105de57b01279b255029bd81000f8 | 567e89b21aca23db5f14032889fdd1cb7c7700f7 | /Nombres premiers appli.py | a236eb2188a9c52083f8346cdb185598e125d35a | [] | no_license | MarcPartensky/Python-2018 | 7ab83d42eb28b34bed88fc6fb77892e62094dd8d | 27d2a57a6b6d6cdaa883fd2ce55e1c5eefd13ccc | refs/heads/master | 2020-04-17T13:12:41.448439 | 2019-01-19T23:55:05 | 2019-01-19T23:55:05 | 166,605,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import math
from math import sqrt
Ajout=int(input("Ajouter:"))
ListeDesPremiers = open("ListeDesPremiers.txt", "r")
ChaineDesPremiers=ListeDesPremiers.read()
Chaine=ChaineDesPremiers.split(",")
Liste=[0]*len(Chaine)
for i in range(0,len(Chaine)):
Liste[i]=int(Chaine[i])
ListeDesPremiers.close()
print(Liste)
Lis... | [
"marc.partensky@gmail.com"
] | marc.partensky@gmail.com |
8618bf3dc04ae8806e7f335518fd247b2d65d20f | e213359bff088f99b1e5e560ae9107742c9b1547 | /figure3/plot.py | e8344a9694c7200e84a9f4b825f0f4f8aad9c03a | [] | no_license | twhanigan/remsberg_ncb_2021 | d619f1e8a9643142711b6d7803db0f0bd406c2d1 | ce5fdc0dd4e13f1eddbe8af3162ff97a9174beb4 | refs/heads/main | 2023-04-02T04:51:02.448012 | 2021-04-15T00:55:22 | 2021-04-15T00:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,787 | py | from constants import (
CACHE_DIR,
DYNAMIC_FOLD_CHANGE_THRESHOLD,
CHASE_FOLD_CHANGE_THRESHOLD,
DATA_OUTPUT_PATH
)
from filter import filter_time_course_data
from utils import get_path_for_fig, get_newest_file
from db import UniprotFlatfile
import constants as k
from matplotlib.ticker import AutoMinorLo... | [
"radusuciu@gmail.com"
] | radusuciu@gmail.com |
99cdf8864f23fc8f0d91541f5a01182d4c305428 | 3a18b8ba06a58231f4ecb2c1a231722cdf862e6b | /python_code/dillonsCode/websites_folder/todo_tutorial/venv/lib/python3.8/site-packages/sqlalchemy/dialects/mysql/aiomysql.py | 3e5a25293e0aa2931140a819c3121efa8e975dba | [] | no_license | dillonallen92/codeStorage | 98dd7f5a8ecb062e37313a1323aacd362ffc44c7 | 23351e0b3348de922283f6494762db9f291579d6 | refs/heads/master | 2023-07-07T10:32:40.428607 | 2023-06-26T23:26:47 | 2023-06-26T23:28:13 | 141,781,205 | 0 | 1 | null | 2023-02-12T00:21:58 | 2018-07-21T04:30:51 | Mathematica | UTF-8 | Python | false | false | 9,926 | py | # mysql/aiomysql.py
# Copyright (C) 2005-2022 the SQLAlchemy authors and contributors <see AUTHORS
# file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
r"""
.. dialect:: mysql+aiomysql
:name: aiomysql
:dbapi: aiomysql... | [
"dillon.allen.92@gmail.com"
] | dillon.allen.92@gmail.com |
9d593ffb582f78247dc762ed9d3eebc5091a1c34 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/__init___parts/MissingMemberException.py | 95d9e27e409c0ac56a91ec33ef9213f56e0430b0 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | class MissingMemberException(MemberAccessException,ISerializable,_Exception):
"""
The exception that is thrown when there is an attempt to dynamically access a class member that does not exist.
MissingMemberException(message: str)
MissingMemberException()
MissingMemberException(message: str,inner: Exception)... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
eb0016bc3f7d391b601561a39135568604005d54 | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/site-packages/astroid/brain/brain_hashlib.py | 33ec218e92fa26cb50bf06248cf1afa1f370c77d | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/py-astroid-2.2.0-oj3rywldcngmpivpxn6fa4cksda6xpcb/lib/python3.7/site-packages/astroid/brain/brain_hashlib.py | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
eb134f059915b76b61509ba3ff5d742161c7afdf | 2bcf18252fa9144ece3e824834ac0e117ad0bdf3 | /ASTutils/tags/0.2.0/setup.py | c0ef25e97814dbb53ed531092ca221b8b1d2bfb3 | [
"Beerware",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | chadwhitacre/public | 32f65ba8e35d38c69ed4d0edd333283a239c5e1d | 0c67fd7ec8bce1d8c56c7ff3506f31a99362b502 | refs/heads/master | 2021-05-10T14:32:03.016683 | 2010-05-13T18:24:20 | 2010-05-13T18:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | #!/usr/bin/env python
from distutils.core import setup
from os import linesep
import ASTutils as base
description = base.__doc__.split(linesep+linesep)[0]
description = description.strip(linesep)
setup( name = base.__name__
, version = base.__version__
, py_modules = ['ASTutils']
, description = descr... | [
"chad@zetaweb.com"
] | chad@zetaweb.com |
c60b20b597ee3dd19ad63d42d0051ce7d523fce5 | 06e776688e6058fa1263446074cf6d7fd6f8db5d | /setup.py | 969024126a759a0d480ee89e745b611ae04a166e | [
"MIT"
] | permissive | pombredanne/marko | f69aa73f04bba48f21384ed752e8d8529d86bb96 | 1cd030b665fa37bad1f8b3a25a89ce1a7c491dde | refs/heads/master | 2020-05-05T10:14:00.485315 | 2019-04-01T21:14:49 | 2019-04-02T04:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | # -*- coding: utf-8 -*-
"""
Setup.py file
"""
import io
import os
import sys
import re
from setuptools import setup, find_packages, Command
AUTHOR = 'Frost Ming'
EMAIL = 'mianghong@gmail.com'
URL = 'https://github.com/frostming/marko'
NAME = 'marko'
DESCRIPTION = 'A markdown parser with high extensibility.'
REQUIRES_... | [
"mianghong@gmail.com"
] | mianghong@gmail.com |
139d09be57322599aad39d87ba159e84c89e302d | 55647258df0565f19179ffb97ac217708d84ba4a | /crawlers/network/__init__.py | a6f6440932421cfbda81e0e8c6af1691510d44b0 | [] | no_license | beatonma/snommoc | 25de0e81af0d9940bdc3aa6420cb5764d50c6d11 | 0a9d37dcad112c5dd98609c1566e74176ae3d89d | refs/heads/main | 2022-03-11T07:53:33.038649 | 2022-03-05T17:03:56 | 2022-03-05T17:03:56 | 188,595,195 | 0 | 0 | null | 2022-02-18T17:54:30 | 2019-05-25T17:35:58 | Python | UTF-8 | Python | false | false | 72 | py | from .cache import JsonResponseCache, json_cache
from .network import *
| [
"beatonma@gmail.com"
] | beatonma@gmail.com |
8d1f65ab1abe1cce441cf96ff5ffc3bfa7c9c855 | 07589006c16b85a642fc5087402208fb0b5df89f | /beavis/testing.py | 17d8c1d74f39876dc25b65590ed17da63d0c9617 | [] | no_license | TrendingTechnology/beavis | 69886054169b933225ad10067db465aa660e6f4f | 0a95f8071005da9ed0951ce8511c1115112fb714 | refs/heads/main | 2023-06-22T01:14:54.553916 | 2021-07-14T21:15:36 | 2021-07-14T21:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | from beavis.prettytable import PrettyTable
from beavis.bcolors import *
import beavis.six as six
import beavis
class BeavisDataFramesNotEqualError(Exception):
"""The DataFrames are not equal"""
pass
class BeavisIndicesNotEqualError(Exception):
"""The indices are not equal"""
pass
class BeavisDTy... | [
"matthewkevinpowers@gmail.com"
] | matthewkevinpowers@gmail.com |
07bf91ead97638a642484b81395264f321788941 | 4d593d4d319eb29a82a30845991f0599ca1fdf47 | /NetEaseMusicApi/RawApi.py | 2f7ac90c8106e1b8eaf6ed4797b5da4b36753fd3 | [
"MIT"
] | permissive | wangjc888/NetEaseMusicApi | 822f9fcd9a3f486c5eabcfba6d3e2f2699c9bc0b | 94296d084be53d67bc0c7d107c76dd8fe73da38c | refs/heads/master | 2021-01-22T12:49:45.037607 | 2016-04-08T04:59:04 | 2016-04-08T04:59:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | #coding=utf8
import md5, base64, random
import requests, json
import os, sys, time
__all__ = ['NetEaseMusicApi']
DEFAULT_LIMIT = 10
BASE_URL = 'http://music.163.com/api/'
headers = {
'Cookie': 'appver=1.5.0.75771',
'Referer': 'http://music.163.com',
}
_API = {
'search': {
'songs... | [
"i7meavnktqegm1b@qq.com"
] | i7meavnktqegm1b@qq.com |
e9012a7e7dc84b41e4201a5c8e96303211e61bfb | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/application-insights/azext_applicationinsights/vendored_sdks/mgmt_applicationinsights/v2020_03_01_preview/models/__init__.py | 7177ea6248e5402c0b78903545f9551d8644a156 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 1,320 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | VSChina.noreply@github.com |
8967c0901a86bd2e7773449bd6656e80f5745379 | 6bc97e30c5a7436de6e630b8d1f8c20871384ded | /kepler/services/geoserver.py | 322c7ad91af8ebaf415dcc1f0a3ec19af2f367d6 | [] | no_license | drh-stanford/kepler | 22467c88f1007c33fcbf117b1acb7349aebd8cc7 | e9e3af92aa33d08c08cf2272c36733bf6b6cbaf8 | refs/heads/master | 2021-01-24T04:08:48.874862 | 2015-03-02T18:43:13 | 2015-03-02T18:43:13 | 31,556,357 | 0 | 0 | null | 2015-03-02T18:41:37 | 2015-03-02T18:41:36 | null | UTF-8 | Python | false | false | 803 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import requests
try:
from urllib.parse import urljoin
except ImportError:
from urlparse import urljoin
class GeoServerServiceManager(object):
def __init__(self, url, workspace, datastore):
url = url.rstrip('/') + '/'
self.base_... | [
"mgraves@mit.edu"
] | mgraves@mit.edu |
e147cf623993b82087ef78da2476ce540b904b28 | eba136fc1687a0c7593587cf0b29609c0dd85bbf | /Searching-Sorting/LinearSearch.py | 55d1b7b11cdef207999ec20f0d02251befefaa31 | [
"MIT"
] | permissive | NishkarshRaj/Functional_Thinking_Python | f54389c8a329987c4a9177103a9caac7fdd9c6cb | 4458b983fcbdbb028514f1855bbbd1de14ac68c0 | refs/heads/master | 2022-03-27T22:40:01.411918 | 2020-02-07T02:20:36 | 2020-02-07T02:20:36 | 232,322,430 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | import numpy as np
print("Enter Array as space separated values: ")
arr = list(map(int,input().split(' ')))
# Convert to Array
array = np.array(arr)
print(array)
# Take element to be searched
el = int(input("Enter element to be searched: "))
# Searching, if found flag = 1 else flag = -1
flag = -1
for x in array... | [
"noreply@github.com"
] | NishkarshRaj.noreply@github.com |
01f9b74d04eb21fd3154a946cf1959bc597fc3e5 | f68ec37ae975d3aaff2ab3d6a0bae11a2cc432fa | /iot_message/cryptor/aes_sha1.py | 12dde31bf5b85a2f2dab5b533cc9e95545a507b3 | [
"MIT"
] | permissive | bkosciow/python_iot-1 | 3f78a0b2ec18949e579a75132a838a7793d6bbe8 | f3cd2bdbb75cb9afe13fecb603b5b8c026d23500 | refs/heads/master | 2021-04-29T01:00:10.595553 | 2019-10-27T19:09:46 | 2019-10-27T19:09:46 | 77,786,513 | 0 | 0 | MIT | 2019-10-27T19:09:47 | 2017-01-01T16:24:51 | Python | UTF-8 | Python | false | false | 2,350 | py | from iot_message.abstract.cryptor_interface import CryptorInterface
from Crypto.Cipher import AES
from Crypto.Hash import SHA, HMAC
import iot_message.exception as ex
import binascii
from Crypto import Random
import json
class Cryptor(CryptorInterface):
name = "message.aessha1"
algorithm = AES.MODE_CBC
d... | [
"kosci1@gmail.com"
] | kosci1@gmail.com |
f916cf7770ee9f85bf4fad7831c64dbbef7b125b | 84c36e9067476a730d88f5ec799deabd5a46a44d | /Main/Windows/QSSSelector.py | 79e4d20ee0a9566c12a7e624e53e00355039556d | [] | no_license | AGou-ops/myPyQT5-StudyNote | 8bbce76b778a55c31773313d137682c77d246aad | 7e5eb426b6f30c301d040f6bc08f8a3c41d4a232 | refs/heads/master | 2022-11-06T00:05:25.603798 | 2020-06-20T01:59:45 | 2020-06-20T01:59:45 | 261,099,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | '''
使用QSS选择器设置控件样式
'''
from PyQt5.QtWidgets import *
import sys
import qdarkstyle
class QSSSelector(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle("QSS样式")
btn1 = QPushButton(self)
btn1.setText("按钮1")
btn2 = QPushButton(self)
btn2.setPropert... | [
"suofeiyaxx@gmail.com"
] | suofeiyaxx@gmail.com |
27c6e9f65c72f40316a6e12f35a1bccc43cf2133 | 0767d96d7d389d0c76b9915f33d19e910f5e3ae2 | /changingthefoodchain/organizations/templatetags/organizations_tags.py | c843d91f12ba427533159560f2b7a46db3902fc9 | [] | no_license | ebrelsford/changingthefoodchain-back | 3d7b68aadd97339910a98ea6da0f66ce2af46979 | 58d093ff4f4f211c1e83de099f4bf3981d598588 | refs/heads/master | 2021-01-22T09:05:20.114067 | 2016-01-15T02:33:10 | 2016-01-15T02:33:10 | 21,173,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | from django import template
from django.conf import settings
from classytags.core import Options
from classytags.arguments import Argument
from classytags.helpers import AsTag
register = template.Library()
class Setting(AsTag):
options = Options(
Argument('name'),
'as',
Argument('varname... | [
"ebrelsford@gmail.com"
] | ebrelsford@gmail.com |
a35599c00581767172ee0422f2be9516faf72b00 | 09a8d6e247e4575f09d68b0dae3cf0b94255717b | /10 Days Of Statistics/Day_6_The Central Limit Theorem III.py | 9576c905e2602cbb9f8156ab85f6f71aecc6a691 | [] | no_license | ShihabAhmed09/HackerRank-Solutions-Python | 5e648eac81b70b502d77aafb7cf676a72f2583c3 | dc1e25d726ed13e12da7f767e4b4acbadef2bd2a | refs/heads/main | 2023-02-15T05:51:47.753723 | 2021-01-05T18:02:14 | 2021-01-05T18:02:14 | 300,979,036 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from math import sqrt
samples = int(input()) # 100
mean = int(input()) # 500
std = int(input()) # 80
interval = float(input()) # 0.95
z = float(input()) # 1.96
print(round(mean - (std / sqrt(samples)) * z, 2)) # 484.32
print(round(mean + (std / sqrt(samples)) * z, 2)) # 515.68
| [
"49798311+ShihabAhmed09@users.noreply.github.com"
] | 49798311+ShihabAhmed09@users.noreply.github.com |
acfce657a5f6dc699b7e861bc6d4192807952eab | 29c476c037a05170ff2ddef8edd07014d3751614 | /0x02-python-import_modules/2-args.py~ | 503e2d4de3ec348b652ebd2878e569da4a485c0a | [] | no_license | hacheG/holbertonschool-higher_level_programming | a0aaddb30665833bd260766dac972b7f21dda8ea | 535b1ca229d7cf61124a128bb5725e5200c27fbc | refs/heads/master | 2020-07-22T23:09:27.486886 | 2020-02-13T19:41:34 | 2020-02-13T19:41:34 | 207,360,462 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 320 | #!/usr/bin/python3
import sys
leng = len(sys.argv) -1
if leng == 0:
print('{} arguments.'.format(len(sys.argv) -1))
elif leng == 1:
print('{} argument:'.format(len(sys.argv) -1))
else:
print('{} arguments:'.format(len(sys.argv) -1))
for i in range(leng):
print('{}: {}'.format((i + 1), sys.argv[i+1]))
| [
"943@holbertonschool.com"
] | 943@holbertonschool.com | |
9f5b947d19d4d5dfd8e3dc3ecae9824dce25b405 | a74a592d3e34c0cb2e19363a92410c520dc0ecda | /backend/course/api/v1/viewsets.py | f463bd035dffeedb8eb7cfc33afd81513e1bf0ec | [] | no_license | crowdbotics-apps/youthbuild-course-a-18675 | 5e4f0231b6127b215576c87593b8a073518200de | 4f17bfa2f588be23f24d862ca86fba569908e90e | refs/heads/master | 2022-11-08T20:55:36.094513 | 2020-07-07T19:33:25 | 2020-07-07T19:33:25 | 277,903,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py | from rest_framework import authentication
from course.models import (
Recording,
Event,
Subscription,
Course,
Group,
Module,
PaymentMethod,
SubscriptionType,
Enrollment,
Lesson,
Category,
)
from .serializers import (
RecordingSerializer,
EventSerializer,
Subscript... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3bb76010b0960233a2c6f2f98916a026cc7ec8e6 | 912aa38162e9d1ca80048c0b7849c459a73d8f69 | /django/django_orm/login_proj/apps/login_app/views.py | c7a03450e308545979b713b0eb4501f1372fbc9c | [] | no_license | icylily/CodingDojo-PythonStack | 585ed5c4c04dc8adefdc3cef15699b3bca1bf4a8 | b6f8fe7051b22bc254c099dfd3118d20bcb22bec | refs/heads/master | 2020-04-21T08:03:58.850029 | 2019-02-21T21:45:42 | 2019-02-21T21:45:42 | 169,408,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | from django.shortcuts import render,redirect,HttpResponse
from django.contrib import messages
from .models import *
import bcrypt
# Create your views here.
def index(request):
return render(request,"login_app/index.html")
def process_register(request):
errors = User.objects.basic_validator(request.POST)
... | [
"icylily0116@gmail.com"
] | icylily0116@gmail.com |
f9920292ce08fd9ae715801d495ff37dfcfb1f5e | a4a01e251b194f6d3c6654a2947a33fec2c03e80 | /PythonWeb/Django/1809/Day04/Day03/index/migrations/0002_remove_publisher_website.py | a7b169fc659f2b6307d6a1319f2c81a1d5c22139 | [] | no_license | demo112/1809 | 033019043e2e95ebc637b40eaf11c76bfd089626 | e22972229e5e7831dce2aae0b53ce19a6e3bb106 | refs/heads/master | 2020-04-09T07:10:49.906231 | 2019-02-27T13:08:45 | 2019-02-27T13:08:45 | 160,143,869 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-12-19 02:11
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('index', '0001_initial'),
]
operations = [
migrations.RemoveField(
model... | [
"huafengdongji@hotmail.com"
] | huafengdongji@hotmail.com |
26c8cc94d01be587f38133967596ebe299e439ce | 4b9afb1be66dc1989c6dc55359203893c872c519 | /print_shape.py | 08c49b5dfdbf11b6f4ca6190667a8cd43a29959d | [] | no_license | icannos/ImprovedES | f0e1386745dc961fccc3f10bcc8d871fdcb0c0aa | 10e67ece78114edb857fdfe178f62ccc6006cb87 | refs/heads/master | 2020-07-06T12:31:03.742608 | 2019-08-18T14:48:41 | 2019-08-18T14:48:41 | 203,018,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from dinomodels import smallDino
import numpy as np
specimen = smallDino.init_parameters()
specimen1 = smallDino.init_parameters()
lw = []
for w in specimen:
lw.append(np.random.normal(w.astype(np.float64), 0.6))
print(smallDino.distance(specimen, lw))
| [
"maxime.darrin@ens-lyon.fr"
] | maxime.darrin@ens-lyon.fr |
4d906857b0a0e9dfa8285b67d20a1860d4cfa1b5 | 09a57948d490ad06ac339dac8c92c99c3935e7e3 | /University_Study/lab5_7.py | 4ccc4d17b2d31e17726eb2e9fd3ff63927f9ccbb | [] | no_license | HanHyunsoo/Python_Programming | f2962f0e20a2a46b0e22670f98ce7c8b270dadc8 | 52ebbdd6a8e732dfd2380e88d5d0f5c0bd369f07 | refs/heads/master | 2020-03-22T12:04:26.827835 | 2019-09-23T15:58:27 | 2019-09-23T15:58:27 | 140,015,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | """
챕터: day5
주제: 매개변수의 전달 방식 비교
문제:
작성자: 한현수
작성일: 2018.10.4.
"""
# 매개변수의 수정 여부 확인을 위한 함수 정의
# call-by-value 방식으로 매개변수 값을 전달
# 매개변수 값을 복사하여 전달
def modify(n):
n += 1
return n
#실행 시작 부분
k = 10 # 변수 정의
print("k =", k) # 호출 된 변수 값 출력
re = modify(k) # modify 호출 후 결과 값을 re에 저장
print("k =", k) # 호출 후 변수 값 출력
print("re... | [
"gustn4563@gmail.com"
] | gustn4563@gmail.com |
44914255b3110cc9dc31748510d4acddd49b3e65 | 9fe6611dde82daee71ba8aa96c1d84769842f145 | /rbtmq/rabbitmq_client.py | 3a6cb1c59b6a5c7315100e1e732703ade02f5168 | [] | no_license | lishulongVI/whisky | 86d95026788a5b1879323b89e0721141c12d30d3 | f4e8ec324d10069045e91da4c2dfd2d8d91a5e5f | refs/heads/master | 2020-03-08T19:02:38.536853 | 2018-05-07T00:14:58 | 2018-05-07T00:14:58 | 128,334,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # -*- coding: utf-8 -*-
"""
@contact: lishulong.never@gmail.com
@time: 2018/4/7 下午9:27
"""
import pika
from pika import PlainCredentials
__config_mq = {
'host': '192.168.91.129',
'port': 5672,
'virtual_host': '/vhost',
'credentials': PlainCredentials(username='mojito', password='mojito'),
}
connect =... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
d062fb882b10f1de10ba4985a1b0f8bae2d5a15b | 6c905d2875ae419b0c41d587feeb8d63c2a73d78 | /acacia/data/generators/generic.py | 7762e5942ca9a08576d5d6a511e880e195b50444 | [] | no_license | acaciawater/acaciadata | e01f057e6d95a5227299a4f10f3203bd14d6b426 | 51bf7cf5d2dd0368cce9ab6d89286e6d7a9a68ff | refs/heads/master | 2021-04-19T00:16:17.178710 | 2020-02-19T09:53:06 | 2020-02-19T09:53:06 | 48,989,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,970 | py | import logging
logger = logging.getLogger(__name__)
import pandas as pd
from generator import Generator
class Generic(Generator):
''' Generic csv file without header, comma separated, uses standard date/time formatting in first column '''
def __init__(self, *args, **kwargs):
super(Generic,se... | [
"tkleinen@gmail.com"
] | tkleinen@gmail.com |
f531e018dad027a9d68550078b5ae81c6f7e4204 | 41e013c7e304cfbb658b73df42b9a41cea97944b | /analysis/aistplusplus_api/aaaa.py | 2e9efab72972846d8f6c3ccb219a3cef0fc00cdd | [
"Apache-2.0"
] | permissive | serend1p1ty/transflower-lightning | c2a53deae38ff713d7474288db6cac47791d9eb4 | 8f98116041af187a4250e8e1236f5e37e74443eb | refs/heads/main | 2023-07-04T04:19:25.139455 | 2021-08-09T06:55:22 | 2021-08-09T06:55:22 | 385,800,444 | 1 | 0 | null | 2021-07-14T03:18:37 | 2021-07-14T03:18:36 | null | UTF-8 | Python | false | false | 2,469 | py | import pickle
thing = pickle.load(open("SMPL_MALE.pkl","rb"), encoding="latin1")
thing.keys()
thing["kintree_table"][0].shape
thing["kintree_table"][0]
thing["J_regressor"].shape
thing["J"].shape
thing["v_template"].shape
# from aist_plusplus.loader import AISTDataset
from smplx import SMPL
import torch
#%%
# smp... | [
"guillefix@gmail.com"
] | guillefix@gmail.com |
f8fb5c844d635896cf8b16cf8e88c9e92cd0ba96 | fd739ea08496c158ed268d562beb083c207e4d63 | /mozart/xauth/admin.py | e6a3e678d2b976d0da9c40d1249ccb3e3b2a2028 | [] | no_license | Zero-Projects/Mozart | 0c93f3d3b8017a045f69409adff2a9100345822c | 2f73ee3c5dceeb217ba42c89e31f771c2e80cb6d | refs/heads/master | 2021-01-21T19:21:05.451783 | 2015-08-14T04:01:03 | 2015-08-14T04:01:03 | 29,043,195 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.contrib import admin
from .models import ExtendUserSocialAuth
@admin.register(ExtendUserSocialAuth)
class AdminSocialUserName(admin.ModelAdmin):
list_display = ('user', 'network_username')
| [
"mauriciodinki@gmail.com"
] | mauriciodinki@gmail.com |
66f916ef2f621f1f5daf88b55e0e312e377ebfa4 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/common/Lib/bdb.py | e4e8ba0f18d84ca9420d661c9bfa1832383686a0 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 16,035 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/common/Lib/bdb.py
import fnmatch
import sys
import os
import types
__all__ = ['BdbQuit', 'Bdb', 'Breakpoint']
class BdbQuit(Exception):
pass
class Bdb():
def __init__(self, skip=None):
self.skip = set(skip) if skip else... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
6f97a3e671c9bfa293578ac291794682b2441a50 | 21b131564f9708d4667dc6dc0043ce6173dfa83c | /leetcode/Container With Most Water.py | 6d366086c9a1a8327f62cba1f2e65505a736bec1 | [] | no_license | hermitbaby/leetcode | 5f1b6854c181adabb00951a56dd5235316ab8a45 | 5b76e2ff61a42cd366447d4a7cf1f4f9c624369b | refs/heads/master | 2020-12-24T08:37:25.846329 | 2017-04-28T23:27:57 | 2017-04-28T23:27:57 | 34,924,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | # Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water.
#
# Note: You ma... | [
"lchen@choicestream.com"
] | lchen@choicestream.com |
9513e1b9e904ace88feb1c5d8f8d3855a16dcf36 | 2834e05cfb56e16fb4a20a46d713ee3e7393a30a | /d10/mymodule/stats_word.py | 04987df134b03b6611801db814eff52ed43a3bab | [] | no_license | jayhebe/Python_Data_Analysis | 29680f1a13ca5756b8fed96c75f7bf4ee432851e | 2bd39ce2688ef7fe4340810529f35799eff7de7a | refs/heads/master | 2020-07-04T16:29:59.470195 | 2020-01-14T15:12:42 | 2020-01-14T15:12:42 | 202,339,479 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | from collections import Counter
import jieba
import string
def stats_text_en(en_text):
if not isinstance(en_text, str):
raise ValueError("The method only accepts type str.")
for en_special_word in string.punctuation:
if en_special_word in en_text:
en_text = en_text.replace(en_spec... | [
"jayhebe1983@sina.com"
] | jayhebe1983@sina.com |
34823b804e5f354401dbb98a43f6620db9bfc84d | 245b30d6afd80ac48700cccc3a97b6f63c1e4a90 | /jobserver/utils.py | 77b141e058eb7fb995cd85be9406a8c03401473a | [] | no_license | machrisaa/opensafely-job-server | 8e1995ad4f9cca2cbc146d7c687ea5fe63a085a9 | e2dd9b85c896ead390e002c197acd9f263a556e5 | refs/heads/main | 2023-05-01T23:42:24.190138 | 2021-04-28T13:41:51 | 2021-04-28T13:41:51 | 363,146,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | def dotted_path(cls):
"""Get the dotted path for a given class"""
return f"{cls.__module__}.{cls.__qualname__}"
| [
"george@ghickman.co.uk"
] | george@ghickman.co.uk |
13912f3bdb14fe464a39a23e2b6242c027b9e921 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_358/ch5_2020_09_09_11_49_51_139107.py | ebdd8ada888ae678961f8669d4f1a35acb7fec89 | [] | 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 | 53 | py | def libras_para_kg(l):
kg = l*0.454
return kg | [
"you@example.com"
] | you@example.com |
07756d0ead6a1f9312c79af8284951cd627f0fcd | 4c3871eff08da80ebde527f04cad9be2eb170079 | /Project_Allien-Mark-01/settings_alien_invasion/setting.py | 10468d8276e172f579238cc41f9432ae00d382aa | [] | no_license | ironsubhajit/ALL_PYTHON | 03fa029e8cd0777fa5947f25cc776dde97f9ace1 | cc3286ca075c3c98ed34d06e31b5c40bafd23fd3 | refs/heads/main | 2023-06-01T14:00:33.232180 | 2021-06-16T03:55:30 | 2021-06-16T03:55:30 | 362,137,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | class Settings:
"""A class to store all settings for Alien Invasion"""
def __init__(self):
"""Initialize the game's settings."""
# Screen Setting
self.screenWidth = 1200
self.screenHeight = 600
self.bgColor = (230, 230, 230)
# Ship settings
self.ship_spee... | [
"mandalsubhajit655@gmail.com"
] | mandalsubhajit655@gmail.com |
e8096475d252e07e0273d29399ad4df6fe087bc9 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /raven/_compat.py | 0bdcda0185b6cd49540ee82bfb1e49d3ad840a4a | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,232 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\raven\_compat.py
from __future__ import absolute_import
import operator
import sys
import types
__author__ = 'Benjamin Peterson <benjamin@python.org>'
__version__ = '1.3.0'
PY2 = sys.version_info[0] == 2
if not PY2:
string_... | [
"le02005@163.com"
] | le02005@163.com |
3ee3a844d3425453f182d88461a04d64ac4f1454 | 2a28a94fc8eb08961e76c61ab73889135153502b | /asposecellscloud/models/legend_entry.py | ece6e1ec5ee581a76f8dfb6b5cea09baab0bb68d | [
"MIT"
] | permissive | aspose-cells-cloud/aspose-cells-cloud-python | 45fc7e686b442302a29a8223e7dbddb71950438c | 270d70ce7f8f3f2ecd9370b1dacfc4789293097e | refs/heads/master | 2023-09-04T01:29:44.242037 | 2023-08-23T13:13:30 | 2023-08-23T13:13:30 | 123,092,364 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,056 | py | # coding: utf-8
"""
<copyright company="Aspose" file="LegendEntrypy.cs">
Copyright (c) 2023 Aspose.Cells Cloud
</copyright>
<summary>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without re... | [
"roy.wang@aspose.com"
] | roy.wang@aspose.com |
a5270919c2d7fbeb0c181e92d7d2343901400980 | 6256cb2b4a16b3fe99bf9e770d61b9d365ef4c66 | /api_get_an_app.py | 0296aea9ae4b5372aa59caa7fee18be16045d4a9 | [] | no_license | clarkngo/okta-testing | f832d159de51cfbedb7183b94ef88916a23c09df | 7e1dbd6a06e9986a94712a164c16c4d0b3ac2367 | refs/heads/master | 2022-12-07T01:02:04.354068 | 2020-08-29T22:54:47 | 2020-08-29T22:54:47 | 291,361,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import requests
import json
def load_json_file(json_filename):
with open(json_filename) as json_file:
json_data = json.load(json_file)
return json_data
cfg_somecorp = load_json_file("config_somecorp.json")
okta_domain = cfg_somecorp["okta_domain"]
api_key = cfg_somecorp["api_key"]
headers = {
... | [
"clarkngo@gmail.com"
] | clarkngo@gmail.com |
f3e3601c22625748b94bda784802c82e54bc1d58 | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2L/2L-2O_wat_20Abox/set_1.py | 37166173e66bbde0e86e2a4aee9fd82a464d6e32 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2L/wat_20Abox/ti_one-step/2L_2O/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_1.in'
temp_pbs = filesdir + 'temp_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lambd... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
aa4c459fbff3206a83b5dc9d012c92c0771ae374 | b403c7fe56209472855dff451f0b6283d5471008 | /Supplemental_Material/PythonProjects/9. DATA STRUCTURES/Lesson6_listsDataStructures.py | ba2b8c52189491dd3ee014ea59aa67b28feae036 | [] | no_license | Sandbox4KidsTM/Python_Basics | 842bde52796896e913fdb5cc349034c52092555f | 68c95547ec1567958fc8069e6a4bb119e436211a | refs/heads/master | 2020-03-23T01:06:29.363196 | 2018-08-10T04:32:58 | 2018-08-10T04:32:58 | 140,901,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 3 20:37:28 2017
@author: Sandbox999
"""
"""
lists are one of the popular data structures in Python
they store an ordered/indexed list of items that you can access
lists are MODIFIABLE
"""
filelist = [2015, 2016, 2017]
print(type(filelist))
print(fileli... | [
"mitchslabrenz@gmail.com"
] | mitchslabrenz@gmail.com |
1bdc873055d09b6cb83761a09ae9db0b018eab33 | 1bdb7652b8fc12421441073b430f5df9b8216b55 | /src/data/video_lang_datasets.py | 2ae7a712c4c360e8d8eba502b1af836fddaecbfe | [] | no_license | PanXiebit/slr | 83baac588212768e749690a3eab260b11d803a8b | 11f64bd366659d34fd983f380f76034c0a092341 | refs/heads/master | 2022-12-03T18:32:28.572091 | 2020-08-18T09:22:07 | 2020-08-18T09:22:07 | 285,285,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,927 | py | from torch.utils.data import Dataset, DataLoader
from src.data.vocabulary import Vocabulary
import logging, os
import pandas as pd
import torch
import glob, struct
import numpy as np
from PIL import Image
from torchvision import datasets, transforms
import random
class PhoenixVideo(Dataset):
def __init... | [
"ftdpanxie@gmail.com"
] | ftdpanxie@gmail.com |
1128fd7d2acc0bedbba4773cc4d0c126df739eb0 | fae94c0dcb251ea5854e33e81369140ca75cfaf5 | /src/bloombox/schema/products/Plant_pb2.py | eb8ca1409ebf85e46a5cb4ea3a41899511ffa639 | [
"Apache-2.0"
] | permissive | fagan2888/Python | 425654b18055233949aa7e6181e0b2652975e185 | 1b125fbdf54efb390afe12aaa966f093218c4387 | refs/heads/master | 2020-12-13T14:17:59.452500 | 2018-06-18T16:16:30 | 2018-06-18T16:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 5,796 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: products/Plant.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import messag... | [
"sam@momentum.io"
] | sam@momentum.io |
c819f823c70e2f2014c9ed1a0b1cb88d0a252412 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.POV/Sans_8/pdf_to_json_test_Latn.POV_Sans_8.py | a3bb40d20f8b60fabd8ba8474ea4487109e76b0e | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.POV/Sans_8/udhr_Latn.POV_Sans_8.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
71e4141e5eaa1e7b9c76f690c905410348fd8827 | ac989f6c5f8e5108598fe6ee1e79c8b515acede3 | /tests/autopilot/Haptics/__init__.py | 67b6f47b4958e4c0c3da0a9f8e2a9d467db3a959 | [] | no_license | UbuntuChina/haptics | d23def93b8362557b9f96e6748d9ebc8416c0da9 | 4d27f7e659a8c136ea0f2064c24092f65f4157de | refs/heads/master | 2020-05-25T13:36:10.022196 | 2016-03-09T04:07:56 | 2016-03-09T04:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | py | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
"""Ubuntu Touch App Autopilot tests."""
import os
import ubuntuuitoolkit
from autopilot import introspection
from autopilot.matchers import Eventually
from testtools.matchers import Equals
from ubuntuuitoolkit import base
PACKAGE_ID = 'hap... | [
"liu_xiao_guo@yahoo.com"
] | liu_xiao_guo@yahoo.com |
16a99a1ff86c776cbae269319166bb68a94961ae | aa067ee0d0e325916a3ea8a61bce553277e6585a | /Font Info/Find and Replace In Instance Parameters.py | 4d6f4ba8f66e64b1f916194b32fb868e2b2987bc | [
"Apache-2.0"
] | permissive | m4rc1e/Glyphs-Scripts-1 | a5be9e25b0d45b798184ac65ad17c46c443ba8f0 | 735ab53a1454dd679982ba9cec35ce9343f23e3e | refs/heads/master | 2020-09-01T14:18:57.667131 | 2019-10-29T14:56:25 | 2019-10-29T14:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,777 | py | #MenuTitle: Find and Replace in Instance Parameters
# -*- coding: utf-8 -*-
__doc__="""
Finds and Replace in Custom Parameters of selected instances of the current font or project file.
"""
import vanilla
class FindAndReplaceInInstanceParameters( object ):
def __init__( self ):
# Window 'self.w':
windowWidth = ... | [
"res@glyphsapp.com"
] | res@glyphsapp.com |
258986cca4ced22ea8ef04065e5c7d9fd5d6a184 | b385fc2f18bbb43ec1bca1606b62ae83f33dcb2d | /Python Fundamentals/Final_Exam_Prep/01. Change Bureau.py | 59865f4b92e0f2e6f34296ddb0d53b785df211e3 | [] | no_license | rishinkaku/Software-University---Software-Engineering | d9bee36de12affc9aed7fcc0b8b6616768340e51 | b798a0c6927ef461491c8327451dd00561d836e4 | refs/heads/master | 2023-06-10T19:52:51.016630 | 2021-07-08T00:45:06 | 2021-07-08T00:45:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | bit = int(input())
uan = float(input())
comision = float(input())/100
bit = bit*1168 / 1.95
uan = (uan*0.15)*1.76
uan = uan/1.95
total = bit+uan
comisin = total*comision
print(f"{total-comisin:.2f}") | [
"66394357+DimAntDim@users.noreply.github.com"
] | 66394357+DimAntDim@users.noreply.github.com |
60e3ef5e4859894e29b1ab1a00d1a3a99b160f7e | 62cec11c95d90be3bf84e29d76ee3e3785d9f59e | /237_delete_node_in_linked_list/deleteN.py | d925e8f1a8f5101206857f15cb398f78453b33a2 | [] | no_license | Jody-Lu/Array | faec40f1ec18968dd3739c9f6cb6039aed86e7e5 | eaee6a529705b5973cb502d2fcb607ab0bedec08 | refs/heads/master | 2020-04-12T09:06:43.860700 | 2016-11-19T21:33:47 | 2016-11-19T21:33:47 | 63,844,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def deleteNode(self, node):
"""
:type node: ListNode
:rtype: void Do not return anything, modify node in-place instead
"""
next_node = node.next
n... | [
"b00901192@ntu.edu.tw"
] | b00901192@ntu.edu.tw |
24b218e689b1e95be7645603a1d3db29f5b63f17 | 6f4a0e9d50879fa2ebef2beb375a56164acdc514 | /linkedin/web-scraping/user-details/src/formula/formula.py | 21aa5d208d5c1072df117bfd06331df5784256a6 | [] | no_license | toniall/formulas-python | dacf7a26faab5cfc992bc2d7d65c526b1916a1a0 | 8c48441fdc6389e7b1f317e76c02b5ed02f5b50c | refs/heads/master | 2023-03-17T04:39:13.760353 | 2021-02-28T23:35:13 | 2021-02-28T23:35:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,410 | py | #!/usr/bin/python3
from selenium import webdriver
import time
import re
def run(email, password, names, path):
#Open Chrome web
driver = webdriver.Chrome(executable_path='{}/chromedriver'.format(path))
driver.get('https://www.linkedin.com/')
#Login username/password
email_box = driver.find_element... | [
"guillaume.falourd@zup.com.br"
] | guillaume.falourd@zup.com.br |
3604ab7b5d3d3055f33e0477513016b0fbe22e78 | 58dcc8b13083b8ba4150fdda9b9e79067edc0632 | /robocorp-python-ls-core/src/robocorp_ls_core/debug_adapter_core/dap/dap_schema.py | 8a41c0948d8c678a3fb146f9b1a3bcb421250d5c | [
"Apache-2.0"
] | permissive | vainikkaj/robotframework-lsp | 8786cccd4e3f0fa9ecac295b27a1c3ae5f9492e8 | 58f0db23cf1728e6ddb72d1aaad8d772609eede2 | refs/heads/master | 2023-08-07T20:13:05.168235 | 2021-09-09T11:34:50 | 2021-09-09T11:34:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661,328 | py | # coding: utf-8
# Automatically generated code.
# Do not edit manually.
# Generated by running: __main__gen_debug_adapter_protocol.py
from .dap_base_schema import BaseSchema, register, register_request, register_response, register_event
@register
class ProtocolMessage(BaseSchema):
"""
Base class of requests, ... | [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
802a00ab1fa4a7f26c2c4aa286e4a117dde1b505 | 99a88b38e69119c6a6cd686a6f15df78e9162c77 | /Userprofile/migrations/0003_auto_20200413_1428.py | d5a52e7c23720cb3bca50b5d1c561edd77204390 | [] | no_license | khanansha/econ_healthcare | fd3cfa234c7dc66d6905ae5546431c12abcc0f7c | 6619774b56cd91550af5c1e9c966a7e3cd72fea8 | refs/heads/master | 2022-04-23T21:57:04.441511 | 2020-04-27T06:34:32 | 2020-04-27T06:34:32 | 256,525,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.2.10 on 2020-04-13 08:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Userprofile', '0002_auto_20200413_1233'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='DOB',... | [
"anjumkhan88987@gmail.com"
] | anjumkhan88987@gmail.com |
b8bd4213d9e40115fc993f49709f7f046e4e3a1a | 2fd087fbc5faf43940153693823969df6c8ec665 | /pyc_decrypted/latest/dropbox/mac/__init__.py | 6925f7528a1890891b59018867d3a8898b879ba4 | [] | no_license | mickeystone/DropBoxLibrarySRC | ed132bbffda7f47df172056845e5f8f6c07fb5de | 2e4a151caa88b48653f31a22cb207fff851b75f8 | refs/heads/master | 2021-05-27T05:02:30.255399 | 2013-08-27T13:16:55 | 2013-08-27T13:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | #Embedded file name: dropbox/mac/__init__.py
pass
| [
"bizonix@me.com"
] | bizonix@me.com |
0d6b3fc1af5b52d79ab530b0590abe7e5a89099a | 587f40518f47f9759f6af73f45ebc2cb121cef09 | /tutorial/settings.py | de18ff1a11ed84b241a9c89ca2d4574f25f62cee | [] | no_license | argen87/Tutorials | ca230357e8ac3d34a2f3257425755211da5e174c | 3ff0dea3885d454337f8ba323afd18ea84b11296 | refs/heads/master | 2023-05-07T19:20:42.605175 | 2021-05-29T05:14:02 | 2021-05-29T05:14:02 | 371,880,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 3.2.3.
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 pathli... | [
"you@example.com"
] | you@example.com |
8671cd96cca1eac7d1e2bba594e461bbfc1b70ab | daaa5e34bcc9dca9c96f2d5fdefc7c74dd289602 | /main.py | be26113aa062ae6216d02c2e08bdaf9a7cd0e2f2 | [
"MIT"
] | permissive | chauhan-utk/svm-pytorch | 6e32b78ffdeb78bed5a6afae6cee723958a81ce7 | 59cfc8f4df81948e528f10d403ee645df4d24bf0 | refs/heads/master | 2021-04-30T04:44:32.128637 | 2017-08-17T09:37:00 | 2017-08-17T09:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | #!/usr/bin/env python
# coding: utf-8
#
# Author: Kazuto Nakashima
# URL: https://github.com/kazuto1011
# Created: 2017-08-16
import argparse
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import torch
import torch.nn as nn
import torch.optim as optim
import torchnet as tnt
from skle... | [
"k_nakashima@irvs.ait.kyushu-u.ac.jp"
] | k_nakashima@irvs.ait.kyushu-u.ac.jp |
a4d6b9ec2a9082d4e0a640d8c7c31b704b47d838 | 80f036b859323fdafcca7791ffbc158c56862dc4 | /realty/management/commands/populate_random.py | bd46e0192d65a3c9fca9f796abe9a459d3ef5265 | [
"Apache-2.0"
] | permissive | DalavanCloud/property-finder | 4b3033aeaa5d6dada7a322d0026f988e54820948 | 68e8e6b3c0e3af54f3e3089d3bed0b5d4b75b561 | refs/heads/master | 2020-03-30T07:13:08.507884 | 2018-02-12T01:06:35 | 2018-02-12T01:06:35 | 150,923,609 | 1 | 0 | Apache-2.0 | 2018-09-30T02:49:45 | 2018-09-30T02:49:45 | null | UTF-8 | Python | false | false | 4,257 | py | # Copyright 2017 Google Inc.
#
# 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 wr... | [
"steve@jupo.org"
] | steve@jupo.org |
c9f5fd15b9a9b8cdb9c8a4b0b6ccc98fe50bcce8 | cb57a9ea4622b94207d12ea90eab9dd5b13e9e29 | /lintcode/python/1848_word_search_III.py | 149199ea7231ff1ff97f0ad45a00b43d6288f963 | [] | no_license | boknowswiki/mytraning | b59585e1e255a7a47c2b28bf2e591aef4af2f09a | 5e2f6ceacf5dec8260ce87e9a5f4e28e86ceba7a | refs/heads/master | 2023-08-16T03:28:51.881848 | 2023-08-10T04:28:54 | 2023-08-10T04:28:54 | 124,834,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | #!/usr/bin/python -t
# dfs and trie
class TrieNode:
def __init__(self):
self.is_word = False
self.children = {}
class Trie:
def __init__(self):
self.root = TrieNode()
def insert(self, word):
node = self.root
for c in word:
if c not in node.children:
... | [
"boknowswiki@gmail.com"
] | boknowswiki@gmail.com |
43038f826388bb8ee48aa18f6fe9860f9eacbeed | 5189b657618c4041041836e6697b69caa965229f | /Cal/migrations/0014_auto_20200903_2011.py | 90fe06489e4f02acaf79bb66c87e8228b87e23a1 | [] | no_license | MuellerBettina/ba2020_573561 | b653a0c48569ebaecaaee6dd99c69d7e584514e8 | 41b6ba9f40c1fc63fa9dfdfba629c26f756abfa9 | refs/heads/master | 2023-04-06T16:12:03.229605 | 2020-09-10T16:26:12 | 2020-09-10T16:26:12 | 269,595,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # Generated by Django 2.2.13 on 2020-09-03 18:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Cal', '0013_auto_20200903_2005'),
]
operations = [
migrations.AlterField(
model_name='event',
name='color',
... | [
"BettinaMueller@pm.me"
] | BettinaMueller@pm.me |
13178b2f08f5e68a39254805efd53209d68485b3 | 40fe0709a4d953334843bba9c140441c4a2cb92a | /01.essence_of_machine_learning/solver/lasso.py | 86e36031d1ae4e746a0694a5c71d059f7360f414 | [] | no_license | predora005/machine-learning-playground | 534b21429860c1f1e813ceabaf6801bef07654c8 | 4471fc26abbe2148dbe71362e60bd932d45317d1 | refs/heads/master | 2023-07-06T12:30:41.405552 | 2021-08-09T11:01:01 | 2021-08-09T11:01:01 | 291,417,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | import numpy as np
# x > 0のとき、0以上の値を返し、
# x < 0のとき、0以下の値を返す。
# y > |x|のとき、0を返す。
def soft_thresholding(x, y):
return np.sign(x) * max(abs(x) - y, 0)
class Lasso:
# tol: トレランス(収束判定のための許容度)
# max_iter: 最大繰り返し回数
def __init__(self, lambda_, tol=0.0001, max_iter=1000):
self.lambda_ = lambda_
... | [
"46834065+predora005@users.noreply.github.com"
] | 46834065+predora005@users.noreply.github.com |
81cdfe62ec0c56294ad99d89d70a0eebe708df6a | f344f0ac68f5bc5e7b45f630e334a3bd72793492 | /Find_Using_Xpath/AbsoultePath_1.py | 8979fbfb6adea54939ee28af90902dcc7c585f35 | [] | no_license | Swethahiremath/seleniumpycham | dfa2138e7d951d28b128f2ca108f9d72c98e0a27 | 73402b0f273d6c9b2199aec084791e6adc9f2107 | refs/heads/master | 2020-09-28T12:48:39.501194 | 2019-12-09T04:05:51 | 2019-12-09T04:05:51 | 226,781,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from selenium import webdriver
#from selenium.webdriver.common import by
import time
driver=webdriver.Chrome()
driver.get("D://Pythonpractice//seleniumpycham//Find_Using_Xpath//Sametags.html")
time.sleep(2)
driver.find_element_by_xpath("/html/body/input[1]").send_keys("Swetha")
driver.find_element_by_xpath("/html/body... | [
"swhirema@oradev.oraclecorp.com"
] | swhirema@oradev.oraclecorp.com |
1d88eb28d39a5eb904af2d871d96cfde8dd398fc | 6e61b7ce4357f888cd0d46239a830548e5d10f89 | /Code/matthew/django/mainsite/todosajax2/models.py | 5327797a5770a43e7fc7e55470efc5b77bebd993 | [] | no_license | PdxCodeGuild/20170724-FullStack-Night | a42f612e686a906f312224dcd5d9c55cbcb4a81e | 24a6c9db8d65cf254e1b5a5d55dd00711065c048 | refs/heads/master | 2021-01-01T17:39:32.970027 | 2017-12-04T22:26:24 | 2017-12-04T22:26:24 | 98,124,598 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from django.db import models
class TodoItemAjax2(models.Model):
text = models.CharField(max_length=200)
date_entered = models.DateTimeField()
date_completed = models.DateTimeField(null=True, blank=True)
completed = models.BooleanField()
def __str__(self):
return self.text
| [
"flux2341@gmail.com"
] | flux2341@gmail.com |
c00628cbed4b81e526e9196eba2175c31db94f29 | 73b5d880fa06943c20ff0a9aee9d0c1d1eeebe10 | /tinyos-1.x/contrib/handhelds/swtest/testSerialSetTime/shimmerUtil.py | 73f96582e27f9c9bbcc24abdf1eee19d62ce3c19 | [
"Intel"
] | permissive | x3ro/tinyos-legacy | 101d19f9e639f5a9d59d3edd4ed04b1f53221e63 | cdc0e7ba1cac505fcace33b974b2e0aca1ccc56a | refs/heads/master | 2021-01-16T19:20:21.744228 | 2015-06-30T20:23:05 | 2015-06-30T20:23:05 | 38,358,728 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,328 | py | #! /usr/bin/env python
#
# $Id: shimmerUtil.py,v 1.1 2010/03/31 19:35:39 ayer1 Exp $
#
# Copyright (c) 2007, Intel Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions... | [
"lucas@x3ro.de"
] | lucas@x3ro.de |
7b00ff911e405758e2a4cbb9a3880595e1c5795f | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/OPCD-SUPPORT-MIB-V2.py | e0f0f9f31985354a290f8a9201409972d0ebc9ec | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 19,473 | py | #
# PySNMP MIB module OPCD-SUPPORT-MIB-V2 (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OPCD-SUPPORT-MIB-V2
# Produced by pysmi-0.3.4 at Mon Apr 29 20:25:39 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
3e4cf72ed755b2b04a84022cf4b6418033e70306 | 6188f8ef474da80c9e407e8040de877273f6ce20 | /python_modules/libraries/dagster-dbt/dagster_dbt_tests/utils.py | 37d8685c1dd6049f458123ac1915b44cef5a0a9e | [
"Apache-2.0"
] | permissive | iKintosh/dagster | 99f2a1211de1f3b52f8bcf895dafaf832b999de2 | 932a5ba35263deb7d223750f211c2ddfa71e6f48 | refs/heads/master | 2023-01-24T15:58:28.497042 | 2023-01-20T21:51:35 | 2023-01-20T21:51:35 | 276,410,978 | 1 | 0 | Apache-2.0 | 2020-07-01T15:19:47 | 2020-07-01T15:13:56 | null | UTF-8 | Python | false | false | 1,981 | py | from dagster import AssetKey, FreshnessPolicy
def assert_assets_match_project(dbt_assets, prefix=None, has_non_argument_deps=False):
if prefix is None:
prefix = []
elif isinstance(prefix, str):
prefix = [prefix]
assert len(dbt_assets) == 1
assets_op = dbt_assets[0].op
assert asset... | [
"noreply@github.com"
] | iKintosh.noreply@github.com |
966830d2626eae8f003f7ecad3576315a31fc482 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02660/s286982540.py | a63b3a07b27f047b28a6c166fdc40fd5eb93d4e1 | [] | 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 | 474 | py | N = int(input())
n = min(N, 10**6)
is_Prime = [True] * (n + 1)
is_Prime[0] = False
is_Prime[1] = False
for i in range(2, int(n**(1/2)+1)):
for j in range(2*i, n+1, i):
if j % i == 0:
is_Prime[j] = False
P = [i for i in range(n+1) if is_Prime[i]]
count = 0
for p in P:
count_p = 0
while N... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
58ce42d08016b4b5fd23b5ef186e83d4c7337495 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /7_graph/drawGraph.py | cf673d6f383bc56468410ab80d4a6b6aa8be01cd | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | from typing import List, Tuple
import matplotlib.pyplot as plt
import networkx as nx
def drawGraph(edges: List[Tuple[int, int, int]], isDirected: bool) -> None:
graph = nx.DiGraph() if isDirected else nx.Graph()
for u, v, w in edges:
graph.add_edge(u, v, weight=w)
edgeLabels = {(u, v): w[... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
084ae2115cbf8d9cb55bb234da2e93775196f499 | 9b74d7c6f8ef10f1b9dcee006769a5235d24479f | /python/mesh_004_cube_normalmap/cube_normalmap.py | e39144fefec2e930ac92e0611d1e856dd440a600 | [] | no_license | jackhub/graphics-snippets | 0a2d44ca7b116a96c379377655c6c68ea5fbe0b0 | 205fe3fd6dfd5a5bc223b297f7d47f2d0765bf07 | refs/heads/master | 2023-02-05T06:16:57.073125 | 2020-12-28T10:44:18 | 2020-12-28T10:44:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,803 | py | import os
import sys
currentWDir = os.getcwd()
print( 'current working directory: {}'.format( str(currentWDir) ) )
fileDir = os.path.dirname(os.path.abspath(__file__)) # det the directory of this file
print( 'current location of self: {}'.format( str(fileDir) ) )
parentDir = os.path.abspath(os.path.join(fileDir, os.par... | [
"Gernot.Steinegger@gmail.com"
] | Gernot.Steinegger@gmail.com |
556f59586d1b29270d108a7ddf2843e3d57cb3d6 | 78d949674cd1e6261ee23372e6ff24897ba6bc9a | /mobileplan/urls.py | e72da3efdcad4c3320b0ba298ec0b64dde7ccaea | [] | no_license | Aravindhan-M/first_project | 60377a65dec777ce6a55a57358dccb96ef6c396d | 68f5815aa7a7d7fa695bb753b5312f66bb201fe1 | refs/heads/master | 2022-12-14T11:23:56.782700 | 2019-08-09T09:53:17 | 2019-08-09T09:53:17 | 185,782,547 | 2 | 0 | null | 2022-12-08T01:45:24 | 2019-05-09T11:02:59 | Python | UTF-8 | Python | false | false | 228 | py |
from django.urls import path
from .views import MobilePlanView,MobilePlanHome
urlpatterns = [
path('', MobilePlanHome.as_view(), name='mobileplans'),
path('<slug:slug>', MobilePlanView.as_view(),name="mobile" ),
]
| [
"aravindhan@sayonetech.com"
] | aravindhan@sayonetech.com |
f9dd79183bbf6440659cb45eaf920cbb38418d6b | e5a044708032b853f1cdf8906da63502716fd410 | /test/test_score_only_request.py | 513026b3e84ca0882f5b58233c873eafcc2d7014 | [] | no_license | GBSEcom/Python | 4b93bab80476051fc99f379f018ac9fa109a8a6a | 5fa37dba8d0c3853686fdc726f863743376060c9 | refs/heads/master | 2021-12-04T12:55:29.605843 | 2021-11-19T22:01:03 | 2021-11-19T22:01:03 | 136,058,345 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
fa7582e18e06bf75063cb5b7037921ae699a196e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2894/60799/238324.py | 1ad9b66853d7d3d2fe7b359cf25b416a3c494e40 | [] | 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 | 178 | py | VK = input().strip()
n = VK.count('VK')
VK = VK.replace('VK', '')
for i in range(len(VK)-1):
if VK[i:i+1] != 'V' and VK[i+1:i+2] == 'K':
n += 1
break
print(n) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3c07e976aa0e39a36f970b5066ae21a7deae3652 | 34a26b713021f15d94d416b9728bac50d283ed5f | /interno_pymedigital-9.0/l10n_ec_hr_payroll_payment/models/hr_payslip.py | 566fcb8377a3960d24e74f65e12d6f2d8d4a8900 | [] | no_license | Brahim820/odoo-1 | 7641b2a0ef411fb3b82f806a11e88b9880875a46 | d8ee18a7dc467ff250113a0a3df3fcf1e876b321 | refs/heads/master | 2020-04-07T10:58:09.517097 | 2018-11-19T16:56:45 | 2018-11-19T16:56:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py | # -*- coding: utf-8 -*-
from openerp import _, api, fields, models
class HrPayslipRun(models.Model):
_inherit = 'hr.payslip.run'
payment_ids = fields.One2many('account.payment', 'payroll_slip_run_id', string=_('Payments'))
state = fields.Selection(selection_add=[('paid', _('Paid'))])
class HrPayslip(m... | [
"ceduardodch@gmail.com"
] | ceduardodch@gmail.com |
d13bd625ab33233e3ab580df5ea7e6c488584a91 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/selectionSort_20200731124859.py | a2f6c060f7c7c6452ae250554bcf149350ec023d | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # sort them in increasing order
# search through the list
# unsorted list
# first item min value = first item
# find a min value re assign
# search for smallest item
# move to first position
#
def selection(arr):
for i in range(len(arr)):
minValue = arr[i]
for j in range(i+1,len(arr)):
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.