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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b44b6f0f3f0b9d259ad52416362ca4d246b0348 | 342fc6f60c688a21b9ba4a8e8b64438d77039ba2 | /CNCS/CNCS/nxs/raw.py | c37c120916552715a26b08dd44b35ff7a2eded11 | [] | no_license | mcvine/instruments | 854001fe35063b1c8c86e80495093ce72884771f | 8e41d89c353995dcf5362a657a8bb5af08ff186c | refs/heads/master | 2023-04-03T11:01:53.232939 | 2023-04-02T04:16:07 | 2023-04-02T04:16:07 | 120,621,268 | 1 | 0 | null | 2023-04-02T04:16:08 | 2018-02-07T13:51:36 | Python | UTF-8 | Python | false | false | 3,916 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2008-2015 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"[email protected]"
] | |
6e7957bb1f333a3da864d18a81ae420ab74e4ffa | f19c5436c7173835a3f1d064541ee742178e213a | /mah/Programmers/메뉴 리뉴얼.py | 20b5a552218aadd52b2828f25d2f9f8a092c26d5 | [] | no_license | hongsungheejin/Algo-Study | f1c521d01147a6f74320dbc8efe3c1037e970e73 | d6cb8a2cc6495ccfcfb3477330a3af95895fae32 | refs/heads/main | 2023-07-06T10:58:27.258128 | 2021-07-29T02:11:13 | 2021-07-29T02:11:13 | 379,269,918 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | from itertools import combinations
def solution(orders, course):
candi = {}
course = set(course)
for order in orders:
order = sorted(order)
for i in range(2, len(order)+1):
for combi in combinations(order, i):
combi = "".join(combi)
if co... | [
"[email protected]"
] | |
f607cc5e2526bcc268de801f40a60c5f8d777c39 | 558ad954a7b150ce95a30e5b1b4d277ed8286d46 | /0x04-python-more_data_structures/8-simple_delete.py | 48e0c39dd411cfe4884cd6a191de83073610e039 | [] | no_license | Indifestus/holbertonschool-higher_level_programming | 9cf41f53d164a6612ea982c28468d2a330212920 | aaaa08577888828016557826f85a98893d8e9cca | refs/heads/master | 2023-03-15T19:06:48.626734 | 2018-01-15T02:27:29 | 2018-01-15T02:27:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | #!/usr/bin/python3
def simple_delete(my_dict, key=""):
if my_dict is not None:
my_dict.pop(key, None)
return my_dict
| [
"[email protected]"
] | |
77921aade12cd93cfbbbffb1e59a7444b7ad84c1 | d0d088be9ba855fbc1798d55a0874faee192d8b5 | /posthog/api/person.py | e1d035c0bd7b0f564145380d16c7e281ae576d71 | [
"MIT"
] | permissive | pplonski/posthog | bf62d1bfb36a007adb180faecd418a8d1337f904 | 9ae6854254085bbe10cc4f9c98820d9efed52424 | refs/heads/master | 2021-01-08T17:36:18.303885 | 2020-02-20T19:38:07 | 2020-02-20T19:38:07 | 242,096,368 | 2 | 0 | MIT | 2020-02-21T09:00:14 | 2020-02-21T09:00:14 | null | UTF-8 | Python | false | false | 2,781 | py | from posthog.models import Event, Team, Person, PersonDistinctId
from rest_framework import serializers, viewsets, response, request
from rest_framework.decorators import action
from django.db.models import Q, Prefetch, QuerySet, Subquery, OuterRef
from .event import EventSerializer
from typing import Union
from .base ... | [
"[email protected]"
] | |
67036aa7f5e73b06e2cc28232521344169dd679e | 5006a6965c21e5b828300eedf907eb55ec5b8b27 | /bnpy/callbacks/CBCalcHeldoutMetricsTopicModel.py | 57f0d662cfa836d5634ada5bdb6b7f599e3c9e2c | [
"BSD-3-Clause"
] | permissive | birlrobotics/bnpy | 1804d0fed9c3db4c270f4cd6616b30323326f1ec | 8f297d8f3e4a56088d7755134c329f63a550be9e | refs/heads/master | 2021-07-09T14:36:31.203450 | 2018-02-09T07:16:41 | 2018-02-09T07:16:41 | 96,383,050 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | '''
CBCalcHeldoutMetricsTopicModel.py
Learning alg callback extension for fitting topic models on heldout data.
When applied, will perform heldout inference at every parameter-save checkpoint.
Usage
--------
Add the following keyword arg to any call to bnpy.run
--customFuncPath CBCalcHeldoutMetricsTopicModel.py
Ex... | [
"[email protected]"
] | |
6eda11f72415c2c9a36b7f5635e2560ef63bf01a | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1318+062/sdB_pg_1318+062_lc.py | ff49a4e872dad3cb97afe62d31f086a25e90d3e8 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[200.185083,5.983667], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_1318+062/sdB_pg_1318+062_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__... | [
"[email protected]"
] | |
02d4497caa6522455555c81d2715262be07fb67f | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_24610.py | ed0905d8047a088ab943cc1e32bc4dbc7d30b821 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | # Why int() argument must be a string or a number, not 'list'?
PForm
| [
"[email protected]"
] | |
053950d8dee6b200c63e069154c6d9c6ba7b21af | 02442f7d3bd75da1b5b1bf6b981cc227906a058c | /rocon/build/rocon_app_platform/rocon_app_manager/catkin_generated/pkg.develspace.context.pc.py | 3de9876b63c7300094cd88e5c7d2b10e59c73d88 | [] | no_license | facaisdu/RaspRobot | b4ff7cee05c70ef849ea4ee946b1995432a376b7 | e7dd2393cdabe60d08a202aa103f796ec5cd2158 | refs/heads/master | 2020-03-20T09:09:28.274814 | 2018-06-14T08:51:46 | 2018-06-14T08:51:46 | 137,329,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rocon_app_manager"
PROJECT_SPACE_DIR ... | [
"[email protected]"
] | |
5c9f9ce0e28a0947dd8edbcea57820ca55c76184 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_YCHF/KCB_YCHF_MM/SHOffer/YCHF_KCBYCHF_SHBP_153.py | 57c5b458804546c0a77bf642879eaa200c682c30 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from ARmainservice import *
from QueryStkPriceQty import *
from log import *
sys.path.append... | [
"[email protected]"
] | |
34d788e9ab997f619139b8af4b45a786cee0aac0 | ce27a376fa4f6a25008674d007c670a4a0b8bda7 | /defects_thresholding.py | 1c96261ba4ebe8222fcc90b839c16ced1c0d9cfa | [] | no_license | jrr1984/defects_analysis | 22139b7734478b6261cf9efeaae755a2c5c71c79 | 2e43b65f1b936516f4a4c8f7feb5d46468864957 | refs/heads/master | 2020-12-10T20:00:39.977833 | 2020-04-16T12:00:22 | 2020-04-16T12:00:22 | 233,694,615 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,701 | py | from skimage.filters import threshold_yen,threshold_isodata
from skimage import io,measure,img_as_float,morphology
from skimage.measure import regionprops_table
from skimage.color import label2rgb
import numpy as np
from scipy import ndimage
import matplotlib.pyplot as plt
from matplotlib_scalebar.scalebar import Scale... | [
"[email protected]"
] | |
bb53fe452117f99a8d8f7b1e33f47e1ab79db0c2 | 77b16dcd465b497c22cf3c096fa5c7d887d9b0c2 | /Cron_Philip/Assignments/flaskolympics/olympics3/server.py | 3c8cc483f0488a3e80700542e08036210ca2f614 | [
"MIT"
] | permissive | curest0x1021/Python-Django-Web | a7cf8a45e0b924ce23791c18f6a6fb3732c36322 | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | refs/heads/master | 2020-04-26T17:14:20.277967 | 2016-10-18T21:54:39 | 2016-10-18T21:54:39 | 173,706,702 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from flask import Flask, render_template, session
app = Flask(__name__)
app.secret_key = 'ThisIsSecret'
@app.route('/')
def myfirstfunction():
if not 'title' in session:
session['title'] = 'hello world'
return render_template('index.html', name="Mike")
if __name__ == '__main__':
app.run(debug = True... | [
"[email protected]"
] | |
dc23bbd95004a5f6fa4e5a6ef31d8b013040ba34 | 6874015cb6043d1803b61f8978627ddce64963b4 | /django/db/backends/postgresql/operations.py | 0edcf42febaa364b316750501cb20183caacea8e | [
"BSD-3-Clause",
"Python-2.0"
] | permissive | yephper/django | 25fbfb4147211d08ec87c41e08a695ac016454c6 | cdd1689fb354886362487107156978ae84e71453 | refs/heads/master | 2021-01-21T12:59:14.443153 | 2016-04-27T09:51:41 | 2016-04-27T09:51:41 | 56,134,291 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,101 | py | from __future__ import unicode_literals
from psycopg2.extras import Inet
from django.conf import settings
from django.db.backends.base.operations import BaseDatabaseOperations
class DatabaseOperations(BaseDatabaseOperations):
def unification_cast_sql(self, output_field):
internal_type = output... | [
"[email protected]"
] | |
2bcd1788de6e9a593abedae6ed61b48c43c67654 | 06d6c9346331e392f6d8067eb9ee52d38ae5fab8 | /carver/pe/setup.py | 299b8bff264703b5031d4a1ddd6b11e7c4e69e92 | [
"Apache-2.0"
] | permissive | maydewd/stoq-plugins-public | 5d5e824dda0c78acab4ff9aef72f567e6b85e555 | 8b2877b5091ae731437ef35a95d4debdbf0a19f3 | refs/heads/master | 2020-03-22T18:57:41.061748 | 2018-06-12T14:36:42 | 2018-06-12T14:36:42 | 140,494,475 | 0 | 0 | Apache-2.0 | 2018-07-10T22:39:08 | 2018-07-10T22:39:08 | null | UTF-8 | Python | false | false | 371 | py | from setuptools import setup, find_packages
setup(
name="pe",
version="0.10",
author="Jeff Ito, Marcus LaFerrera (@mlaferrera)",
url="https://github.com/PUNCH-Cyber/stoq-plugins-public",
license="Apache License 2.0",
description="Carve portable executable files from a data stream",
packages... | [
"[email protected]"
] | |
a2db15dc70256c5ac16e2d712ccd8393faf996ac | c820e028be4239bc20e76af41574e561ba8d8e02 | /gsw/version.py | 2f5fd65dfc4d9ab9ae7c7b3df560f34efabacd78 | [
"MIT"
] | permissive | lukecampbell/python-gsw | 7657c2e3a0dbadad00ff17557f4ca45f971f3964 | c555921b5f1fcbc1c1a3565172b946f782d15db4 | refs/heads/master | 2016-09-06T16:54:47.074484 | 2013-02-20T20:00:03 | 2013-02-20T20:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | #!/usr/bin/env python
version = '3.0.1a1'
| [
"[email protected]"
] | |
ab523c3751accac0cb2820f8f76621d3ca5474ab | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_172/ch88_2020_05_06_12_07_01_120079.py | 65c8bdbe203ac21abf9a6631e62483803e27d184 | [] | 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 | 344 | py | class Retangulo:
def _init_(self,coord1, coord2):
coord1 = Ponto(x1, y1)
coord2 = Ponto(x2, y2)
def calcula_perimetro(self):
base = x2 - x1
altura = y2 - y1
p = 2*base + 2*altura
def calcula_area(self):
base = x2 - x1
altura = y2 - y1... | [
"[email protected]"
] | |
998e74d73408d3c5bf3bf99ce5df17a7a52ee3f8 | 0a40a0d63c8fce17f4a686e69073a4b18657b160 | /test/functional/rpc_bip38.py | b70349a25ed83fb3fc00d631b1bc8dcd9eb3f3e4 | [
"MIT"
] | permissive | MotoAcidic/Cerebellum | 23f1b8bd4f2170c1ed930eafb3f2dfff07df1c24 | 6aec42007c5b59069048b27db5a8ea1a31ae4085 | refs/heads/main | 2023-05-13T06:31:23.481786 | 2021-06-09T15:28:28 | 2021-06-09T15:28:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2019 The CEREBELLUM developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test RPC commands for BIP38 encrypting and decrypting addresses."""
from test_framework.test_framework i... | [
"[email protected]"
] | |
fe57a510beaf39e45c60b51b452a5c31026ab28d | 3ecce3646d66033d214db3749be63e78d4f663e9 | /Assignment 4/load_utils.py | 9b4f3fc6a5fb3ab71f6dc4b5ce5cbba2fb817a22 | [
"Apache-2.0"
] | permissive | pradyumnakr/EIP-3.0 | f36aaed042d65beef163b08dbb0de05139e3fee7 | 67bc5168b169406d7567f3d1d3b9b35fc7dd61af | refs/heads/master | 2022-01-27T15:23:00.013031 | 2019-07-28T17:25:35 | 2019-07-28T17:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,699 | py | def load_tiny_imagenet(path, dtype=np.float32, subtract_mean=True):
# First load wnids
with open(os.path.join(path, 'wnids.txt'), 'r') as f:
wnids = [x.strip() for x in f]
# Map wnids to integer labels
wnid_to_label = {wnid: i for i, wnid in enumerate(wnids)}
# Use words.txt to get names for each class... | [
"[email protected]"
] | |
09c006664cf108d6ae9fc0f41fcb8e22fcea4877 | a9e60d0e5b3b5062a81da96be2d9c748a96ffca7 | /configurations/i21-config/scripts/functions/sample_vessel_vacuum_control.py | 055be6350f0c567e280cfe42194b79f557165ef8 | [] | no_license | openGDA/gda-diamond | 3736718596f47607335ada470d06148d7b57526e | bbb64dcfd581c30eddb210c647db5b5864b59166 | refs/heads/master | 2023-08-16T08:01:11.075927 | 2023-08-15T16:01:52 | 2023-08-15T16:01:52 | 121,757,699 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | '''
define function to control the sample vessel vacuum valves for sample changes
Created on 18 Jul 2023
@author: fy65
'''
import installation
from gda.device.scannable import ScannableMotionBase
from gda.epics import CAClient
# control PV = BL21I-EA-SMPL-01:SEQ:CTRL
# state PV = BL21I-EA-SMPL-01:SEQ:CTRL:STATE_RBV
... | [
"[email protected]"
] | |
2f9db9f890c9233e5af1669088468a7683d1af35 | 0fb3b73f8e6bb9e931afe4dcfd5cdf4ba888d664 | /awssam/fullfeblog/blog/migrations/0002_auto_20201208_1414.py | b61387acb7dcbe792fb0d7d8887e97d528f46789 | [] | no_license | mrpal39/ev_code | 6c56b1a4412503604260b3346a04ef53a2ba8bf2 | ffa0cf482fa8604b2121957b7b1d68ba63b89522 | refs/heads/master | 2023-03-24T03:43:56.778039 | 2021-03-08T17:48:39 | 2021-03-08T17:48:39 | 345,743,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | # Generated by Django 3.1.4 on 2020-12-08 14:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"[email protected]"
] | |
5d911f4022457d7e47942adf723047dc59cefa2f | 4a5f3b26fca176a80ca8eca796bc646bb225b017 | /attentive-reader-2/sgu.py | 8ddc21a3a0732b54672764fcd0003dcc2dec4e7a | [] | no_license | musyoku/NLP | 9a63dc882b07b017f7cfc72d863c4d9e5cbeff5e | 9b040bb960b65fb2a1c330adafa6c52e3284a0c1 | refs/heads/master | 2021-01-21T04:53:57.029200 | 2016-07-10T17:08:03 | 2016-07-10T17:08:03 | 55,848,677 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | import numpy
import chainer
from chainer import cuda
from chainer.functions.activation import sigmoid
from chainer.functions.activation import softplus
from chainer.functions.activation import tanh
from chainer.functions.math import clip
from chainer import link
from chainer.links.connection import linear
from chainer... | [
"[email protected]"
] | |
2908f0e3db2a300277114b39d46d25d3ea5e1012 | 2d3976964d8923a1e91e31af702bd68fbf37d474 | /runTask/server.py | 1bd36c0754e0d042ad090870e35b568521b7c88d | [] | no_license | barry800414/master_thesis | 2f6900fb2964891849dadef9283ed6e7f11cc696 | 01a0cac30ab63fcf818f1f43959634094b624af5 | refs/heads/master | 2020-05-29T08:53:32.810702 | 2016-06-04T02:03:52 | 2016-06-04T02:03:52 | 38,382,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | #!/usr/bin/env python3
from multiprocessing.managers import BaseManager
import queue
import sys
if __name__ == '__main__':
port = 3333
if len(sys.argv) == 2:
port = int(sys.argv[1])
q = queue.Queue()
# a QueueManager hold a queue q, which automatically handle race condition
class QueueMana... | [
"[email protected]"
] | |
f50f22f4257ef2bd4b135c4c4b543869c019f8b8 | 4eeb40dcc265caf4a2b84bc90a28d481930d6a8a | /cssproject/cssproject/wsgi.py | e87cec6d202682e65310c1cd76e7ac0245d43209 | [] | no_license | mprasu/Sample-Projects | eb7fc46e81b09d7c97c238047e3c93b6fff3fb8d | 7363baf630900ab2babb4af2afe77911d8a548b2 | refs/heads/master | 2020-04-16T06:43:16.345750 | 2019-01-12T07:07:34 | 2019-01-12T07:07:34 | 165,358,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for cssproject 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"[email protected]"
] | |
58cbe82bcc8bd6afeed52101fca9d77621105eef | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/1399.页面推荐.py | 5a140da6d4ab9fa5c70e7d7e978fdf740737d005 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 1399.页面推荐.py
| [
"[email protected]"
] | |
ddbeff68f2104fbd657620867d9acc172c5adecb | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0190_Reverse_Bits/__init__.py | 13d13496fce71652ff8239e68ab130a72e9cc66e | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 656 | py | ID = '190'
TITLE = 'Reverse Bits'
DIFFICULTY = 'Easy'
URL = 'https://oj.leetcode.com/problems/reverse-bits/'
BOOK = False
PROBLEM = r"""Reverse bits of a given 32 bits unsigned integer.
For example, given input 43261596 (represented in binary as
**00000010100101000001111010011100**), return 964176192 (represented in b... | [
"[email protected]"
] | |
0da90c73bc71313602b59d4b1cce999930cd4017 | 637669abf38aa06d786458bcb552d0d5dc188302 | /claripy/ast/__init__.py | 2da826a5b43d467502f3d34eadb856d283ede3f4 | [
"BSD-2-Clause"
] | permissive | angr/claripy | c5603b52f829a9b29630ed6665ab7ec294cb8157 | b35449fecd129dc46a0cabdd6499354e89b38a68 | refs/heads/master | 2023-09-05T18:48:19.736126 | 2023-09-05T17:17:45 | 2023-09-05T17:17:45 | 40,328,505 | 260 | 115 | BSD-2-Clause | 2023-09-11T22:09:06 | 2015-08-06T21:50:19 | Python | UTF-8 | Python | false | false | 1,376 | py | # pylint:disable=redefined-outer-name
from typing import TYPE_CHECKING
# Mypy is severely confused by this delayed import trickery, but works if we just pretend that the import
# happens here already
if TYPE_CHECKING:
from .bits import Bits
from .bv import BV
from .vs import VS
from .fp import FP
f... | [
"[email protected]"
] | |
5d8cfdb679b337f26330b1c109a88a1680180caf | d569476dd95496339c34b231621ff1f5dfd7fe49 | /PyTest/SteamSender/tests/test_send_cards.py | 996577a1586476bfeec33e7f74f1ba41cfd2b17e | [] | no_license | monteua/Tests | 10f21f9bae027ce1763c73e2ea7edaf436140eae | 553e5f644466683046ea180422727ccb37967b98 | refs/heads/master | 2021-01-23T10:28:49.654273 | 2018-05-09T09:11:30 | 2018-05-09T09:11:30 | 93,061,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from PageObject.SteamActions import SteamHome
from accounts import accounts
accounts_list = accounts()
def test_send_trade(driver):
for login in accounts_list:
if login == 'monte_ua13':
password = ""
else:
password = ""
SteamHome(driver).open_browser()
Ste... | [
"[email protected]"
] | |
4770757cc653f027b500d6f75168f8318a702d86 | 7f2612e5132e1583e5ba9758f299a8f301f0dc70 | /FB/5-longest-palindromic-substring.py | fb44ee0f8a6db9b0e87b7abf9cf4a48bd884a73a | [] | no_license | taeheechoi/coding-practice | 380e263a26ed4de9e542c51e3baa54315127ae4f | 9528b5e85b0ea2960c994ffea62b5be86481dc38 | refs/heads/main | 2022-07-09T11:22:18.619712 | 2022-06-28T14:55:51 | 2022-06-28T14:55:51 | 447,082,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | class Solution:
# Time O(N^2) Space O(1)
def longestPalindrome(self, s):
res = ''
for i in range(len(s)):
odd = self.is_pal(s, i, i)
even = self.is_pal(s, i, i+1)
res = max(odd, even, res, key=len)
return res
def is_pal(self, s, l, r):
wh... | [
"[email protected]"
] | |
d3b5e095fa1dab8e9c98895fa11a48312d856b56 | 874f46f4510b321ec3110ac8d5d5e572175c5544 | /Generator_Tests/TestFrec/scripts/generator.py | 94df7463f40e16990b3f6614572ff87accc2eb5a | [] | no_license | JordiEspinozaMendoza/Simulacion | bb271aee0908693ff0e36470dae98216096d9066 | fac1cdf5010a34a853a8b13d93209bcbde616e64 | refs/heads/main | 2023-05-31T14:06:21.329271 | 2021-06-14T02:52:06 | 2021-06-14T02:52:06 | 367,148,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | import sys
import os
import pandas as pd
sys.setrecursionlimit(5000)
# X = Semilla
# a = Multiplicador
# c = Constante aditiva
# m = Modulo
def Operacion(X, a, c, m):
Resi = ((a*X)+c) % m
return Resi
def createDataFrame(data):
df = pd.DataFrame(data, columns=["n","Xn","Xn+1","Rn"])
cols = list(d... | [
"[email protected]"
] | |
ce65095ee46c58e871cd6b80c4cfe769ace6e7a1 | f5f7f8d12956e4bff6e1c5f6fab10b006690f195 | /luffy/settings.py | fe7c34ae1af2839496be8ef590c0c49e0a16121b | [] | no_license | chenrun666/luffy | 1fbee911d1d7f86e5c7b1ed7f47e84f6f1ee9846 | 59f6229e16978ab9c40ef948807c717c2cddaea9 | refs/heads/master | 2020-04-07T16:09:20.306754 | 2018-11-21T08:45:29 | 2018-11-21T08:45:29 | 158,517,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | """
Django settings for luffy project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"[email protected]"
] | |
23fbea60c2bea452a414dcf5f255cd4eabdab38a | 437e905d8c214dc25c559b1dc03eaf9f0c85326f | /is28/vyacheslavleva28/lab6/function.py | 1522faa137dc1fcb8f84d4cc4b96a551fd47870d | [] | no_license | AnatolyDomrachev/karantin | 542ca22c275e39ef3491b1c0d9838e922423b5a9 | 0d9f60207e80305eb713fd43774e911fdbb9fbad | refs/heads/master | 2021-03-29T03:42:43.954727 | 2020-05-27T13:24:36 | 2020-05-27T13:24:36 | 247,916,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | def vvod():
a = []
for i in range(10):
x = float(input())
a.append(x)
return a
def rachet(a):
res = True
for i in range(0,len(a)-1):
if a[i]> a[i+1]:
res = False
return res
def vyvod(data):
print(result)
data = vvod()
print(data)
result = rachet(da... | [
"[email protected]"
] | |
06aae58ab947c90ed7bc942a02ffa420afd0287b | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_6/models/network_interface_trace_get_response.py | 711d740178ee303c6379e1c1ec389c67bd15cca7 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,335 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.6, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"[email protected]"
] | |
b9b22ed2ac4565940e04c8fac0f36e72bf88ef75 | eb61d62ca1f6f0123e3771105f5dfbbd6115138d | /.history/23-08-21_20210912011408.py | d242edf35564cc66ff35c5dd66a540fa6f9fc0b8 | [] | no_license | Alopezm5/CORRECTO-2 | e0f14bcc3a88c0e222d10e3261e68532008bc42e | 223613f1fb04dce3fac9f82f243cb2f22fe100f3 | refs/heads/main | 2023-07-29T06:52:48.147424 | 2021-09-12T20:33:27 | 2021-09-12T20:33:27 | 388,995,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,944 | py | class Empresa:
def __init__(self,nom="El mas barato",ruc="0999999999",tel="042971234",dir="Juan Montalvo"):
self.nombre=nom
self.ruc=ruc
self.telefono=tel
self.direccion=dir
def mostrarEmpresa(self):
print("Empresa: {:17}, RUC: {}".format(self.nombre,self.ruc))
clas... | [
"[email protected]"
] | |
e7a3ca9fa15a77897aa6fde5e7b69ee9bb2f853d | ac350894488b34318c11a65d35a0f8fdf69b7d50 | /products/migrations/0001_initial.py | 545343aa9abd1f1393c114e71c6c8e1aed73463f | [] | no_license | phrac/onemgin | 508f052304ddbc03f45e994ebe33769ae30d9336 | 7a029dbca1bd2725ceabc0741c7cfb47290aadb7 | refs/heads/master | 2021-01-16T19:31:10.929508 | 2015-09-08T23:53:43 | 2015-09-08T23:53:43 | 12,391,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Barcode',
fields=[
('id', models.AutoField(verb... | [
"[email protected]"
] | |
ddc87bfca79fabe3d914696f58497118d2d0d193 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_adobe_cq_wcm_mobile_qrcode_servlet_qr_code_image_generator_info.py | d51b3347b77c7b18680b18281fcd2bb012c5ead3 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,359 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-... | [
"[email protected]"
] | |
ee4b23bbf32042a37a0d791f5b2ca1db58e8570e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2741/60666/264322.py | a8362f4be09e9d763b52af7aceca5c10738a7630 | [] | 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 | 257 | py | nums=eval(input())
if len(nums)<2:
print(nums)
else:
count=1
temp=1
for i in range(len(nums)-1):
if nums[i]<nums[i+1]:
count+=1
else:
temp=max(count,temp)
count=1
print(max(count,temp)) | [
"[email protected]"
] | |
17e6f75ed18e0677f37465f1e06fd694ac1f207c | 7790e3a3f2de068fef343585ec856983591997a2 | /employee/templatetags/custom_math.py | f84010231a266d25ecf80f4bd85b0e1e5c8705ff | [] | no_license | mehdi1361/tadbir | ce702a9a02672826f0bf06e8d5cf0644efe31949 | c0a67710099f713cf96930e25df708625de89a6f | refs/heads/master | 2021-06-04T07:35:37.624372 | 2018-07-23T05:25:04 | 2018-07-23T05:25:04 | 148,870,028 | 0 | 0 | null | 2019-10-22T21:40:28 | 2018-09-15T04:40:26 | HTML | UTF-8 | Python | false | false | 484 | py | from django import template
from django.db.models import Sum
from bank.models import File
register = template.Library()
@register.simple_tag
def add(a, b):
return a + b
@register.simple_tag
def count_files(user):
files = File.objects.filter(employees__employee=user)
return files.count()
@register.simp... | [
"[email protected]"
] | |
616cf3654526e0f3ecb4547651c5536bb2e4bc82 | 9c5116ab446a0fba4dfaaa1685cbd3a1042dc054 | /kubernetes/test/test_v1_image_stream.py | 3129b06ad6d6ea315c9b6d88a781b4978cc33449 | [
"Apache-2.0"
] | permissive | caruccio/client-python | fc11a354ce15507c94308e35b6790b6776e01e6e | cb65186027ce68beedcd7752c488b8e3b5c0968e | refs/heads/master | 2021-01-25T08:18:45.601502 | 2017-06-08T13:14:06 | 2017-06-08T13:14:06 | 93,747,698 | 0 | 0 | null | 2017-06-08T12:37:32 | 2017-06-08T12:37:32 | null | UTF-8 | Python | false | false | 4,144 | py | # coding: utf-8
"""
OpenShift API (with Kubernetes)
OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is... | [
"[email protected]"
] | |
33c679ef31d8a55ff6125c693fa10ac8d9f24460 | 795df757ef84073c3adaf552d5f4b79fcb111bad | /hypercube/hypercube_integrals.py | d41fbf8b960343823c0f1eb202c112bb2e36bffd | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,020 | py | #! /usr/bin/env python3
#
def hypercube01_monomial_integral ( m, e ):
#*****************************************************************************80
#
## HYPERCUBE01_MONOMIAL_INTEGRAL: integrals over the unit hypercube in M dimensions.
#
# Discussion:
#
# The integration region is
#
# 0 <= X(1:M) <= 1,
#
#... | [
"[email protected]"
] | |
e057ef624b94fe0256123ec91bdf0734eb2d87bd | a79bc871a72d2c39bcbb7cb4242a7d469770bed0 | /masking_api_60/api/file_format_api.py | 750b5fa51da54a2f71b8f4f29ba1d59f7edf3fc1 | [] | no_license | pioro/masking_api_60 | 5e457249ab8a87a4cd189f68821167fa27c084f2 | 68473bdf0c05cbe105bc7d2e2a24e75a9cbeca08 | refs/heads/master | 2023-01-03T08:57:49.943969 | 2020-10-30T11:42:15 | 2020-10-30T11:42:15 | 279,624,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,223 | py | # coding: utf-8
"""
Masking API
Schema for the Masking Engine API # noqa: E501
OpenAPI spec version: 5.1.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import... | [
"[email protected]"
] | |
14b450a72c93ad9b78cf7685fe19e4122eb15c24 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_mp21.py | 562fa5609e8ddc81fe2febf073542f27d358c618 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._mp2_info1 import _mp2_info1
class _mp21(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Method = None
self.Big_send = None
self.MP2_INFO = _mp2_info1()
... | [
"[email protected]"
] | |
4d23735583d49ed6fba1925bf636572e5d146be5 | 2f2e9cd97d65751757ae0a92e8bb882f3cbc5b5b | /121.买卖股票的最佳时机.py | 7cd0e5ce63fc4da08187b59ea4f973e49037b644 | [] | no_license | mqinbin/python_leetcode | 77f0a75eb29f8d2f9a789958e0120a7df4d0d0d3 | 73e0c81867f38fdf4051d8f58d0d3dc245be081e | refs/heads/main | 2023-03-10T18:27:36.421262 | 2021-02-25T07:24:10 | 2021-02-25T07:24:10 | 314,410,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | #
# @lc app=leetcode.cn id=121 lang=python3
#
# [121] 买卖股票的最佳时机
#
# @lc code=start
class Solution:
def maxProfit(self, prices: List[int]) -> int:
if not prices:
return 0
min_price = prices[0]
max_profit = 0
for i in range(1, len(prices)):
max_profit = max(pri... | [
"[email protected]"
] | |
147b3bc0148ddc69e31304519e65c37ad3c790e6 | 80de5ac86ce85b5aa93788d5d2325d88b87b47f7 | /cf/1334/c.py | 0d9603f1d8a8e97a68d5e3f095f080f1f5405a4e | [] | no_license | ethicalrushi/cp | 9a46744d647053fd3d2eaffc52888ec3c190f348 | c881d912b4f77acfde6ac2ded0dc9e0e4ecce1c1 | refs/heads/master | 2022-04-24T07:54:05.350193 | 2020-04-27T20:27:31 | 2020-04-27T20:27:31 | 257,911,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | t = int(input())
for _ in range(t):
n = int(input())
a =[]
for i in range(n):
u, v = [int(x) for x in input().strip().split()]
a.append([u,v])
if n==1:
res=a[0]
else:
mn = 10**10
si = None
for i in range(1,n):
if a[i][0]>a[i-1][1]:
... | [
"[email protected]"
] | |
ccf640a6f3089b61899c512ea864d117a27d00e3 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /a7WiKcyrTtggTym3f_11.py | 38c97ae03767b14cd4f73e59493d45390792e3c0 | [] | 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 | 516 | py | """
Create a function that takes two numbers as arguments and return the LCM of
the two numbers.
### Examples
lcm(3, 5) ➞ 15
lcm(14, 28) ➞ 28
lcm(4, 6) ➞ 12
### Notes
* Don't forget to return the result.
* You may want to use the GCD function to make this a little easier.
* LCM stands... | [
"[email protected]"
] | |
a9151a391b64c038d80fc25c24e8ae9bcc938c36 | 927fc31a0144c308a5c8d6dbe46ba8f2728276c9 | /tasks/final_tasks/file_handling/2.count_word_in_file.py | 7ad9f89f0c38383b2a89b17194e5f946ad3c11d8 | [] | no_license | ChandraSiva11/sony-presamplecode | b3ee1ba599ec90e357a4b3a656f7a00ced1e8ad3 | 393826039e5db8a448fa4e7736b2199c30f5ed24 | refs/heads/master | 2023-01-14T00:09:19.185822 | 2020-11-23T02:07:00 | 2020-11-23T02:07:00 | 299,527,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # Python Program to Count the Number of Words in a Text File
def main():
num_words = 0
with open('text_doc.txt', 'r') as f:
for line in f:
words = line.split()
num_words += len(words)
print('Number of words', num_words)
if __name__ == '__main__':
main() | [
"[email protected]"
] | |
ef74b6c780caea8be24fb7a36c1bd5e228e66148 | f36a9701975eec736b5e43ab09ec318eee80c8cc | /pyspeckit/spectrum/widgets.py | ae949705761f3d5018daacf9ece04cedd453487e | [
"MIT"
] | permissive | soylentdeen/pyspeckit | e995f38531256d85313038a0ddeb181a4c6480b8 | 11c449c6951468f2c07dfda3b1177b138f810f16 | refs/heads/master | 2021-01-18T11:32:51.659032 | 2013-06-26T00:39:22 | 2013-06-26T00:39:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,757 | py | from matplotlib.widgets import Widget,Button,Slider
from matplotlib import pyplot
import matplotlib
class dictlist(list):
def __init__(self, *args):
list.__init__(self, *args)
self._dict = {}
self._dict_index = {}
for ii,value in enumerate(self):
if len(value) =... | [
"[email protected]"
] | |
407c2a6677c326a7a56789bea899851a9a6a5764 | dda862418770f3885256d96e9bdb13d0759c5f43 | /codeforces/april-fools-day/is_it_rated.py | 2f78bf4c3d6d9df72b4d6880be8c4503b3f93453 | [
"MIT"
] | permissive | bellatrixdatacommunity/data-structure-and-algorithms | d56ec485ebe7a5117d4922caeb0cd44c5dddc96f | d24c4001a797c12347973263a0f4f98939e86900 | refs/heads/master | 2022-12-03T00:51:07.944915 | 2020-08-13T20:30:51 | 2020-08-13T20:30:51 | 270,268,375 | 4 | 0 | MIT | 2020-08-13T20:30:53 | 2020-06-07T10:19:36 | Python | UTF-8 | Python | false | false | 114 | py | """
[A. Is it rated?](https://codeforces.com/contest/1331/problem/A)
"""
print("No") # The contest was not rated
| [
"[email protected]"
] | |
dc518d3adbaa5570a85345dacbb2b97213280b09 | eb35535691c4153ba2a52774f0e40468dfc6383d | /hash_table/uncommon_words.py | 849d39c6b50e9e3e7e62e2067fc6a68f1b0c2178 | [] | no_license | BJV-git/leetcode | 1772cca2e75695b3407bed21af888a006de2e4f3 | dac001f7065c3c5b210024d1d975b01fb6d78805 | refs/heads/master | 2020-04-30T19:04:12.837450 | 2019-03-21T21:56:24 | 2019-03-21T21:56:24 | 177,027,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py |
def uncommon_words(A,B):
A=A.split(' ')
B=B.split(' ')
res=[]
d={}
for i in A:
d[i] = d.get(i,0)+1
for i in B:
d[i] = d.get(i,0)+1
for i in d:
if d[i]==1:
res.append(i)
return res | [
"[email protected]"
] | |
244746f59dab7356af77d6b088d09be0109e7eea | 5e76a420178dcb9008d6e4c12543ad0e3a50c289 | /python/104.py | 188ebec7d7866ddc2ac4ab6f887b025327467442 | [] | no_license | LichAmnesia/LeetCode | da6b3e883d542fbb3cae698a61750bd2c99658fe | e890bd480de93418ce10867085b52137be2caa7a | refs/heads/master | 2020-12-25T14:22:58.125158 | 2017-07-18T06:44:53 | 2017-07-18T06:44:53 | 67,002,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # -*- coding: utf-8 -*-
# @Author: Lich_Amnesia
# @Email: [email protected]
# @Date: 2016-09-18 17:38:27
# @Last Modified time: 2016-09-18 17:41:20
# @FileName: 104.py
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# ... | [
"[email protected]"
] | |
1d898f4d7db5808af12b3e9bd413033060f8403f | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/test/test_v1_local_object_reference.py | db02de623a1ffb63d799a47e9d655bb2206d76b9 | [
"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 | 994 | 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
"""
from __future__ import absolute_import
import unittest
import kube... | [
"[email protected]"
] | |
d301667e9da5f7d349fdf435dc6c5bdd2dd9d67e | 46bd3e3ba590785cbffed5f044e69f1f9bafbce5 | /env/lib/python3.8/site-packages/pip/_vendor/pep517/envbuild.py | 7e6160fc539bc7bd382d6a660739256889eb380f | [] | no_license | adamkluk/casper-getstarted | a6a6263f1547354de0e49ba2f1d57049a5fdec2b | 01e846621b33f54ed3ec9b369e9de3872a97780d | refs/heads/master | 2023-08-13T11:04:05.778228 | 2021-09-19T22:56:59 | 2021-09-19T22:56:59 | 408,036,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2dc493d0c01299c40d2ce16a0cfc43a12d648e4825c7c17a784868049f835a48
size 6112
| [
"[email protected]"
] | |
7be171b3c6ccd20d4e7c354d4e4620d1a88c649d | fa1faa5c480ba249fbec18c0fb79b696d6b4bdf9 | /4 - Arrays/RemoveKDigits.py | 2c3dd044de47a9f8f777661c108947dbbc7b6b7f | [] | no_license | AbhiniveshP/CodeBreakersCode | 10dad44c82be352d7e984ba6b7296a7324f01713 | 7dabfe9392d74ec65a5811271b5b0845c3667848 | refs/heads/master | 2022-11-14T11:58:24.364934 | 2020-07-11T22:34:04 | 2020-07-11T22:34:04 | 268,859,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | class Solution:
# Time: O(N) --> a max of double visit
# Space: O(N)
def removeKdigits(self, num: str, k: int) -> str:
stack = []
# before pushing a digit to stack, take care that it is monotonically increasing stack, also k > 0 and stack not empty
for i... | [
"[email protected]"
] | |
20900db7b1b8044e1bf0b27b91907868005a426c | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayInsSceneSellerActivitySignModel.py | 4ef2bcff18867f0f8ba427a6a7c71a574c386b9c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,623 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayInsSceneSellerActivitySignModel(object):
def __init__(self):
self._biz_data = None
self._channel_account_id = None
self._channel_account_type = None
self._sp... | [
"[email protected]"
] | |
d6e1af3c1f70472c05f440c578e0bb66519b95d3 | 205d581673e3960c99e6b8fe1475efb661421cb3 | /bikeshed/update/main.py | 1be2b76b3f73f81060b4b4fa57d6141ebd24f5e6 | [
"CC0-1.0"
] | permissive | TBBle/bikeshed | 08f9137f7a561d154720297b76ced061cdd6a04a | 5834a15f311a639c0b59ff2edbf3a060391d15ff | refs/heads/master | 2021-01-12T18:33:43.213471 | 2017-09-29T20:56:24 | 2017-09-29T20:56:24 | 81,327,888 | 0 | 0 | null | 2017-02-08T12:30:22 | 2017-02-08T12:30:21 | null | UTF-8 | Python | false | false | 3,886 | py | # -*- coding: utf-8 -*-
from __future__ import division, unicode_literals
import os
from . import updateCrossRefs
from . import updateBiblio
from . import updateCanIUse
from . import updateLinkDefaults
from . import updateTestSuites
from . import updateLanguages
from . import manifest
from .. import config
from ..mes... | [
"[email protected]"
] | |
3183747cd1835046d97a500fd56fc5a714d8f69c | f90a30cfafc5d786a3dc269f3ca48dce3fc59028 | /Payload_Types/apfell/mythic/agent_functions/iterm.py | 94b35b48c3156d56770b68fba7a567e64efb0415 | [
"BSD-3-Clause",
"MIT"
] | permissive | NotoriousRebel/Mythic | 93026df4a829b7b88de814e805fdce0ab19f3ab9 | 4576654af4025b124edb88f9cf9d0821f0b73070 | refs/heads/master | 2022-12-03T01:19:20.868900 | 2020-08-18T03:48:55 | 2020-08-18T03:48:55 | 288,780,757 | 1 | 0 | NOASSERTION | 2020-08-19T16:20:19 | 2020-08-19T16:20:18 | null | UTF-8 | Python | false | false | 920 | py | from CommandBase import *
import json
class ITermArguments(TaskArguments):
def __init__(self, command_line):
super().__init__(command_line)
self.args = {}
async def parse_arguments(self):
pass
class ITermCommand(CommandBase):
cmd = "iTerm"
needs_admin = False
help_cmd = ... | [
"[email protected]"
] | |
62f15e21cc7da0172f76ec0118796903115796ca | 4944541b0cd0fa48a01581ffce5e7ce16f5cf8d7 | /src/Backend/MbkExam/Notification/serializers.py | a64b1c49829f6af25ac8f32051e5c5e42e2348cb | [] | no_license | aballah-chamakh/the_exam | 49a5b5c9d28c61b2283f2d42d2b2fb771dd48bf4 | dbbbdc7a955ca61572f26430a7788407eaf0c632 | refs/heads/main | 2023-03-28T13:19:18.148630 | 2021-04-03T22:12:51 | 2021-04-03T22:12:51 | 354,404,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | from rest_framework import serializers
from .models import AdminNotification,StudentNotification
class AdminNotificationSerializer(serializers.ModelSerializer):
student_username = serializers.CharField(source='student.user.username')
student_img = serializers.CharField(source="student.image.url")
student_s... | [
"[email protected]"
] | |
4c800d767661ee69f80d462a929fd68be4f8b58f | a39dbda2d9f93a126ffb189ec51a63eb82321d64 | /mongoengine/queryset/__init__.py | 026a7acdd533719065dcc1c7c1955565b13d6f6f | [
"MIT"
] | permissive | closeio/mongoengine | 6e22ec67d991ea34c6fc96e9b29a9cbfa945132b | b083932b755a9a64f930a4a98b0129f40f861abe | refs/heads/master | 2023-04-30T04:04:52.763382 | 2023-04-20T07:13:41 | 2023-04-20T07:13:41 | 5,533,627 | 21 | 5 | MIT | 2023-04-20T07:13:42 | 2012-08-23T23:02:20 | Python | UTF-8 | Python | false | false | 525 | py | from mongoengine.errors import (DoesNotExist, MultipleObjectsReturned,
InvalidQueryError, OperationError,
NotUniqueError)
from mongoengine.queryset.field_list import *
from mongoengine.queryset.manager import *
from mongoengine.queryset.queryset import *
f... | [
"[email protected]"
] | |
da0f752f37d66f5033607317460320c51b7d99e2 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_write_f/vpc_create.py | 72acec139ecc5774ba67c1d8199de44fc116c546 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"[email protected]"
] | |
eb4921718ea76bd76fd0d09bef6d3040445b07fe | bfd6ac084fcc08040b94d310e6a91d5d804141de | /PulseSequences2/multi2d_test2.py | 1609e844e7a2e84b959142d2d35d97635fe46e69 | [] | no_license | jqwang17/HaeffnerLabLattice | 3b1cba747b8b62cada4467a4ea041119a7a68bfa | 03d5bedf64cf63efac457f90b189daada47ff535 | refs/heads/master | 2020-12-07T20:23:32.251900 | 2019-11-11T19:26:41 | 2019-11-11T19:26:41 | 232,792,450 | 1 | 0 | null | 2020-01-09T11:23:28 | 2020-01-09T11:23:27 | null | UTF-8 | Python | false | false | 671 | py | import numpy as np
from common.devel.bum.sequences.pulse_sequence import pulse_sequence
from labrad.units import WithUnit as U
from treedict import TreeDict
from common.client_config import client_info as cl
from multi_test import multi_test
class multi2d_test2(pulse_sequence):
is_2dimensional = True
is_compo... | [
"[email protected]"
] | |
5fda096a90541b4f8f01c8692ee9f34c6977c70a | b40a140a911279f3c61737367ab8f3b7c15fe98b | /avakas/get_parameters_file.py | 6f6976a02b4d1dc3baa10e6796e10d3f55ed8aa2 | [] | no_license | AurelienNioche/HotellingBathtub | 80fef9b4106454ec339a6c106c52738f1e95e77b | 5b370a20b1d2417022fd2a6de8a7a4baeeda321e | refs/heads/master | 2021-05-06T13:02:04.130850 | 2018-02-16T22:47:01 | 2018-02-16T22:47:01 | 113,213,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | import os
def get_parameters_file(i):
parameters_files = sorted(
[os.path.join("tasks", f)
for f in os.listdir("tasks") if os.path.isfile(os.path.join("tasks", f))])
return parameters_files[i]
| [
"[email protected]"
] | |
7c238c319c6f6d8ba62cadcb28faf56b3f32ab3b | b3c47795e8b6d95ae5521dcbbb920ab71851a92f | /AtCoder/AtCoder Beginner Contest 247/B.py | 973864707113b363529868eab237a721c0f7de7b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Wizmann/ACM-ICPC | 6afecd0fd09918c53a2a84c4d22c244de0065710 | 7c30454c49485a794dcc4d1c09daf2f755f9ecc1 | refs/heads/master | 2023-07-15T02:46:21.372860 | 2023-07-09T15:30:27 | 2023-07-09T15:30:27 | 3,009,276 | 51 | 23 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from collections import defaultdict
n = int(raw_input())
d1 = defaultdict(int)
d2 = defaultdict(int)
names = []
for i in xrange(n):
name1, name2 = raw_input().split()
d1[name1] += 1
d2[name2] += 1
names.append((name1, name2))
flag = True
for (name1, name2) in names:
if name1 == name2:
if ... | [
"[email protected]"
] | |
8987a79b8238e079d6527786951d545fffd1ab1c | f1614f3531701a29a33d90c31ab9dd6211c60c6b | /test/menu_sun_integration/infrastructure/aws/sqs/mocks/customer_mock.py | a7b78f7010ca6a18c5de255b002fa7e7ea1d8312 | [] | no_license | pfpacheco/menu-sun-api | 8a1e11543b65db91d606b2f3098847e3cc5f2092 | 9bf2885f219b8f75d39e26fd61bebcaddcd2528b | refs/heads/master | 2022-12-29T13:59:11.644409 | 2020-10-16T03:41:54 | 2020-10-16T03:41:54 | 304,511,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | def mock_queue_make_api_call(self, operation_name, kwarg):
if operation_name == 'SendMessage':
return {'MD5OfMessageBody': 'a836c42e687e8a08e66a794a5dacd8c1',
'MessageId': '85e8a505-2ba4-4fa3-a93c-cc30bf5e65e7',
'ResponseMetadata': {'RequestId': '7313c686-bca3-5d79-9295-90a51... | [
"[email protected]"
] | |
04481c8e9c3a8ab5864fbd9d4073e09189de4c58 | 0953f9aa0606c2dfb17cb61b84a4de99b8af6d2c | /python/ray/serve/http_proxy.py | e129f5d60cab56228bd2a379ba2a9be0ab162c29 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | oscarknagg/ray | da3dc03e24945ff4d5718fd35fc1b3408d8907eb | 20d47873c9e8f5bbb80fe36e5d16256c337c4db3 | refs/heads/master | 2023-09-01T01:45:26.364731 | 2021-10-21T07:46:52 | 2021-10-21T07:46:52 | 382,402,491 | 2 | 1 | Apache-2.0 | 2021-09-15T12:34:41 | 2021-07-02T16:25:05 | Python | UTF-8 | Python | false | false | 13,432 | py | import asyncio
import socket
import time
import pickle
from typing import Callable, List, Dict, Optional, Tuple
import uvicorn
import starlette.responses
import starlette.routing
import ray
from ray import serve
from ray.exceptions import RayActorError, RayTaskError
from ray.serve.common import EndpointInfo, Endpoint... | [
"[email protected]"
] | |
84bd69b3aecc431f55e1f816dbfe988f0e2443fc | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/mlxnas004/question1.py | 615d9525446c91fd8b2b6c646c028b7d0a290c6e | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | #nasha meoli
#mlxnas004
#leap year
x = eval(input("Enter a year:\n"))
condition_1 = x%400
condition_2 = x%4
condition_3 = x%100
if (condition_1 == 0) or ((condition_2 == 0) and (condition_3 >= 1)):
print(x,"is a leap year.")
else:
print(x,"is not a leap year.") | [
"[email protected]"
] | |
b796b20a4d9e957f27a98c703b071bbc111e9bde | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/ancpvlanrange_58418cab117460d5be96e7c24e4e1bfb.py | 00c591b0ead7d391ee148ba1bd8b5a0ea079d425 | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 12,400 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 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,... | [
"[email protected]"
] | |
e4275df4e69cf6565d2afddbef18539b2d4d99f3 | 4f875744ccae8fa9225318ce16fc483b7bf2735e | /google/findDuplicate.py | 44e01dd1b67af92eaf0af5a61e728e840331fdcb | [] | no_license | nguyenngochuy91/companyQuestions | 62c0821174bb3cb33c7af2c5a1e83a60e4a29977 | c937fe19be665ba7ac345e1729ff531f370f30e8 | refs/heads/master | 2020-07-27T05:58:36.794033 | 2020-04-10T20:57:15 | 2020-04-10T20:57:15 | 208,893,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 2 20:34:41 2020
@author: huyn
"""
#609. Find Duplicate File in System
from typing import List
class Solution:
def findDuplicate(self, paths: List[str]) -> List[List[str]]:
d = {}
for path in paths:
item = path.split()
root = i... | [
"[email protected]"
] | |
c07ba76a6ce1700bed5939dd56790525d85ad59a | 3e64d1fb4998fae24a4178d0925e0f30e30b00e7 | /venv/lib/python3.8/encodings/utf_7.py | fabe5e915e16c26cdb4c57b6fa50ed8570d0dee2 | [] | no_license | viraatdas/Model-Rest-API | a39e150c484c7136141f462932d741de5b45e044 | a08500a28e4ad32094de6f88223088b9a9081d69 | refs/heads/master | 2022-11-12T15:33:06.624474 | 2020-07-05T05:04:50 | 2020-07-05T05:04:50 | 257,821,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/encodings/utf_7.py | [
"[email protected]"
] | |
0fdb7a7c501f03fb7f776e4965cd4da3243f4ed9 | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/squareroot/7ab7bec6-576b-4910-98d1-ec30c84244ab__calculate_square.py | 0bf1d0137076df117eaec3d77052d26dce255f54 | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | # calculate_square.py
from Tkinter import *
import ttk
def calculate_square(*args):
value_in = float(number_in.get())
number_out.set(value_in * value_in)
root = Tk()
root.title('Calculate square')
mainframe = ttk.Frame(root)
mainframe.grid(column=1, row=1, sticky=(N, E, S, W))
mainframe.columnconfigure(0, weight=... | [
"[email protected]"
] | |
201ec0e778d39c619ca7d2db0f6caee17ddd1f95 | d7363da78e6f1e8ae2c6abca3f845853756165d4 | /src/adafruit_blinka/board/dragonboard_410c.py | a627309d6c32ff8ab6a13dc5b5cc9a989804b538 | [
"MIT"
] | permissive | adafruit/Adafruit_Blinka | 7a9ed88f39ff12082d1b46647fa8869b541fba49 | 009b352a3234339000c32d2e61e830455cf389fa | refs/heads/main | 2023-08-09T06:25:02.178935 | 2023-07-28T16:45:40 | 2023-07-28T16:45:40 | 120,540,744 | 398 | 331 | MIT | 2023-09-14T20:32:23 | 2018-02-07T00:25:03 | Python | UTF-8 | Python | false | false | 972 | py | # SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""Pin definitions for the Dragonboard 410c."""
from adafruit_blinka.microcontroller.snapdragon.apq8016 import pin
GPIO_A = pin.GPIO_36
GPIO_B = pin.GPIO_12
GPIO_C = pin.GPIO_13
GPIO_D = pin.GPIO_69
GPIO_E... | [
"[email protected]"
] | |
3dcca22538909e4ca7c9e1f85a4a19c897d9ccc0 | bf4178e73f0f83781be6784d7587cb34a38d6edd | /platform/radio/efr32_multiphy_configurator/pro2_chip_configurator/src/si4010_cfg_calc/si4010cfgcalcsecurity.py | 3da55602e5855910430be093d1a8e3ae2b503b84 | [] | no_license | kolbertv/ZigbeeSiliconV3 | 80d70515e93be1413c24cdcb3485f50c65a1564b | ab0bd8d4bb6c1048adef81d0e66d96006c2fabd9 | refs/heads/master | 2023-01-02T07:18:01.393003 | 2020-10-25T15:33:08 | 2020-10-25T15:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | '''
Created on August 25, 2013
@author: shyang
'''
__all__ = ["Si4010CfgCalcSecurity"]
class Si4010CfgCalcSecurity(object):
'''
classdocs
'''
OEM_Key16_Table = [
[0x63, 0xB4, 0x92, 0xCD, 0x42, 0x20, 0x03, 0xBC, 0x73, 0x29, 0x09, 0xBB, 0xFF, 0x6A, 0xDC, 0x6D],
[0x63, 0x4B, 0x92, 0xCD, ... | [
"[email protected]"
] | |
8f9c7c45bf173c6b1593881386614ed222c6c593 | 2bf43e862b432d44ba545beea4e67e3e086c1a1c | /tests/nemo_text_processing/zh/test_char.py | 1ca553eca3d027fe254df28f4d9b682ca08f9b57 | [
"Apache-2.0"
] | permissive | ericharper/NeMo | 719e933f6ffce1b27358bc21efe87cdf144db875 | f1825bc4b724b78c2d6ca392b616e8dc9a8cde04 | refs/heads/master | 2022-10-06T01:45:21.887856 | 2022-09-14T19:09:42 | 2022-09-14T19:09:42 | 259,380,135 | 1 | 0 | Apache-2.0 | 2022-09-20T18:01:57 | 2020-04-27T15:54:20 | Python | UTF-8 | Python | false | false | 1,257 | py | # Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. 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
#
# Unl... | [
"[email protected]"
] | |
2bb192e13d0b897544b36848f736cf1666918f37 | e8160ba62759fc390daf60d88146e95c0c0de1b4 | /TestDjangoORM/settings.py | 97366c9073674155c60edddae7971a54bbb699fe | [] | no_license | imranq2/TestDjangoORM | 2a3a72aff36f03b6e2bb1a0f394a3499d2607bba | 8d51d772f42635c0dbbd1d462057defaa9cdfbff | refs/heads/master | 2023-01-05T23:07:07.662717 | 2020-11-03T04:36:44 | 2020-11-03T04:36:44 | 309,496,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,510 | py | """
Django settings for TestDjangoORM project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from p... | [
"[email protected]"
] | |
afdfc45217af92feca35e8df5f3b06c51cf1a18f | 32cb84dd41e4be24c065bb205f226f9b121a6db2 | /feedback/urls.py | 523511566940bbd365ca5900079a62fd10f87512 | [] | no_license | InformatykaNaStart/staszic-sio2 | b38fda84bd8908472edb2097774838ceed08fcfa | 60a127e687ef8216d2ba53f9f03cfaa201c59e26 | refs/heads/master | 2022-06-29T11:09:28.765166 | 2022-06-13T21:56:19 | 2022-06-13T21:56:19 | 115,637,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from django.conf.urls import patterns, include, url
import views
noncontest_patterns = [url(r'^staszic/judging/(?P<jid>\d+)/$', views.judging)]
| [
"[email protected]"
] | |
4c84bb0dd04ef0a5558dab96f89e9a850724abde | 0386591b51fdbf5759faef6afb8729b64a3f1589 | /layerserver/widgets/modificationdate.py | 3b9aab935d42e5aa5a0047c815f565c8306afad5 | [
"BSD-3-Clause"
] | permissive | giscube/giscube-admin | 1e155402e094eb4db1f7ca260a8d1402e27a31df | 4ce285a6301f59a8e48ecf78d58ef83c3827b5e0 | refs/heads/main | 2023-07-11T17:23:56.531443 | 2023-02-06T15:12:31 | 2023-02-06T15:12:31 | 94,087,469 | 7 | 1 | BSD-3-Clause | 2023-07-07T13:22:09 | 2017-06-12T11:12:56 | Python | UTF-8 | Python | false | false | 556 | py | from datetime import datetime
from django.utils.timezone import get_current_timezone
from .date import DateWidget
class ModificationDateWidget(DateWidget):
base_type = 'date'
@staticmethod
def update(request, instance, validated_data, widget):
validated_data[widget['name']] = datetime.now(tz=ge... | [
"[email protected]"
] | |
6f1547fab3b6b91f274d8e7a04e2ac3e28693ae2 | 3b593b412c663a34784b1f60ad07cd2ee6ef87d1 | /month01/python base/day12/code03.py | 19ca59f6f051da2f348473bcdba1941fb51fd14e | [] | no_license | ShijieLiu-PR/Python_Learning | 88694bd44aeed4f8b022202c1065342bd17c26d2 | ed01cc0956120ea287c51667604db97ff563c829 | refs/heads/master | 2023-05-22T16:35:24.252313 | 2021-06-16T10:56:21 | 2021-06-16T10:56:21 | 337,445,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
运算符重载
"""
print("a" + "b")
class Vector:
"""
向量类
"""
def __init__(self, x):
self.x = x
def __add__(self, other):
# self.x += other
# return self
return Vector(self.x + other)
def __str__(self):
return "Vector(%d)" % self.x
v01 = Vector(10)... | [
"[email protected]"
] | |
b62b9d12528fab30ba13d52d4ab9d783c4f58689 | e7c84801d7755806e58795d5fe51f7a924815ffc | /python-image-watermark/python-watermark-image.py | 86d4a5401ae25cc33b68205ae57687d2b72853e3 | [] | no_license | c0c1/python-image | 3454b37b3e0339fd3e204a38d7aa14c885e10e38 | b785801589722571ac7ed8ad4428b4d04f518a2b | refs/heads/master | 2023-06-04T23:36:17.974408 | 2021-06-21T12:38:23 | 2021-06-21T12:38:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | import os, sys
from PIL import Image, ImageDraw, ImageFont
img_dir = "images/non-watermark/"
dirs = os.listdir( img_dir )
for img in dirs:
if os.path.isfile(img_dir + img):
#Create an Image Object from an Image
im = Image.open(img_dir + img)
#Image width and height
width, height = im.size
#Image name... | [
"[email protected]"
] | |
2d24087778240384516917c28596440c2aed5e2b | 8520c991dc543f5f4e1efe59ab401824173bb985 | /332-reconstruct-itinerary/solution.py | 9deb98ca04053efa355f326607f4c90351f51542 | [] | no_license | katryo/leetcode | d44f70f2853c4f5ea9a462d022feb0f5436c2236 | 0da45559271d3dba687858b8945b3e361ecc813c | refs/heads/master | 2020-03-24T12:04:53.859047 | 2020-02-18T04:27:55 | 2020-02-18T04:27:55 | 142,703,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | from collections import defaultdict
import heapq
class Solution:
def findItinerary(self, tickets):
dests = defaultdict(list)
ans = []
for src, dest in tickets:
heapq.heappush(dests[src], dest)
def dfs(dep):
arrivals = dests[dep]
while arrivals:
... | [
"[email protected]"
] | |
cc81969fe3c3463a9a336a1e77f56a7592cde567 | b91bd5b0954776fd186bf064a87fb8f7ffa4a58a | /python2/flask/flask_fun/flask_table/server.py | 5c146559aa55798c1023ee96a350f5061e5a2f4d | [] | no_license | ronaldaguerrero/practice | ddf1f41b693110cebe4d52e29910909f3ba21115 | 38627fddd8f79e6fb50c05a0e4e8d27a92146e1b | refs/heads/master | 2023-01-23T17:06:18.642983 | 2019-09-13T05:01:48 | 2019-09-13T05:01:48 | 186,157,588 | 0 | 0 | null | 2023-01-07T09:40:40 | 2019-05-11T16:40:12 | Python | UTF-8 | Python | false | false | 564 | py | # import things
from flask_table import Table, Col
# Declare your table
class ItemTable(Table):
name = Col('Name')
description = Col('Description')
# Get some objects
class Item(object):
def __init__(self, name, description):
self.name = name
self.description = description
items = [Item('N... | [
"[email protected]"
] | |
51e6d0b64816e845f3804107099f83eb52511405 | 030cea4006a4ff559f23cb3b3c31cd038ed2e332 | /week11/hh_back/api/migrations/0001_initial.py | ff433e7b38b000547c461e4b1354c718d2bfa422 | [] | no_license | ayananygmetova/Web-Dev-2020 | f8834e0ee26f0f0f06d0e3a282c73b373954a430 | 957bca91554f015e9a3d13b4ec12e64de7ac633e | refs/heads/master | 2023-01-22T16:49:39.857983 | 2020-03-31T10:09:54 | 2020-03-31T10:09:54 | 236,937,810 | 1 | 0 | null | 2023-01-07T16:34:35 | 2020-01-29T08:41:10 | Python | UTF-8 | Python | false | false | 669 | py | # Generated by Django 3.0.4 on 2020-03-31 07:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
('id', models.AutoField(... | [
"[email protected]"
] | |
f20231cfc5c8195e5135526087d532d334a0c5fa | 9907b3dd74d1aedbed5243105649f0acd8e965d8 | /demo/pytorch_laguerre.py | 0aded5c456579f8f7de77004c4e2c77956273df5 | [
"MIT"
] | permissive | shubhampachori12110095/OrthNet | 68c7442c448acdca2b0f2fbef0709efec280be4c | 74824c1858e14f023d3f0251910f223d6b8672ce | refs/heads/master | 2021-01-25T13:12:07.142646 | 2018-02-28T15:18:38 | 2018-02-28T15:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | import sys
sys.path.append('../')
from orthnet.pytorch import laguerre_tensor, multi_dim_laguerre_tensor
import torch
from torch.autograd import Variable
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
order1 = 5
order2 = 3
x1_data = np.linspace(-1, 1, 100).reshape((-1,... | [
"[email protected]"
] | |
7897e7d4cadfa5c63f6555c720fe7a1d117dfa50 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/statsmodels/2017/12/markov_regression.py | ef11b49627e507701b1babda3e3d9963f998bb8c | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 16,426 | py | """
Markov switching regression models
Author: Chad Fulton
License: BSD-3
"""
from __future__ import division, absolute_import, print_function
import numpy as np
import statsmodels.base.wrapper as wrap
from statsmodels.tsa.regime_switching import markov_switching
class MarkovRegression(markov_switching.MarkovSwit... | [
"[email protected]"
] | |
d0eb44f47aea9e440d8ce9e2190b0d49f9f3822d | 94b101b38acb682422b8e26ff09527e1102e6524 | /project/users/views.py | 4ae6702c4b12933ac5fa836b8207dbb98b6bbb8b | [] | no_license | mjoze/Web-App | f0ff12118510cb5bfa6d4ff5541194b184848c41 | 8f5c237231d35d87a77cf9dffa7261c19f81dec7 | refs/heads/master | 2020-12-23T02:47:06.241269 | 2020-03-07T14:34:54 | 2020-03-07T14:34:54 | 237,010,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm
def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
... | [
"[email protected]"
] | |
f58dc5c06357b947dad8b998e8070480de396f5d | d47b841f7e64d83cebbe63a25bac47adc495a760 | /test/test_box_score_teams_overall.py | 74d000b20e37922744080d08c234957c32e396ab | [] | no_license | CiscoNeville/cfbd-python | 810029240de30a2b7a205cbc3bb009599481206c | 5775ff7ce7464e881f1940a7c0a534b0c26c1ce8 | refs/heads/master | 2023-09-04T18:27:23.773119 | 2021-11-19T01:49:07 | 2021-11-19T01:49:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | # coding: utf-8
"""
College Football Data API
This is an API for accessing all sorts of college football data. It currently has a wide array of data ranging from play by play to player statistics to game scores and more. # noqa: E501
OpenAPI spec version: 2.4.1
Contact: [email protected]... | [
"[email protected]"
] | |
1d8762c60b7af569450421e970799689990cf863 | 69a8a88c99f5c401b188ce7637174c19a3ed48d8 | /0x0A-python-inheritance/10-square.py | 9f90ed3be2ee071cbcc079312aa9f6543eda60d0 | [] | no_license | JDorangetree/holbertonschool-higher_level_programming | 0546b25726052a8ce6468781f933eb28d1aee30d | f984f5047f690d352c7f203ef16aa7f0cc49afcd | refs/heads/master | 2020-09-29T01:22:22.387395 | 2020-05-16T23:35:12 | 2020-05-16T23:35:12 | 226,912,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #!/usr/bin/python3
""" Class that inherits from Rectangle """
Rectangle = __import__('9-rectangle').Rectangle
class Square(Rectangle):
""" Class that defines a Square by inheritance of Rectangle class """
def __init__(self, size):
""" Constructor """
self.integer_validator("size", size)
... | [
"[email protected]"
] | |
78b373ee16f0efc70102408817bb21f313d8525e | fdcbf5b203f07cceefbb38a746f4a43b322e263e | /Python/findNeighbors_of_Nulls.py | 52f8694848396c9527b570609bc2724e421599bd | [] | no_license | Masoumeh/0390.IbnAhmadMuqaddasi.AhsanTaqasim | e7a3eddc895edb79f8d93c1bd0f09f130a761858 | 592720e5a154fcfe9cdab84b16eaf5574f30b806 | refs/heads/master | 2021-01-18T00:36:09.962622 | 2017-11-07T13:13:46 | 2017-11-07T13:13:46 | 45,922,253 | 0 | 0 | null | 2015-11-10T15:49:02 | 2015-11-10T15:49:02 | null | UTF-8 | Python | false | false | 1,682 | py | """
To get some information from the route network graph, like how far are the first two neighbours (with coords) of a node (without coords)
"""
from networkx.readwrite import json_graph
import io, json, csv
import re
import networkx as nx
import sys
import operator
import compose_graphs as cg
def findNeighbors_of_... | [
"[email protected]"
] | |
bbef2beee7c94d588e9831ccbb760157f2f2e422 | 6915d6a20d82ecf2a2a3d3cd84ca22dab2491004 | /advtempproject/advtempproject/wsgi.py | 507d246211545d55217dfb1767569eb090224823 | [] | no_license | iitian-gopu/django | bb4302d101f4434fb61ab374807e29699a432e42 | 31db982212bbb453cc4c56c7f5cfad9a00cd231d | refs/heads/master | 2023-05-14T07:22:35.176477 | 2021-06-04T04:43:26 | 2021-06-04T04:43:26 | 366,114,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
WSGI config for advtempproject 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJAN... | [
"[email protected]"
] | |
2f4164ef4372fc6478789fc37f7c1f66296b61a9 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/az1.py | 2674ec878632dbc448cc05438068f00a33a83305 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"[email protected]"
] | |
102056145a28eec5b448b8975f4633f44a628b6a | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/synthetic/rttoaobj.py | f85a0bd999b0746da1b151ecd36cc2f7a907ac50 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,526 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"[email protected]"
] | |
dda9f5d4466062d8ad277427e9721c6efad04a50 | e9d52dcf101aea0327c6b0d7e5244c91dfd62cf6 | /spexy/bases/regular.py | ee2e4fd35ec1af3c62bc446c89556cd8cd5295c7 | [] | no_license | drufat/spexy | 6eba9f44a5539245486cd4ef8fefd24bdb7ade6a | 53255009c1830501986afbf6688142ddefe17b9a | refs/heads/master | 2021-09-18T19:51:47.313946 | 2018-07-19T05:09:02 | 2018-07-19T05:09:02 | 100,453,374 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | # Copyright (C) 2010-2016 Dzhelil S. Rufat. All Rights Reserved.
from spexy.bases import basesimp
class BasesImp(basesimp.BasesImp):
def module(self):
return 'spexy.bases.circular'
def numbers(self):
N = self.N
N0 = N + 1
N1 = N
N0d = N
N1d = N + 1
ret... | [
"[email protected]"
] | |
e3be99e1c6547843b797fea330aa576499260d31 | 99a4e7a4db3a3e062c0b08a5462749a28f3f7a39 | /core/utils/make_joint_dataset.py | 592af25331103bb288cfcb090d2dcd893614f3bb | [] | no_license | B-Step62/pytorch-motiongan-open | f85c1481363230826e9094e1c323ad90f0922744 | 4aefe2c427b88f357e8894d309ff46602e109001 | refs/heads/master | 2021-03-20T23:22:49.591472 | 2020-03-15T10:34:54 | 2020-03-15T10:34:54 | 247,241,734 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import os
import sys
import math
import subprocess
import cv2
from collections import OrderedDict
import numpy as np
import core.utils.bvh_to_joint as btoj
BVH_ROOT = './data/bvh/Edi_Mocap_Data/Iwan_style_data'
OUT = './data/bvh/Edi_Mocap_Data/Iwan_style_data'
def main():
# Copy all original bvh file
ro... | [
"[email protected]"
] | |
833b2113b3ae2c9ad9deecfba486cc67eee08b41 | 21839bc2817a02d01180baff826b4ce5fe2789bd | /official/vision/beta/projects/yolo/modeling/backbones/darknet.py | 5a76c7eefbc615657b563714da3e8a042c18257f | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/TF-OD-API_BICS | 1240fbf7cfbed73fe8633870c4eb237289dbd899 | 22ac477ff4dfb93fe7a32c94b5f0b1e74330902b | refs/heads/main | 2023-06-24T23:46:19.756540 | 2021-07-26T05:27:12 | 2021-07-26T05:27:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,207 | py | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"[email protected]"
] | |
19e5e99b4598f9270e0cc992301e841753fd2870 | c2b386e1d28c58efbb9d847098a87032e2cbacca | /products_app/init.py | 930a8691b7c54fa99f1d8508a131fb4977bb6b31 | [] | no_license | jmlm74/P11-Ameliorez-un-projet-existant-en-Python | e6468342554f5c4aa03bc0bb954aa7995e98e293 | 28cd84698bf272e279bbf6e1d15211ef2a3c6403 | refs/heads/master | 2022-12-11T02:57:59.563283 | 2020-09-10T16:02:27 | 2020-09-10T16:02:27 | 290,844,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py |
# url an parameters for the open food fact API
url = 'https://fr-en.openfoodfacts.org/cgi/search.pl'
params_off = {'search_simple': 1,
'action': 'process',
'json': 1,
'page_size': 300,
'page': 1,
'tagtype_0': 'categories',
'tag_contain... | [
"[email protected]"
] | |
cf3dc94deb898b3147c1d529a1fbf335561c2e0b | 639d6a00e3a8fab07ce07fec408eef6bc050d21d | /indice_pollution/db.py | 8c93d5b392a7f26b2474e3b88b9e22891432315d | [
"MIT"
] | permissive | betagouv/indice_pollution | e04634e0b9c6d4ce24ffdc4c19868599995c1bd5 | b85e53ca22d420e3d685fc84843d2011c6a696e4 | refs/heads/master | 2023-02-10T20:25:13.321999 | 2023-02-06T10:57:09 | 2023-02-06T10:57:09 | 250,297,957 | 4 | 1 | MIT | 2023-01-25T09:25:45 | 2020-03-26T15:33:02 | Python | UTF-8 | Python | false | false | 218 | py | from sqlalchemy import MetaData
from sqlalchemy.orm import declarative_base
global engine, Session
metadata = MetaData(schema="indice_schema")
Base = declarative_base(metadata=metadata)
engine = None
session = None | [
"[email protected]"
] | |
72b698651d6f869623903874a9cb46cd307ac5e2 | 05218d01394294bb7ede726bf3dc6f0691e4299b | /machineLearning/mini_Project/mini_project_0401.py | 21e36071cf323a4a3e1726e08d32fe4925ed6a43 | [] | no_license | bitacademy-howl/anaconda_workspace | 156556c52342b461ffb8304dfb55a845fff5ae90 | d9dc5007b6e95fa0bf7b95a457cafe68a0167992 | refs/heads/master | 2020-03-23T12:10:14.872385 | 2018-08-10T10:04:55 | 2018-08-10T10:04:55 | 141,539,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,058 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn.datasets import load_boston
import os
# sklearn 에서 제공하는 학습용 데이터셋
data = load_boston()
print('======================================... | [
"[email protected]"
] | |
dac61de3894ea89b441f9876d43b4e8b8e7aabcc | a7587f813492163433202e244df2237c9993a1a1 | /Store/migrations/0003_variation.py | 192756496452ac5feb5ca11e93277167f0ed89b4 | [] | no_license | kamran1231/E-COM-WEBSITE-2021 | 3a10bc0059f4d29fc52ee029e4919d4f965174c6 | 32214468cf716cc312a63f6346b8c844f720abda | refs/heads/master | 2023-06-01T03:18:03.137405 | 2021-07-04T14:20:16 | 2021-07-04T14:20:16 | 381,634,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # Generated by Django 3.2.4 on 2021-07-02 18:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Store', '0002_alter_product_price'),
]
operations = [
migrations.CreateModel(
name='Variation',... | [
"[email protected]"
] | |
826ff29b8209c97f97229d3a9b5855b40d325524 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_generated/_azure_data_lake_storage_restapi.py | efb21f39026ffdd1e919cf6d1b8d713df2b94c91 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 2,804 | 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 ... | [
"[email protected]"
] | |
0599e1b5865e8d9987e0659e9e04bf93f58d70be | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/bigquery/v2/bigquery-v2-py/google/cloud/bigquery_v2/services/model_service/async_client.py | f663b4845089503f56d9cf414847565501df681b | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,963 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
06eb118e8879ca755ff7c592ecfb8c07b1333b91 | 553b34a101c54090e68f540d96369ac7d5774d95 | /python/algo/src/minimum_cut.py | bf33b42a8714492e38de25c04a941877eafc0264 | [
"MIT"
] | permissive | topliceanu/learn | fd124e1885b5c0bfea8587510b5eab79da629099 | 1c5b1433c3d6bfd834df35dee08607fcbdd9f4e3 | refs/heads/master | 2022-07-16T19:50:40.939933 | 2022-06-12T15:40:20 | 2022-06-12T15:40:20 | 21,684,180 | 26 | 12 | MIT | 2020-03-26T20:51:35 | 2014-07-10T07:22:17 | JavaScript | UTF-8 | Python | false | false | 2,668 | py | # -*- coding: utf-8 -*-
import random
from src.maximum_flow import ford_fulkerson_maximum_flow
def pick_random_edge(graph):
""" Returns a random edge from the given graph. """
edges = graph.get_edges()
return random.choice(edges)
def contract(graph, edge):
""" Composes a new vertex from the ends of... | [
"[email protected]"
] | |
3bc48ad57dbf84c0d65a2c59a2f654b60f5b1089 | a98bc512be9b9691200c6a0cc33a5fb7b4053c13 | /com.ppc.Bot/devices/thermostat/thermostat_honeywell_lyric.py | 4fc7ab8f7dd9ec9b7fd8517681898b5f9c38d9cf | [
"Apache-2.0"
] | permissive | 30s/botlab | c21682ed2c9aefc9cba688c6a8c136e9f969adc9 | f7617147b65521a66ad88cdbc175176021a7a486 | refs/heads/master | 2020-04-04T18:39:00.776636 | 2018-10-04T04:56:32 | 2018-10-04T04:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | '''
Created on March 27, 2017
This file is subject to the terms and conditions defined in the
file 'LICENSE.txt', which is part of this source code package.
@author: David Moss
'''
# Device Model
# https://presence.atlassian.net/wiki/display/devices/Thermostat
from devices.thermostat.thermostat import ThermostatDev... | [
"[email protected]"
] | |
46dfc22eb40865a48197d7f5ac0164222f4d45bc | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fabric/nodetopolicy.py | 73f41a28e62353875c97e455cded44de58073546 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,662 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"[email protected]"
] | |
81e637c137eb35264303fc69b8323a2a2287261a | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/o8-.py | 9c6d0d0413aeff42ae26f9f44f8d70275e890256 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.