blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1711ac75a5a82d904e2a11ea02136e499ef4108e | 82e7b27cc4377def80c2b475645d502e40a0e498 | /newsletter/migrations/0005_auto_20160125_0254.py | 69d79829f179eb4c077d4a43f0335481bb1b1b4e | [] | no_license | craYBoi/bryte | 850698e735a08ea10a08a78dc9e23b7e760c682f | d2b5a74d200ccb06cc3ef4e3180b83cbc338ce3e | refs/heads/master | 2022-12-12T08:54:56.863372 | 2017-06-28T05:03:32 | 2017-06-28T05:03:32 | 63,019,677 | 0 | 0 | null | 2022-11-22T01:00:25 | 2016-07-10T21:44:41 | CSS | UTF-8 | Python | false | false | 448 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-25 02:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsletter', '0004_price_stripe_price'),
]
operations = [
migrations.AlterFi... | [
"baoyuyang@Yuyangs-MacBook-Pro.local"
] | baoyuyang@Yuyangs-MacBook-Pro.local |
90f4fc6a5ec9d9d136150f6ea46628bf52e36d88 | 18dba2f82e17873e5e8161e74bc714ef88b09b36 | /realestate/estatebase/helpers/functions.py | 779f670f3d442fe73466b6d13824bd9a723543d7 | [] | no_license | sanchellius/estate-agent | 8013573624b62ea3b6362fa0c22edf8371ca6966 | 53c15c2f2c970bd432ae579b5aa6f76ab2fbac49 | refs/heads/master | 2021-01-17T21:15:35.988578 | 2016-07-25T21:51:24 | 2016-07-25T21:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | from django.http import QueryDict
import re
from decimal import Decimal
from urlparse import urlparse
from django.utils.encoding import iri_to_uri
def safe_next_link(full_path):
q = QueryDict('', mutable=True)
next_url = urlparse(full_path).path
next_query = iri_to_uri(urlparse(full_path).query)
... | [
"picasso75@yandex.ru"
] | picasso75@yandex.ru |
9fb2e995488929466afd0c299777848ab6ecd18e | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/20dbfc68-5cc5-11e4-af55-00155d01fe08.py | 79ab6a9dabb325804e657801054778d7a284d0b6 | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | #!/usr/bin/python
################################################################################
# 20dbfc68-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
1e093299de91cbd2fab004b79cab184c606be1ee | 1170f797b7788b9e8445b7dd65377763068a9aa3 | /GR/wrapper.py | 272738be6d288247b157a3fb494a18bba88c454c | [] | no_license | f-fathurrahman/ffr-python-stuffs | 2585c554e15ec6828900739376250ed391cf6966 | d249c4f2a01f58a96083bac2377309c05f652907 | refs/heads/master | 2023-08-23T22:54:34.147166 | 2023-07-20T23:24:50 | 2023-07-20T23:24:50 | 83,401,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py |
import subprocess
import sys
import os
# set GKW_WSTYPE, we will save the output to a file
os.environ["GKS_WSTYPE"] = "mov"
Nargs = len(sys.argv)
if Nargs <= 2:
raise RuntimeError("Nargs must be >= 2")
fileout = sys.argv[2]
p = subprocess.Popen("python " + sys.argv[1], shell=True)
(output, err) = p.communicate... | [
"fadjar.fathurrahman@gmail.com"
] | fadjar.fathurrahman@gmail.com |
9d2132b47d93d5e0865dc119edb6b06a5d541d5f | 73346545e69194dc1cfd887314afe600076ff263 | /polling_stations/apps/data_collection/management/commands/import_torbay.py | d9b2e0c418fbf0ff7ba59e80c34fb2974714b1c9 | [] | permissive | chris48s/UK-Polling-Stations | c7a91f80c1ea423156ac75d88dfca31ca57473ff | 4742b527dae94f0276d35c80460837be743b7d17 | refs/heads/master | 2021-08-27T18:26:07.155592 | 2017-11-29T15:57:23 | 2017-11-29T15:57:23 | 50,743,117 | 1 | 0 | BSD-3-Clause | 2017-11-29T16:03:45 | 2016-01-30T20:20:50 | Python | UTF-8 | Python | false | false | 398 | py | from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = 'E06000027'
addresses_name = 'parl.2017-06-08/Version 1/Torbay Democracy_Club__08June2017.tsv'
stations_name = 'parl.2017-06-08/Version 1/Torbay Democracy_Club_... | [
"chris.shaw480@gmail.com"
] | chris.shaw480@gmail.com |
3cb530929d7ea2efe25e3bb6fac8ca13940e787f | 9912b1ab920f30975f889981fe716bbf9c07ed74 | /__manifest__.py | 7220ced1a99fb9b8532cbfd454ac1d3e19f6f6ea | [] | no_license | DevHerles/inputmask_widget | 905ab0ff6a740c3982c8885da36c495c2cab6eed | 677954dd2a280f552f819c66276875c77b7e5197 | refs/heads/master | 2020-03-19T14:46:51.026510 | 2018-06-13T05:15:39 | 2018-06-14T00:21:22 | 136,639,113 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | # -*- coding: utf-8 -*-
{
'name': "Inputmask and prefix and suffix Widget",
'summary': """
A Widget to make masks on form fields and adds prefix and suffix""",
'description': """
================
Inputmask Widget
================
Based on jquery.inputmask 4.x `Docs in GitHub
<http://robinherbots.githu... | [
"herles.incalla@gmail.com"
] | herles.incalla@gmail.com |
7aa9f578705c118458bafc85e9b94655547cbeea | 8ad9faa828ce54cddc38dc86eef30e6635babd0c | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/dhcpv6client/sessionlifetime/sessionlifetime.py | 8ca6d215e9239b748c58b9e34fef8b2e41fe23dd | [
"MIT"
] | permissive | ralfjon/IxNetwork | d1a50069bc5a211f062b2b257cb6775e7cae8689 | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | refs/heads/master | 2020-04-04T00:36:24.956925 | 2018-10-26T16:37:13 | 2018-10-26T16:37:13 | 155,655,988 | 0 | 0 | MIT | 2018-11-01T03:19:30 | 2018-11-01T03:19:30 | null | UTF-8 | Python | false | false | 3,326 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# 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 restriction, including without limitation
# the rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
d8cd83e97f91d6b36d543a34f7783d646ba3ce69 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02982/s889628380.py | ceebed5e03d04542d3a821f49d64e25799fbd681 | [] | 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 | 451 | py | n, d = list(map(int, input().split()))
x = [list(map(int, input().split())) for _ in range(n)]
def is_square_num(n):
i2 = 0
for i in range(0, n + 1):
if i2 == n:
return True
if i2 > n:
return False
i2 += i * 2 + 1
c = 0
for i in range(n-1):
for j in range(i+1, n):
dist = 0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
702f501475a3c225219f5cb5b426fbfdc62b1f7b | 7c63a96fad4257f4959ffeba0868059fc96566fb | /py/d_beazly-python_cookbook/ch_01-data_structures_and_algorithms/20-combining_multiple_mappings_into_a_single_mapping/main.py | 58beb28cedcc1247b17dbd2aaf79ad89b833babc | [
"MIT"
] | permissive | ordinary-developer/education | b426148f5690f48e0ed4853adfc3740bd038b72c | 526e5cf86f90eab68063bb7c75744226f2c54b8d | refs/heads/master | 2023-08-31T14:42:37.237690 | 2023-08-30T18:15:18 | 2023-08-30T18:15:18 | 91,232,306 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | def example_1():
a = { 'x': 1, 'z': 3 }
b = { 'y': 2, 'z': 4 }
from collections import ChainMap
c = ChainMap(a, b)
print(c['x'])
print(c['y'])
print(c['z'])
print(len(c))
print(list(c.keys()))
print(list(c.values()))
c['z'] = 10
c['w'] = 40
del c['x']
print(a)
... | [
"merely.ordinary.developer@gmail.com"
] | merely.ordinary.developer@gmail.com |
36f168571fded04552831063feee177143246c3b | fc141c11542d9b7cc73d3e773fc522375d443b76 | /1/Blocky/ConfigManager.py | 57d7d2f261daf8202d083a38fead5e26138d10da | [] | no_license | curlyz/BlockyFirmware | 4157bce89f80c99a6537f02f55a26a949df865d8 | c96c7c7ccc85a9d0c41b65f05290f300814d7a8e | refs/heads/master | 2020-03-22T07:53:40.891234 | 2018-07-04T14:18:34 | 2018-07-04T14:18:34 | 139,731,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,917 | py | from Blocky.Indicator import indicator
import network,socket,time,random,binascii,machine,re,ustruct,gc,ujson
from json import dumps , loads
from os import stat
from _thread import start_new_thread
import socket
from Blocky.MicroWebSrv import MicroWebSrv
from time import sleep_ms
"""
class config is called whe... | [
"noreply@github.com"
] | curlyz.noreply@github.com |
85b811d9a073b85292df6fbf2857ab0e79d7e73d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /hgjdb2nm4ZwuCjtHE_23.py | d607960e58a0f2cdee5216eb2833175e981cd787 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | """
Create a function that takes an input (e.g. `"5 + 4"`) and returns `True` if
it's a mathematical expression or `False` if not.
### Examples
math_expr("4 + 5") ➞ True
math_expr("4*6") ➞ True
math_expr("4*no") ➞ False
### Notes
* Should only work with the following operations: `+, -, *,... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a2309afb06edda94024beddd1ba9263d258f351a | 9d8f241e4e851f0fe71655d2b698c3d40feab98a | /machin/frame/helpers/servers.py | 6a335670c8bb80846e10a291c18ac8f7a57e92a2 | [
"MIT"
] | permissive | StepNeverStop/machin | c30c15bbcc38dde06eac57e7ff562753b8927f6b | 3caecb6ea7b02a9687281e2270577a6ed92c5dd8 | refs/heads/master | 2022-11-24T14:43:20.041102 | 2020-07-21T13:08:19 | 2020-07-21T13:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,441 | py | from typing import Callable, Any
from machin.parallel.distributed import (
get_world, get_cur_name
)
from machin.parallel.server import (
PushPullGradServerImpl,
PushPullModelServerImpl
)
from time import sleep
from torch.optim import Adam
def grad_server_helper(actor_model_creator: Callable,
... | [
"hanhanmumuqq@163.com"
] | hanhanmumuqq@163.com |
c9623b17049e090a38baf5ebc95b81f2033f0adf | fcd965c9333ee328ec51bc41f5bc0300cc06dc33 | /DailyCoding/sublist_sum.py | 8279021f55404cf656d21b8ad965d6deb19eb0eb | [] | no_license | henrylin2008/Coding_Problems | 699bb345481c14dc3faa8bab439776c7070a1cb0 | 281067e872f73a27f76ae10ab0f1564916bddd28 | refs/heads/master | 2023-01-11T11:55:47.936163 | 2022-12-24T07:50:17 | 2022-12-24T07:50:17 | 170,151,972 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | # Daily Coding Problem #149
# Problem
# This problem was asked by Goldman Sachs.
#
# Given a list of numbers L, implement a method sum(i, j) which returns the sum from the sublist L[i:j] (including i,
# excluding j).
#
# For example, given L = [1, 2, 3, 4, 5], sum(1, 3) should return sum([2, 3]), which is 5.
#
# You ca... | [
"henrylin2008@yahoo.com"
] | henrylin2008@yahoo.com |
078b83228af29571af314a7042a432ee5af90ffd | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/.install/.backup/lib/googlecloudsdk/gcloud_main.py | cc51169da6045e5ed0a9f55387dc93859fc6de88 | [
"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 | 4,953 | py | #!/usr/bin/env python
#
# Copyright 2013 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... | [
"toork@uw.edu"
] | toork@uw.edu |
56ee55efa9b04d090673d1cb1c6c7c00d4977197 | 46f1f22151448fa35fc5228d730374f1167c100f | /exam_summer_2019/myproject/myapp/schema.py | 00d13e6d0ba6b132a4f1167707c9f5b3597b0f3b | [
"BSD-2-Clause"
] | permissive | ThitiChuenbubpha/2019 | e6b6623e7c8e4757396caf3fbde0e09c5e973e12 | ebe9ef4475e4534700ad5b6bf387b04cd88ad197 | refs/heads/master | 2020-09-13T00:48:39.707117 | 2019-10-27T05:54:37 | 2019-10-27T05:54:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | import graphene
from graphene import Node, Connection, ConnectionField
from graphene_django.types import DjangoObjectType
from graphene_django.filter import DjangoFilterConnectionField
from myapp.models import Customer
class CustomerType(DjangoObjectType):
class Meta:
model = Customer
filter_fiel... | [
"wasit7@gmail.com"
] | wasit7@gmail.com |
4138e71309c447be4fe32f2d84f1de700cb31853 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.9.50/1/1569577821.py | c3c6e7738935c84d7e6b1a5f1a75f2fb285cf078 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def nwords(s: str):
n = 0
print(len(s))
#for x in list(s):
# n += 1
#re
## Lösung Teil 2.
######################################################################
## Lösung Teil 3. (Tests)
## revert
try:
... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
929135e421f53121060a567e1a9d34c89c427727 | 330aea7bca768b6e0021768f568278ceaec263f8 | /tests/functional/test_auto_init.py | 9b02a58e43e5385c0029eb2c3d74304750cc0f39 | [
"MIT"
] | permissive | dkrikun/textX | d90e95a174ebddda9780d71363dfd85fc92376f2 | 9381f375001d3d7462f0261e89ca48d595a1f130 | refs/heads/master | 2020-04-06T13:34:43.577843 | 2018-11-17T21:25:44 | 2018-11-17T21:25:44 | 157,506,185 | 0 | 0 | null | 2018-11-14T07:07:23 | 2018-11-14T07:07:23 | null | UTF-8 | Python | false | false | 1,426 | py | # -*- coding: utf-8 -*-
from textx import metamodel_from_str
grammar = """
First:
dummy=INT
('first' seconds+=Second)?
('A' a=INT)?
('B' b=BOOL)?
('C' c=STRING)?
d?='boolasgn'
('F' f=FLOAT)?
;
Second:
INT|STRING
;
"""
def test_auto_init():
"""
Test that attributes are initi... | [
"igor.dejanovic@gmail.com"
] | igor.dejanovic@gmail.com |
7acc4c37ffb2c85f644df6d98a54b9d6841688bc | 2ea7eac8256e331c016055c59f635b63b3e28130 | /Assistant/1029/problem1.py | 1b6e30f74bf4024255dcfa5d69e09e1856803386 | [] | no_license | FawenYo/NTU_Programming-for-Business-Computing | 83d2f73b087e238451aa76d4481146b7b00670e7 | cdf18ee474107f1ab52c34bcc64d69022ecb57b5 | refs/heads/master | 2023-01-18T20:22:19.737103 | 2020-12-04T00:20:41 | 2020-12-04T00:20:41 | 297,369,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | def main():
mode = int(input())
number_one = float(input())
number_two = float(input())
answer = calculate(mode=mode, number_one=number_one, number_two=number_two)
print(answer)
def calculate(mode, number_one, number_two):
if mode == 1:
result = number_one + number_two
elif mode ==... | [
"twsky020600@gmail.com"
] | twsky020600@gmail.com |
64951345d0602541dd829ecf8b3d13cd94f7a650 | 67f70009f2e1ded752788f349c998c25cc2a7674 | /agsci/common/portlets/navigation.py | 9dd89498b390e368330c9eeb97d10015d041218d | [] | no_license | tsimkins/agsci.common | 83b58e4646115e9a5cdc9d39037386579c3ac2d9 | a833b2e5257da35786f21916e279f8b1082b2faa | refs/heads/master | 2023-08-18T05:19:25.121259 | 2023-08-16T20:29:47 | 2023-08-16T20:29:47 | 35,234,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | from Acquisition import aq_inner
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.CMFPlone.browser.navtree import SitemapQueryBuilder
from plone.app.layout.navigation.interfaces import INavtreeStrategy
from plone.app.layout.navigation.navtree import buildFolderTree
from plone.app.po... | [
"trs22@psu.edu"
] | trs22@psu.edu |
f8e7682bf7a48a93e5cfd186148615448866ede2 | 02952fc67147a2f11a9ed8c4eb29210bec5672ed | /business/service/apis/database.py | 44f8b51ee5daf5539321be390b99486795437155 | [] | no_license | cuijianzhe/cow | b110a70398b09a401dadc7d3ed24dfe2bae50f5b | 3539cab6e73571f84b7f17391d9a363a756f12e1 | refs/heads/main | 2023-06-04T10:33:33.975885 | 2021-06-19T10:40:36 | 2021-06-19T10:40:36 | 340,634,448 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from base.api import BaseApi
from business.service.controllers import asset_obj as asset_obj_ctl
class CreateServiceDatabaseApi(BaseApi):
need_params = {
'obj_id': ('服务ID', 'required int'),
'environment_id': ('环境ID', 'required int'),
'typ': ('资产类型', 'required str'),
'ass... | [
"598941324@qq.com"
] | 598941324@qq.com |
ebdf547c9cc28cc4fae502f246233e6ce2a9336a | 201b42947d38be70cd0985fb3fc46bd6068ca2f8 | /virtual_env/libs/mysql-connector/python2/mysql/connector/locales/__init__.py | 7ce069299861db074ce6e4c58292db8d28973d9c | [
"MIT",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-or-later",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rcosnita/fantastico | d4fade25a10231f50b62fff6b41d814815dd4b62 | 81c8590556baa9e1148071b7835d74b1efada561 | refs/heads/master | 2021-03-12T21:55:03.260192 | 2020-07-28T07:16:39 | 2020-07-28T07:16:39 | 9,280,607 | 3 | 1 | MIT | 2020-07-28T07:16:40 | 2013-04-07T17:52:51 | Python | UTF-8 | Python | false | false | 2,261 | py | # MySQL Connector/Python - MySQL driver written in Python.
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
# MySQL Connector/Python is licensed under the terms of the GPLv2
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
# MySQL Connectors. There are special exceptio... | [
"radu.cosnita@gmail.com"
] | radu.cosnita@gmail.com |
cacf7418089897de53462fdef0cb199e1eee68d9 | e41bb17fd1a360aa953d5e629e2323a5f2183673 | /groupingLetter.py | f296a9f9cd2ae76fcf24b3f60c621c3bb09eaed7 | [] | no_license | madan-ram/OCR-using-SWT | 5cbbd2d65cf874ca12289b7273288ddd29caf844 | b38a09b138207b13efb10e4afaff9aef3ae1f38f | refs/heads/master | 2021-10-06T10:57:15.018654 | 2021-10-02T09:48:35 | 2021-10-02T09:48:35 | 22,715,504 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py | import numpy as np
cimport numpy as np
import cython as cy
from sklearn import cluster
import random
import cv2
cdef class componentDetails:
cdef:
double mean
double variance
int centerX
int centerY
double colorAverageB
double colorAverageG
double colorAverag... | [
"madan_ram@rocketmail.com"
] | madan_ram@rocketmail.com |
b18b3d17aaf056935d17e2adf0139d7481789ed6 | 395ea41c138ecd39b615f4b73ad744e8acb4d4ad | /sdk/keyvault/azure-keyvault/azure/keyvault/v7_3_preview/models/security_domain_json_web_key.py | 3cb39b67e87241dbe437c781f06c1015469ef5c1 | [
"MIT"
] | permissive | mccoyp/azure-keyvault-7.3-preview | d7e80b9ec6f11eede8838749ce2d72de38e53303 | da351753a9d3d2bf97c27566865cd88bae7faa55 | refs/heads/main | 2023-04-28T22:28:44.283778 | 2021-05-11T03:35:58 | 2021-05-11T03:35:58 | 366,241,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,929 | 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 ... | [
"mcpatino@microsoft.com"
] | mcpatino@microsoft.com |
05babc07dd1862ac2a329569d754ae06c9a41369 | ea727658bb22df6dd0a4d8aaff5d13beec8ec8b5 | /examples/大數據資料分析/範例程式/第06章/function10.py | 845cd5c55cd930ce0fc67cbef8f266c8adc03345 | [] | no_license | kelvinchoiwc/DataScience_1082 | f8e31c230776f45d70f6b96ef81d16881118e453 | 199f915540afe6c9a9ec7055aac5911420d783be | refs/heads/master | 2023-07-24T04:29:01.763893 | 2021-09-01T12:33:21 | 2021-09-01T12:33:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | import random
def lotto():
for i in range(1, 7):
n = random.randint(1, 49)
print(n, end = ' ')
def main():
lotto()
main() | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
393bf85d24331af9e594edf37e1f640f06a5fddd | 67597949572f7f5b1137bc51bc04c9d9f7288beb | /DuelingDQN/tf2/network.py | 11295ac17bf69cb12cce33f72b8442ef4ef95de0 | [
"MIT"
] | permissive | philtabor/Deep-Q-Learning-Paper-To-Code | 32ca4c840534fc56aa5e8911ca65e9722f245b92 | 64e0546d95ba313fb677f193abbdc38f463c4aa3 | refs/heads/master | 2023-07-28T01:07:55.013663 | 2022-02-22T04:12:48 | 2022-02-22T04:12:48 | 222,623,037 | 315 | 156 | MIT | 2023-07-07T14:21:03 | 2019-11-19T06:19:06 | Python | UTF-8 | Python | false | false | 1,066 | py | import tensorflow.keras as keras
from tensorflow.keras.layers import Conv2D, Dense, Flatten
class DuelingDeepQNetwork(keras.Model):
def __init__(self, input_dims, n_actions):
super(DuelingDeepQNetwork, self).__init__()
self.conv1 = Conv2D(32, 8, strides=(4, 4), activation='relu',
... | [
"ptabor@gmail.com"
] | ptabor@gmail.com |
44274452848ad04965f1b868266bc76353361d67 | b5698c259c80c9dc9b1cbca9dd82eb7f4d799f61 | /tests/basics/TryExceptContinue.py | 02406755120ee96ec689be851300b164d753ec19 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | 4O4/Nuitka | 431998d4d424f520d2887e9195ad7d7c61691b40 | e37d483b05c6b2ff081f3cedaee7aaff5c2ea397 | refs/heads/master | 2020-04-02T04:06:10.826960 | 2018-10-18T21:13:16 | 2018-10-18T21:13:16 | 154,000,090 | 0 | 0 | Apache-2.0 | 2018-10-21T11:17:44 | 2018-10-21T11:17:44 | null | UTF-8 | Python | false | false | 2,223 | py | # Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python tests originally created or extracted from other peoples work. The
# parts were too small to be protected.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the ... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
02e2cef720f89367a0514a83ac28d81349dfb272 | d6d3ffb725bae57f486859b8079f18347ed0efd4 | /authapp/migrations/0006_auto_20210120_1440.py | 15bda62d497d56c1b93b2aecd2a4aa2275978fdc | [] | no_license | igoregizarov/Django_1 | 84a64b737ba5e60646cce81565ce787fb29add91 | d67ad64c73c77a7216efb3d7ade51a0b3cade9b2 | refs/heads/master | 2023-02-23T09:48:53.842396 | 2021-01-20T15:02:45 | 2021-01-20T15:02:45 | 314,855,477 | 0 | 0 | null | 2021-01-24T17:48:42 | 2020-11-21T16:33:09 | Python | UTF-8 | Python | false | false | 520 | py | # Generated by Django 3.1.5 on 2021-01-20 14:40
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('authapp', '0005_auto_20210106_1008'),
]
operations = [
migrations.AlterField(
... | [
"i_gor88@mail.ru"
] | i_gor88@mail.ru |
7afa4fdb8867d5c5fbd6ef35fc197ae109cd1802 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq2194.py | a3ea9167f7d3c136b9a89937fadc64ca3157ceba | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,059 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=39
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
bc8a8b9f077cdc5ac9b387c1490e2d80cee2b7bc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02797/s575415788.py | d0c691e46b068541bfa0e837f808a9e611103930 | [] | 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 | 279 | py | if __name__ == "__main__":
N, K, S = map(int, input().split())
for _ in range(K):
print(S, end=" ")
if S == 10**9:
for _ in range(N-K):
print(S-1, end=" ")
else:
for _ in range(N-K):
print(S+1, end=" ")
print()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5f18a93fe844e2423c0e8ef9f99710f791ce72bc | c2df9e04adec78e789d1fbdb0711c45e5b9263a7 | /venv/Lib/site-packages/matplotlib/tests/test_backend_tools.py | e7e7aef2f7dccfacd2e7ac4182456e56015e5a67 | [
"MIT",
"BSD-3-Clause"
] | permissive | AdarshSai/Final_Project | 433009a2f416e894ee3be85cd9317cb8e8df5516 | f966834ca72dd232102ed500ef47ef2b3bdbed5b | refs/heads/main | 2023-01-23T12:21:41.342074 | 2020-11-19T22:24:15 | 2020-11-19T22:24:15 | 308,898,012 | 0 | 1 | MIT | 2020-11-19T22:24:17 | 2020-10-31T14:19:58 | Python | UTF-8 | Python | false | false | 521 | py | import pytest
from matplotlib.backend_tools import ToolHelpBase
@pytest.mark.parametrize('rc_shortcut,expected', [
('home', 'Home'),
('backspace', 'Backspace'),
('f1', 'F1'),
('ctrl+a', 'Ctrl+A'),
('ctrl+A', 'Ctrl+Shift+A'),
('a', 'a'),
('A', 'A'),
('ctrl+shift+f1', 'Ctrl... | [
"adarshsaig@gmail.com"
] | adarshsaig@gmail.com |
cb7d406bbe2040aeda1ecde7ed9d338058dcf966 | c88a0708603d4152619d138726e1948de3f3147b | /sources_from_mxshop/MxShop-django/apps/goods/filters.py | 2a5be7566d200a87114ab58cbf3cffe2d1139a5a | [
"Apache-2.0"
] | permissive | yangtao4389/similal_taobao | 51e16bc1b00fa7ebd0c8b76455226a18dbf91be2 | 90a71c55bbbaffa9776e8460d0752374a674e0ad | refs/heads/master | 2022-12-13T12:52:26.449701 | 2019-04-04T08:21:19 | 2019-04-04T08:21:19 | 177,726,687 | 0 | 0 | Apache-2.0 | 2022-12-08T02:30:44 | 2019-03-26T06:19:48 | Python | UTF-8 | Python | false | false | 1,004 | py | # goods/filters.py
import django_filters
from .models import Goods
from django.db.models import Q
class GoodsFilter(django_filters.rest_framework.FilterSet):
'''
商品过滤的类
'''
#两个参数,name是要过滤的字段,lookup是执行的行为,‘小与等于本店价格’
pricemin = django_filters.NumberFilter(name="shop_price", lookup_expr='gte',help_t... | [
"438936731@qq.com"
] | 438936731@qq.com |
99d624d8ee435a95516b140151dada5c4a236cde | dc509f325f67eabdab0c77ee4a25616e920f0422 | /interface/interface/settings.py | c758ea333b106c9227fb0908a47ce9db2dc2d2a5 | [] | no_license | Verbozeteam/deployment-manager | 68452ed10132d5d56694c69f225bda92499635a8 | 2508e5345da9764c068bb259ecff27b11a739982 | refs/heads/master | 2021-03-30T17:52:46.353069 | 2018-05-15T14:23:12 | 2018-05-15T14:23:12 | 109,695,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,666 | py | """
Django settings for interface project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"hasan.aljawaheri@gmail.com"
] | hasan.aljawaheri@gmail.com |
40465ac3a5c4b555cfb0d993dd600530c544d66e | 3ad6fa2bfdf1d9849b8b60a740cd7992fbca1dd9 | /myshop/orders/views.py | 5a01f5e3b0888ed707ff895694f22102603c784b | [] | no_license | marri88/e-commerce-projects | 2845c08c33330a4ceec9dbbd6216a99381fb30a4 | b516f13fec930091007ffab4d7c992f002c32803 | refs/heads/master | 2023-06-26T08:56:01.448973 | 2021-07-23T08:02:13 | 2021-07-23T08:02:13 | 388,724,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.urls import reverse
from django.contrib.admin.views.decorators import staff_member_required
from django.conf import settings
from django.http import HttpResponse
from django.template.loader import render_to_string
import weasyprint
from .model... | [
"aymira.narzhigitova@gmail.com"
] | aymira.narzhigitova@gmail.com |
afbe3cf916d4fa0ea681b44a17ff4667bd59e7be | 83064dee14ea9fd1e5a5fc6c9c1ff2f3f9f8af9e | /app/snippets/urls/viewsets_router.py | 7a22c7e637fd69103b0a2fe7e3f38ff111220e9b | [] | no_license | Ryanden/Drf-tutorial | 096d5ea41ae819876c65946795bee247e2fdbd5a | 8526255b9f3416bc63569c49be1ab3f9bb564260 | refs/heads/master | 2020-03-23T10:00:41.098213 | 2018-07-26T06:24:57 | 2018-07-26T06:24:57 | 141,420,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.urls import path, include
from rest_framework.routers import SimpleRouter
from ..views import viewsets as views
router = SimpleRouter()
router.register(r'snippets', views.SnippetViewSet)
router.register(r'users', views.UserViewSet)
urlpatterns = [
path('', include(router.urls)),
] | [
"lockstom@gmail.com"
] | lockstom@gmail.com |
60e604952fbb31fc00222152227003ba563805f7 | d27af9d58b91b8cd998ac0eb87d980d304ff0670 | /Beginner-Contest/ABC175/ABC175_A.py | 860756ca1ac5eece21d871ccd171c1499c5663a4 | [] | no_license | mongesan/Atcoder-m0_ngesan-py | 29dd79daab149003ffc8b6b6bad5fa2e7daa9646 | 6654af034d4ff4cece1be04c2c8b756976d99a4b | refs/heads/master | 2023-08-20T19:50:04.547025 | 2021-10-27T12:24:51 | 2021-10-27T12:24:51 | 258,486,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | s=str(input())
streak=0
ans=0
for ch in s:
if ch=='R':
streak+=1
else:
ans=max(ans, streak)
streak=0
ans=max(ans, streak)
print(ans) | [
"syun1.mongesan@gmail.com"
] | syun1.mongesan@gmail.com |
69ac6ef380c598e940e96d81102ed0e48639aa4d | 5c1864e6d5bfe1850f2576c4ee371f81adfe0ed3 | /aluzine/scripts/out.py | 69da10045aca8b0d58863d30b0d263a32551abf2 | [] | no_license | Fantomas42/aluzine | a82f4fc0a65ca304acc93be7c7035be17b973ca7 | bda1ac034fcf2f72d548a3b9918fa49f65ee014b | refs/heads/master | 2021-06-05T17:28:04.822250 | 2017-07-28T21:10:35 | 2017-07-28T21:10:35 | 98,689,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import argparse
from random import randint
from time import sleep
from aluzine.lock import Lock
from aluzine.timestamper import TimeStamper
def cmdline():
parser = argparse.ArgumentParser()
parser.add_argument(
'--random-range',
type=int,
help='Range of minutes before pinging')
... | [
"fantomas42@gmail.com"
] | fantomas42@gmail.com |
e2a6ada1773edb8e70ae79264e86f2d61a111303 | 0b5e9296e2663e014e41afa488236466de68c071 | /scrapy/tupian/tupian/items.py | fd8d7f1c395bf1208cd189fbe81784b44bedb2b1 | [] | no_license | feiyu563/feiyu | f875f784d02ce24eadd62b8882358f922cd0dba6 | b1d0e6f4d7bfba7c786d1105e630ea920eff7589 | refs/heads/master | 2021-05-13T22:22:38.059641 | 2018-01-06T14:05:34 | 2018-01-06T14:05:34 | 116,486,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class TupianItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
fa0236dc26c612007b35af9f064cf9310aec110a | ea4e262f3dc18a089895fef08bedefc60b66e373 | /supervised_learning/0x06-keras/8-main.py | 6ded7ba2a077d02e952d1faea7c71270db739909 | [] | no_license | d1sd41n/holbertonschool-machine_learning | 777899d4914e315883ba0c887d891c0c8ab01c8a | 5f86dee95f4d1c32014d0d74a368f342ff3ce6f7 | refs/heads/main | 2023-07-17T09:22:36.257702 | 2021-08-27T03:44:24 | 2021-08-27T03:44:24 | 317,399,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | #!/usr/bin/env python3
import numpy as np
import tensorflow as tf
build_model = __import__('1-input').build_model
optimize_model = __import__('2-optimize').optimize_model
one_hot = __import__('3-one_hot').one_hot
train_model = __import__('8-train').train_model
if __name__ == '__main__':
datasets = np.load('../da... | [
"1498@holbertonschool.com"
] | 1498@holbertonschool.com |
59c72f4178722441262ca42e068f0a519bea8e4c | a3eccc652f83815318bdb033a33573c5b1e073e9 | /nac/orders/views/api/utils.py | 2ddd5859db4d60c82099ea50fc5ae7d7a48c2edc | [] | no_license | jsvelu/coms-dev--old | 8139fa511e2985b4d71550f1c59402069d09edf3 | de300ad6ef947d29380972a6efe809f4ef05d7e1 | refs/heads/main | 2023-07-17T20:44:36.101738 | 2021-09-04T21:56:38 | 2021-09-04T21:56:38 | 403,158,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,437 | py | from datetime import date
from datetime import datetime
from dateutil.relativedelta import relativedelta
from django.conf import settings
from django.core.exceptions import ValidationError
from django.utils import timezone
from django.utils.datastructures import OrderedSet
from rest_framework.response import Response
... | [
"velu@qrsolutions.in"
] | velu@qrsolutions.in |
9b347f152a74bbe9f6235cc4de3392c524d6b89e | e210167f253547473d160d3c1c286b10ea3650a1 | /102.py | ac9e7e1106330a404e6200382f70d9195e069c21 | [] | no_license | cowarder/LeetCode | ee231f7bab0bb1525e187f770c15dbf339daba87 | 7d785a11fe2bd2bc3399984e0c0af8546780e185 | refs/heads/master | 2021-01-11T19:20:09.248360 | 2020-07-19T08:04:27 | 2020-07-19T08:04:27 | 79,439,657 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | """
问题描述:
102. Binary Tree Level Order Traversal
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree [3,9,20,null,null,15,7],
3
/ \
9 20
/ \
15 7
return its level order traversal as:
[
[3],
[9,20... | [
"1615482151@qq.com"
] | 1615482151@qq.com |
d40bdb2115a80899a2108be893a7dbf61ef4148d | 1916dc66aa9710d9a7d4fab42c28c1c49e2f630c | /portfolio/settings/front_settings.py | ce22ed2b4190f5b552422a2c75758b7ff9c2166b | [] | no_license | robert8888/portfolio | 8ce6c1be774666a58ee44379621c6a4515f64d37 | a640b1a62810e4a5dd4f7e20fefc86dc3ca7851f | refs/heads/master | 2023-06-03T23:28:53.888863 | 2021-06-25T13:11:28 | 2021-06-25T13:11:28 | 333,259,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | import os
from pathlib import Path
from dotenv import load_dotenv
load_dotenv()
BASE_DIR = Path(__file__).resolve().parent.parent.parent
VUE_FRONTEND_DIR = os.path.join(BASE_DIR, 'vue_components_src')
WEBPACK_LOADER = {
'DEFAULT': {
'CACHE': not os.getenv('DEBUG') == 'True',
'BUNDLE_D... | [
"robert.kami88@gmail.com"
] | robert.kami88@gmail.com |
2bd01b25979b5838d3cc2cdb4d2c4a17be0b4dc9 | 862a2ac24f5d8e863a244482bf2502ff1d3dac06 | /python/tp_prod_template_cfg.py | 86a430ea9286a3b3f47c9407a8acc3e80af61bcc | [] | no_license | jhgoh/MuonAnalysis-MuonIdentification | ebc390cb70a793eb1b3f7f3d2cfc978d27b8d6dd | 480303cb7b6d1e059b7f52007232cd76a3ecdb38 | refs/heads/master | 2021-01-23T22:06:21.775809 | 2017-03-10T09:25:13 | 2017-03-10T09:25:13 | 83,117,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,715 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TagProbe")
process.load('Configuration.StandardSequences.Services_cff')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(False),
# allowUnscheduled = cms.untracked.bool(... | [
"jhgoh@cern.ch"
] | jhgoh@cern.ch |
82da582318ee9575d46e178e8482edab49463b7d | c2709bd19de85d67d12d9320578731b656a19cc5 | /pho/apertures.py | 4b1114a0d4caca8ee90de676e20d33c652c7746e | [] | no_license | bd-j/pho | 3862cac0c092152af2446508cfc2a3617db10c88 | a3f9a66dfabeaa51a27e6045aba3cd60d38b3977 | refs/heads/main | 2020-12-24T06:37:45.792387 | 2016-10-11T19:52:23 | 2016-10-11T19:52:23 | 64,546,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,680 | py | import numpy as np
from sedpy import ds9region
__all__ = ["read_brown_apertures", "read_brown_coordinates",
"read_sings_apertures",
# "process_aperture_line", "process_coordinate_line",
"make_ds9_region"]
def make_ds9_region(info, **extras):
"""Given a dictionary of region info ... | [
"benjamin.duncan.johnson@gmail.com"
] | benjamin.duncan.johnson@gmail.com |
7f96254e5cf83245ca43c17f873a164a78887c32 | 1064501bd36d801da5e972993a581ed68ef84d75 | /folioloaderq/tasks/workflow.py | 6aa13d3a718f6cec3147464f1ecc527b569a4a47 | [] | no_license | culibraries/folio-loaderq | 9b48646c9b770a2fc1adca46a9935e989e623229 | 1d79faf8886d8fc1421bf723832719a0f4b99f70 | refs/heads/master | 2020-03-19T12:47:00.082955 | 2018-06-20T11:47:08 | 2018-06-20T11:47:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | from celery.task import task
from celery import signature, group
from reference import loadFixedDueDateSchedules, loadLoanPolicies, deleteReferenceCirculationData
import requests,os, json
@task()
def circulationReferenceWorkflow(tag='default',tenant='diku'):
"""
Workflow deletes and loads Loan Policy and Fix... | [
"mbstacy@gmail.com"
] | mbstacy@gmail.com |
ef9c4bde726a4a8fc17ca17529d9c10e3cac8d39 | 959a1bbaef979183ca0aacf03b748e87aa842197 | /build/mav_comm/planning_msgs/catkin_generated/pkg.installspace.context.pc.py | 00ea38cbfebc71ebd26abcc7d3a383edf4dc964c | [] | no_license | rishabhgks/quad_ws | 723a95ccc825ddb13f2e27fb9e220cc7b03db6db | 19f7a57a585ca9799b3fd11f5b80d894c5b88167 | refs/heads/master | 2022-11-10T13:44:23.056196 | 2020-06-19T14:32:17 | 2020-06-19T14:32:17 | 250,417,696 | 0 | 0 | null | 2020-06-19T14:32:18 | 2020-03-27T02:03:07 | Makefile | UTF-8 | Python | false | false | 504 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include/eigen3".split(';') if "${prefix}/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;geometry_msgs;sensor_msgs;octomap_msgs".replace(';',... | [
"rishabhgs19@gmail.com"
] | rishabhgs19@gmail.com |
f5a900e7fff1e641a248630f0448ac7c46157d2c | 3e16c8782a6d401f3f4149074d8c0a6e72b42aea | /tests/unit/utils/test_templates.py | 3d5855dd21e82eb92351a9a847c3e4d132450cb2 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | alan-cugler/salt | c976a70aed05544fc0dba92291abaed5ed37e901 | 523c254cb1ae665c6eb613bfdd492c8127d00cd4 | refs/heads/master | 2020-06-09T07:54:09.578186 | 2020-01-15T18:57:43 | 2020-01-15T18:57:43 | 193,403,401 | 0 | 0 | Apache-2.0 | 2019-06-23T23:00:18 | 2019-06-23T23:00:18 | null | UTF-8 | Python | false | false | 6,173 | py | # -*- coding: utf-8 -*-
'''
Unit tests for salt.utils.templates.py
'''
# Import python libs
from __future__ import absolute_import, print_function, unicode_literals
import sys
import logging
# Import Salt libs
import salt.utils.templates
# Import Salt Testing Libs
from tests.support.unit import TestCase, skipIf
log... | [
"arizvisa@gmail.com"
] | arizvisa@gmail.com |
976d85ab13c69876767e0db544ac66ad2c330639 | 3171e1c10727536ee0cea7b953bbee6812ffcffb | /br_boleto/__manifest__.py | 338b38d72c3c37715b53edc9307482a5c3681ec7 | [] | no_license | mamcode/wbsfoosbr | cd74e53be4ca0c521ea4140386453e4cfde667bc | 23eb322e76edc907db8b1284800e211b7770432e | refs/heads/master | 2020-05-15T05:55:01.449119 | 2019-04-18T15:39:38 | 2019-04-18T15:39:38 | 182,113,770 | 1 | 0 | null | 2019-04-18T15:34:35 | 2019-04-18T15:34:34 | null | UTF-8 | Python | false | false | 1,478 | py | # -*- coding: utf-8 -*-
# © 2016 Danimar Ribeiro, Trustcode
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ # pylint: disable=C8101,C8103
'name': 'Pagamentos via Boleto Bancário',
'summary': """Permite gerar e realizar a integração bancária através de
arquivo CNAB 240 - Mantido ... | [
"a"
] | a |
b71af492ba80e8985daaa90ca0e3a0be170b4c9a | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/Scaleform/daapi/view/meta/StoreActionsViewMeta.py | c988d0eefbdd86e08cb6fca3b43b1884be105fc3 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 848 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/StoreActionsViewMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class StoreActionsViewMeta(BaseDAAPIComponent):
def actionSelect(self, triggerChainID):
... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
21c81b27f70a76711fac18e783a9e69507a8429b | bc0e7871a8b5365d270bec9d01fb83a9c9347d93 | /lib/smanstal/devel/tests/unit/TestMod_types/TestMod_mdict/__init__.py | aa2ee173f6f3ece7f9a6761edc01e469fe5553b6 | [
"MIT"
] | permissive | BackupTheBerlios/empath-svn | 33e4943c52a5c5682488320d6826a3df1b926cf1 | 8731cf01fe498bedc432b189c152a32eee8a751f | refs/heads/master | 2021-01-01T19:30:21.408115 | 2007-10-21T20:42:06 | 2007-10-21T20:42:06 | 40,672,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # Module: smanstal.tests.TestPkg_types.TestMod_mdict
# File: __init__.py
# Copyright (C) 2006 Ariel De Ocampo arieldeocampo@gmail.com
#
# This module is part of the smanstal project and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import unittest
from smanstal.tests import ad... | [
"smokybobo@2d1e70a7-801d-0410-ab83-90da37f5c1c7"
] | smokybobo@2d1e70a7-801d-0410-ab83-90da37f5c1c7 |
694076d1aeb49221da8d2b329dc465602d47de77 | 73a475fe07dedc07a4affe1c8c31137c6bab7d6c | /src/static/__init__.py | 7b05b2249083c2ae94e64072370275056fb9a800 | [] | no_license | SIXBYSIX-LLC/bg-api | 79dd6f12044876ffe438994d73cfe96d48b9046e | 3129d0fc500b68e565d3f21b7878d70522829bf3 | refs/heads/master | 2021-05-31T10:42:18.266736 | 2016-03-30T10:26:08 | 2016-03-30T10:26:08 | 36,426,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | """
******
Static
******
The aim of this app is to handle static files upload for any object (like product images,
user credit form, etc...) and store them to cloud.
We currently use `Cloudinary` for image/file storage
So any other app that needs file storage should make relation(either foreign key or many to many)
w... | [
"in.abhi9@gmail.com"
] | in.abhi9@gmail.com |
3bd33a7c40f51b3e64fe1a979a10843e4253828c | d785e993ed65049c82607a1482b45bddb2a03dda | /loose/loose_DYJetsToLL_M-10to50_ext1_cfg.py | 0990948f868d92040c19c053abb26adc497f1f53 | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'loose_DYJetsToLL_M-10to50_ext1'
config.General.transferLogs= True
config.section_("JobType")
config.JobType.pluginName = '... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
4b8afae387b53dcdd52104c4c43509bc39274698 | 35d4f6e592fef933312fec601095ca5d0c4fe616 | /backend/beers_criteria_18818/wsgi.py | 5bd26dcebd14b048dc68037938a7ef992367e4db | [] | no_license | crowdbotics-apps/beers-criteria-18818 | 0a7a16b5290a87de3e6ea0ce01f317b2eba12122 | 54ec167fc8c3d6728f163e3e4bc37019af62238c | refs/heads/master | 2022-11-16T17:38:05.757707 | 2020-07-10T19:40:49 | 2020-07-10T19:40:49 | 278,718,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for beers_criteria_18818 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
be6eae6b3778e68036264546f5b0ff32fa329d2e | 0d61f90e3a7877e91d72fed71b0895c7070dc046 | /final_project/.history/project/account_app/models_20210104133316.py | 50b9f5f04aaad68f55aea207fd96fa639a3e08b6 | [] | no_license | lienusrob/final_project | 44d7d90dc0b7efc0cf55501549a5af0110d09b3b | 4164769626813f044ec2af3e7842514b5699ef77 | refs/heads/master | 2023-02-10T16:36:33.439215 | 2021-01-05T09:34:01 | 2021-01-05T09:34:01 | 325,002,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py |
from django.db import models
from django.db.models.fields import DateTimeField, EmailField
from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.conf import settings
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delet... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
f4bd399cac0996ad1d2a4fb239f655c5a9b1485c | e7aaebedf140262fde121c9ae4f5f01fcc295655 | /operations/Bcolors.py | 2c38c89c99991c5e50e1e0319666979d80206b89 | [
"Apache-2.0"
] | permissive | vibhatha/PSGDSVMPY | 69224490ef36c36bb59df54b9473d01e9369b395 | 69ed88f5db8d9a250ee944f44b88e54351f8696f | refs/heads/master | 2020-05-19T03:18:41.785594 | 2019-05-03T17:43:55 | 2019-05-03T17:43:55 | 184,796,792 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | class Bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
TEAL = ''
| [
"vibhatha@gmail.com"
] | vibhatha@gmail.com |
7ff569848f1debdbb9256bdcc78cfecb6705c8e5 | e408a1c27efcafaec1f6bf1e6255075eae171102 | /AppServer/src/http/path.py | 6fe92ec0a88f516b1a954b1b8997e1e76043d295 | [] | no_license | adoggie/BlueEarth | acd609a5da9eb0276dc810776f97a35c5b5ccf8c | ef2c4d045d8d933bcbf5789a87a189be6b33947d | refs/heads/master | 2020-03-29T15:31:54.834861 | 2018-12-23T16:03:59 | 2018-12-23T16:03:59 | 150,067,522 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | #coding: utf-8
"""
路径轨迹抽吸、过滤处理
考虑 采用高德的抓路服务或者百度鹰眼服务进行绑路服务
"""
from math import sin, cos, sqrt, atan2, radians
from functools import partial
def distance(coord1, coord2):
R = 6373.0
lat1 = radians(coord1[0])
lon1 = radians(coord1[1])
lat2 = radians(coord2[0])
lon2 = radians(coord2[1])
dlon = lon2 - lon1
dlat ... | [
"24509826@qq.com"
] | 24509826@qq.com |
2b2b170972af8d99f005ac98a71125629d05848e | d7fafa497d5724a6a53d6790556a0056493be80e | /srl_model/tests/modules/token_embedders/token_characters_encoder_test.py | 1a37036109245f020f670e0ba1322ed93ef2a1fc | [
"Apache-2.0"
] | permissive | rz-zhang/Bert_Attempt | 472a9e3d7e3874f63710f850357b884354bb2d46 | 26936a5a63ff22c8ab118480caf515cdc395e37f | refs/heads/master | 2021-10-08T09:25:04.297734 | 2018-12-10T14:59:13 | 2018-12-10T14:59:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | # pylint: disable=no-self-use,invalid-name
from copy import deepcopy
import numpy
from numpy.testing import assert_almost_equal
import torch
from srl_model.common import Params
from srl_model.data import Vocabulary
from srl_model.modules import Seq2VecEncoder
from srl_model.modules.token_embedders import Embedding, T... | [
"986645906@qq.com"
] | 986645906@qq.com |
de4d7f75b3c1455cc71971b6be306ddc2e288b53 | ac7d9676d662b6bccf4d6308b6226fdb9c38caf1 | /Chapter_02/playin_with_csv/read_it.py | 5c99ece4346d7ff2bfbc2ede369809f970f4d451 | [] | no_license | codingEzio/code_py_book_automateit | 8b0f8a1613043dd3c32562d8e893f6799e96a20a | fc1feca3951d6944068d1669f968d45c0267d873 | refs/heads/master | 2020-04-04T17:55:45.261830 | 2018-11-13T15:21:49 | 2018-11-13T15:21:49 | 156,142,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import csv
from pprint import pprint
with open('./src/mylist.csv', mode='rt') as mycsv:
reader = csv.DictReader(mycsv)
for row in reader:
print(row['first_name'], row['phone'], sep='\t')
print('-' * 40)
print(
reader.fieldnames[:3], # all col
reader.line_num, # current pos
reader.dialect, ... | [
"assassinste@gmail.com"
] | assassinste@gmail.com |
7fcfac2f1819bce34cda83d097938ff412cfaeb7 | ebe422519443dbe9c4acd3c7fd527d05cf444c59 | /choose_team.py | 208072cba0485adeeb2960fd0c6bfd21935c3bad | [] | no_license | SaiSudhaV/coding_platforms | 2eba22d72fdc490a65e71daca41bb3d71b5d0a7b | 44d0f80104d0ab04ef93716f058b4b567759a699 | refs/heads/master | 2023-06-19T18:05:37.876791 | 2021-07-15T18:02:19 | 2021-07-15T18:02:19 | 355,178,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #your code goes here
def choose_team(ar, n, k):
res = [1 for i in ar if k <= 5 - i]
return sum(res) // 3
if __name__ == "__main__":
n, k = map(int, input().split())
ar = list(map(int, input().split()))
print(choose_team(ar, n, k)) | [
"saisudhavadisina@gmail.com"
] | saisudhavadisina@gmail.com |
251ed6b10574b3e8817b6b1eaa15badf05cc05d5 | 1620e0af4a522db2bac16ef9c02ac5b5a4569d70 | /Ekeopara_Praise/Phase 2/DATA STRUCTURES/Day58 Tasks/Task2.py | 36a9e8fa4dd6d36028b1b6a469aa6a6ac097b3a2 | [
"MIT"
] | permissive | Ekeopara-Praise/python-challenge-solutions | cda07902c9ffc09ba770ae7776e5e01026406a05 | 068b67c05524b5c5a0d6084315eca3424c768421 | refs/heads/master | 2022-12-15T15:29:03.031583 | 2020-09-25T06:46:27 | 2020-09-25T06:46:27 | 263,758,530 | 2 | 0 | null | 2020-05-13T22:37:33 | 2020-05-13T22:37:32 | null | UTF-8 | Python | false | false | 479 | py | '''2. Write a Python program to iterate over an enum class and display individual member and their value.
Expected Output:
Afghanistan = 93
Albania = 355
Algeria = 213
Andorra = 376
Angola = 244
Antarctica = 672 '''
import enum
class Member(enum.Enum):
Afghanistan = 93
Albania = 355
Algeria = 213
Ando... | [
"ekeoparapraise@gmail.com"
] | ekeoparapraise@gmail.com |
3b18eb971ca2dc90d51b5b8e9d7e57f0b820083b | af82475dc7eb45c478414372c222e7b6016359d4 | /lesson6 常用第三方库/test.py | f73a0bda72bc5e020c6acf73df49bad4471e0589 | [] | no_license | enfangzhong/PythonBaseCode | 8f58c8b817eb9f4b0f0a5be437a52d5b5fab3433 | 9ab4a578b2692fdbb6aeeacb310251d51f72e953 | refs/heads/master | 2020-05-17T16:26:02.598344 | 2019-04-27T20:49:40 | 2019-04-27T20:49:40 | 183,817,172 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | import argparse
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('-c',
'--config',
default='ds_config') # # Assign config file, don't use '.py' suffix.
parser.add_argument('-s',
'--spider',
... | [
"944727327@qq.com"
] | 944727327@qq.com |
f6f10afbbb696646ef765ae2318db35c7467bb9b | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/gui/game_control/events_notifications.py | d9ae44d125d62fb8ff885ffc41ada5a66da86e99 | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,118 | py | # 2016.05.01 15:20:36 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/game_control/events_notifications.py
from collections import namedtuple
import BigWorld
import Event
from debug_utils import LOG_DEBUG
from PlayerEvents import g_playerEvents
from helpers import getLocalizedData
from gui.game_cont... | [
"info@webium.sk"
] | info@webium.sk |
4719eff1b14a5614a6130d3860d2b066b4b7832f | 967d8004a13040def8f256a981f0996c8ea87ee0 | /.github/helper/semgrep_rules/frappe_correctness.py | e6ddc369d45583307861e46ed803b06c5cb1f36a | [
"MIT"
] | permissive | ruchamahabal/healthcare | 38ce6f5b2ab7db5a526b3edc521c358f9565ccf3 | c9fd664a76119c6921ba2be593ee3ef50a1d0efa | refs/heads/develop | 2023-07-16T05:08:14.137334 | 2021-09-03T05:14:15 | 2021-09-03T10:54:20 | 403,834,309 | 1 | 0 | NOASSERTION | 2021-09-07T03:59:54 | 2021-09-07T03:59:54 | null | UTF-8 | Python | false | false | 408 | py | import frappe
from frappe import _, flt
def on_submit(self):
if self.value_of_goods == 0:
frappe.throw(_('Value of goods cannot be 0'))
# ruleid: frappe-modifying-after-submit
self.status = 'Submitted'
def on_submit(self):
if flt(self.per_billed) < 100:
self.update_billing_status()
else:
# todook: frappe-... | [
"anand21nanda@gmail.com"
] | anand21nanda@gmail.com |
def1e67739949f526b093481b455500f3d39d633 | 459b0fa3e23e0723f280120be330b57567ac8086 | /19-7-3/analyze.py | c1d7804ffbf6bb358606908a28056cc5a285af13 | [] | no_license | airuibel/dataAnalyze | baa65c53479af4373c3ec290b444aa17f95ebcfa | 6e21028106a351ba2a3052e08b6c0b20c34e2b62 | refs/heads/master | 2020-07-07T12:13:46.757178 | 2019-07-25T09:16:20 | 2019-07-25T09:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import numpy as np
import pandas as pd
import scipy.stats as ss
import matplotlib.pyplot as plt
import seaborn as sns
pd.set_option('display.max_rows', None)
pd.set_option('display.max_columns', None)
pd.set_option('display.width', 10000)
import sys
sys.path.append("/Users/apple/Documents/project/analyze/tools")
f... | [
"lim1942@163.com"
] | lim1942@163.com |
4193528908314c3a4ea4223ee16543af48a0de55 | 731a33f8bb92bad31ab233416d8ef6eb3a9f3fe0 | /minlplib_instances/flay02m.py | 2c903d1f17d48074ec8fd45395075de153f165ed | [] | no_license | ChristophNeumann/IPCP | d34c7ec3730a5d0dcf3ec14f023d4b90536c1e31 | 6e3d14cc9ed43f3c4f6c070ebbce21da5a059cb7 | refs/heads/main | 2023-02-22T09:54:39.412086 | 2021-01-27T17:30:50 | 2021-01-27T17:30:50 | 319,694,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | # MINLP written by GAMS Convert at 02/15/18 11:43:41
#
# Equation counts
# Total E G L N X C B
# 12 2 4 6 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"christoph.neumann@kit.edu"
] | christoph.neumann@kit.edu |
1adeca779fa3df491e3a47ba9718d48e23e36f58 | 34dddb08573bde2ac59c85ba6b67d8eeecde5e16 | /celery_tasks/celeryapp.py | 01ec684554cb19668713fb17c26d1f913bbf9d39 | [] | no_license | tiansp/NetOpsBase | 77cce2f62936c9b0e5c41718e2f8fbf07bd7127e | e59878ff1c022c4339cd8816c4dc4dba933ab383 | refs/heads/main | 2023-06-29T04:11:33.314924 | 2021-07-29T01:22:43 | 2021-07-29T01:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from celery import Celery
from celery_tasks import celeryconfig
from django.utils import timezone
# 创建celery app
app = Celery("tasks")
# 从单独的配置模块中加载配置
app.config_from_object(celeryconfig, namespace="CELERY")
# 设置app自动加载任务
app.autodiscover_tasks(['celery_tasks'])
# 解决时区问题,定时任务启动就循环输出
# app.now = timezone.now | [
"2256807897@qq.com"
] | 2256807897@qq.com |
d558d299fbedc5867ee011b4f3a9eb03d5ae34eb | eb4bf7cba9afe5532cc85fe3179155b1d4949a48 | /Examples/lambdas.py | a3ce790d8b8e5fdd09a7be7ff6b23fe5ca8f80c6 | [] | no_license | DWONeill18/Python | a37a52d5a8b74136428fb19e08152c871c204bd2 | e37dd84fae31f661b05d0e211ead8c37b5d43db1 | refs/heads/master | 2021-04-17T17:29:21.378062 | 2020-11-09T14:21:29 | 2020-11-09T14:21:29 | 249,458,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | #
# Contains A
contains_a = lambda word: "a" in word
print contains_a("banana")
print contains_a("apple")
print contains_a("cherry")
# Long String
long_string = lambda str: len(str) > 12
print long_string("short")
print long_string("photosynthesis")
# Ends with a
ends_in_a = lambda str: str[-1] == "a"
print e... | [
"d.w.oneill.18@gmail.com"
] | d.w.oneill.18@gmail.com |
014c4b58459bac98238ae093d44f25268a03e2ab | 2bdb99a4a711b23372c306053ce67b47446ed65e | /src/simulator/buffer.py | 5c4adce8b52242075bf3b13d02b912f54eb31c05 | [] | no_license | jtpils/point-cloud-buffers | b82c1a3e00a7282e2f905445fedd6122287923c0 | f2ec08640511adfe33f4d87ca07687b4df5bd8de | refs/heads/master | 2020-06-01T10:51:03.905179 | 2019-05-31T00:36:24 | 2019-05-31T00:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | """
Simulates points from a moving robot.
Simulated points are expose dusing the PointBuffer API.
"""
import numpy as np
from open3d import *
class PointBuffer():
"""
A point buffer accumulates points from a stream.
Points in the buffer are either valid or expired.
"""
def __init__(self,stream):... | [
"maxkferg@gmail.com"
] | maxkferg@gmail.com |
263fb3fa220c865e2ebe20d15ad570df7ea49675 | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/client/models/v1beta2_replica_set_list.py | 42cdacee75a49738d1252639ea0c8533963d590c | [
"Apache-2.0",
"MIT"
] | permissive | JeffYFHuang/gpuaccounting | d754efac2dffe108b591ea8722c831d979b68cda | 2c63a63c571240561725847daf1a7f23f67e2088 | refs/heads/master | 2022-08-09T03:10:28.185083 | 2022-07-20T00:50:06 | 2022-07-20T00:50:06 | 245,053,008 | 0 | 0 | MIT | 2021-03-25T23:44:50 | 2020-03-05T02:44:15 | JavaScript | UTF-8 | Python | false | false | 6,658 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.6
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class V1beta2Rep... | [
"JeffYFHuang@github.com"
] | JeffYFHuang@github.com |
0b86acf5910000c2a3f8a572d3c32b72002d0435 | bf06bf980ef359615604d53567d1cc435a980b78 | /data/HW4/hw4_172.py | bc93488e256f0cd631dac8be21a2f362ac66a0b7 | [] | no_license | am3030/IPT | dd22f5e104daa07a437efdf71fb58f55bcaf82d7 | 6851c19b2f25397f5d4079f66dbd19ba982245c5 | refs/heads/master | 2021-01-23T05:03:53.777868 | 2017-03-09T18:10:36 | 2017-03-09T18:10:36 | 86,270,526 | 0 | 0 | null | 2017-03-26T22:53:42 | 2017-03-26T22:53:42 | null | UTF-8 | Python | false | false | 415 | py |
def main():
hail = int(input("Please enter the starting height of the hailstone: "))
while hail > 1:
if hail % 2 == 0:
hail = hail // 2
print("Hail is currently at height", hail)
else:
hail = (hail * 3) + 1
print("Hail is currently at height", ha... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
7aa73b1e0c640509402f011b0b389dac6cebd728 | 94b2148ef2af4db4dac486f9b6e36942df502578 | /TimeZ/world/latlontz_db.py | f3abb14c06586f87cb69b253dcd49bc413fc9303 | [] | no_license | tomcircuit/Wyolum-old-archive | d30fcaa880cb8e1e7901f2710483c7a306f4aead | 07001059774cc4e4fccfc54970b60f108f8e1971 | refs/heads/master | 2021-12-24T06:38:34.489005 | 2016-03-06T21:14:50 | 2016-03-06T21:14:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | #!/usr/bin/python
import shapefile
import csv
import struct
from Polygon import *
from Polygon.Shapes import Star, Circle, Rectangle, SierpinskiCarpet
from Polygon.IO import *
from Polygon.Utils import convexHull, tile, tileEqual, tileBSP, reducePoints, cloneGrid
import random, math
def makeDB():
tz_shapes = sh... | [
"wyojustin@gmail.com"
] | wyojustin@gmail.com |
b3a7c54108fefc21388e75d9dafde690782031a6 | f155033606399eadfb5fe694479af36e14115467 | /greedy/two-arrays.py | 8cc2adcd8f321d3365b44e3a29e4a2747df61741 | [] | no_license | KadirEmreOto/hackerrank | 7925e5b49f90bbe6fef41cfe4fd980b6ffd9e3f1 | 143d49adc45e4e3e3d9424168b2fdac80b2155d6 | refs/heads/master | 2021-01-11T02:56:03.535273 | 2017-08-11T13:41:55 | 2017-08-11T13:41:55 | 70,905,859 | 10 | 2 | null | 2022-03-16T09:19:13 | 2016-10-14T11:55:02 | Python | UTF-8 | Python | false | false | 471 | py | if __name__ == '__main__':
T = int(raw_input())
for t0 in xrange(T):
N, K = map(int, raw_input().split())
A = map(int, raw_input().split())
B = map(int, raw_input().split())
A = sorted(A)
B = sorted(B, reverse=True)
check = True
for i in xrange(N):
... | [
"emrekadiroto@hotmail.com"
] | emrekadiroto@hotmail.com |
468f0d6dbdebc5e238cdaa28d3578f420e4c099d | 0030f81fc582435fb366c3a706928d00255fb0e5 | /week03/HomeWork/2.orm_create_table.py | c0e0935ce57d9f5bd9502cfd842492d2b8ed7828 | [] | no_license | lpchg1992/Python006-006 | 34d54317cd1b5ff3530a2addcf447b7113a8d81b | 673fb1e444479b89a8c23513a16c3105fb8d3843 | refs/heads/main | 2023-03-30T18:38:49.840577 | 2021-04-08T00:33:53 | 2021-04-08T00:33:53 | 321,844,666 | 1 | 0 | null | 2020-12-16T02:24:49 | 2020-12-16T02:24:48 | null | UTF-8 | Python | false | false | 1,112 | py | import pymysql
from sqlalchemy import create_engine, Column, Integer, String, DateTime, Enum
from sqlalchemy.ext.declarative import declarative_base
from datetime import datetime
from user_table_enums import GenderEnum, DegreeEnum
Base = declarative_base()
class UserInfo(Base):
__tablename__ = 'userinfo'
us... | [
"email"
] | email |
f6dde3cb690677b30a1bd0323b9e87054ec6fce6 | 6a16116f96e1c26c107bef76ed9e5c9c78aafcc0 | /1d/display-forcing.py | c8a999b57cdf758c7c9a4e35f9a593b8436f4a8c | [] | no_license | anirban89/My-Masters_Code | f0ac7eb5fa900d7794ce1dfa1fe9e5a87990d4c6 | f16c49ea31a9a9215699e308aba181cd9307f975 | refs/heads/master | 2021-01-15T13:36:43.751511 | 2014-08-26T02:16:50 | 2014-08-26T02:16:50 | 23,330,647 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | from spectral import *;
from integrator import *;
from pylab import *;
import scipy;
import pylab as m;
import time;
import numpy as np;
N = 512;
kappa = 0.1;
initPath = '/home/joy/EqVaportestHiRes';
vorticityPath = str(kappa)+'/delta_data_'
vaporPath = 'Vapor2/vapor_data_'
figurePath = 'Vapor2/figure_'
def calcPower... | [
"anirbancnha@gmail.com"
] | anirbancnha@gmail.com |
f83b605d8fc6af11cd7e12b13e02857de017fcf6 | ba65dbb459664e0ae48f5e4db7a0112c46a6b961 | /pyews/core.py | c196f4126de8c6552b1440efdee3ffc07a8a49b5 | [
"MIT"
] | permissive | anhvu-sg/pyews | 06de7463382e3db14efb6bcb0805190cb55684ba | e35ad7425bf100a2ae67e3d4b763cc5d2cc8d4f3 | refs/heads/master | 2023-02-16T16:10:34.955116 | 2021-01-07T21:02:19 | 2021-01-07T21:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,890 | py | import logging
import requests
import xmltodict
import json
from bs4 import BeautifulSoup
__LOGGER__ = logging.getLogger(__name__)
class Core:
SOAP_REQUEST_HEADER = {'content-type': 'text/xml; charset=UTF-8'}
def __init__(self, userconfiguration):
'''Parent class of all endpoints implemented within... | [
"josh.rickard@swimlane.com"
] | josh.rickard@swimlane.com |
82fd4bb90546d5bf738404054acee4279e5fa77d | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/f95e5d830e8f425aabf096188ff3c4e9.py | a5797801fdb2acb40b2277cec6347f0f686b7a45 | [] | 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 | 303 | py | #
# Skeleton file for the Python "Bob" exercise.
#
class Bob(object):
def hey(self, sentance):
if sentance is None or sentance.strip() == "":
return 'Fine. Be that way!'
elif sentance.isupper():
return 'Whoa, chill out!'
elif sentance.endswith('?'):
return 'Sure.'
return 'Whatever.'
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
7f846a12fa7572991c8e20ec9fdde2a5a54b794d | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/feedbacks/migrations/0035_survey_featured.py | de3127ef0539e6ea3f9d4073a33bb6412d0e9f75 | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 416 | py | # Generated by Django 2.0.8 on 2019-03-24 17:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('feedbacks', '0034_auto_20190322_0837'),
]
operations = [
migrations.AddField(
model_name='survey',
name='featured',
... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
4abec1541c9c0c064be5a6e4979223b705539906 | 78a20d2ceac95d3afb55b215305a8c40670e873f | /QsimMaster/scripts/pulse_sequences/sub_sequences/microwave_pulse_sequences/BB1Sequence.py | 91294785ffa78c937d28e85b3afcc853550371e5 | [] | no_license | johnpalsberg/John-Palsberg | 9957dd2fb2a6da62e5118c4e2a9a471d5e2f4c9b | 91aa6476bc319524c6f6a4bfc5561ca6aa95e6c4 | refs/heads/master | 2023-01-13T07:26:04.250541 | 2023-01-05T08:48:17 | 2023-01-05T08:48:17 | 206,402,363 | 0 | 0 | null | 2022-06-20T16:29:42 | 2019-09-04T19:57:25 | Python | UTF-8 | Python | false | false | 3,080 | py | from common.lib.servers.Pulser2.pulse_sequences.pulse_sequence import pulse_sequence
import numpy as np
from labrad.units import WithUnit as U
class bb1(pulse_sequence):
"""
This is a BB1 corrective pulse sequence
"""
required_parameters = [
('MicrowaveInterrogation', 'dura... | [
"jpalsberg2023@chadwickschool.org"
] | jpalsberg2023@chadwickschool.org |
ea4e1eb46d0e0dbc2f70e6c056e373292d0a5ab5 | 8b7e2ced469249d9cf6e8fba4e05d3ab2eedf234 | /vaccine/models.py | 07679f0d4838d6169dd33c8868e95273297f091c | [] | no_license | rk110047/hospital | 2885587df2bc6f77ad0464844a278642e9e59b19 | ddbba64d7f5e971cb2e81c9825b44202120787d6 | refs/heads/main | 2023-04-21T06:46:59.572248 | 2021-05-11T11:28:16 | 2021-05-11T11:28:16 | 366,356,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | from django.db import models
from hospital.models import Hospital
# Create your models here.
class VaccineType(models.Model):
name = models.CharField(max_length=120)
description = models.TextField(max_length=100)
def __str__(self):
return self.name
class Vaccine(models.Model):
vaccine_name = mod... | [
"rk110047@gmail.com"
] | rk110047@gmail.com |
09454a3e10897e0a54d52a3bc66f211f79108b97 | b4afd14e3b4e9cff0a99906a69587e348b243aeb | /fenkpython/03/3.3/tuple_test.py | f770df1e6250fc5d400a40c3809082bc3ce69434 | [] | no_license | zhankq/pythonlearn | d694df23826cda6ba662e852e531e96a10ab2092 | cb714fbb8257193029f958e73e0f9bd6a68d77f1 | refs/heads/master | 2021-12-16T13:51:23.381206 | 2021-12-03T01:13:36 | 2021-12-03T01:13:36 | 205,632,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | a_list = ["crazyit",20,-1.2]
# 将表 转换 成元组
a_tuple = tuple(a_list)
print(a_tuple)
#使用 range()函数 创建区间 range对象
a_range = range(1,5)
print(a_range)
b_tuple = tuple(a_range)
print(b_tuple)
c_tuple = tuple(range(4,20,3))
print(c_tuple)
| [
"zhankq@163.com"
] | zhankq@163.com |
b5b94d661edfb8f259744081bef104738aaa15ff | a0556d5e8368bf171b9019aba03e65b06e8c12e4 | /secao13_leitura_escrita_de_arquivos/exercicio/questao20.py | d74e20b822758da9c6bb08914372f7c5e7b712ab | [] | no_license | RianMarlon/Python-Geek-University | f1c9db588f23ce8e6699d1352ebfb3428e0ab1ec | 3be7ec5c35bf74b1b2152de63db95bee33ee1719 | refs/heads/master | 2020-06-25T04:41:52.911513 | 2020-02-01T16:18:35 | 2020-02-01T16:18:35 | 199,204,603 | 23 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | """
20) Crie um programa que receba como entrada o número de alunos de
uma disciplina. Aloque dinamicamente dois vetores para armazenar
as informações a respeito desses alunos. O primeiro vetor contém
o nome dos alunos e o segundo contém suas notas finais. Crie
um arquivo que armazene, a cada linha, o nome do aluno e s... | [
"rianmarlon20@yahoo.com"
] | rianmarlon20@yahoo.com |
fc4047b92d8935b1b7bbcf92e30a9790041b7662 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /third_party/blink/web_tests/external/wpt/tools/third_party/aioquic/src/aioquic/h3/events.py | cd21c5abc4270c2e8f1be58a009ae752812d1a14 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 1,404 | py | from dataclasses import dataclass
from typing import List, Optional, Tuple
Headers = List[Tuple[bytes, bytes]]
class H3Event:
"""
Base class for HTTP/3 events.
"""
@dataclass
class DataReceived(H3Event):
"""
The DataReceived event is fired whenever data is received on a stream from
the remo... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
f6b404a8481afeff7e550ec5aebba17b454a7ebe | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /baBNZFCozmjNhbp9Q_13.py | 33d161a9ad6e5e42ee23f4daae44158908847696 | [] | 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 | 147 | py |
def box_seq(step):
steps = {1: lambda n: n + 3, 0: lambda n: n - 1}
out = 1
for i in range(step+1):
out = steps[i%2](out)
return out
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3861db1f8a822211d3d767690b60775237f05aaa | 05352c29e844705f02d65526343eea9b486f8bd7 | /src/python/pants/testutil/pexrc_util.py | 1e835382ec8a97cb9abd9cafd64acc02741dbe95 | [
"Apache-2.0"
] | permissive | DoN-SultaN/pants | af2557de1178faaf73eed0a5a32e8f6fd34d2169 | 5cb5379003a0674c51f9a53f582cf690eddfaf45 | refs/heads/master | 2022-10-15T04:18:54.759839 | 2020-06-13T10:04:21 | 2020-06-13T10:04:21 | 272,089,524 | 1 | 0 | Apache-2.0 | 2020-06-13T21:36:50 | 2020-06-13T21:36:49 | null | UTF-8 | Python | false | false | 1,330 | py | # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import os
from contextlib import contextmanager
from pants.base.build_environment import get_pants_cachedir
from pants.util.contextutil import environment_as, temporary_dir
from pants.uti... | [
"noreply@github.com"
] | DoN-SultaN.noreply@github.com |
0d4582472eb96746d6eec59410f1704eb2425aec | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/411.py | 9605009dfa1968cf7d49a59a486ad73b9c58b160 | [] | 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 | 568 | py | #!/usr/bin/env python
# coding:utf-8
# Copyright (C) dirlt
import sys
fh = sys.stdin
cases = int(fh.readline())
def fx(n):
while True:
# scan from lsb.
s = str(n)
p = len(s) - 1
while p > 0:
if s[p] < s[p-1]:
break
else:
p -=... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
62a3e72fafe6a9d55da751b410e5d2dfb033eb9f | 85e33e301fdcd2ca71713654a3ead01da826c71f | /main.py | 83ed29bc852d5fb4d77aa6ef63563ee8015023b3 | [] | no_license | seantyh/modalities | 141af476bd7ee8ae787e43a99fa2264287290440 | a73d255051514f02608ba9c1c83700b3e99ab1da | refs/heads/master | 2021-01-23T00:44:31.101873 | 2017-05-31T15:51:09 | 2017-05-31T15:51:09 | 92,838,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py |
import os
import sys
from download_youtube import *
from find_threshold import *
from export_frames import *
from analyze_frames import *
from text_detection import *
from configparser import ConfigParser
def tp(instr):
toks = instr[1:-1].split(",")
return tuple(int(x) for x in toks)
if __name__ == "__main__... | [
"seantyh@gmail.com"
] | seantyh@gmail.com |
d19ca5e6dd9532b1c4c3a1a00e5a47e12d724ab5 | 8da7bc21fff2c4205799d458817893454f02de16 | /qa/rpc-tests/spentindex.py | b7b50aa9602fcd5c41adb02c871f49d5010b07d3 | [
"MIT"
] | permissive | mirzaei-ce/core-goldbit | cd392146c971abf91b5a1a7f8ff8d5a36c77a91a | cc957d795f7af032967943208171acee8a527441 | refs/heads/master | 2021-07-12T06:20:37.650989 | 2017-10-16T15:30:53 | 2017-10-16T15:30:53 | 107,146,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,109 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test addressindex generation and fetching
#
import time
from test_framework.test_framework import Go... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
64ea31c772bda15af78c524c0affde8109cbe5b0 | 250db406ad4a62e3d576e55b979bcfdc3407f226 | /Company/Amazon/Leetcode_42/learning_solution_O(n)space.py | 3364f3e1d15110b2a4590547fd0f28c6c425f01f | [] | no_license | chenshanghao/Interview_preparation | 0830f0e461a2fe287b8ec24ae761974f50268767 | 4e7701d32990604c16ba18a8083c2108c0232306 | refs/heads/master | 2020-04-25T02:36:19.499364 | 2019-06-10T04:51:00 | 2019-06-10T04:51:00 | 172,446,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | class Solution:
"""
@param heights: a list of integers
@return: a integer
"""
def trapRainWater(self, heights):
# write your code here
n = len(heights)
if n <= 1:
return 0
left_max = [0] * n
right_max = [0] * n
l_max, r_max = 0, 0
... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
97b9c82cb96ac8ad7cf178a2082d7bbdb2ce4946 | e9ac3007696985ab4a8d3539b07bb9dd81571adb | /atividade1/bioInformatica1-1.py | 39d4523b5ebdab98f02e09e26c1081d37ba6f1ef | [] | no_license | GustavoGarciaPereira/codigos_bioinformatica | 3f90ed30f876ce65f1a524a07c96d80e91672732 | 77d1f38c3b545d09469bc64c5ef02ef244daf5f7 | refs/heads/master | 2020-04-20T10:16:55.824539 | 2019-02-02T02:54:09 | 2019-02-02T02:54:09 | 168,786,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from Bio.Seq import Seq
Seq1 = 'AACCGGTT'
Seq2 = 'AACCGGTT'
Seq3 = 'TTCCAAGG'
if Seq1==Seq2:
print("As variáveis SeqX e SeqY são iguais")
else:
print("As variáveis SeqX e SeqY são diferentes") | [
"gusgurtavo@gmail.com"
] | gusgurtavo@gmail.com |
5b12ea4e1f2756e03b7006c613aea9eb1dae45f0 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/함수기본값_20200705103000.py | 554e4f2b6b944262c8ec21fb2fd0d6cb6dfbfaae | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | # def profile(name, age, main_lang):
# print("이름 : {0}\t나이 : {1}\t주 사용 언어: {2}"
# .format(name, age, main_lang))
# profile("유재석", 20, "파이썬")
# profile("김태호", 25, "자바")
# 같은 학교 같은 학년 같은 반 같은 수업
| [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
d27f247c27c07df01f4f510279a45f351c54f496 | 2c238be39b551af4caf0aa1a32f32502b86e00f1 | /tests/test_feature_extraction_wav2vec2.py | 2bbf9bd58b5c8ddbee38f5c80070040b601f73e9 | [
"Apache-2.0"
] | permissive | marinatricanico/transformers | eaeaf9bf6972e2083ec262c71fc77d06dfee1dbd | c89180a9de1fc2e98654812fd1c233c3bc6a8d43 | refs/heads/master | 2023-07-03T17:07:45.394194 | 2021-08-11T16:09:41 | 2021-08-11T16:09:41 | 395,073,287 | 1 | 0 | Apache-2.0 | 2021-08-11T17:50:05 | 2021-08-11T17:50:04 | null | UTF-8 | Python | false | false | 6,683 | py | # coding=utf-8
# Copyright 2021 HuggingFace 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 ag... | [
"noreply@github.com"
] | marinatricanico.noreply@github.com |
0d908d48fe6bddc318ddc17d6f5cc6be6727da14 | 65f863c73f6a3cd1cfdc70c94ab972a6ddac863f | /src/enamlnative/widgets/grid_layout.py | b2bec7ed2f6be0c9a84a473d700c7d3c54a163e4 | [
"MIT"
] | permissive | marksagal/enaml-native | a266a631fd78ba9654412ae811bdf758566a4375 | 1606f895b0718e223cb4296fe3ead8df8018cad9 | refs/heads/master | 2021-09-01T04:04:59.020078 | 2017-12-12T20:43:13 | 2017-12-12T20:43:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | """
Copyright (c) 2017, Jairus Martin.
Distributed under the terms of the MIT License.
The full license is in the file COPYING.txt, distributed with this software.
Created on May 20, 2017
@author: jrm
"""
from atom.api import (
Typed, ForwardTyped, Unicode, Enum, Bool, Int, observe, set_default
)
from enaml.co... | [
"frmdstryr@gmail.com"
] | frmdstryr@gmail.com |
db5c13c08b0aa88cebdbe27a9af0bca160485d3c | 75c0e96e16fe57ed3b4203a49ccf667369694d74 | /Practice Python/guessing_game.py | fde47768661c59183be07c8ebf90489cf08f8d88 | [] | no_license | anhnguyendepocen/Programming_Python | 4c7dbfaf9c62ed12036f723ec26897207a496b11 | 08ace6f9d8ac8b4693cb9c7a4854bff937360d9c | refs/heads/master | 2023-03-07T16:39:14.233772 | 2020-01-28T01:58:14 | 2020-01-28T01:58:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | import random
num = random.randint(1,9)
guess = 0
count = 0
while int(guess) != num:
guess = input("Guess number?")
if guess == 'exit':
break
elif int(guess)<num:
print("Too low")
count += 1
elif int(guess)>num:
print("Too high")
count +=... | [
"noreply@github.com"
] | anhnguyendepocen.noreply@github.com |
e049eea75f782d7208dfc04ebec4e3072e91d9bd | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabelstep.py | e6018e817735769a5051209c273673d98837e9c4 | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 515 | py | import _plotly_utils.basevalidators
class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator):
def __init__(
self,
plotly_name="ticklabelstep",
parent_name="scattermapbox.marker.colorbar",
**kwargs,
):
super(TicklabelstepValidator, self).__init__(
... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
e87ea6f331b6da605b65d98e0bc00a557d7c13dc | 703db71b4659cf0675c48d1b0bda2dc884722502 | /admin_manage_products/admin.py | 18e34a6063516a3fd3158b61754063b26d78b651 | [] | no_license | Deepaksinghpatel052/aromawine3 | 97807d84e0ebe4e0ed4572761c35403111908cf8 | 1c70ea923fb71b7a9db28dcd499c873fcf6c325d | refs/heads/master | 2023-02-08T06:07:13.398044 | 2020-05-18T23:35:24 | 2020-05-18T23:35:24 | 265,088,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | from django.contrib import admin
from .models import AwWineType,AwProducts , AwProductImage , AwProductPrice
from import_export.admin import ImportExportModelAdmin
# Register your models here.
class AwProductPriceAdmin(ImportExportModelAdmin):
list_display = ('Product', 'Vintage_Year','Bottle','Retail_Cost','Retai... | [
"you@example.com"
] | you@example.com |
a443ca71aabd3e1626238313084730db48055222 | ba99df13d39dc8aa696c38a6c49d5193ce5c4c80 | /scripts/box3d/run_box3d_state_v8_tf_idle.py | 84c0bce3d0881f99304581c3eaceb99eea73fd82 | [
"MIT"
] | permissive | fredshentu/public_model_based_controller | e5434ec075420ec5dd6d7355ba4751744a9b6248 | 9301699bc56aa49ba5c699f7d5be299046a8aa0c | refs/heads/master | 2021-08-28T01:08:12.166349 | 2017-12-11T01:11:36 | 2017-12-11T01:11:36 | 113,795,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | import os
from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline
from sandbox.rocky.tf.policies.uniform_control_policy import UniformControlPolicy
from rllab.envs.normalized_env import normalize
from railrl.algos.idle import IdleAlgo_TRPO as Idle
from rllab.misc.instrument import stub, run_experiment... | [
"fred960315@gmail.com"
] | fred960315@gmail.com |
037ff7affb23866e08b4932771cb36ca699b4ea0 | e07732e5f37e4ea947692cd5aef54370e6706c1b | /third_party/catapult/telemetry/telemetry/internal/util/binary_manager_unittest.py | e58f8d43dada4d15063c67b3dc21e84bcf7db2c9 | [
"BSD-3-Clause",
"MIT"
] | permissive | davehorner/Prelude | 5270a7da950fd0cb9d681b2debc4143321160c49 | bd005acdcffcb54564597246a6ee613b21fa592f | refs/heads/master | 2022-01-06T20:42:51.030436 | 2019-03-10T22:57:37 | 2019-03-10T22:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from telemetry.core import exceptions
from telemetry.internal.util import binary_manager
import mock
class BinaryManagerTest(unittest.Test... | [
"xzwang2005@gmail.com"
] | xzwang2005@gmail.com |
ee3ae65056aa31e91e854e672ddb0ebcb75e6c27 | 7e6600d7c484ec27c5b4dbd43a75494914ea8d3e | /dna.py | 6daaa6a72318c6b8dba9a831fd06a4bc87c71f0d | [] | no_license | jamesbowman/atparty | 71f67666a3535d8699e6f29e50aebd230ccde236 | f2a2e3df8ca109a15b0c794cf91ea24626cc751e | refs/heads/master | 2016-09-02T04:54:08.287987 | 2013-06-16T12:03:44 | 2013-06-16T12:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,787 | py | import Image
import math
import numpy as np
import sys
import gameduino.prep as gdprep
import gameduino as gd
import array
import random
def c16(color):
r = (color >> 10) & 31;
g = (color >> 5) & 31;
b = color & 31;
return (r * 8, g * 8, b * 8)
def swap_rb(c):
r,g,b = c16(c)
return gd.RGB(b,g,... | [
"jamesb@excamera.com"
] | jamesb@excamera.com |
d3be7958483df5306432e918d5f566d97ee7aeed | 2c9eadb22d2de54ac06c6731664ed65276fd7062 | /pipeline/tests/core/flow/test_flow_element.py | 2cceffa9672b32273d6c8ed8f23bd93ee433f038 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | TencentBlueKing/bk-nodeman | 34bba9b217d84bb4dad27e735c29361a5c62789b | 72d2104783443bff26c752c5bd934a013b302b6d | refs/heads/v2.4.x | 2023-08-19T01:27:58.805715 | 2023-08-10T02:59:31 | 2023-08-10T02:59:31 | 385,203,367 | 54 | 49 | MIT | 2023-09-14T06:51:33 | 2021-07-12T10:05:11 | Python | UTF-8 | Python | false | false | 1,098 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"durantzhang@tencent.com"
] | durantzhang@tencent.com |
e1ee7f09ffedee91c0d61109bc377576a72c4d02 | c2c8915d745411a0268ee5ce18d8bf7532a09e1a | /mongoengine-0.8.7/bson/timestamp.py | 195314780b5bacbdc454fd52ff063c0e0602269f | [
"MIT"
] | permissive | asealey/crits_dependencies | 581d44e77f297af7edb78d08f0bf11ad6712b3ab | a8049c214c4570188f6101cedbacf669168f5e52 | refs/heads/master | 2021-01-17T11:50:10.020346 | 2014-12-28T06:53:01 | 2014-12-28T06:53:01 | 28,555,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | # Copyright 2010-2012 10gen, 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 writing,... | [
"mgoffin@mitre.org"
] | mgoffin@mitre.org |
d126ec71ab653ab5ef1c5a6a69f47d227a2ae612 | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/client/models/v1beta1_api_service_status.py | 852a4402fe4e20b360729084ddbf89ebc403c69b | [
"MIT",
"Apache-2.0"
] | permissive | JeffYFHuang/gpuaccounting | d754efac2dffe108b591ea8722c831d979b68cda | 2c63a63c571240561725847daf1a7f23f67e2088 | refs/heads/master | 2022-08-09T03:10:28.185083 | 2022-07-20T00:50:06 | 2022-07-20T00:50:06 | 245,053,008 | 0 | 0 | MIT | 2021-03-25T23:44:50 | 2020-03-05T02:44:15 | JavaScript | UTF-8 | Python | false | false | 3,304 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.6
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class V1beta1API... | [
"JeffYFHuang@github.com"
] | JeffYFHuang@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.