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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3fcda686d4f3fae22c7c376a354a4e591f5e6b78 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/tables/azure-data-tables/azure/data/tables/_table_client.py | 68ea82dc76b49f897a6edccb3aec84471859f7ef | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 24,634 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import fu... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
a81597c63aba6f259d81ca952d201d0f7bc43c3a | 3601eb7ccde8ee96e7e65c9ab299e4053d088e70 | /licitte/urls.py | 8527111b88123d9ec86b8c2e28be52669516c814 | [] | no_license | ow7/licitte | ec73bd86d84da7311e2c8c261127f541584e1905 | e1bc5ce402425edbd38acd42b6fb07782bd08f9c | refs/heads/master | 2021-08-30T02:28:53.765789 | 2017-12-15T18:16:24 | 2017-12-15T18:16:24 | 114,397,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | """licitte URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"kleberr@msn.com"
] | kleberr@msn.com |
aea2810a65c8473673713d7073b868aa0057c771 | 8c4ef53ec6c7df2eeeb633a53d1d931558596366 | /propertyestimator/protocols/storage.py | 5ed3b8a157424797084b7132befd9c807d2fdb0d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MSchauperl/propertyestimator | ff7bf2d3b6bc441141258483ec991f8806b09469 | 9a67cb61498024c511f9bbe55536ac8e1a3c93be | refs/heads/master | 2020-09-08T07:04:39.660322 | 2019-11-08T21:15:23 | 2019-11-08T21:15:23 | 221,055,340 | 0 | 0 | NOASSERTION | 2019-11-14T21:47:11 | 2019-11-11T19:34:28 | null | UTF-8 | Python | false | false | 7,869 | py | """
A collection of protocols for loading cached data off of the disk.
"""
import json
from os import path
from typing import Union
from propertyestimator.storage.dataclasses import StoredDataCollection
from propertyestimator.substances import Substance
from propertyestimator.thermodynamics import ThermodynamicState
... | [
"simon.boothroyd@choderalab.org"
] | simon.boothroyd@choderalab.org |
71a3bb66245a57da0b9a687f7218be571dc7bd17 | 66a9c25cf0c53e2c3029b423018b856103d709d4 | /sleekxmpp/plugins/xep_0080/__init__.py | cad23d221c641d7c8215c12347b0c7f54ddb50af | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | fritzy/SleekXMPP | 1b02d3e2b22efeb6bf3f8f487e6c0343b9b85baf | cc1d470397de768ffcc41d2ed5ac3118d19f09f5 | refs/heads/develop | 2020-05-22T04:14:58.568822 | 2020-02-18T22:54:57 | 2020-02-18T22:54:57 | 463,405 | 658 | 254 | NOASSERTION | 2023-06-27T20:05:54 | 2010-01-08T05:54:45 | Python | UTF-8 | Python | false | false | 388 | py | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz, Erik Reuterborg Larsson
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
from sleekxmpp.plugins.base import register_plugin
from sleekxmpp.plugins.xep_0080.stanza import Geoloc
from sleekxmpp.... | [
"lancestout@gmail.com"
] | lancestout@gmail.com |
8d2ecc7056b9b55738c10426695a9662c51431d1 | d9f6f439300d298246c37ccfb881e8e8af4fda22 | /cfp/management/commands/pgimport.py | b2d47ebf1f43914e8cb93b5055a27b966d35cd71 | [
"MIT"
] | permissive | ajlozier/speakers | e62b8d346a58a034998860d1b42a38b00cbdbd23 | d7d87c99b1cfa5f9df5455f737385115d9d5279c | refs/heads/master | 2021-09-08T19:33:08.894305 | 2018-03-12T00:54:10 | 2018-03-12T00:54:10 | 122,101,157 | 0 | 0 | null | 2018-02-19T18:08:18 | 2018-02-19T18:08:18 | null | UTF-8 | Python | false | false | 936 | py | import os
import subprocess as sh
from cfp.management.base import SentryCommand
class Command(SentryCommand):
help = 'Import the production database locally'
def handle(self, *args, **options):
if not os.environ['ENVIRONMENT'] == 'DEVELOPMENT':
raise ValueError('This command can only be ... | [
"kyle@kyleconroy.com"
] | kyle@kyleconroy.com |
cef8f53cd10fa1316157e73bf4527f28334914b2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02621/s707981559.py | d48999af6cee0614504843656936330202f81205 | [] | 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 | 76 | py | a = int(input().rstrip())
ans = lambda a: int(a + a**2 + a**3)
print(ans(a)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
96d0eb0199a49eab488eea08106fc599250023c4 | 271c7959a39f3d7ff63dddf285004fd5badee4d9 | /venv/Lib/site-packages/gevent/threading.py | 570ccd6c3e1c22ccffca38fbb0b971a6c35afd1a | [
"MIT"
] | permissive | natemellendorf/configpy | b6b01ea4db1f2b9109fd4ddb860e9977316ed964 | 750da5eaef33cede9f3ef532453d63e507f34a2c | refs/heads/master | 2022-12-11T05:22:54.289720 | 2019-07-22T05:26:09 | 2019-07-22T05:26:09 | 176,197,442 | 4 | 1 | MIT | 2022-12-08T02:48:51 | 2019-03-18T03:24:12 | Python | UTF-8 | Python | false | false | 8,634 | py | """
Implementation of the standard :mod:`threading` using greenlets.
.. note::
This module is a helper for :mod:`gevent.monkey` and is not
intended to be used directly. For spawning greenlets in your
applications, prefer higher level constructs like
:class:`gevent.Greenlet` class or :func:`gevent.spaw... | [
"nate.mellendorf@gmail.com"
] | nate.mellendorf@gmail.com |
a8116934e376d20bbab74c6b1f04d617a5ffe9ec | 1484f2311bc250a2ffd3841ec225855ad1e49ede | /web/trpo_plot.py | e9e3a8343ec3e49b21f05983053c327efc1e0bab | [
"Apache-2.0"
] | permissive | seba-1511/dtrpo.tf | 68527e2e043d1afc5545a961a5542447d66c658e | af6c1376eff0c82e591374b785a3d460407d3663 | refs/heads/master | 2021-03-27T13:00:22.816806 | 2017-09-14T20:38:24 | 2017-09-14T20:38:24 | 68,479,754 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,337 | py | #!/usr/bin/env python
import numpy as np
from seb.plot import Plot3D, Plot, Container, Animation
def grad_descent(x, y, dfnx, dfny, alpha=0.2, length=50):
trace = [(x, y)]
for _ in range(length):
x = x - alpha * dfnx(x)
y = y - alpha * dfny(y)
trace.append((x, y))
return np.array(t... | [
"seba-1511@hotmail.com"
] | seba-1511@hotmail.com |
9a750644c7c30d305fece0758054509b41313121 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnnewtown.py | 084a3e8d2a8510dc0d941baaf04079e5df1a367d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 64 | py | ii = [('DaltJMA.py', 4), ('MereHHB3.py', 7), ('MereHHB2.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
b91a9f014091d145beefd604b36e716ee1e6cd3b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_160/ch47_2019_09_30_21_19_06_189136.py | 30315c6f92701799d9635e7747e2e53b795f6ba8 | [] | 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 | 189 | py | mes = ["Janeiro", 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto','Setembro', 'Outubro', 'Novembro', 'Dezembro']
a = int(input("Qual o numero do mês?"))
print (mes[a-1]) | [
"you@example.com"
] | you@example.com |
eb5c9dbff404af9ff312c40ae66082dcc42196ee | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/bT2.py | 33365dc270356a82e93b241e13483a5298b32126 | [] | 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:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
0ef7edf91fbab55c4122ffaac4c6826a2d8eb89f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02582/s810007923.py | dddac5bb9b0868ce8c3f5f6ede87c46bf622dad1 | [] | 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 | 127 | py | n = input()
r = 0
Tr = 0
for i in n:
if i == "R":
r += 1
Tr = r
elif i == "S":
r = 0
print(Tr)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0c4bfd10df3bbda83d7ce3efebdafd3fc2400fa6 | 4331b28f22a2efb12d462ae2a8270a9f666b0df1 | /.history/dvdstore/webapp/form_20190914173126.py | 5fb05c3529c11f9f5ddfc438f3c22c91bac43a33 | [] | no_license | ZiyaadLakay/csc312.group.project | ba772a905e0841b17478eae7e14e43d8b078a95d | 9cdd9068b5e24980c59a53595a5d513c2e738a5e | refs/heads/master | 2020-07-26T23:30:22.542450 | 2019-09-16T11:46:41 | 2019-09-16T11:46:41 | 200,703,160 | 0 | 0 | null | 2019-08-05T17:52:37 | 2019-08-05T17:52:37 | null | UTF-8 | Python | false | false | 897 | py | from django import forms
from .models import DVD, Customer
from django.contrib.auth.models import User, auth
class DocumentForm(forms.ModelForm):
class Meta:
model = DVD
fields = ('Title','year','genre','PriceDVD','InStock','Synopsis','BookingPickup' ,'NumOfTimesRented','ImageDVD')
widgets ... | [
"uzairjoneswolf@gmail.com"
] | uzairjoneswolf@gmail.com |
7651a9f9d6c025bbdc709a5aa4c5b17f0f9d5060 | 6a41dd36ddd3e501b62ff253b40bf9bbbaa722c2 | /코딩예제/ex01.py | 607d15fdb242b5454c257ab598cfc8ef6f0762cb | [] | no_license | skysamer/first_python | 9ba79b194d838e0cdeab6f2e7a4207d71c73ed63 | 638622f51434eda65ef3300e3ce5db3a2a79db2a | refs/heads/master | 2023-02-03T08:21:23.370285 | 2020-12-27T13:39:20 | 2020-12-27T13:39:20 | 307,953,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | print("Hello coding python")
print("hello!"*3)
print("혼자 공부하다 모르면 동영상 강의를 참고하세요")
| [
"skyslayer123@naver.com"
] | skyslayer123@naver.com |
e0af43df6c45466129cf468cb3fa6be008df41a7 | e32fbfdd7e4c8060faf97d0f046b5c957b4695f8 | /app/tests/test_diffing.py | 5de81ab73492233fb2f9d4ddf4101528f5e10996 | [
"CC-BY-3.0",
"MIT"
] | permissive | fidlej/myerrata | ffeb777cc1b8cd2151b7dc7e79f1e1dd0fabed06 | c5b5cc78303bb783eb59a6d6c628d2b27a6584ca | refs/heads/master | 2020-04-11T16:02:41.134009 | 2010-08-25T15:21:48 | 2010-08-25T15:21:48 | 32,650,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | # coding: utf-8
from nose.tools import eq_
from src import diffing
def test_mark_changes():
tests = [
(("buy big car", "buy small car"),
"buy <del>big</del><ins>small</ins> car"),
(("buy big car", "buy small red car"),
"buy <del>big</del><ins>small red</ins> car"),
(("buy big car", "bu... | [
"ivo@danihelka.net"
] | ivo@danihelka.net |
950fcc02c58cf78ac95e31320c47621e7685ecc1 | 9f674f9ba21a345bb3d573e0c77c4343427e1aca | /CorePython/11-ExceptionHandling/03-TryElse.py | 03207550771d87ab85a0332b854bd9c3cbf7b618 | [] | no_license | ravi4all/PythonWE_11-12_30 | f9c91c5ed238476933c0b92e55492259da8e4311 | c4d7a4bd3939b82056ed47d5a04624ec7565125f | refs/heads/master | 2021-09-13T22:34:31.082037 | 2018-05-05T11:13:05 | 2018-05-05T11:13:05 | 105,269,134 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | try:
file = open("file_1.txt")
data = file.read()
print(data)
file.seek(0,1,2)
except BaseException as err:
print("Error...",err)
else:
print("Inside Else")
finally:
print("File closed...")
file.close()
| [
"noreply@github.com"
] | ravi4all.noreply@github.com |
ef59afb84dff253a108d771345e0adaaaa95a998 | 37aae70d77b0d4a0f2b073e5e032810b54f96657 | /google-cloud-sdk/lib/googlecloudsdk/api_lib/tasks/__init__.py | bf325b45fc95c19b9adb58c3266cee30e157326d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | talentdeveloper/casino_bot | 454a493ee09482ebe5ff00f0e983d2b2d99f7d85 | 60d1781934dd018055bac1e2b7ded44216ff875c | refs/heads/master | 2022-12-20T10:24:30.767164 | 2019-06-14T11:31:52 | 2019-06-14T11:31:52 | 189,037,455 | 0 | 1 | null | 2022-12-09T04:15:46 | 2019-05-28T13:49:03 | Python | UTF-8 | Python | false | false | 1,258 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"yflumee9396@gmail.com"
] | yflumee9396@gmail.com |
b2d3b409484443dd593d6a9fee8c104fc0b84c0c | 60715c9ea4c66d861708531def532814eab781fd | /python-programming-workshop/test/pythondatastructures/convert/bytes_to_megabytes.py | db68a188b17cb868fd29c58bcf7d2c17c9924547 | [] | no_license | bala4rtraining/python_programming | 6ce64d035ef04486f5dc9572cb0975dd322fcb3e | 99a5e6cf38448f5a01b310d5f7fa95493139b631 | refs/heads/master | 2023-09-03T00:10:26.272124 | 2021-11-01T08:20:52 | 2021-11-01T08:20:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py |
#Python that converts bytes, megabytes
def bytestomegabytes(bytes):
return (bytes / 1024) / 1024
def kilobytestomegabytes(kilobytes):
return kilobytes / 1024
# Convert 100000 bytes to megabytes.
megabytes1 = bytestomegabytes(100000)
print(100000, "bytes =", megabytes1, "megabytes")
# 1024 kilobytes to meg... | [
"karthikkannan@gmail.com"
] | karthikkannan@gmail.com |
0f08202392d68a8a2f30a4e9fa2f592bba1057cc | ff92e5cc5a96277188eb34df60d7119947b6349e | /core/gdrn_selfocc_modeling/tools/pose_aug.py | c3b8c8a23ab102882083298db0b79d116295247d | [
"Apache-2.0"
] | permissive | Pamyuu/SO-Pose | 000783e66e52e37f8fcfc246964695c6cdc3e13d | a3a61d2c97b1084a4754d6c12e45e16d85809729 | refs/heads/main | 2023-08-16T14:33:48.022277 | 2021-10-11T08:22:46 | 2021-10-11T08:22:46 | 441,398,467 | 1 | 0 | Apache-2.0 | 2021-12-24T07:29:21 | 2021-12-24T07:29:20 | null | UTF-8 | Python | false | false | 2,456 | py | import torch
import numpy as np
import math
from transforms3d.euler import euler2mat
from core.utils.pose_utils import euler2mat_torch
def aug_poses_normal(poses, std_rot=15, std_trans=[0.01, 0.01, 0.05], max_rot=45):
"""
Args:
poses (Tensor): [n,3,4]
std_rot: deg, randomly chosen from cfg.INP... | [
"ilovejinsha@126.com"
] | ilovejinsha@126.com |
dccffc2a24e794af9ca352655e7bf2a47a54601a | 5838669d86cc572348ae16b4d50023815b5b7dd8 | /utils/shuffle_train_val.py | 73a4cc8d729cb90cb62fdaafde9df9a65f7a5c71 | [] | no_license | GiantPandaCV/yolov3-point | 46dc303693138bdf2a47f2d1827be46b0cd5a958 | 11b13147556029620d920c501f2880237947f245 | refs/heads/master | 2022-04-11T11:49:09.952474 | 2022-03-14T02:11:04 | 2022-03-14T02:11:04 | 234,021,307 | 214 | 55 | null | 2020-07-13T13:30:02 | 2020-01-15T07:15:27 | Jupyter Notebook | UTF-8 | Python | false | false | 1,330 | py | import os
import shutil
import random
train_txt = "/home/dongpeijie/datasets/dimtargetSingle/2007_train.txt"
test_txt = "/home/dongpeijie/datasets/dimtargetSingle/2007_test.txt"
val_txt = "/home/dongpeijie/datasets/dimtargetSingle/test.txt"
train_out_txt = "/home/dongpeijie/datasets/dimtargetSingle/shuffle_train.txt"... | [
"1115957667@qq.com"
] | 1115957667@qq.com |
41c7ffd1ee44140d2d6909cdf3db380238a9019b | c83b9951cc5f54f2381ccdae7cef2b4b283dc663 | /practice/models.py | eaf2d14b42d2a654eb4ee39e559eb5fe38c10249 | [] | no_license | Tedhoon/s3 | faed91af68fa0b4aca7cd30c0e006f59dc337863 | 8f04492864b0228cae6a5c9d5c51e4505bcee3f5 | refs/heads/master | 2020-12-05T18:49:51.871855 | 2020-01-07T01:18:16 | 2020-01-07T01:18:16 | 232,215,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from django.db import models
class Image(models.Model):
img = models.ImageField(upload_to='usr') | [
"gt0305@likelion.org"
] | gt0305@likelion.org |
01da5a0e86cd8ce29cbc5a202aa44f0231c8e8af | dc955cb940976e360853a03c8a18c173be21e406 | /web_flask/3-python_route.py | 080068cf4596ab06d921d340f2c4365846556cbe | [] | no_license | SantiagoHerreG/AirBnB_clone_v2 | 888c04617d1f1e6ca01d080a57ae1932596a3a9a | 2669d2455e657c1096d8f32c1d083fdb3d22665b | refs/heads/master | 2020-11-25T05:24:36.767546 | 2020-01-23T04:20:59 | 2020-01-23T04:20:59 | 228,519,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | #!/usr/bin/python3
"""Uses the Flask micro framework to make an app server listen at 0.0.0.0:5000
"""
from flask import Flask
app = Flask(__name__)
@app.route('/', strict_slashes=False)
def home():
"""Function for handling the route /
"""
return "Hello HBNB!"
@app.route('/hbnb', strict_slashes=False)
d... | [
"888@holbertonschool.com"
] | 888@holbertonschool.com |
f14bf2284a5ac68035d5cc581bed6b3963daf922 | 3c7dcf8c7af1536af8d6ff3b7ec4389e9523823a | /ssl_sale_ext/__manifest__.py | 9d0dd99da365af6fa2c0a914e27283a768065fe9 | [] | no_license | tate11/module | cb70e8e45ecb9912a597ea9310c29baf9074fa90 | b5148fad3f3a23df749d3d3d7278c2ce22e067d8 | refs/heads/master | 2020-03-18T21:11:18.403431 | 2017-06-14T07:48:48 | 2017-06-14T07:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # -*- coding: utf-8 -*-
{
'name': 'SAL: SuperSilicone Sale Extention',
'version': '1.0',
'author': 'Kornelius K Macario (Falinwa Indonesia)',
'description': '''
Module to extend reporting file in Quotations.
''',
'depends': [
'ssl_base_ext',
],
'data': [
'report/s... | [
"dimansional@gmail.com"
] | dimansional@gmail.com |
94090cd146bdbb675c2a0236d33670dd56158a11 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/twisted-Zope-3.2.1/twisted/lore/__init__.py | 142e9e5fcdd90fda4df2e11b44a9594c01d4c49d | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
#
'''
The Twisted Documentation Generation System
Maintainer: U{Andrew Bennetts<mailto:spiv@twistedmatrix.com>}
'''
# TODO
# Abstract
# Bibliography
# Index
# Allow non-web image formats (EPS, specifically)
# Allow pickle output and i... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
c99df2302f718da619b9117303bad092b189a97e | 170864b6ec66be48138f231fe8ac3381481b8c9d | /python/BOJ_15652.py | 20c6e031ade32221e23ea0305ac743f403e37932 | [] | no_license | hyesungoh/AA_Algorithm | 5da3d8312d035d324dfaa31eef73f01a238231f3 | d68f52eaa29cfc4656a8b5623359166779ded06e | refs/heads/master | 2023-06-09T14:49:01.402456 | 2021-06-28T10:10:09 | 2021-06-28T10:10:09 | 272,701,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | n, m = map(int, input().split())
l = list(range(1, n+1))
ans = []
def bt(depth, index):
if depth == m:
print(*ans)
return
for i in range(n):
if l[i] >= index:
ans.append(l[i])
bt(depth + 1, l[i])
ans.pop()
bt(0, 0)
| [
"haesungoh414@gmail.com"
] | haesungoh414@gmail.com |
a63e804d240377f401fed52279ef157ad6bf2aa1 | 6bf036d64271bb062451626c334b6eabaf2bcef9 | /tensorflow_asr/models/ctc/ctc.py | d7dcf5dd5e414338abc25104ccc39efad21dc96b | [
"Apache-2.0"
] | permissive | lamyiowce/TensorFlowASR | 7ce9d96f70da182e7d058a492993b62d523354e5 | 130124ccaf23fabe3e7a6f138d9403a7c0946ef3 | refs/heads/main | 2023-06-25T03:09:28.182924 | 2021-06-10T13:42:45 | 2021-06-10T13:42:45 | 390,671,234 | 0 | 0 | Apache-2.0 | 2021-07-29T09:29:18 | 2021-07-29T09:29:18 | null | UTF-8 | Python | false | false | 7,347 | py | # Copyright 2020 Huy Le Nguyen (@usimarit)
#
# 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 t... | [
"nlhuy.cs.16@gmail.com"
] | nlhuy.cs.16@gmail.com |
a277d33f5860071faa32fa667b73c549508cf86b | 6d7e28fd178d5eba1b9e67dd77ad7cec6690743b | /alg_dataset.py | 0a37bab5931b6a82ad462e82449e0347cb2d479e | [] | no_license | Arseni1919/PL_TEMPLATE_PROJECT | ec83f8402996f837cbaccbea092c5cc523a959de | dd5d5fa2284c9ea1da35e316a14299fc89272669 | refs/heads/main | 2023-02-12T18:56:42.810589 | 2021-01-12T09:54:50 | 2021-01-12T09:54:50 | 326,060,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from CONSTANTS import *
class ALGDataset(Dataset):
def __init__(self):
self.buffer = deque(maxlen=REPLAY_SIZE)
def __len__(self):
return len(self.buffer)
def __getitem__(self, indx):
item = self.buffer[indx]
return item.state, item.action, item.reward, item.done, item.new... | [
"1919ars@gmail.com"
] | 1919ars@gmail.com |
da1c36a4a8b25e9de600154f608421c9cf4a03fb | 60eb288f242b60b872481dc1f38848c19cd51452 | /tests/conftest.py | 6dcddd7abf84dc136e6f1f1f1ff6b0879c50e873 | [
"MIT"
] | permissive | klen/muffin-admin | 62654a515f552b9026a27afc70c3e1b98cbb6f04 | 3c7c2e169911bf5388947447cfc693648decd7cb | refs/heads/develop | 2023-08-30T16:46:28.750256 | 2023-08-24T09:25:16 | 2023-08-24T09:25:16 | 34,291,282 | 19 | 2 | MIT | 2023-02-20T20:25:44 | 2015-04-20T23:04:00 | Python | UTF-8 | Python | false | false | 650 | py | from pathlib import Path
import pytest
from muffin import Application, TestClient
@pytest.fixture(
params=["trio", "curio", pytest.param(("asyncio", {"use_uvloop": False}), id="asyncio")]
)
def aiolib(request):
return request.param
@pytest.fixture(scope="session", autouse=True)
def prebuild_js():
impor... | [
"horneds@gmail.com"
] | horneds@gmail.com |
116cac7e4362884c75a97caf04c8c453116a0d80 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /components/policy/tools/template_writers/writers/android_policy_writer_unittest.py | 6eb7a2f630701bdced109080db050ec1ed51ebb2 | [
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 2,684 | py | #!/usr/bin/env python
# Copyright (c) 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.
'''Unit tests for writers.android_policy_writer'''
import os
import sys
if __name__ == '__main__':
sys.path.append(os.path.join... | [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com |
e4eb19c2ffe6437ac4bd088a7d184763cd6d81a6 | 198f759dc334df0431cbc25ed4243e86b93571eb | /database_routers/mssql_router.py | d5bc32937be3d699277bc992a68a97f54e34657c | [] | no_license | miladhzz/django-muliple-db | ec2074b14dd67a547c982f20b2586f435e7e0d6c | 56ff2555e498d9105cad215daf4c3d4da59d7d9a | refs/heads/master | 2022-12-25T08:08:05.761226 | 2020-10-06T06:38:30 | 2020-10-06T06:38:30 | 301,636,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | class MssqlRouter:
route_app_labels = {'mssql',}
def db_for_read(self, model, **hints):
return 'mssql'
def db_for_write(self, model, **hints):
return 'mssql'
def allow_relation(self, obj1, obj2, **hints):
if (
obj1._meta.app_label in self.route_app_labels or
o... | [
"miladhzz@gmail.com"
] | miladhzz@gmail.com |
c27d90b99c370731bf6398c8f1b7c9d70f7b4c7e | d0fec74acfbfdee1b662736731c1cc988e2ba2ee | /problem_40/p040.py | 21c164577ea7c7bd2acc43fe9bacc1d482b5a2b1 | [] | no_license | msztylko/project-Euler | fdd0cfefbe88b63f6dbd2d08f1cd59270b9e1735 | b3f5ce828ccc6662c100dd27fa295fc8afa22f6e | refs/heads/master | 2021-11-23T02:50:19.333259 | 2021-10-31T17:52:28 | 2021-10-31T17:52:28 | 195,980,596 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import sys
if sys.version_info.major == 2:
range = xrange
def compute():
s = "".join(str(i) for i in range(1, 1000000))
ans = 1
for i in range(7):
ans *= int(s[10 ** i - 1])
return str(ans)
if __name__ == "__main__":
print(compute())
| [
"marcin.sztylko@gmail.com"
] | marcin.sztylko@gmail.com |
dc7eb6e7639c5e65a49e86d7d04a010cc48cc7de | 1d4faec6a04df7dc62f07cbb6716c660f7d0eff8 | /tests/ast_test.py | 1e483df0e4f118ac27942e63980d77826e0ebbf0 | [
"MIT"
] | permissive | QGB/QPSU | a34c8588100c30364c228d8775b3e343f38a8cb4 | 1c4fa4445c8ef3fe8d78fe295839db31dc00d6c9 | refs/heads/master | 2023-09-03T03:05:20.300569 | 2023-08-23T15:34:28 | 2023-08-23T15:34:28 | 41,740,326 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | foo : int = 42 # <_ast.AnnAssign
dsf={'AST': (), 'Add': (), 'And': (), 'AnnAssign': ('target', 'annotation', 'value', 'simple'), 'Assert': ('test', 'msg'), 'Assign': ('targets', 'value'), 'AsyncFor': ('target', 'iter', 'body', 'orelse'), 'AsyncFunctionDef': ('name', 'args', 'body', 'decorator_list', 'returns'), 'Asy... | [
"qgbcs1@gmail.com"
] | qgbcs1@gmail.com |
68653bc8d29f3dcdda99954fd2c56c4db08be014 | 2020c9c6958d9cc338b72f62e24d9ad30c1a8cad | /python/0048.rotate-image/rotate-image.py | ebc9d290238139686bdea8148f5026ac7910bff1 | [] | no_license | ysmintor/leetcode | b2d87db932b77e72504ffa07d7bf1b0d8c09b661 | 434889037fe3e405a8cbc71cd822eb1bda9aa606 | refs/heads/master | 2020-05-30T21:03:03.886279 | 2019-10-31T08:46:23 | 2019-10-31T09:02:24 | 189,963,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | class Solution:
def rotate(self, matrix: List[List[int]]) -> None:
"""
Do not return anything, modify matrix in-place instead.
"""
# 一共有3种处理办法,每一次都有巧妙,时间多将三个都看会
n = len(matrix)
for i in range(n):
for j in range(i+1, n):
matrix[i][j], matrix... | [
"ysmintor@gmail.com"
] | ysmintor@gmail.com |
f8776100c8b24432acc2e97ace4ab1451f7b2dc0 | 06cabd66791a5ee15bb3ba4b04d8bc8dea5bfda0 | /2016-09-17_GranaOnIL-ZnO/Analysis.py | ab1a1fe78cc33ee40590c6130f4f2218d0b61987 | [] | no_license | claiello/python_data_analysis | f7405dfd15f0dccd2089b1878af40b9d075071d2 | 0b8d3cc5717243e72214dc24a7fc823220e13179 | refs/heads/master | 2020-04-17T20:36:51.720891 | 2017-04-23T10:00:08 | 2017-04-23T10:00:08 | 66,181,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,355 | py | import os
import sys
sys.path.append("/usr/bin") # necessary for the tex fonts
sys.path.append("../Python modules/") # necessary for the tex fonts
import scipy as sp
import scipy.misc
import matplotlib.pyplot as plt
import h5py
import numpy as np
from BackgroundCorrection import *
import matplotlib.cm as cm
import scip... | [
"claiello@gmail.com"
] | claiello@gmail.com |
48050f4660f52648eea4935b898f348604a3dd8d | 82ef9a0dd1618a28770597227acfc0150b948af2 | /wearnow/gui/editors/displaytabs/notebackreflist.py | 08022d00f1eb026cafa2cb4ba841b487ad4196ea | [] | no_license | bmcage/wearnow | ef32a7848472e79e56763b38551835aa97864b21 | c8dfa75e1ea32b0c021d71c4f366ab47104c207e | refs/heads/master | 2021-01-16T00:27:59.597812 | 2016-01-19T11:55:03 | 2016-01-19T11:55:03 | 37,195,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | #
# WearNow - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at yo... | [
"benny.malengier@gmail.com"
] | benny.malengier@gmail.com |
51edc73fef326593e88f5869e483e8ee2ac7edec | f72c9e46af5ce5ac738693daf65e67a0962a229a | /sdk/lusid/models/term_deposit_all_of.py | 96afcca4bb2ceee362d5973da47c3cb76093addc | [
"MIT"
] | permissive | finbourne/lusid-sdk-python | db8ce602f8408169f6583783c80ebbef83c77807 | 32fedc00ce5a37a6fe3bd9b9962570a8a9348e48 | refs/heads/master | 2023-08-29T18:22:49.488811 | 2023-08-29T15:57:26 | 2023-08-29T15:57:26 | 125,082,278 | 11 | 11 | NOASSERTION | 2023-04-28T07:16:48 | 2018-03-13T16:31:54 | Python | UTF-8 | Python | false | false | 14,288 | py | # coding: utf-8
"""
LUSID API
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 1.0.463
Contact: info@finbourne.com
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getful... | [
"concourse@finbourne.com"
] | concourse@finbourne.com |
dc20d47c77e072ae91e749eeca8edf20f26f99a1 | 4f7aa44d21ae38093869e79e10f5cdc8842d48b7 | /05-mylibrary-lab-next/presentation/app_main_window.py | 8979bca4b7ccccd07d557f3862a560c0266e63e2 | [
"Apache-2.0"
] | permissive | iproduct/intro-python | 31e802c2c21a4df3361656f12d267ec52c2d6564 | 7e08e144da2907fcf45dc734ab4e896631625d75 | refs/heads/master | 2023-02-19T11:42:37.522624 | 2023-02-13T15:54:03 | 2023-02-13T15:54:03 | 128,980,155 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | from tkinter import *
from tkinter import ttk, messagebox
from dao.book_repository_json import BookRepositoryJson
from presentation.add_edit_book_dialog import AddEditBookDialog
from utils.tkinter_utils import print_hierarchy, get_ceter_window_left_top
MAIN_WIDTH = 800
MAIN_HEIGHT = 600
class AppMainWindow(ttk.Fram... | [
"office@iproduct.org"
] | office@iproduct.org |
0c33ff75f22af311c81bd6cebc6adb11379e4481 | 7124a12aee78af2cf3cdd5adbe38debd07fda07b | /Simulaciones/Proyecto_4_2/Scripts/Potencial_Graphics.py | 3da508c74cc29aebc52f670a7ed4bf17cbdb5dd2 | [] | no_license | giovannilopez9808/Notas_Agosto_2020 | e52ac9dd150037d0a8981fb765bcf0a7e73ed04b | 5fc8d5baabbe9ed5f3ee1b33c59e7ae4e5aff526 | refs/heads/master | 2023-02-01T07:50:38.559046 | 2020-12-14T05:18:34 | 2020-12-14T05:18:34 | 293,427,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | import numpy as np
import matplotlib.pyplot as plt
#<-----------------------------Potencial--------------------->
def potential_lj(r,e,sigma):
v=4*e*((sigma/r)**12-(sigma/r)**6)
return v
#<----------------------------Fuerza--------------------->
def force_lj(r,e,sigma):
f=4*e*(12*sigma**12/r**13-6*s... | [
"giovannilopez9808@gmail.com"
] | giovannilopez9808@gmail.com |
54282bbde50ae71e65e4fb61139e2c5fb38a6790 | b953909018be86cf8cdf328e2b13395c1dbe28c0 | /apps/yt_barcode/urls.py | 63a531af7e694e0637fd5fcc51edabbfa4bd2f2f | [] | no_license | wangyong240/mes | 06ce26d146aebe0b0103dda4fdd198c3cefc6014 | 12d7321c1b96ae0fdd8f26029462e1943a500c01 | refs/heads/master | 2023-01-01T13:29:29.853063 | 2020-09-19T01:19:22 | 2020-09-19T01:19:22 | 296,762,233 | 1 | 0 | null | 2020-09-19T01:20:05 | 2020-09-19T01:20:04 | null | UTF-8 | Python | false | false | 95 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('yt_barcode.views',
)
| [
"70498306+wangyong240@users.noreply.github.com"
] | 70498306+wangyong240@users.noreply.github.com |
edcd5818de24ad48b4dd91248306c61d7ac34f7b | 44b6bc41fe8e424196f98dbc5b2f050c1f9645f8 | /platforms/windows/dos/16230.py | e8600ad68d652ef330e3daac086438f90ca632dd | [] | no_license | angeloobeta/exploit-database | 21283dd8549f47836a35af6f3ea7b63b8dba11ea | 43f3d9e94c01a7f51e30561a96214af231dd9d36 | refs/heads/master | 2021-08-08T21:07:38.794539 | 2017-11-11T05:01:28 | 2017-11-11T05:01:28 | 110,380,452 | 0 | 1 | null | 2017-11-11T21:09:05 | 2017-11-11T21:09:04 | null | UTF-8 | Python | false | false | 3,696 | py | #!/usr/bin/python
#
#
# xxx xxx xxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxx
# xxx xxx xxxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxxx
# xxx xxx xxxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxxx
# xxxxx xxx x... | [
"info@exploit-db.com"
] | info@exploit-db.com |
e8cc7618e6732e6c875b28838d8f4542ddb359da | addfc0757e0b620fd27858853aab3996fe37b7fe | /backend/talkback_21080/wsgi.py | e2190e49df445abc47705e96b12874299248f2b7 | [] | no_license | crowdbotics-apps/talkback-21080 | c8692837edef8591f29b1d72706b732fb72a7aba | e34baaaf37582c5ace5bb79c7091139c1ca0ebde | refs/heads/master | 2022-12-27T08:45:51.269041 | 2020-10-05T00:06:09 | 2020-10-05T00:06:09 | 301,252,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for talkback_21080 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('DJANG... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ed1e78002b6d5631a704ce698be181c232c0acf8 | a475b8dfdbc90a57470b5be8dfd6fa2367de73f3 | /testproj/testapp/models.py | f7132e89fc9556e3630c00942b04b806b562cece | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Moliholy/django-tastypie-crust | 9080be75726385716d75280f68cef7ad25b90761 | 520154aa36aa4ba9e132c4ea1d042ea8bcb235b2 | refs/heads/master | 2020-03-18T19:26:20.528764 | 2018-05-28T12:10:52 | 2018-06-12T14:53:26 | 135,154,352 | 0 | 0 | null | 2018-05-28T11:53:52 | 2018-05-28T11:53:51 | null | UTF-8 | Python | false | false | 508 | py | #!/usr/bin/env python
# -*- coding: utf-8
from django.db import models
from django.utils.translation import ugettext, ugettext_lazy as _
class Homepage(models.Model):
user = models.ForeignKey('auth.User')
url = models.URLField()
class Meta:
verbose_name = _('Homepage')
verbose_name_plura... | [
"uranusjr@gmail.com"
] | uranusjr@gmail.com |
a31dfce1ad8bf27319d90f5801053f00d781a11e | 2ffd40f761b266a5f033fefb9faff4ab9bfa8c89 | /bin/chardetect | 9a8a190a8f753c149aa7f8a02563c8d8ecf4d214 | [] | no_license | Sasikumar-P/facebook-api | 6850df1a9bf7dc9837853f74e28a11b4a15c585b | bc1ae820597916cb3e534e772b4c9e366b4091cf | refs/heads/master | 2021-09-01T22:57:39.298239 | 2017-12-29T02:36:13 | 2017-12-29T02:36:13 | 115,678,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/home/sasi/Desktop/graphapi/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"skp.guptha@gmail.com"
] | skp.guptha@gmail.com | |
88d961648002f0954e825a25e4a6df90ad2cc19a | 84c9a6fb5e18741f14a55d0d737e2a556383770d | /venv/Lib/site-packages/w3af/plugins/auth/detailed.py | e59db0c2a76390e6865939efe4857822f81e8d51 | [] | no_license | AravindChan96/Vulcan | 638a1db2f84df08bc50dd76c7f142014d529fbec | 5548a6f36f04108ac1a6ed8e707930f9821f0bd9 | refs/heads/master | 2022-11-05T15:05:54.224578 | 2020-06-19T20:44:14 | 2020-06-19T20:44:14 | 273,396,348 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,305 | py | """
detailed.py
Copyright 2011 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope that it... | [
"aravindchan.96@gmail.com"
] | aravindchan.96@gmail.com |
b2a5716e29cbd359293a072d81733438f86495a2 | 52e45c26c110c42de79383e8034fd280fd82a02f | /spatialdata/spatialdb/GravityField.py | 13f3d151d4951e63b963de4d5d79d09bf78493dc | [
"MIT"
] | permissive | geodynamics/spatialdata | 1ae1d2583aae356e9e68cd434c1f17820b49d127 | 2da6aad61c136f0e15f066aaea5fd31851de112f | refs/heads/main | 2023-08-15T07:22:17.676228 | 2023-07-28T03:32:07 | 2023-07-28T03:32:07 | 12,651,854 | 6 | 20 | MIT | 2023-07-28T03:32:09 | 2013-09-06T18:52:14 | C++ | UTF-8 | Python | false | false | 2,821 | py | # ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copyright (c) 2010-2023 University of California, Davis
#
# See LICENSE.md for lice... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
6881aba7454b96576813d8e61f3828f6399b7b00 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/XXTo4J/XXTo4J_M-50_CTau-1000mm_TuneCUETP8M1_13TeV_pythia8_cff.py | f20e41d229265892646774f2207a200192607813 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 2,894 | py | COM_ENERGY = 13000. # GeV
MASS_POINT = 50 # GeV
CROSS_SECTION = 1 # pb
CTAU_POINT = 1000 # mm
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
... | [
"dnash@cern.ch"
] | dnash@cern.ch |
a31d45fd9b74a17216e283571c46b257948e4c6a | 589d9fa803abec59a8375b925d7ec51d345fc227 | /coolkit/lib/Contest.py | 90ccd8a06e5c6881eaa6cc858f4378e4cb14c919 | [
"MIT"
] | permissive | kishorerabha/CoolKit | aff2d969cc7dbd4fce86b5b478979e8b7460790d | d411822b29dfbabdaaeab844716767810f3b1e25 | refs/heads/master | 2020-03-31T04:54:49.984680 | 2018-10-06T01:26:47 | 2018-10-06T11:06:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,679 | py | #!/usr/bin/env python3
import os
import sys
try:
import shutil
import grequests as grq
from terminaltables import AsciiTable
from bs4 import BeautifulSoup
except:
err = """
You haven't installed the required dependencies.
"""
import sys, traceback
traceback.print_exc()
print(err... | [
"srbcheema1@gmail.com"
] | srbcheema1@gmail.com |
a445d7c740160a7e33848149248180741d45af83 | 077a17b286bdd6c427c325f196eb6e16b30c257e | /00_BofVar-unit-tests/07_32/remenissions-work/exploit-BofVar-3.py | b8ea6ed45800852876c676f658926951160fa819 | [] | no_license | KurSh/remenissions_test | 626daf6e923459b44b82521aa4cb944aad0dbced | 9dec8085b62a446f7562adfeccf70f8bfcdbb738 | refs/heads/master | 2023-07-08T20:25:04.823318 | 2020-10-05T06:45:16 | 2020-10-05T06:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from pwn import *
import time
import sys
import signal
import sf
target = process("./chall-test_BofVar-07-x86")
gdb.attach(target, execute="verify_exploit")
bof_payload = sf.BufferOverflow(arch=32)
bof_payload.set_input_start(0x5a)
bof_payload.add_int32(0x28, 0xdead)
bof_payload.add_int32(0x24, 0xdead)
bof_payload.a... | [
"ryancmeinke@gmail.com"
] | ryancmeinke@gmail.com |
f69ce16005e44fc509989b7f6e007b21ae1b0ae5 | ff7e133648566b8a705cb5a214be8a82df5101d9 | /algorithm/work_1/test.py | a15a7f356574f4bf7509cf40eb11373a9185fc38 | [] | no_license | hoik92/Algorithm | 231433193ecba4a48ef830cab2c5b0115fa7246d | 4085b83a692a211e10503949d4518205d404dcaf | refs/heads/master | 2020-04-27T06:27:06.777255 | 2019-04-18T23:48:30 | 2019-04-18T23:48:30 | 174,108,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | import sys
sys.stdin = open('input.txt', 'r')
def mx_mn(T):
mxidx, mnidx = 0, 0
for i in range(len(T)):
if T[mxidx] < T[i]:
mxidx = i
if T[mnidx] > T[i]:
mnidx = i
return mxidx, mnidx
for tc in range(1, 11):
D = int(input())
T = list(map(int, input().split()... | [
"hoik92@nate.com"
] | hoik92@nate.com |
e529eec44443a0babb5409cc279d28f8501b184d | c549044b12e835827258d693f21e91cc614b303e | /venv/lib/python3.8/site-packages/gpiozero/pins/rpigpio.py | 8a085c8302e2d43241f444f2e47b8d5b6cb54bab | [] | no_license | Abbalon/PiHome-SmartLock | 5484038f87199bf9d341485507474a7c5c8f1519 | 9ad6f04e8da327cc26c51b177a9ce252d7eabac9 | refs/heads/master | 2022-12-14T08:40:07.706787 | 2020-09-13T17:43:18 | 2020-09-13T17:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,757 | py | # GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins
# Copyright (c) 2015-2019 Dave Jones <dave@waveform.org.uk>
# Copyright (c) 2016 Andrew Scheller <github@loowis.durge.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following ... | [
"montbs@gmail.com"
] | montbs@gmail.com |
0c233a30fd722986b1ae834d7faed0df4ed8cd18 | a40d2a4c1704c080b0454805218b7dd07f28218c | /yabgp/tests/unit/message/attribute/test_extcommunity.py | bb67218e7535e1898aafbbbca3858bf10dd9a231 | [
"Apache-2.0"
] | permissive | plucena24/yabgp | e524b2c58b262ddba868a93cbbab3c5a6f3419aa | bc817ed74b21743797faee565fe54efb1f4b85c7 | refs/heads/master | 2023-08-21T02:19:20.937686 | 2015-08-04T09:30:49 | 2015-08-04T09:30:49 | 40,301,596 | 0 | 0 | Apache-2.0 | 2023-08-14T21:29:51 | 2015-08-06T11:35:33 | Python | UTF-8 | Python | false | false | 4,466 | py | # Copyright 2015 Cisco Systems, 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 requi... | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
ff20799864d9ab1630cd84985b26232f955a7bad | 8ed9296cf14cbd48ad6c6ba977a4eddfb6158ec3 | /src/idealised/simple_physics/simple_physics_custom.py | f427bcf74ae3c3f900988a4ea169b9ce6119018d | [
"BSD-3-Clause"
] | permissive | JoyMonteiro/CliMT | 51191c8e44eef28057971dd29de8e40c0bd3ef97 | 0949ed3a3a125638072351d7277ae4b956956d35 | refs/heads/master | 2021-04-09T17:45:56.369908 | 2016-10-28T08:32:26 | 2016-10-28T08:32:26 | 28,734,117 | 2 | 0 | null | 2015-01-03T03:45:23 | 2015-01-03T03:45:22 | null | UTF-8 | Python | false | false | 6,114 | py | import numpy as np
from component import Component
import _simple_physics_custom as phys
from grid import Grid
class simple_physics_custom(Component):
"""
Interface to the simple physics package. This is a modified version which allows the
user to switch off any of the three routines : large scale condensa... | [
"joy.merwin@gmail.com"
] | joy.merwin@gmail.com |
4b642e6a61f839f7027c9f80ffb3381877982af2 | d63c503df093f4a6f2e4f5fa796c4864a4418461 | /subarray.py | 27c8cbb61999db7937c16409f9634e6da000b139 | [] | no_license | 99rishita/Geeksforgeeks | 963e4c9d484cd615e7ffb7f640d712f15cb7ad3e | ece2da9e1a5f39a54de4af4ee13913e67b10745e | refs/heads/master | 2022-12-29T04:28:11.004559 | 2020-10-02T18:24:39 | 2020-10-02T18:24:39 | 277,882,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | def subarraysum(arr, k):
sum = 0
for i in range(0, len(arr)):
sum = arr[i]
#j = i+1
for j in range(i+1, len(arr)):
sum = sum + arr[j]
if sum > k:
break
if sum == k:
print(i+1)
print(j+1)
r... | [
"pinnintirevati999@gmail.com"
] | pinnintirevati999@gmail.com |
edcde8943da6aedbe6d9cb618303471335c58763 | 2da355c3e63d911995bd5661100d858ceeae5493 | /python_data/Chapter 7/P/P-7.45.py | 264f3ee6748288442c770f7725f1dce5236145c1 | [] | no_license | allenxzy/Data-and-Structures-and-Alogrithms | 1f72e7471f7d8f8982985986eda57f896e73087d | 5977ea9434b42032069b24a538f455067ef38283 | refs/heads/master | 2021-01-16T21:46:24.199337 | 2016-12-14T08:05:40 | 2016-12-14T08:05:40 | 60,823,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | #-*-coding: utf-8 -*-
"""
An array A is sparse if most of its entries are empty (i.e., None). A list
L can be used to implement such an array efficiently. In particular, for
each nonempty cell A[i], we can store an entry (i,e) in L, where e is the
element stored at A[i]. This approach allows us to represent A using O(... | [
"xuzhiyuan0317@live.com"
] | xuzhiyuan0317@live.com |
92d622b8979f7189633fda47981ae316e0f50bb1 | c4efe9f6416f989524fafb128525a0a71272f680 | /python/python-test.py | a0fc2d56f0ca9636405a5daa8bf9512c4329afe5 | [] | no_license | drautb/sketchbook | dcc6eb586ffe739ee21ab74aa6b045073d38fc6b | 12255fc3cc5c2cbccbc174333c76c339d9846d67 | refs/heads/master | 2023-07-27T10:05:40.737633 | 2023-07-25T19:18:32 | 2023-07-25T19:18:32 | 28,785,534 | 4 | 3 | null | 2023-03-07T03:15:24 | 2015-01-04T20:46:06 | C++ | UTF-8 | Python | false | false | 1,712 | py | """
Determine which elements in each array are not present in the other.
Numbers in array 1 that aren't in array 2:
<num1> <num2> <num3>...
Numbers in array 2 that aren't in array 1:
<num1> <num2> <num3>...
"""
def reconcileHelper(arr_a, arr_b):
in_a_not_b = []
in_b_not_a = []
# Some effort is wasted by ... | [
"drautb@gmail.com"
] | drautb@gmail.com |
cf57d9388cb7e3d352c181533f5217e8ac7d4f9a | 95d73f1daebb98fe6707b999c9763f3b84d418a4 | /cms/tests/mail.py | 1b5281d7451060ae56a54f9cbb7b5364631a6269 | [] | no_license | leotop/django_ukrhim | 8e01e284076878c7691986d5e8d056795d2bb900 | e5a60a79f441ae732350e518f9b71e2724dc010a | refs/heads/master | 2021-01-22T15:51:27.617651 | 2015-01-23T11:00:37 | 2015-01-23T11:00:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
from cms.api import create_page_user
from cms.test_utils.testcases import CMSTestCase
from cms.utils.mail import mail_page_user_change
from django.core import mail
from django.contrib.auth.models import User
class MailTestCase(CMSTestCase):
def setUp(self):
mail.outbox ... | [
"root@ip-172-31-19-251.us-west-2.compute.internal"
] | root@ip-172-31-19-251.us-west-2.compute.internal |
060ffffdae42855cbce9c3ae529ae8e62c711b23 | 8b187f3d60446b39a8f2ba976688ed493798fc64 | /portal/migrations/0007_note.py | 755564f8c5a2e3459cdfe33a6edeb0a0548dbaf1 | [] | no_license | JackSnowdon/JobHunter | 4eb8c5bd2e5cf7c97ca5b29f697e8f95d98a5bb3 | a2c87a6a7b14fd5231b6d99502a638ea702015a4 | refs/heads/master | 2022-12-19T07:27:39.354155 | 2020-10-02T17:32:00 | 2020-10-02T17:32:00 | 297,356,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # Generated by Django 3.1.1 on 2020-09-25 15:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('portal', '0006_job_last_updated'),
]
operations = [
migrations.CreateModel(
name='Note',
... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
054f5b6be278fe0dba1a08e780741e122cf03e7b | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/MSSM_HiggsToMuMu/fragment_mhmodp_MA200_tb35_bbH.py | cdf690cfcd661d342bf12d8168bd138c8e77a780 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 16,464 | py | COM_ENERGY = 13000.0 # GeV
CROSS_SECTION = 1 # pb
PROCESS = 'HiggsBSM:gg2H2bbbar = on'
SLHA_TABLE = """BLOCK SPINFO
1 FeynHiggs
2 2.12.0
2 built on ott 13, 2016
BLOCK MODSEL
1 0 # Model
2 1 # GridPts
3 0 # Content
... | [
"pietro.vischia@gmail.com"
] | pietro.vischia@gmail.com |
e691a2e11a5d7b6d2a79e68b58420dbe79373ac5 | 35e6598c8f07e686ef4ce431800ece28d2797568 | /analysis/interactive_dry_bal_optimisation.py | a7722cf5881b54476a2e0db7eef13a82f2802764 | [] | no_license | akuhnregnier/python-inferno | c7badbed505da602c98180e70aff05061dd1a199 | 424168231f553d0f872f1a2ec29c26bf3d114f08 | refs/heads/main | 2023-04-16T03:15:27.427407 | 2023-01-28T19:15:05 | 2023-01-28T19:15:05 | 368,221,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,052 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pathlib import Path
import matplotlib.pyplot as plt
import numpy as np
from loguru import logger
from matplotlib.widgets import Slider
from numba import njit, prange
from numpy.testing import assert_allclose
from scipy.optimize import minimize
from tqdm import tqdm
... | [
"ahf.kuhnregnier@gmail.com"
] | ahf.kuhnregnier@gmail.com |
d932f0e7d08cd74e5251f86ce83becb224158a88 | fdf0b68373e003bd9f4f65e1194e3e79d7e18f4c | /day2/class_property.py | d8071ea3cfd35a66da48ab8039b7eb7fe7b53d08 | [] | no_license | artheadsweden/python_advanced_nov_17 | 79b721077da3ba3bb630fde53832071d4e71c3ae | 20f9d99ba4b996414b36fb0efe7244895b3fd34b | refs/heads/master | 2021-03-24T11:08:43.733521 | 2017-11-22T23:32:23 | 2017-11-22T23:32:23 | 111,556,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | class P:
def __init__(self, x):
self.x = x
@property
def x(self):
return self.__x
@x.setter
def x(self, x):
if x < 0:
self.__x = 0
elif x > 1000:
self.__x = 1000
else:
self.__x = x
def main():
p = P(5000)
print(p... | [
"joakim@arthead.se"
] | joakim@arthead.se |
037b23778dce32e14f051a0ac32f92024cf4db53 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/rtflt/rule.py | a30362b62695f20e291ad7aa5994ee5f6c75ad0d | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 4,052 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
8fdbac9d7d5f752ea4c0a45d3df0c4e0601c2464 | c21faf85627b1cfd96494aac73cc40e5f11ebb46 | /results/test_298.py | e6108f25b7e2a9da4c59a316828f65a5060a581a | [] | no_license | ekkya/Cyclomatic-Complexity | d02c61e009087e7d51738e60605875741532b878 | 172db2efdd974f5abad964e335552aec974b47cb | refs/heads/master | 2021-08-28T17:13:14.718314 | 2017-12-12T22:04:13 | 2017-12-12T22:04:13 | 112,042,202 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 74,019 | py | """Get the number of each character in any given text.
Inputs:
A txt file -- You will be asked for an input file. Simply input the name
of the txt file in which you have the desired text.
"""
import pprint
import collections
def main():
file_input = input('File Name: ')
with open(file_input, 'r') as info... | [
"ekkya@tcd.ie"
] | ekkya@tcd.ie |
38e8edcda1840554a4bd8c5716370d8c2e60b1b9 | d04c8d0b8edb5ec06926b35d96bd995245b3b997 | /courseEra1/bin/pip3.5 | 0526a43b2020d4bc760f27fa2c1d14d3672bc537 | [] | no_license | thesharpshooter/algo | e2c836bed68f3455c4f6a63464c0f7bf17046a50 | 335f0b1621acb53ac058716953b69d8f5df9a925 | refs/heads/master | 2021-01-12T05:31:12.063742 | 2017-02-07T17:42:56 | 2017-02-07T17:42:56 | 77,942,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | 5 | #!/Users/silicon/Desktop/algo/courseEra1/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"prakash9266@gmail.com"
] | prakash9266@gmail.com |
5eedc1be3759f58a0165ca8beeea10d2d67d05cc | 4bab98acf65c4625a8b3c757327a8a386f90dd32 | /ros2-windows/Lib/site-packages/geometry_msgs/msg/_quaternion.py | 012d2c21882f9d81a43e5720d9d1c8ee58681265 | [] | no_license | maojoejoe/Peach-Thinning-GTRI-Agricultural-Robotics-VIP | e2afb08b8d7b3ac075e071e063229f76b25f883a | 8ed707edb72692698f270317113eb215b57ae9f9 | refs/heads/master | 2023-01-15T06:00:22.844468 | 2020-11-25T04:16:15 | 2020-11-25T04:16:15 | 289,108,482 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,369 | py | # generated from rosidl_generator_py/resource/_idl.py.em
# with input from geometry_msgs:msg\Quaternion.idl
# generated code does not contain a copyright notice
# Import statements for member types
import rosidl_parser.definition # noqa: E402, I100
class Metaclass_Quaternion(type):
"""Metaclass of message 'Qu... | [
"aidencfarrar@gmail.com"
] | aidencfarrar@gmail.com |
2befce3106817fc0f55d94063b2ac6ba3355720f | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /networks371.py | 69994056fe8fa748472cd893751fdb81bc410798 | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,082 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
__version__ = 205
# Number of wires in the CDC
n_wires = 3606
# Number of continuous features (E, t, dca)
n_features = 3
class Gen(nn.Module):
def __init__(self, ngf, latent_dims, seq_len, encoded_dim):
super().__init__... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
c79fdf679e8dbf8e013d21dbb90d7bd6b3a07be2 | 84c4474a88a59da1e72d86b33b5326003f578271 | /saleor/graphql/checkout/mutations/checkout_line_delete.py | 68358da32752ad166cc6b8b7cdce9fa3ba1035cd | [
"BSD-3-Clause"
] | permissive | vineetb/saleor | 052bd416d067699db774f06453d942cb36c5a4b7 | b0d5ec1a55f2ceeba6f62cf15f53faea0adf93f9 | refs/heads/main | 2023-07-20T02:01:28.338748 | 2023-07-17T06:05:36 | 2023-07-17T06:05:36 | 309,911,573 | 0 | 0 | NOASSERTION | 2020-11-04T06:32:55 | 2020-11-04T06:32:55 | null | UTF-8 | Python | false | false | 2,754 | py | import graphene
from ....checkout.fetch import fetch_checkout_info, fetch_checkout_lines
from ....checkout.utils import invalidate_checkout_prices
from ....webhook.event_types import WebhookEventAsyncType
from ...core import ResolveInfo
from ...core.descriptions import ADDED_IN_34, DEPRECATED_IN_3X_INPUT
from ...core.... | [
"noreply@github.com"
] | vineetb.noreply@github.com |
d4077d7a3d2d6d62fed0c16b5ce02065c265119b | ecd25c36474ecf404a32f2f0096b5a6898e4c396 | /python_stack/django/django_fullstack/semi_restful_tvshows/semi_restful_tvshows_app/migrations/0001_initial.py | 68344c74cee04d8e0afc825cf43c38bae81458fc | [] | no_license | matthew-le/Coding_Dojo_Bootcamp | cd7b4aa8e231db372da05a0a5444114b07fbfabf | 6d433d5305d2d8f4ea485206895d8f84bedeb59d | refs/heads/main | 2023-06-13T23:05:23.827556 | 2021-07-23T23:56:35 | 2021-07-23T23:56:35 | 388,947,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # Generated by Django 2.2 on 2021-07-11 20:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Show',
fields=[
('id', models.AutoField(auto_... | [
"you@example.com"
] | you@example.com |
b8749e25c58da9a903feb5edc84c2d6ed8ebda67 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /third_party/blink/web_tests/external/wpt/bluetooth/generate_test.py | 881f7dbcb73af73b18b447f5cea142f53ba2fd36 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 1,927 | py | #!/usr/bin/python
# Copyright 2016 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.
#
# TODO(50903): Delete the file in LayoutTests/bluetooth after all the tests have
# been migrated to this directory.
"""Test that the set ... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
f4d3f9c392925ef0d5946029ba07286699ed8e90 | ed30d9b54ad58d2c134b465a3cb4008426aa6a72 | /Transpile/transform_expression.py | 48c255faed874ce20875362dc466e6685e7c4963 | [] | no_license | CaspianA1/S2CPP | b0a026356887f9e0590518db7f242cc8d97530fc | 808c426c2784018efd507b207702494ac85beef1 | refs/heads/master | 2022-12-07T06:50:41.560949 | 2020-09-06T19:56:00 | 2020-09-06T19:56:00 | 287,172,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | # transform_expression.py
common_ends = {"+": "add", "-": "sub", "*": "mul", "/": "div"}
def function_is_present(function, scheme_expr):
for argument in scheme_expr:
if isinstance(argument, list):
return function_is_present(argument, scheme_expr)
elif argument == function:
return True
def make_c_expr(sche... | [
"you@example.com"
] | you@example.com |
e07dde273c02119900fb16720a9652c7291bb2e1 | b722b5a07cf9596b251e0148dd4e2358e1174071 | /Intro to CS with Python/src/homework/listing1710.py | 6628163a46b23740dca568e28043d497846523d9 | [] | no_license | p3ngwen/open-notes | 7c894176ece3a1b8c2b1e2b336cdb3099d5d0f67 | 33679b64f5e77289798687337ef7db5503651c21 | refs/heads/master | 2023-07-08T02:43:59.431794 | 2021-08-10T16:34:56 | 2021-08-10T16:34:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | import errno
try:
fp = open( "NotAFile" )
fp.close()
except IOError as ex:
if ex.args[0] == errno.ENOENT:
print( "File not found!" )
else:
print( ex.args[0], ex.args[1] ) | [
"6869736572@f-m.fm"
] | 6869736572@f-m.fm |
c6e064f8e29417bbaee52d1071fb497f39e5f4d3 | 0d5c77661f9d1e6783b1c047d2c9cdd0160699d1 | /python/paddle/fluid/layers/io.py | f3ab47c96b1caa2facfd6d191af014b4c7380cbc | [
"Apache-2.0"
] | permissive | xiaoyichao/anyq_paddle | ae68fabf1f1b02ffbc287a37eb6c0bcfbf738e7f | 6f48b8f06f722e3bc5e81f4a439968c0296027fb | refs/heads/master | 2022-10-05T16:52:28.768335 | 2020-03-03T03:28:50 | 2020-03-03T03:28:50 | 244,155,581 | 1 | 0 | Apache-2.0 | 2022-09-23T22:37:13 | 2020-03-01T13:36:58 | C++ | UTF-8 | Python | false | false | 28,325 | py | # Copyright (c) 2018 PaddlePaddle 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 app... | [
"xiaoyichao@haohaozhu.com"
] | xiaoyichao@haohaozhu.com |
7d95da30e61f2d12adca17c4cdd28affa68b67dc | c7d7dfa5ac23b940e852a67155364439d9069486 | /website_form_attachment/__init__.py | 668228df411b10356d3a8de52f09395638f6ead1 | [] | no_license | shurshilov/odoo | d163f6c939bcbfb36bdf83eeeeffca368f0a4722 | 8099e62254b7f1e113be7b522585dbc352aea5a8 | refs/heads/16.0 | 2023-09-04T03:02:31.427240 | 2023-09-03T16:25:28 | 2023-09-03T16:25:28 | 89,852,559 | 20 | 43 | null | 2023-09-03T06:30:22 | 2017-04-30T13:32:08 | JavaScript | UTF-8 | Python | false | false | 126 | py | # Copyright 2019 Shurshilov Artem
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from . import models
| [
"shurshilov.a@yandex.ru"
] | shurshilov.a@yandex.ru |
5a931a1392b981326d9106633ad96940ac2d9671 | 8d5337e7132ae3980bda3bc0ed811207ca79b5b7 | /search/icecreamParlour.py | a61e3f9004182b4836c1f518cb20e678620a38f0 | [] | no_license | thesharpshooter/hackerrank | 16e7c565053a4d36f0a293c0f8af631cee591424 | 2cfec286e71465edd6603f6bcee608c764a086ec | refs/heads/master | 2021-07-11T09:21:57.838631 | 2017-10-06T05:22:31 | 2017-10-06T05:22:31 | 104,779,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
def get(arr,m,n):
arr = sorted([[arr[i],i] for i in range(n)],key = lambda x :x[0])
i = 0
res = [None,None]
diff = float("inf")
while i < n-1 and arr[i][0] < m:
temp = m-arr[i][0]
j = i+1
while j < n and te... | [
"prakash9266@gmail.com"
] | prakash9266@gmail.com |
5f86e01d9b34bd9ecb0e5f8495151675c3e1367b | 10bf47e8efe8a6e2eb2e237c5634471ba461483b | /voting/urls.py | 8a998b355a2327ae6453160d9b047e40717c72e5 | [] | no_license | swciitg/IITG_General_Elections | d9d4001fa8b65feabc79284ae1df7d078e089712 | e35e29a1f91e07f3499a5613c091db28b2a07656 | refs/heads/master | 2020-05-06T15:31:00.797537 | 2019-04-08T08:02:41 | 2019-04-08T08:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | """voting URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"beingtmk@gmail.com"
] | beingtmk@gmail.com |
d9f83c10fa19003084ba46e89c00610f56fc49a9 | 9b4fe9c2693abc6ecc614088665cbf855971deaf | /881.boats-to-save-people.py | b1ee51a5ebe9936be3be41a07b61386d05ccc993 | [
"MIT"
] | permissive | windard/leeeeee | e795be2b9dcabfc9f32fe25794878e591a6fb2c8 | 0dd67edca4e0b0323cb5a7239f02ea46383cd15a | refs/heads/master | 2022-08-12T19:51:26.748317 | 2022-08-07T16:01:30 | 2022-08-07T16:01:30 | 222,122,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | #
# @lc app=leetcode id=881 lang=python
#
# [881] Boats to Save People
#
# https://leetcode.com/problems/boats-to-save-people/description/
#
# algorithms
# Medium (42.90%)
# Total Accepted: 12.4K
# Total Submissions: 28.9K
# Testcase Example: '[1,2]\n3'
#
# The i-th person has weight people[i], and each boat can ca... | [
"windard@qq.com"
] | windard@qq.com |
84d04e0a67a92315abff10fcedcff85bbe31b3a0 | 9a819fc91e17ef9a44e45cf68e76cf696381d06d | /Lambda/canary.py | 03732e914a31ca284fdfaa6e38ee4352ac56a773 | [] | no_license | Gautam3994/Dark-Knight | aef1d6383e0785130db75e80ed40f544a120579e | 327b2d58851a42da1b707addea73e40fac6a61cc | refs/heads/master | 2022-12-01T11:58:39.857379 | 2020-09-05T18:07:51 | 2020-09-05T18:07:55 | 203,866,327 | 0 | 1 | null | 2022-11-24T09:16:18 | 2019-08-22T20:14:43 | Python | UTF-8 | Python | false | false | 598 | py | import requests
import os
import datetime
SITE = os.environ['site']
EXPECTED = os.environ['expected']
def validate(res):
return EXPECTED in res
def lambda_handler(event, context):
print(f"Test the site{SITE} at the time {event['time']}")
response = requests.get(url="https://www.amazon.in", headers={'Us... | [
"gautam3994@gmail.com"
] | gautam3994@gmail.com |
3159b23be1a8a592afc5451129094bdd839623f7 | 34f6120035bfea1f675eb5dd98d59e81209d5c5e | /h2o-py/tests/testdir_algos/gbm/pyunit_weights_var_impGBM.py | 7ea27aa39c4127b00f5a8f9a0451c30aaf0009ea | [
"Apache-2.0"
] | permissive | Pure-Mind/h2o-3 | f5b5b0bf3d2856fee0719adf2754c1af719e5950 | 508ad0e28f40f537e906a372a2760ca6730ebe94 | refs/heads/master | 2021-01-17T22:56:02.372211 | 2015-08-09T02:52:34 | 2015-08-09T03:31:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,163 | py | import sys
sys.path.insert(1, "../../../")
import h2o
import random
def weights_var_imp(ip,port):
# Connect to h2o
h2o.init(ip,port)
def check_same(data1, data2, min_rows_scale):
gbm1_regression = h2o.gbm(x=data1[["displacement", "power", "weight", "acceleration", "year"]],
... | [
"eric.eckstrand@gmail.com"
] | eric.eckstrand@gmail.com |
5a792baad7875ecfd9cb09eb33eff687dbab1295 | 1699300e1225f0994fbfd5e13a7eb4436a5df14d | /03_SC_Track/02_Original_V_624_Joho/Make_SLURM_submission_script.py | 6ff6b2d5f59e75247f2e258efde560ac32922702 | [
"MIT"
] | permissive | HaroonRafique/PyORBIT_MD4224 | 26307a60ed79f3e170fbd655eb8cbe8cc9a0dfa9 | 6f68a80b2f8bf1cbeb9e2fc840925efe8a8b5672 | refs/heads/master | 2023-04-25T13:27:49.756836 | 2020-08-25T10:26:07 | 2020-08-25T10:26:07 | 215,249,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,313 | py | #!/usr/bin/env python
# Python script to create a SLURM submission script for PyORBIT
# 21 March 2019 Haroon Rafique CERN BE-ABP-HSI
import os
#-----------------------------------------------------------------------
# SETTINGS
#-----------------------------------------------------------------------
script_name =... | [
"haroon.rafique@protonmail.com"
] | haroon.rafique@protonmail.com |
1beabcb56dd1176bcf5845a34ee13550fc79898d | 6a612dba404176b7e180dfb2791353701c82a3bf | /processors/backsubtractors.py | bce6b46663e1146affff7a04f9cff7a61ad6f29c | [] | no_license | tulare/smile-in-the-light | d15a3e142974a055215b3eb9ac8dd1e5e57fdb1e | 1250579f015fa4cb8c4593976e27579e5ed5515d | refs/heads/master | 2020-05-27T07:57:29.617680 | 2019-06-26T10:31:39 | 2019-06-26T10:31:39 | 188,537,874 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | # -*- encoding: utf8 -*-
import cv2 as cv
import numpy as np
from .core import FrameProcessor
__all__ = [ 'BackgroundSubtractor' ]
# ------------------------------------------------------------------------------
OPENCV_BACKSUB_ALGOS = {
'MOG2' : cv.createBackgroundSubtractorMOG2,
'KNN' : cv.createBackgroun... | [
"tulare.paxgalactica@gmail.com"
] | tulare.paxgalactica@gmail.com |
8c4480388e7fa8726898f73420d2f3df40bbf8a5 | d5f2723c879e28d1bfded4bea3c4d327a6d8c4e5 | /03_Visualizing_Data/3_histogram.py | 4ce05d1953f447a9609544f396aa265152f8f6a8 | [
"Unlicense"
] | permissive | ramalho/data-science-from-scratch | 709adb2bbef280c10edad4bdc2eb3d2a997d5e79 | 46ead47912c4a0a945decdded1999a8a4cd67b57 | refs/heads/master | 2020-12-30T23:46:40.147841 | 2017-01-28T01:01:54 | 2017-01-28T01:01:54 | 80,624,463 | 2 | 0 | null | 2017-02-01T13:52:20 | 2017-02-01T13:52:20 | null | UTF-8 | Python | false | false | 964 | py | #!/usr/bin/env python3
"""Figure 3-3. Using a bar chart for a histogram"""
import matplotlib.pyplot as plt
from collections import Counter
def make_chart_histogram():
grades = [83,95,91,87,70,0,85,82,100,67,73,77,0]
decile = lambda grade: grade // 10 * 10
histogram = Counter(decile(grade) for grade in g... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
9096829dbf0ff0e9494f24cf8e1132798e9fa9fa | cf6a50732d708a3a3db0f297b73cb6f449a00b44 | /Practice13_LoopingTechniques/Prac_13_13_change_code.py | 9a157c3b996983c6bd0817e18f131585525f2a57 | [] | no_license | subash319/PythonDepth | 9fe3920f4b0a25be02a9abbeeb60976853ab812e | 0de840b7776009e8e4362d059af14afaac6a8879 | refs/heads/master | 2022-11-16T03:03:56.874422 | 2020-07-17T01:19:39 | 2020-07-17T01:19:39 | 266,921,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # 13.
#
# data = [2,3,1,4,7,5]
# max_even = 0
# for item in data:
# if item%2==0 and item>max_even:
# max_even = item
# print(f'Largest even number is {max_even}')
# In this for loop, we are iterating over the items of a list and finding the largest even number.
#
# Make changes in this code so that you get th... | [
"subas319@gmail.com"
] | subas319@gmail.com |
d0093035d3098ebaa03f79ae3da3b4850586ba93 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_yordan_main.py | f1df87f60260bd9647255e67663f6aa609dbebc2 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 884 | py | #!/usr/bin/env python
import sys
def digits(x):
x = abs(x)
d = []
while x:
d.append(x % 10)
x //= 10
return d or [0]
def gen(x):
i = 1
while 1:
yield x * i
i += 1
def read_input(f):
N = int(f.readline())
inputs = []
for line in f:
inputs... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
5d4c4aa85a2d9cdec40ea80181cfef2bfb26c1ec | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/appconfiguration/get_private_endpoint_connection.py | f7cc2cd97bd2658bf9e3e438d054acac99b5aaaf | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,437 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
f9b5b697037e33f9f12b027bc0b5b2c9630275de | 18d223e5ea590e60bc791987034276eed2651721 | /sk1-tt/lesson2-data-processing/c4-unsupervised-learning/c42_feature_agglomerative.py | 51862d664f81bccb84812f300309511d5d5b2662 | [] | no_license | sonicfigo/tt-sklearn | 83b419b4f8984fc63ef41bf2af5b682477350992 | 8e473e958b0afc6154ba3c4dee818fd4da8f504b | refs/heads/master | 2020-03-26T16:07:59.758723 | 2018-09-25T06:28:47 | 2018-09-25T06:28:47 | 145,084,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | # coding=utf-8
"""
之前用过的lasso, 用到了 sparsity 技术,可以用来解决 curse of dimensionality 问题
另一种办法:feature agglomeration, 特征聚集(对feature聚类,注意区别直接对data聚类的阶层式聚类)
正常的聚类
是根据feature,对data聚类
feature agglomeration
是数据转置,对feature进行聚类
"""
import numpy as np
import matplotlib.pyplot as plt
from sklearn import datasets, cluster
fr... | [
"sonic821113@gmail.com"
] | sonic821113@gmail.com |
5419f9bd1ab6510ad576878fcae58ddc84a24b7c | 1a114943c92a5db40034470ff31a79bcf8ddfc37 | /stdlib_exam/os-path-expandvars-example-1.py | b2b9b437176caf6eedbc4bca41e3855d1d665823 | [] | no_license | renwl/mylinux | 1924918599efd6766c266231d66b2a7ed6f6cdd1 | 0602fc6d2b0d254a8503e57310f848fc3e1a73b4 | refs/heads/master | 2020-07-10T22:12:03.259349 | 2017-01-02T12:32:04 | 2017-01-02T12:32:04 | 66,467,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | import os
os.environ["USER"] = "user"
print os.path.expandvars("/home/$USER/config")
print os.path.expandvars("$USER/folders")
## /home/user/config
## user/folders
| [
"wenliang.ren@quanray.com"
] | wenliang.ren@quanray.com |
f29d9ae762e6121f945faa8462bdcac0b729d598 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/vml/test_write_fill.py | 27a23de9f742660fba4a29b9a6d8916f3102aaa4 | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 993 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...vml import Vml
class TestWriteVfill(unittest.TestCase):
"""
Test the Vml _w... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
4549800fa025d377dbda0dad826ebec6f702b5c0 | bad9d42860b9c85bf7316cad108cc6ff071bb705 | /tensorflow_estimator/python/estimator/export/export_test.py | 2f32f0301c4ed4b17e4f346f1176d2313ec4e036 | [
"Apache-2.0"
] | permissive | tensorflow/estimator | 1a7e469608094f17bece71867c01f22d51d28080 | 359acd5314462c05ef97f9a820d4ace876550c7e | refs/heads/master | 2023-08-17T09:54:38.668302 | 2023-08-04T00:01:29 | 2023-08-04T00:02:02 | 143,069,012 | 331 | 249 | Apache-2.0 | 2023-09-06T21:19:22 | 2018-07-31T20:55:45 | Python | UTF-8 | Python | false | false | 23,540 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
6b249119fe1fb273f634b04060a01fd3b1d39ab2 | 74091dce735f281188d38d2f00d1a68e1d38ff7a | /des_pattern/solid/open_closed_products.py | 580caa39d9c24cf86d03055117d399a49d6ebe4b | [] | no_license | nbiadrytski-zz/python-training | 96741aa0ef37bda32d049fde5938191025fe2924 | 559a64aae2db51e11812cea5ff602f25953e8070 | refs/heads/master | 2023-05-07T04:08:23.898161 | 2019-12-10T12:12:59 | 2019-12-10T12:12:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | from enum import Enum
from abc import ABCMeta, abstractmethod
# Open Closed:
# A class should be open for extension (usually by inheritance), but closed for modification
# which means it's not a good idea to change smth that is already properly working,
# but it's better to extend the functionality in a new class
c... | [
"Mikalai_Biadrytski@epam.com"
] | Mikalai_Biadrytski@epam.com |
dec24de5405f4f71820fe6d93f57980dca5268d8 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/ospf/dropunkstats1mo.py | ea481b7998b5e759da9b8dfb111dae63a3883847 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 21,275 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
a14bb37817d7bb4c8f4df5839311ba45d1fd581c | b30e399b7d687833126ebe4f5c8dd4ab49e2a5e7 | /tests/test_create_user.py | 3d1601cc2571d55b5034d477d3adc11f4ceda8fd | [] | no_license | riquellopes/desafio-python | ccd43101403349e5103499a59136c2e00d67d9af | f512923b7f4b0fa6f092f31693d4480a241849aa | refs/heads/master | 2021-01-17T17:16:28.486179 | 2016-10-10T12:40:22 | 2016-10-10T12:40:22 | 70,359,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | import json
def test_should_be_returned_a_valid_dict(test_client, mocker):
os = mocker.patch("app.models.os")
os.environ.get.return_value = "desafio_python"
data = {
"name": "João da Silva",
"email": "joao@silva.org",
"password": "hunter2",
"phones": [{"number": "987654321... | [
"riquellopes@gmail.com"
] | riquellopes@gmail.com |
9c203851de27124bc30ae1fbbd530b8817b1f1ed | 4fa1acf1addaca8afa5c77ebde173af2f849eb2e | /tb/test_i2c_slave_axil_master.py | 2992353b6fe002d4238e5d0bceb50276cac474c3 | [
"MIT"
] | permissive | alexforencich/verilog-i2c | fb6ef3368cf595439d1b81b5080639bec0c71af7 | e7a26811e71de2bfa25ba704a1031c2bff9e5c31 | refs/heads/master | 2023-08-08T16:21:10.221616 | 2023-07-19T23:38:40 | 2023-07-19T23:38:40 | 19,449,788 | 389 | 151 | MIT | 2023-01-11T21:39:28 | 2014-05-05T08:49:01 | Verilog | UTF-8 | Python | false | false | 11,021 | py | #!/usr/bin/env python
"""
Copyright (c) 2019 Alex Forencich
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, merg... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
a95da837fce67b1869d7911c2f64fee0ab6ed7c8 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/file.py | 61d9b400b2ea8cc711774fd99be3523dd691a551 | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('file', __name__, url_prefix='/file')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('republic.ht... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
a116dd620bfbb78a14a50120bf42574e606bcb13 | 13d222bc3332378d433835914da26ed16b583c8b | /tests/challenge22/test_challenge22.py | 4c076071ad9cc1c5e1409177a3652cf2a89fe86f | [] | no_license | mattjhussey/pemjh | c27a09bab09cd2ade31dc23fffac07374bea9366 | 2ebb0a525d2d1c0ee28e83fdc2638c2bec97ac99 | refs/heads/master | 2023-04-16T03:08:59.390698 | 2023-04-08T10:54:00 | 2023-04-08T10:54:00 | 204,912,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | """ Tests for challenge22 """
from os.path import abspath, dirname, join
from robber import expect
from pemjh.challenge22 import main
def test_challenge22():
""" Regression testing challenge22 """
name_path = join(dirname(abspath(__file__)), 'names.txt')
with open(name_path, 'r') as name_file:
... | [
"matthew.hussey@googlemail.com"
] | matthew.hussey@googlemail.com |
882eec1a180e7b4c69a1f2fb3cb0584d6a0baf0e | 3f554f2e0ef235d93ecbcbbb2e21132f15ef12fd | /venv/Scripts/easy_install-3.7-script.py | 68156d82a29ee68c2cabcd729c8d29ce9a4302ae | [] | no_license | sanii-muthui/password_locker | 189bb72389734cf59b11f27cf0c71d8d9dc4685a | b82ac4e87cc3301827d744f5e346a2737a959262 | refs/heads/master | 2022-01-09T08:04:37.240307 | 2019-07-22T09:56:20 | 2019-07-22T09:56:20 | 198,190,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!C:\Users\sanii\Desktop\password_locker\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"muthuisanii@gmail.com"
] | muthuisanii@gmail.com |
636f08c92eda47b8eba96db768288a07393f0e21 | c54f5a7cf6de3ed02d2e02cf867470ea48bd9258 | /pyobjc/PyOpenGL-2.0.2.01/src/shadow/GL.EXT.separate_specular_color.0001.py | f61d2a53884bbcb6d4af41077bbd00d3c40380d1 | [] | no_license | orestis/pyobjc | 01ad0e731fbbe0413c2f5ac2f3e91016749146c6 | c30bf50ba29cb562d530e71a9d6c3d8ad75aa230 | refs/heads/master | 2021-01-22T06:54:35.401551 | 2009-09-01T09:24:47 | 2009-09-01T09:24:47 | 16,895 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | # This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _separate_specular_color
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "this"):
if isinstan... | [
"ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25"
] | ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25 |
bb7116e666e458d7ef6f117d052ae161ef3c4f90 | 94b29d5cd65e5783692af9896ea9c983cf182c2f | /tests/utilities/test_apply_func_torchtext.py | ae919668a77ea9363c816014f05272341ca6622e | [
"Apache-2.0"
] | permissive | Programmer-RD-AI/pytorch-lightning | 5d4ab64a887d0ac7d47987241a3213ae59840616 | 02a675241c826d7720c7e15d6fda3f5da0b28116 | refs/heads/master | 2023-08-15T22:04:53.632338 | 2021-10-17T13:47:24 | 2021-10-17T13:47:24 | 413,277,562 | 3 | 0 | Apache-2.0 | 2021-10-04T04:49:55 | 2021-10-04T04:49:55 | null | UTF-8 | Python | false | false | 2,651 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | Programmer-RD-AI.noreply@github.com |
79321ece6462d20918c9ef544c17a191895225db | 8bb3bcf914860c20fb4a7163a8e0691cd802dd65 | /src/vsc/model/coverpoint_bin_single_val_model.py | 2c3d70c1f5e7480e7a886bb90d2225f0d2d90df9 | [
"Apache-2.0"
] | permissive | nitinm694/pyvsc | 8586cc2497f336289fecbfeb9e6dd788f4070b60 | 612de9e6244c685a3df1972e4860abfe35b614e1 | refs/heads/master | 2023-07-28T01:49:10.917496 | 2021-09-12T19:06:00 | 2021-09-12T19:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py |
# Created on Mar 20, 2020
#
# @author: ballance
from vsc.model.bin_expr_type import BinExprType
from vsc.model.coverpoint_bin_model_base import CoverpointBinModelBase
from vsc.model.expr_bin_model import ExprBinModel
from vsc.model.expr_literal_model import ExprLiteralModel
from vsc.model.rangelist_model import Rang... | [
"matt.ballance@gmail.com"
] | matt.ballance@gmail.com |
fee13f3a06d66f223110454caf37abb36bc003b4 | b27658fa705c7b6ed3775479cfe960d5889b3669 | /src/pinyin_to_ipa/__init__.py | 73d55cc8f26cbb6a6e5fbf56f4f3f0de5a9c9535 | [
"MIT"
] | permissive | stefantaubert/pinyin-to-ipa | 46f08486461280ee26c951fe350d6fa1c6dcb79d | e8adabaead788fefb23794f62e237836beb3a8af | refs/heads/master | 2023-04-07T07:02:55.192113 | 2023-01-11T10:40:55 | 2023-01-11T10:40:55 | 585,899,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | from pinyin_to_ipa.transcription import pinyin_to_ipa
| [
"23339395+stefantaubert@users.noreply.github.com"
] | 23339395+stefantaubert@users.noreply.github.com |
140cfd85213aede01754e40979397ced1ec71108 | 45c142c3e3dc8d3211a86c77385ecfdd10d28fb9 | /dstore/engine/procedures/mi_ModifyApplicationParts_Ad_pb2.py | 075b058b0e690812b445b033b2dd1155d3dd3e45 | [] | no_license | dstore-io/dstore-sdk-python | 945d64995c8892af18fab26c90117245abec64a4 | 8494d12ac77c3c3cc6dd59026407ef514ad179fc | refs/heads/master | 2020-06-14T13:07:08.181547 | 2017-01-26T11:19:39 | 2017-01-26T11:19:39 | 75,177,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 11,926 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: dstore/engine/procedures/mi_ModifyApplicationParts_Ad.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
fr... | [
"b.dolkemeier@dbap.de"
] | b.dolkemeier@dbap.de |
8ae19cbd850184aed62ae571f1842958bc3b35ad | e1a2c6ed4a4b93b4697974e3b0a32a4d67daa6f6 | /venv/Lib/site-packages/tensorflow/contrib/factorization/python/ops/gen_clustering_ops.py | 54753d93470f6b328c34c4bb6b06094b62bac888 | [
"MIT"
] | permissive | ishatserka/MachineLearningAndDataAnalysisCoursera | cdf0f23a58617e17d6b938e3a9df17daae8585e4 | e82e772df2f4aec162cb34ac6127df10d14a625a | refs/heads/master | 2021-09-11T01:39:26.228392 | 2018-04-05T14:33:39 | 2018-04-05T14:33:39 | 117,153,454 | 0 | 0 | MIT | 2018-03-27T05:20:37 | 2018-01-11T21:05:33 | Python | UTF-8 | Python | false | false | 8,994 | py | """Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
"""
import collections as _collections
from tensorflow.python.eager import execute as _execute
from tensorflow.python.eager import context as _context
from tensorflow.python.eager import core as _core
from tensorflow.python.framew... | [
"shatserka@gmail.com"
] | shatserka@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.