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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8920f1e323513222adafbd77853f23a6f87ca1e2 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/GPMM/YW_GPMM_SZSJ_287.py | dd5bdfe7fc378edf0289633f7e8debff4b950338 | [] | 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,063 | 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 mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
987ab0b6c6d56227783ce5d319a505c1c5526fbf | aa64c62a3d246b87f3f1e5810a8f75b1d166aaf6 | /paradrop/daemon/paradrop/core/config/haproxy.py | fc29f54f582c5117987eb8e786324404287cdf69 | [
"Apache-2.0"
] | permissive | ParadropLabs/Paradrop | ca40b3373c0732c781f9c10d38da9b6e9fbd3453 | c910fd5ac1d1b5e234f40f9f5592cc981e9bb5db | refs/heads/master | 2023-02-26T17:51:53.058300 | 2022-03-01T17:46:10 | 2022-03-01T17:46:10 | 37,789,450 | 88 | 31 | Apache-2.0 | 2023-02-16T05:24:46 | 2015-06-20T23:18:38 | Python | UTF-8 | Python | false | false | 5,061 | py | """
This module is responsible for configuration haproxy.
"""
import os
import subprocess
from paradrop.base import settings
from paradrop.core.chute.chute_storage import ChuteStorage
from paradrop.core.container.chutecontainer import ChuteContainer
def generateConfigSections():
sections = []
sections.appen... | [
"hartung@cs.wisc.edu"
] | hartung@cs.wisc.edu |
09db562a43a4de24b3c2c642181d463e0a4b80ae | 6d9795fa1aafc0fa5316020aaa0eaa4f68b76229 | /sellproperty/models.py | 63aa8f893cb9dcbfbd6429438758eeac799571cd | [] | no_license | icerahi/immolists | 02d379a22c193e793b26e35828b5eebff33bf888 | 813333c3923385861f111bb7aa715aeb04108c3a | refs/heads/master | 2022-12-15T15:00:39.844142 | 2022-01-06T10:06:44 | 2022-01-06T10:06:44 | 196,600,572 | 0 | 0 | null | 2022-11-22T04:14:43 | 2019-07-12T15:12:33 | JavaScript | UTF-8 | Python | false | false | 6,052 | py | import os
import random
from django.contrib.auth.models import User
from django.db import models
# Create your models here.
from ckeditor.fields import RichTextField
from ckeditor_uploader.fields import RichTextUploadingField
from django.conf import settings
from django.db import models
from django.db.models.signals ... | [
"zanjarwhite@gmail.com"
] | zanjarwhite@gmail.com |
f6cbe10ec60a3e67c3d01909eb6787f81d784725 | 52b5fa23f79d76883728d8de0bfd202c741e9c43 | /kubernetes/test/test_v1_horizontal_pod_autoscaler.py | 315840a3d5385881407d0c8128db6c771a02de99 | [] | no_license | kippandrew/client-python-tornado | 5d00810f57035825a84e37ff8fc89a7e79aed8da | d479dfeb348c5dd2e929327d800fe033b5b3b010 | refs/heads/master | 2021-09-04T13:01:28.275677 | 2018-01-18T23:27:34 | 2018-01-18T23:27:34 | 114,912,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.8.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import un... | [
"andy@rstudio.com"
] | andy@rstudio.com |
89e06687f93fce54b05689e3792cc5692934b929 | da497ddf926b8791f3812c79543120215822216b | /icsbep/pu-sol-therm-012/openmc/case-14/generate_materials.py | 8eab1d8d6513479d03829680991c284d7261e01d | [] | no_license | mit-crpg/benchmarks | 55f38e569699554d07df254103e2f828dc5b4ff8 | 58e15679ec684b9e2f552df58099e3648b5708cc | refs/heads/master | 2022-05-17T12:27:45.590757 | 2022-05-09T15:07:00 | 2022-05-09T15:07:00 | 2,704,358 | 23 | 30 | null | 2019-11-11T16:35:27 | 2011-11-03T19:04:29 | Python | UTF-8 | Python | false | false | 1,822 | py | import openmc
mats = openmc.Materials()
mat = openmc.Material(1)
mat.name = "Plutonium nitrate solution (52.7 g/L)"
mat.set_density('sum')
mat.add_nuclide('Pu239', 9.86655e-05)
mat.add_nuclide('Pu240', 2.50004e-05)
mat.add_nuclide('Pu241', 7.41089e-06)
mat.add_nuclide('Pu242', 1.49702e-06)
mat.add_nuclide('Am241', 8.... | [
"paul.k.romano@gmail.com"
] | paul.k.romano@gmail.com |
2fc35c78749760c361cd5b6ea2884fc7fd16bb07 | f8a66f137d53306d1f05db6a2a6a0f4d0bd5acf1 | /Cyber-Main/JSL_Threat_Intel_Framework_whodat/a.py | f08854459bb01f5f6acedb36866ec7d61afe6614 | [] | no_license | sec-js/JSL-Cyber-ThreatIntelCore | 5d9e63a5fca0b0d2e250d682332ad86286277205 | a66c350b42c7ed95a4e3703e82983626fdab8ab7 | refs/heads/master | 2020-12-03T12:46:53.319750 | 2017-02-03T19:32:30 | 2017-02-03T19:32:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,957 | py | import csv
def write_final_output(dico):
f = open("outputfile", 'w')
f.write(
'pipelineid' + ',' + 'datauploadid' + ',' + 'uuid' + ',' + 'referential' + ',' + 'datasourcename' + ',' + 'date' + ',' + 'cog' + ',' + 'model' + ',' + 'concept' \
+ ',' + 'segment' + ',' + 'pedigree' + ',' + 'confide... | [
"jonathan@johnsnowlabs.com"
] | jonathan@johnsnowlabs.com |
2496fe20939060e4e360a7862a99df132f61170b | d8cbe9ce0469f72b8929af01538b6ceddff10a38 | /homeassistant/components/sensibo/sensor.py | 8048eece3389bcd056ef788ba4ca8de6ce7edddc | [
"Apache-2.0"
] | permissive | piitaya/home-assistant | 9c1ba162dac9604e4d43e035e74bad7bba327f0b | 48893738192431f96966998c4ff7a3723a2f8f4a | refs/heads/dev | 2023-03-07T16:13:32.117970 | 2023-01-10T17:47:48 | 2023-01-10T17:47:48 | 172,578,293 | 3 | 1 | Apache-2.0 | 2023-02-22T06:15:56 | 2019-02-25T20:19:40 | Python | UTF-8 | Python | false | false | 12,334 | py | """Sensor platform for Sensibo integration."""
from __future__ import annotations
from collections.abc import Callable, Mapping
from dataclasses import dataclass
from datetime import datetime
from typing import TYPE_CHECKING, Any
from pysensibo.model import MotionSensor, SensiboDevice
from homeassistant.components.s... | [
"noreply@github.com"
] | piitaya.noreply@github.com |
66dc0f2daff11b6cce93fd0485b61c72d2d44f92 | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/pango.py | 534919580c9ee2d79f2ed539a86e1db554ea72c2 | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | from .base import GnuRecipe
class PangoRecipe(GnuRecipe):
def __init__(self, *args, **kwargs):
super(PangoRecipe, self).__init__(*args, **kwargs)
self.sha256 = '1d2b74cd63e8bd41961f2f8d952355aa' \
'0f9be6002b52c8aa7699d9f5da597c9d'
self.name = 'pango'
self.de... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
d4df6a68cf8b4a3fcd98eebda53d3764910e0f8a | 47288e23d0248d7bfbda0cfae5bc138d389cbbb6 | /sympy/integrals/rde.py | c0a1c22af21f5d97140e22176bc174fe8dde385f | [] | no_license | cosmosZhou/sympy | d94ce6ad9028d143bb877f46fad4eda1d5dc2173 | 6160fff63636fd81755bd94e777ba450a09df517 | refs/heads/master | 2022-07-30T20:51:35.359580 | 2022-07-11T12:40:50 | 2022-07-11T12:40:50 | 199,948,191 | 3 | 1 | null | 2020-08-26T14:13:49 | 2019-08-01T00:34:25 | Python | UTF-8 | Python | false | false | 26,576 | py | """
Algorithms for solving the Risch differential equation.
Given a differential field K of characteristic 0 that is a simple
monomial extension of a base field k and f, g in K, the Risch
Differential Equation problem is to decide if there exist y in K such
that Dy + f*y == g and to find one if there are some. If t i... | [
"zhoulizhi@patsnap.com"
] | zhoulizhi@patsnap.com |
c85c460a448c4a63602d3d96b271abbdb9f524f3 | afbcda99c55aeb26360d593f1abe99afbbb1d1b7 | /Python/Temppraw/temppraw.py | e6309910cf300fdc9d0c9bc4b437f7b346c77495 | [] | no_license | cstuartroe/misc | b4c4fb2f8ef7341acf99f35e9eece1cf3769a0fc | 307b00c3ab7e51204401e84bd6c4466315889dfe | refs/heads/master | 2023-08-17T19:07:59.535257 | 2023-08-06T16:07:27 | 2023-08-06T16:07:27 | 156,424,382 | 0 | 0 | null | 2022-05-25T02:00:29 | 2018-11-06T17:50:34 | Java | UTF-8 | Python | false | false | 859 | py | import praw
import time
import datetime
current = time.time()
reddit = praw.Reddit(client_id='PTofuEjEjIPbcg',
client_secret='_R0b3zmCvjXGPseYbaPIUEnZAlU',
password='LinguisticsIsCool208',
user_agent='testscript by /u/conor_emily_ling208',
... | [
"cstuartroe@haverford.edu"
] | cstuartroe@haverford.edu |
fc216362a02225b2ff41c9073d1ca8277c088188 | 37c3b81ad127c9e3cc26fa9168fda82460ca9bda | /Baekjoon/boj_10711_모래성.py | 3f23b08f4cb51446ea056e929f61c0ec51f93fab | [] | no_license | potomatoo/TIL | 5d85b69fdaed68966db7cfe2a565b7c64ed3e816 | 395dc190fa13e5ed036e1e3c7d9e0bc2e1ee4d6c | refs/heads/master | 2021-07-08T16:19:40.410097 | 2021-04-19T02:33:40 | 2021-04-19T02:33:40 | 238,872,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | N, M = map(int,input().split())
castle = [list(map(str,[*input()])) for _ in range(N)]
search = []
for y in range(N):
for x in range(M):
if castle[y][x] != '.' and castle[y][x] != '9':
castle[y][x] = int(castle[y][x])
search.append((y, x, 0, 0))
dy = [-1, 1, 0, 0, -1, -1, 1, 1]
dx =... | [
"duseh73@gmail.com"
] | duseh73@gmail.com |
602534b2b5640835f91753fe88773c67f8116f05 | 7da6ecf172b3e9354d93ddfe06f87b930fad90b3 | /pickup/generator_profile/folder.py | 8b6f79f8d7e9a8b25b0989cacbb483ad3f55c10e | [] | no_license | exhuma/pickup | 05f8d271de95d76b337a6994dcd21799fe0e4b34 | 688b05d0ae1276dcc386b45c8ddb1cea71b15cb1 | refs/heads/master | 2016-09-06T01:21:08.343607 | 2011-07-15T15:09:10 | 2011-07-15T15:09:10 | 1,059,260 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,683 | py | """
The folder plugin create a bzipped tar file for a specific folder. It is also
possible to specify a parent folder and create individual tarballs for each
folder and one for files beneath that folder.
Configuration
~~~~~~~~~~~~~
The following fields are used by this plugin:
**path** (string)
The folder
... | [
"michel@albert.lu"
] | michel@albert.lu |
4146e50a8525f3747cb0dca5aef9030f0519f149 | 295f34f4411d984f0ff6026be6e96fe134dc1550 | /home/pi/antes/consulta.py | 92d50b55d536b5cbe4a174bb77c1f2614a735a08 | [] | no_license | mcashjavier/disco-linux-raspy | 1e3fed914b6040fa9972e7cfc7357ecb72070e8c | 8c23103cf089059fbdadfad8cfb7059c1580da83 | refs/heads/master | 2022-12-20T17:06:39.967203 | 2019-03-12T12:09:22 | 2019-03-12T20:01:10 | 175,072,541 | 0 | 3 | null | 2022-12-18T06:59:27 | 2019-03-11T19:44:12 | null | UTF-8 | Python | false | false | 2,093 | py | from tkinter import *
import socket
import sys
def Salir():
ventana.destroy()
def MiSaldo():
if tarjeta.get():
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Connect the socket to the port where the server is listening
server_address = ('18... | [
"prog2@magneticash.com"
] | prog2@magneticash.com |
6e785160cfd23b23fd62580b0dd68b6ef5ba14f8 | 212daad1c33e796944fff2ca41788b872f6e6a0e | /plane_shotting/settings.py | 522e673cca183d9cda49aedf39e87315251c4015 | [] | no_license | walter0909/python_scripts | ecae13b8931f791d241b8902a76629683e2fdccd | 19156358ced7b8cc0107d390e74203ca5b320cb5 | refs/heads/master | 2023-02-25T12:53:53.795302 | 2021-02-03T06:07:28 | 2021-02-03T06:07:28 | 297,516,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py |
class Settings():
"""settings """
def __init__(self):
#screen
self.screen_width = 800
self.screen_height = 600
self.bg_color = (230,230,230)
self.ship_speed_factor = 1.5
self.bullet_speed_factor = 1
self.bullet_width = 3
self.bullet_height = 15... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
529f4017618780f8663e90680936300e7bd47b4b | be7949a09fa8526299b42c4c27adbe72d59d2201 | /cnns/foolbox/foolbox_2_3_0/v1/attacks/decoupled_direction_norm.py | ba84884374e569e8613766c56669d5399a107841 | [
"MIT",
"Apache-2.0"
] | permissive | adam-dziedzic/bandlimited-cnns | 375b5cccc7ab0f23d2fbdec4dead3bf81019f0b4 | 81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a | refs/heads/master | 2022-11-25T05:40:55.044920 | 2020-06-07T16:14:34 | 2020-06-07T16:14:34 | 125,884,603 | 17 | 5 | Apache-2.0 | 2022-11-21T21:01:46 | 2018-03-19T16:02:57 | Jupyter Notebook | UTF-8 | Python | false | false | 4,263 | py | import math
import numpy as np
import logging
from .base import Attack
from .base import call_decorator
class DecoupledDirectionNormL2Attack(Attack):
"""The Decoupled Direction and Norm L2 adversarial attack from [1]_.
References
----------
.. [1] Jérôme Rony, Luiz G. Hafemann, Luiz S. Oliveira, Ism... | [
"adam.dziedzi@gmail.com"
] | adam.dziedzi@gmail.com |
732590f7535f493bc8add88cca06fc797937dc05 | 2874b52c0234d7e71031d4c22dedb3b24e539b2c | /backend/asetbeta_23682/wsgi.py | 2ec019498b29468afbec180a22811cd744c8072d | [] | no_license | crowdbotics-apps/asetbeta-23682 | d81ed8125b8c2ebb12b43d25d8068ff9ca71e344 | 128708fff3c98680a239a0f198aed5937950c5bf | refs/heads/master | 2023-02-12T09:51:04.507332 | 2021-01-14T14:38:53 | 2021-01-14T14:38:53 | 327,014,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for asetbeta_23682 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 |
55a35f079b434c08a95524dea40c0fc2846bb651 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2586/50263/236178.py | bd5fcad9a1a5d3b23ec8f4ae01903de54d954987 | [] | 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 | 260 | py | a = eval(input())
b = eval(input())
c = eval(input())
s = []
d1 = abs(b-a)
d2 = abs(c-b)
min_move = 0
max_move = d1+d2-2
if max_move != 0:
if min(d1,d2) < 3:
min_move = 1
else:
min_move = 2
s.append(min_move)
s.append(max_move)
print(s) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0b112bb5b099f40be9e2e6bdaa122ab85ab5752e | 4e14341a1b89dfbe67c81b7a4ea52a458e696132 | /mysitedday61/mysitedday61/urls.py | b8883c4bf9f05dfa1c8ea73a53c7da198d7aaa1f | [] | no_license | 520wsl/python-django-test | fae13cdb9fb6c3001a08b5f3f6bc3262a637922a | bbd111dd84a65315b727adef26d92aeb416daba0 | refs/heads/master | 2020-05-26T06:39:12.624462 | 2019-06-02T02:54:03 | 2019-06-02T02:54:03 | 188,138,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """mysitedday61 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-... | [
"395548460@qq.com"
] | 395548460@qq.com |
0a99d4c3e732dfba797afb7b87f336b19d5fa9d6 | 802c002ecd90be6b489e0250ec4454a11c17ed1d | /src/homework/homework12/converter.py | a0a150b76663e22b8968c182983fc71228c948fd | [
"MIT"
] | permissive | acc-cosc-1336/cosc-1336-spring-2018-EricScotty | 3a088285ae853a9ff5d747f2301f755c5e3749b3 | 80c0249a583dc178cfc7bb95b851d7f3240dc3e9 | refs/heads/master | 2021-09-14T05:54:02.132705 | 2018-05-08T23:27:04 | 2018-05-08T23:27:04 | 118,071,042 | 0 | 0 | MIT | 2018-04-23T02:51:05 | 2018-01-19T03:22:13 | Python | UTF-8 | Python | false | false | 103 | py | class Converter:
def get_miles_from_km(self, km):
return float(round(km * 0.6214, 2))
| [
"noreply@github.com"
] | acc-cosc-1336.noreply@github.com |
55e46cda0dd6de6b2889f6a697eaed55932bdb46 | 70f1c694bea6178c98b134b9c44952ef6693be9f | /Manuscript/figure/Figure_MITE_auto_promoter/Auto_target/scripts/rename_hit-flank-files_by_peps-to-repbase_results.py | dded703f195e797fa3373153c85e0299798aa992 | [] | no_license | JinfengChen/Rice_pop | 5c19c5837805e51ddb3b2ffba4baffdc59c9bfd3 | ef272bf4825b29610c94de55eb53f231fb5febc6 | refs/heads/master | 2020-04-07T04:55:36.606594 | 2018-03-02T16:52:53 | 2018-03-02T16:52:53 | 33,501,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,659 | py | #!/usr/bin/env python
import sys
import os
import os.path
import fastaIO
import fnmatch
from collections import OrderedDict
args = sys.argv[1:]
arg_len = len(args)
print "Argument length:", arg_len
def usage():
print """
usage:
python rename_hit-flank-files_by_peps-to-repbase_results.py <DNA_TPase_match... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
b11d87f75fac838ba16019628037010af0a05b95 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/RFC1253-MIB.py | 3d3a8a932440536f5c755452f34497a2a851a3d9 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 50,680 | py | #
# PySNMP MIB module RFC1253-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RFC1253-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:16:27 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
4ef5375f46be6cb5c3ceb6cb0a70c7c7fcbb357c | b08870f8fe7b3cf1bbab3c52a7bacbb36ee1dcc6 | /verp/patches/v13_0/update_custom_fields_for_shopify.py | 40343f14221e3519c8ebba2228a7bb47f7871451 | [] | no_license | vsadminpk18/verpfinalversion | 7148a64fe6134e2a6371470aceb1b57cc4b5a559 | 93d164b370ad9ca0dd5cda0053082dc3abbd20da | refs/heads/master | 2023-07-13T04:11:59.211046 | 2021-08-27T06:26:48 | 2021-08-27T06:26:48 | 400,410,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from verp.verp_integrations.doctype.shopify_settings.shopify_settings import setup_custom_fields
def execute():
if frappe.db.get_single_value('Shopify Settings', '... | [
"admin@vespersolutions.tech"
] | admin@vespersolutions.tech |
702a016412b75e13d5d29a36ca0710afac3810aa | ac1e944eb288c8b13a0bef0ee7de85ee6d30b4c0 | /django/djangotimer/manage.py | 6456b5b9262a6ad8e2e7bd9d7cd22862c826d549 | [] | no_license | Jayson7/random-projects | 05dd175d00e9bd62cb39973c3439846f641675c8 | cdbebb896a0ecea0de543f16ecf4661e519ec0bb | refs/heads/master | 2023-06-19T01:54:08.339954 | 2021-07-19T01:40:09 | 2021-07-19T01:40:09 | 383,971,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangotimer.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"lexxiijoo70@gmail.com"
] | lexxiijoo70@gmail.com |
8ee947a3381a57c428c551203de2c68479f20251 | 3c2eefd083f9b65ce7900ece4d9670b1130d65de | /bin/jwst_mtvt | f4721bd5bb4a607f58ea2c7fcf3b5246e11c8b8e | [] | no_license | wkerzendorf/jwst_gtvt | ef1896fcee2f292715b36ec1a48c39b000098e48 | 55ee820d978858cbd6065c275d70680868916f58 | refs/heads/master | 2021-04-27T18:31:47.858747 | 2017-12-11T16:13:48 | 2017-12-11T16:13:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | #!/usr/bin/env python
import argparse
import sys
from jwst_gtvt.find_tgt_info import main, get_target_ephemeris
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='')
parser.add_argument('desg', nargs='+', help='Moving target designation.')
parser.add_argument('--smallbody', action='s... | [
"msk@astro.umd.edu"
] | msk@astro.umd.edu | |
5a3af79325cecdb45f242a8ef34e72960f0eab7d | 74ba13d19d6adb22149dbb8b17c0f4f1385ecfcb | /src/packet_factory.py | a8cbc3435b4d71956d4707aa482a5b5f794a5f04 | [
"MIT"
] | permissive | aenon/Melkweg | 2d6e7a2d6cd29c0bc9e246b65c0d042d9c73ad13 | d3adcc615ede1fad116c9c50ed0609a6b1a55250 | refs/heads/master | 2021-05-07T08:20:16.005318 | 2017-11-02T16:46:34 | 2017-11-02T16:46:34 | 108,594,644 | 0 | 0 | null | 2017-10-27T20:53:01 | 2017-10-27T20:53:01 | null | UTF-8 | Python | false | false | 1,004 | py | #coding=utf-8
from packet_pb2 import MPacket
from cipher import nonce
class PacketFlag(object):
DATA = 1
LIV = 2
RST = 3
FIN = 4
KILL = 5
class PacketFactory(object):
@classmethod
def create_syn_packet(self, iv):
packet = MPacket()
packet.iv = iv
return packet
... | [
"mail.kuuy@gmail.com"
] | mail.kuuy@gmail.com |
c8add2de1f25ab13df5942aeef2e1e97114b65ae | 6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a | /azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machines_operations.py | 6550e47a4fe00e58b55bed3083b4bbdd298ce2f3 | [
"MIT"
] | permissive | ashirey-msft/azure-sdk-for-python | d92381d11c48f194ec9f989f5f803db614fb73f2 | e04778e13306dad2e8fb044970215bad6296afb6 | refs/heads/master | 2020-03-23T06:05:39.283442 | 2018-09-15T00:18:26 | 2018-09-15T00:18:26 | 141,188,192 | 0 | 1 | MIT | 2018-07-16T20:02:52 | 2018-07-16T20:02:52 | null | UTF-8 | Python | false | false | 70,882 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
b4d2b444b5df8f4145c1988f40a94af4842b1109 | d02c92f1fc6910b1a9c5e6823e689b32567e41a6 | /practica_2/polls_proj/polls_app/serializers.py | 42363486667c10bb144a77c72a2eafa87cddeed8 | [] | no_license | eflipe/Django-REST | 6c1050bf9f46e88a7639d103a629f96d59a797bf | 110072f282e8fe9852e8bf6ae6e5660aa0e80d64 | refs/heads/master | 2023-08-05T11:58:41.691221 | 2020-08-05T23:23:34 | 2020-08-05T23:23:34 | 282,772,802 | 0 | 0 | null | 2023-07-24T00:26:28 | 2020-07-27T02:15:06 | Python | UTF-8 | Python | false | false | 1,152 | py | from rest_framework import serializers
from django.contrib.auth.models import User
from .models import Poll, Choice, Vote
from rest_framework.authtoken.models import Token
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('username', 'email', 'password')
... | [
"felipecabaleiro@gmail.com"
] | felipecabaleiro@gmail.com |
95c0226e3f29a6fd7317200273f0e0fb0a7695ca | f642c054451aa3c87bb18fa63037eea0e6358bda | /algo/longestStringInArray_CanBeMadeFromotherStrings.py | 33d9cb3ae354d688e4da4d8c1b61436bc258fc5d | [] | no_license | devendraprasad1984/python | 30f3a539e92be13d893246ad28a42907457a38d5 | 0f1badabba07fbe7f5f792b7e543c0748eecd6c7 | refs/heads/master | 2023-07-21T08:22:45.193077 | 2021-08-27T15:09:28 | 2021-08-27T15:09:28 | 254,812,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | """
"""
arr=["geeks","for","geeksgeeks","geeksfor","geeksforgeeks"]
maxStr=sorted(arr,key=lambda x:-len(x))[0]
print(arr,maxStr)
found=False
for x in arr:
for y in arr:
if maxStr!=x and maxStr!=y:
# print(x+y)
if x+y==maxStr:
found=True
print("max st... | [
"devendraprasad1984@gmail.com"
] | devendraprasad1984@gmail.com |
7537b54bab44dc8f46b1c1c38c0d6b02d131616e | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /public_hand_or_big_woman.py | a6465a3098d82b969e3ffb571a87aeeb368e3bf7 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py |
#! /usr/bin/env python
def be_next_work(str_arg):
week(str_arg)
print('woman_or_time')
def week(str_arg):
print(str_arg)
if __name__ == '__main__':
be_next_work('year')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
958d10213b2c05b768ced6c6cda03fb7c7d10b0b | bdc10ba57424040129cc72ad018ff26bc8bca66a | /ConfigDefinitions/BranchAdditions/UserDefinedBranches/Triggers_18_MC.py | fa59a97a8c09e3b16d9403906e1fd565dd4e9943 | [] | no_license | aloeliger/Jesterworks | 61e0ac38ca325fefbbd8ccedaa8eb02d8a76ebbe | 96a22bac4ce20b91aba5884eb0e5667fcea3bc9a | refs/heads/master | 2021-06-09T15:39:06.976110 | 2021-04-23T11:25:06 | 2021-04-23T11:25:06 | 157,698,363 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | import ConfigDefinitions.BranchAdditions.BranchDef as Branch
def CalculateTrigger24(TheBranch,TheChain):
if (TheChain.passMu24 and TheChain.matchMu24_1
and TheChain.filterMu24_1 and TheChain.pt_1 > 25.0):
TheBranch.BranchValue[0]=1.0
else:
TheBranch.BranchValue[0]=0.0
def CalculateTrig... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
f7543e5d841ceb31ee2674b563c1e772576e185c | 366b2ff9cd498808438bf7c48f697c05b361d02c | /app.py | afd82cb98a6734228c58e3cf1b2d768b487eb5e6 | [] | no_license | c-bata/AngularJS-Bottle-TodoApp | 1aef6b09fd85fabaa63898ab3fb9a2d586216b93 | 8f03820b7949b0c28477970c58f25ccd1856b2a9 | refs/heads/master | 2021-03-12T22:40:32.000758 | 2015-11-04T11:14:47 | 2015-11-04T11:14:47 | 38,732,944 | 2 | 0 | null | 2015-11-04T11:11:39 | 2015-07-08T05:02:47 | Python | UTF-8 | Python | false | false | 1,290 | py | from bottle import (
route, response, run, template, static_file, install, post, request
)
import json
import os
import jsonschema
import models
import schemas
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
STATIC_DIR = os.path.join(BASE_DIR, 'static')
install(models.plugin)
@route('/')
def index():
... | [
"contact@c-bata.link"
] | contact@c-bata.link |
bbe8129b09d85cd20a4dcbad5bcd0f14703eb61a | ae79aa8458230fe2331b267308a29adff215bbfe | /armi/nuclearDataIO/tests/test_xsCollections.py | 9088f3c05a114f56505279c386786363dec4e6f4 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | paulromano/armi | 3727cf3c52de5e412e8db4d5bf5d9998a720616c | 6c4fea1ca9d256a2599efd52af5e5ebe9860d192 | refs/heads/master | 2023-01-10T05:43:27.691791 | 2020-08-07T00:33:35 | 2020-08-07T00:33:35 | 285,824,692 | 1 | 0 | Apache-2.0 | 2020-08-07T12:32:54 | 2020-08-07T12:32:53 | null | UTF-8 | Python | false | false | 3,832 | py | # Copyright 2019 TerraPower, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"ntouran@terrapower.com"
] | ntouran@terrapower.com |
c84a55dd992ae1628b0780c38e1917efe61e7ace | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03399/s036631775.py | eaffb9a399aacef430540ccd833a1b116ff7cb11 | [] | 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 | 73 | py | n = [int(input()) for _ in range(4)]
print(min(n[0],n[1])+min(n[2],n[3])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
699ea1d33083dbe690ac1495e2b02345c3ab0360 | 9a1538123b8abec14410dad46c437cf735684dd9 | /news/migrations/0001_initial.py | 552caaeb8e0ba8c9555709ab96355304db3f721e | [] | no_license | asmuratbek/zastroy24 | deec6bd65229aeb29eb313d915c6c47ca036a8aa | d68ce21beefc644752a1271a4d8981cd2423afba | refs/heads/master | 2020-04-27T18:44:26.845151 | 2019-03-08T18:09:13 | 2019-03-08T18:09:13 | 174,585,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-01 14:58
from __future__ import unicode_literals
import ckeditor_uploader.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | [
"asmuratbek@gmail.com"
] | asmuratbek@gmail.com |
9e02f1f5e378de2d29593ff5b0c7234dc46017ae | ff81a9d7880f1b85a1dc19d5eba5ac72d7179c86 | /pychron/hardware/apis_controller.py | 3f9007cdfd86fd568ce9d3cbf6a0909680c9efef | [
"Apache-2.0"
] | permissive | UManPychron/pychron | 2fb7e479a9f492423c0f458c70102c499e1062c4 | b84c9fd70072f9cbda30abe2c471e64fe3dd75d8 | refs/heads/develop | 2022-12-03T23:32:45.579326 | 2020-01-29T19:02:20 | 2020-01-29T19:02:20 | 36,100,637 | 0 | 0 | null | 2015-05-23T00:10:06 | 2015-05-23T00:10:05 | null | UTF-8 | Python | false | false | 5,881 | py | # ===============================================================================
# Copyright 2014 Jake Ross
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licens... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
f9197a33c02d27eaa7c912ad0142e4e415f29be6 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902Combine/267-tideGauge.py | 77661b2e1c355fc0cfe10e2d86a6e1f385a5c771 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 17 11:28:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
# dir_name = 'F:\\01_erainterim\\01_er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
fc1746cb1561850e95f01014fd657000a32f9695 | 5b10b6efa049014f0d00f81b148d94c429286b66 | /DRFViewset/manage.py | b746ebba33addb3132d357d7f25d2d28be599469 | [] | no_license | Ruchika-Munde/Rest_Task | dff657aed041ac6925590f423301f0cae7599f6c | ea741889927ed0fa2a1ba9c2311304671680c6bf | refs/heads/master | 2022-12-21T05:21:00.623464 | 2020-09-09T08:06:24 | 2020-09-09T08:06:24 | 294,044,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DRFViewset.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"ruchamunde@gmail.com"
] | ruchamunde@gmail.com |
59f35ce862fba5572d3fa349af79c857f80998f2 | 5b7af6548668085da9a6ab86f564538ee73c4865 | /build/scripts/slave/recipe_modules/sync_submodules/resources/deps2submodules.py | 7596609ca687bffb82ee3c78743d82aa56d0c70d | [
"BSD-3-Clause"
] | permissive | elastos/Elastos.APP.Android.ShiJiuTV | 463a986450a915f7b3066e6a03aca903cf56f69b | f77189a2b8df86028adc68105988710d16ce012b | refs/heads/master | 2023-03-18T03:11:58.337349 | 2018-03-12T08:50:57 | 2018-03-13T11:10:27 | 124,007,751 | 0 | 1 | null | 2022-10-03T03:30:29 | 2018-03-06T02:21:25 | null | UTF-8 | Python | false | false | 5,186 | py | #!/usr/bin/python
# Copyright (c) 2012 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.
"""Read DEPS and use the information to update git submodules"""
import argparse
import logging
import os
import re
import subprocess
... | [
"xiaokun.mengxk@qcast.cn"
] | xiaokun.mengxk@qcast.cn |
06eab32812567f359d7aea988deb216e87b8b3e1 | d114a6576659a4a299f5965032489d2abbe41282 | /src/computer_vision/nodes/synchronize_img_command_lidar.py | 9c7be96b236672ac1cb80aa900f9db16b72f267c | [
"MIT"
] | permissive | mldiego/Platooning-F1Tenth | dbc23ff7af3397716be1bbfdf9881da799206855 | ec5eadb137da8428642b3ffd1b8ca31fde4f6dff | refs/heads/master | 2023-03-04T21:08:12.799694 | 2021-02-18T00:11:46 | 2021-02-18T00:11:46 | 230,968,509 | 0 | 0 | MIT | 2021-02-16T17:34:01 | 2019-12-30T19:25:59 | Python | UTF-8 | Python | false | false | 4,887 | py | #!/usr/bin/env python
import rospy
import cv2
from std_msgs.msg import String
from sensor_msgs.msg import Image, CompressedImage,LaserScan
from cv_bridge import CvBridge, CvBridgeError
from message_filters import ApproximateTimeSynchronizer, Subscriber
from ackermann_msgs.msg import AckermannDriveStamped
import imutils... | [
"pmusau13ster@gmail.com"
] | pmusau13ster@gmail.com |
014a1726dce1e3d670880f2daba7a044700067c4 | bbec348efb79c6588a4cb6bb565c813fe3fe86ad | /pyVpx/pyVsm/pyVsm/ReflectTypes.py | 8fca89c7db09164ff1d65f4acc92cf7fbf57273b | [] | no_license | free-Zen/pvc | 2be60fdc0fd0345039219c802223f987fce3b113 | 8428a84481be319ae739dfbb87715f31810138d9 | refs/heads/master | 2022-02-24T12:13:31.599398 | 2019-10-14T07:49:13 | 2019-10-14T07:49:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,108 | py | # ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT *******
from .VmomiSupport import CreateDataType, CreateManagedType
from .VmomiSupport import CreateEnumType
from .VmomiSupport import AddVersion, AddVersionParent
from .VmomiSupport import AddBreakingChangesInfo
from .VmomiSupport import F_LINK, F_LINKABLE
from .Vm... | [
"liuzhen@vmware.com"
] | liuzhen@vmware.com |
ab6cd8266c32908502d62a2aa3848a27d9d5182b | 4014aa4a5ce0af0f10016b8fd056e26c147e8b42 | /stdlib/src/hmap/std/matching/topic_based/topic_types/flat_numbers.py | 4d48e4cc7bf94ad24eac0e2ff27f4449bf6692f1 | [
"MIT"
] | permissive | gregjhansell97/hive-map-python-3 | d09ac97a89a9cbddf26ab1c91f698d9e44941144 | d3d4f826f154a2aeea7e251266c221f629574b83 | refs/heads/master | 2020-07-31T12:23:55.983819 | 2020-04-28T23:52:49 | 2020-04-28T23:52:49 | 210,602,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from abc import abstractmethod
import struct
from hmap.interface.matching.topic_based import HashableTopic
class FlatNumber(HashableTopic):
fmt = ""
def __init__(self, content):
# TODO move to super class (FlatNumber)
self.__raw = struct.pack(sel... | [
"gregjhansell@gmail.com"
] | gregjhansell@gmail.com |
fc81fc7ae77bb68bbe360d676d6ea0f9dc2ffdda | 867796f20586cfa70422945d98e7d5e99edbabc2 | /contactista/migrations/ed99772734e1_initial_revision.py | a7f31619c7e62a4b989f9d250739bd7809b112ba | [
"MIT"
] | permissive | rizplate/contactista | 500cf7f640b3db94d0b49b921e4b09abdfc56d5b | 8b3030487518cd4767078703aee04041d2004725 | refs/heads/master | 2020-03-28T11:37:02.932371 | 2017-09-15T18:55:52 | 2017-09-15T18:56:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,048 | py | """Initial revision
Revision ID: ed99772734e1
Revises:
Create Date: 2017-08-01 12:48:40.754913
"""
import os
import json
from alembic import op
import sqlalchemy as sa
from sqlalchemy.schema import Sequence, CreateSequence, DropSequence
# revision identifiers, used by Alembic.
revision = 'ed99772734e1'
down_revisio... | [
"david@davidbaumgold.com"
] | david@davidbaumgold.com |
35ffcbdb4fcd1a28e57c02cab3f847dfaea2a016 | 508eff345eb4b7fd6040d6872f5ae626956deb27 | /samples/seal/inspect_seal_model.py | 386db48cd9a964a2eb8d23436b0247c6c09ef6a7 | [
"MIT"
] | permissive | xuannianc/Mask_RCNN | 7c9e2ed5b3d245cd9a7b42319c61a0aa83ddb295 | c942d5cf68508dd0e22d56a6eb25f8a30a090bda | refs/heads/master | 2020-03-30T00:52:43.433219 | 2018-12-03T05:27:30 | 2018-12-03T05:27:30 | 150,548,502 | 0 | 0 | null | 2018-09-27T07:41:57 | 2018-09-27T07:41:56 | null | UTF-8 | Python | false | false | 26,591 | py | import os
import os.path as osp
import sys
import random
import math
import re
import time
import numpy as np
import tensorflow as tf
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.patches as patches
# Root directory of the project
import glob
# ROOT_DIR = os.path.abspath("../../")
ROOT_DIR = os.p... | [
"chenxuannian@gmail.com"
] | chenxuannian@gmail.com |
0cbac4b32b5e85d2aa2d17639e2fb7a6ece2316b | 66176b6735f9fb3f8eaa649cf5df87a1104b9ddb | /src/csh/align_by_permutation.py | 41f2e3f44a543dfa3dd904a0f6f8b79a69bf18cf | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-public-domain-disclaimer",
"LicenseRef-scancode-other-permissive"
] | permissive | jswelling/Fiasco | a918b516c8880d4f627be6f8490fe01dc02f91a5 | 0e9264207c385e6c911f5458b9a90866ea14c4be | refs/heads/master | 2021-12-14T00:23:08.924678 | 2021-11-30T05:08:35 | 2021-11-30T05:08:35 | 66,334,022 | 3 | 0 | null | 2021-11-30T05:06:53 | 2016-08-23T04:49:58 | C | UTF-8 | Python | false | false | 9,918 | py | #! /usr/bin/env python
#
# ************************************************************
# * *
# * Permission is hereby granted to any individual or *
# * institution for use, copying, or redistribution of *
# * this code and associated documentation... | [
"welling@psc.edu"
] | welling@psc.edu |
b6ddfd1034f68fcb04d7dd7367c60d64d74c567f | 0da8fdae806b73e9dc57e052dcf1171c5a2c7f28 | /01_Python基础/05_高级数据类型/study_17_字符串的查找和替换.py | 21ac39e23afe3709e5be97d72fd7c073e80aff77 | [] | no_license | xujinshan361/python_study_code | ed37db128c55ee2ad9f7b2db04785c632a7115d4 | e6ce0bdd8243dfaadf56213ef0120d215de0d0cd | refs/heads/master | 2020-12-10T12:19:45.792310 | 2020-01-13T12:48:22 | 2020-01-13T12:48:22 | 233,592,034 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | hello_str = "hello word"
# 1.判断是否以指定字符串开始
print(hello_str.startswith("he"))
# 2.判断是否以指定字符串结束
print(hello_str.endswith("word"))
# 3.查找指定字符串
# index同样可以查找指定的字符串在大字符串中的索引
print(hello_str.find("lo"))
# index 如果指定的字符串不存在,会报错
# find如果指定的字符串不存在,会返回-1
# print(hello_str.index("abc"))
print(hello_str.find("abc"))
# 4.替换字符串
#... | [
"xujinshan361@163.com"
] | xujinshan361@163.com |
e40d8657052e26d4cd67730ceea350b9fcbf5a6c | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/constant/ParamConstants.py | 1de953edff0cd37434ed88f9fc6c6feb2d8c34c5 | [
"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 | 938 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on 2017-12-20
@author: liuqun
'''
COMMON_PARAM_KEYS = set()
P_APP_ID = "app_id"
COMMON_PARAM_KEYS.add(P_APP_ID)
P_METHOD = "method"
COMMON_PARAM_KEYS.add(P_METHOD)
P_FORMAT = "format"
COMMON_PARAM_KEYS.add(P_FORMAT)
P_CHARSET = "charset"
COMMON_PARAM_KEYS... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
6552dea2d2667854202895aec4f0df5259855cbc | b0f6dbd92c368bd68fa1aafd67fdde9c323ab1be | /config.py | 578b0ee4e0b9ed526e8784e67ae9a7c91b5a685d | [
"Apache-2.0"
] | permissive | niezhongliang/InsightFace-v3 | ac62cff7d4aeb957fac9189ccca26976f9a045e9 | e10cefec3bf0c465c92c42980ecbdb32eacc6dd5 | refs/heads/master | 2020-09-15T20:36:16.087481 | 2019-11-23T00:23:46 | 2019-11-23T00:23:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | import logging
import os
import torch
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # sets device for model and PyTorch tensors
# Model parameters
image_w = 112
image_h = 112
channel = 3
emb_size = 512
# Training parameters
num_workers = 8 # for data-loading; right now, only 1 works with h... | [
"liuyang12@focusmedia.cn"
] | liuyang12@focusmedia.cn |
f9460bdd828edd3892ba9506260ad360ad7bfbad | ef3a7391b0a5c5d8e276355e97cbe4de621d500c | /venv/Lib/site-packages/thinc/neural/train.py | 1a0492b1e6ef38288d5f82838d0e13063fc3efe1 | [
"MIT",
"Apache-2.0"
] | permissive | countBMB/BenjiRepo | 143f6da5d198ea6f06404b4559e1f4528b71b3eb | 79d882263baaf2a11654ca67d2e5593074d36dfa | refs/heads/master | 2022-12-11T07:37:04.807143 | 2019-12-25T11:26:29 | 2019-12-25T11:26:29 | 230,090,428 | 1 | 1 | Apache-2.0 | 2022-12-08T03:21:09 | 2019-12-25T11:05:59 | Python | UTF-8 | Python | false | false | 1,862 | py | # coding: utf8
from __future__ import unicode_literals
import numpy.random
from tqdm import tqdm
from .optimizers import Adam, linear_decay
class Trainer(object):
def __init__(self, model, **cfg):
self.ops = model.ops
self.model = model
self.L2 = cfg.get("L2", 0.0)
self.optimizer... | [
"bengmen92@gmail.com"
] | bengmen92@gmail.com |
f272ca7a76a6022c13d750e5b42a0e7394821aaf | 3e1ae16ca94c652b5a05a9c150d85d5e909186b7 | /edward2/tensorflow/layers/made.py | d5f4b7e92bd56f65897396ccc65cf8a83204397d | [
"Apache-2.0"
] | permissive | google/edward2 | c2c75f2b7a72b96eb9cdef94756c47fc205e3110 | ccdb9bfb11fe713bc449f0e884b405f619f58059 | refs/heads/main | 2023-08-31T10:33:16.291114 | 2023-07-27T20:36:19 | 2023-07-27T20:37:25 | 201,102,332 | 710 | 96 | Apache-2.0 | 2023-09-11T20:41:55 | 2019-08-07T18:01:40 | Jupyter Notebook | UTF-8 | Python | false | false | 9,656 | py | # coding=utf-8
# Copyright 2023 The Edward2 Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"edward-dev@google.com"
] | edward-dev@google.com |
85a20a5685d762ddec4eeda36978c63036c74206 | 6a01a9287a4c23c7f11b7c5399cfb96bbe42eba8 | /python/scripts/make_id_table_with_diff_expr.py | 314e25e631430921796b32ad7d8d52c104d61aff | [
"MIT"
] | permissive | xguse/gmm-to-gff-transcripts-vs-snps | 3c25bf2752aee76174d5dab92060fe7269caf99f | 75337135ab8ff6d840af3cfccfe6404a06777a54 | refs/heads/master | 2021-01-19T01:50:33.473897 | 2016-08-02T20:31:18 | 2016-08-02T20:31:18 | 54,731,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | """Describe here what this rule accomplishes."""
import pandas as pd
import numpy as np
# Settings
edger_results_labels = snakemake.params.edger_results_labels
cufflinks_results_labels = snakemake.params.cufflinks_results_labels
# input
edger_results = snakemake.input.edger_results
cufflinks_results = snakemake.inp... | [
"wadunn83@gmail.com"
] | wadunn83@gmail.com |
f258f81afafb2186624f0028d7416f7aca37869d | 3114430ce15c18281117459e26eea4b774e3998a | /day4/accounts/models.py | 1fd9d1bf8a13f354846f792bd07b42ea810b5486 | [
"MIT"
] | permissive | Joseamica/Easily-written-Django | c02e7333e84ca2257b7b8bfae3f6732898c5000a | 0b746638751702c453db9490fe29ef6d34e4a3bc | refs/heads/master | 2021-05-27T20:25:41.341149 | 2014-05-25T08:25:53 | 2014-05-25T08:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from django.db import models
from django.contrib.auth.models import User
import hashlib
# Create your models here.
class Account(models.Model):
user = models.OneToOneField(User)
def gravatar_url(self):
return "http://www.gravatar.com/avatar/%s?s=50" % hashlib.md5(self.user.email).hexdigest()
def ... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
538fc3e6a7b554c75a45025f802bf9fb341dae19 | d6e287bbba11be4906e599d1362c9ef89c4fb9de | /modules/utils/datasets/__init__.py | 53671ef9604559f6da0848293411281007d9f83b | [
"MIT"
] | permissive | bityangke/WSDDN.pytorch-1 | 67d52f158238f2d5b234ddefeb7f05f06bf6b123 | 9a67323c80566cacc762c68021824aa80a82c524 | refs/heads/master | 2022-11-15T00:22:44.903418 | 2020-07-06T13:43:22 | 2020-07-06T13:43:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | '''import all'''
from .Sampler import GroupSampler
from .VOCDataset import VOCDataset
from .Builder import buildDataloader
'''define alll'''
__all__ = ['GroupSampler', 'VOCDataset', 'buildDataloader'] | [
"1159254961@qq.com"
] | 1159254961@qq.com |
0a390ae66c096ec7b6e7b0aff70e9f8e2f83aec5 | 68d38b305b81e0216fa9f6769fe47e34784c77f2 | /alascrapy/spiders/tomsguide_fr.py | 512927ada4008f9bf18b66205719a64e70329068 | [] | no_license | ADJet1437/ScrapyProject | 2a6ed472c7c331e31eaecff26f9b38b283ffe9c2 | db52844411f6dac1e8bd113cc32a814bd2ea3632 | refs/heads/master | 2022-11-10T05:02:54.871344 | 2020-02-06T08:01:17 | 2020-02-06T08:01:17 | 237,448,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,269 | py | # -*- coding: utf8 -*-
from datetime import datetime
import re
from scrapy.http import Request, HtmlResponse
from scrapy.selector import Selector
from alascrapy.spiders.base_spiders.ala_spider import AlaSpider
from alascrapy.spiders.base_spiders.bazaarvoice_spider import BVNoSeleniumSpider
from alascrapy.lib.generic ... | [
"liangzijie1437@gmail.com"
] | liangzijie1437@gmail.com |
826f60594002015e659cc80aca283bfe601d0b98 | 0c958692bb3abf99ecbd03bd75a605b202d4da5a | /CRAB/MuNu/synch/2014ocbr24/synchThree.py | 0bc6084ab362fd99b029e74554cc6bfc9b96b5f1 | [] | no_license | tmrhombus/UWAnalysis | a9ed18a7ba8726522c8d98fbdc018c77d80c5cc5 | eb9e0794e1b847f36c660a55d3631176a39148e2 | refs/heads/master | 2021-01-23T20:46:41.578341 | 2017-05-01T08:26:57 | 2017-05-01T08:26:57 | 10,620,824 | 0 | 0 | null | 2014-10-21T11:21:16 | 2013-06-11T12:19:43 | Python | UTF-8 | Python | false | false | 4,427 | py | cut = 'C1_data_2014ocbr23_m12e10_smrGenNu_clnMu'
#cut = 'C3_tt_2014ocbr23_m12e10_smrGenNu_clnMu'
andreas_events = set([line.strip() for line in open('./comp/%s_and.txt'%(cut))])
jelenas_events = set([line.strip() for line in open('./comp/%s_jel.txt'%(cut))])
toms_events = set([line.strip() for line in open('./comp/%... | [
"tperry@cern.ch"
] | tperry@cern.ch |
6d8ce22c751efd861956be268dafc8c2f00f3fbd | c0acf82a18b8e90cd38afedb02e45e53425a067e | /pyecharts/custom/overlap.py | e2cdd57622347e115a2fe03fcdc86c1ef34f05fd | [
"MIT"
] | permissive | caideyang/pyecharts | 66b61d0400ea15b25ef7fb90f7305647343eea3a | c13f2fecece566359b2c881705bf96337c42ce40 | refs/heads/master | 2021-01-22T13:48:00.474761 | 2017-08-18T07:09:53 | 2017-08-18T07:09:53 | 100,685,801 | 1 | 0 | null | 2017-08-18T07:31:13 | 2017-08-18T07:31:13 | null | UTF-8 | Python | false | false | 1,609 | py | #!/usr/bin/env python
# coding=utf-8
class Overlap(object):
def __init__(self):
self._chart = None
def add(self, chart):
"""
:param chart:
chart instance
:return:
"""
if self._chart is None:
self._chart = chart
else:
... | [
"chenjiandongx@qq.com"
] | chenjiandongx@qq.com |
003d9d838b7372a3284b30915aec63707830d821 | ef20884169d10ec9ac4d1d3b77ee35245d248294 | /practice/deep-learning-from-scratch-2/np_random_choice.py | 9360dbb41512575e33d9d1d800f8a11e55fdeec2 | [] | no_license | heaven324/Deeplearning | 64016671879cdf1742eff6f374cfb640cfc708ae | a7a8d590fa13f53348f83f8c808538affbc7b3e8 | refs/heads/master | 2023-05-05T08:54:27.888155 | 2021-05-22T08:25:47 | 2021-05-22T08:25:47 | 188,010,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import numpy as np
print(np.random.choice(10)) # 5
print(np.random.choice(10)) # 9
# words에서 하나만 무작위로 샘플링
words = ['you', 'say', 'goodbye', 'I', 'hello', '.']
print(np.random.choice(words))
# 5개만 무작위로 샘플링(중복 있음)
print(np.random.choice(words, size = 5))
# 5개만 무작위로 샘플링(중복 없음)
print(np.random.choice(words, size =... | [
"wjdtjdgh2005@gmail.com"
] | wjdtjdgh2005@gmail.com |
778459e47142827e3629b6af6b3dbfc2ccc5d25e | ce990be34e8759efb96b890d9676da313fd2d9b4 | /tests/python/contrib/test_ethosu/cascader/test_plan.py | ddc40b49ac8a8de119af6b9b19d208ef745f4899 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Zlib",
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | tmoreau89/tvm | 291c0b1beb13503e18b1e45f135aaf334660b68d | 8136173a631bf6c7274d26285349225fcf6e495f | refs/heads/master | 2022-11-23T08:36:24.853648 | 2022-11-21T07:36:57 | 2022-11-21T07:36:57 | 119,757,672 | 5 | 1 | Apache-2.0 | 2019-03-22T23:06:53 | 2018-01-31T23:41:33 | Python | UTF-8 | Python | false | false | 7,708 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | tmoreau89.noreply@github.com |
b57aa04bb1157d20423de65671bee218d8715f6d | 730b92e439dbb013950b8bbf417cfde1bb40f8b9 | /Python/Add-Binary.py | 8b8be13ae529418ef8672901ffeb760e078c1eb4 | [] | no_license | yuede/Lintcode | fdbca5984c2860c8b532b5f4d99bce400b0b26d0 | d40b7ca1c03af7005cc78b26b877a769ca0ab723 | refs/heads/master | 2021-01-13T04:14:32.754210 | 2015-08-22T13:15:54 | 2015-08-22T13:15:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | class Solution:
# @param {string} a a number
# @param {string} b a number
# @return {string} the result
def addBinary(self, a, b):
# Write your code here
pa = len(a) - 1
pb = len(b) - 1
s = ""
d = 0
while pa >= 0 and pb >= 0:
cur = d + int(a[pa... | [
"jiangyi0425@gmail.com"
] | jiangyi0425@gmail.com |
97a5797d6b970d29dbea2c4c90e09131f13ca91c | e5efada3529d94875455c4230c8dabe27fb72a89 | /apps/search/migrations/0015_advancedsearchpage_simplesearchpage.py | 74a14dceeeef2ab60fb56655bb00ed68b2a72af6 | [] | no_license | alexmon1989/uma | d8c321fb0ec9b1a9039b1c83aeaaff774f657416 | 5dea579d634eeb1c8103c21157299b33ca5590f0 | refs/heads/master | 2023-08-03T04:31:13.598577 | 2023-07-22T18:17:13 | 2023-07-22T18:17:13 | 154,835,498 | 0 | 0 | null | 2023-03-02T11:20:54 | 2018-10-26T13:02:12 | Nunjucks | UTF-8 | Python | false | false | 1,712 | py | # Generated by Django 2.1.3 on 2019-10-10 13:38
import ckeditor_uploader.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('search', '0014_auto_20190719_1155'),
]
operations = [
migrations.CreateModel(
name='AdvancedSear... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
52980438ee437a5977680307d4b13bd673f3b1a3 | 6d7a67be5c2aa1bcebdcfd5bec855c0172c8f01f | /convert_weight.py | 55566963e7439f9fb4e9649bdd289f5114337916 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | JWHennessey/stylegan2-pytorch-1 | 19184e1713b9bcfce6404fb6d19478f1dbcc56ec | 88852e3695d3ffd9281787690c3f8796dc1e225a | refs/heads/master | 2020-12-11T17:17:04.082956 | 2020-01-14T18:44:39 | 2020-01-14T18:44:39 | 233,909,977 | 0 | 0 | NOASSERTION | 2020-01-14T18:37:33 | 2020-01-14T18:37:32 | null | UTF-8 | Python | false | false | 6,849 | py | import argparse
import os
import sys
import pickle
import math
import torch
import numpy as np
from torchvision import utils
from model import Generator, Discriminator
def convert_modconv(vars, source_name, target_name, flip=False):
weight = vars[source_name + '/weight'].value().eval()
mod_weight = vars[sou... | [
"kim.seonghyeon@snu.ac.kr"
] | kim.seonghyeon@snu.ac.kr |
7659459672a025e4b61ead51cea0f2b290a37634 | 796d2e8c1b801b745e628876b20f03399b343b39 | /learning/admin.py | 4505b532c666c0cb54ee8ef0d215b472516390d7 | [] | no_license | educatecomtr/stocks | 25b675996350d8496bf163ffef2d539ebcb9c6ec | 16fa674a694981ce77be4e915440883f3d08e65e | refs/heads/master | 2021-06-25T22:18:29.239692 | 2020-12-26T13:17:14 | 2020-12-26T13:17:14 | 180,432,643 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from django.contrib import admin
from learning.models import Product
admin.site.register(Product)
| [
"info@internet.com.tr"
] | info@internet.com.tr |
782a5e2a11fe39696a75f0f5a033a5af024cc786 | f8ffac4fa0dbe27316fa443a16df8a3f1f5cff05 | /Python/Counting_Valleys.py | db3c7a3eda8be589ae74a986fadb83c8e44b2c00 | [] | no_license | ankitniranjan/HackerrankSolutions | e27073f9837787a8af7a0157d95612028c07c974 | e110c72d3b137cf4c5cef6e91f58a17452c54c08 | refs/heads/master | 2023-03-16T19:06:17.805307 | 2021-03-09T16:28:39 | 2021-03-09T16:28:39 | 292,994,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | import math
import os
import random
import re
import sys
# Complete the countingValleys function below.
def countingValleys(n, s):
level=valley=0
for i in range(n):
if(s[i]=='U'):
level+=1
if(level==0):
valley+=1
else:
level-=1
return... | [
"noreply@github.com"
] | ankitniranjan.noreply@github.com |
ab55393ddc0e46a0f229ce84b50466d0ac1cb266 | 65701888f7e09716b83ddbb965a50b7c62b0f287 | /blocks/google/common_block.py | fb2ba923f68bc8aedfef5cc46a894ff664e758b9 | [] | no_license | ColinKennedy/auto_docstring | 6a4a27c16434cb6d94db435226758a09627d9252 | dbca838630faf410a277069aedbecb82cfeedae9 | refs/heads/master | 2021-04-12T12:36:31.825008 | 2018-11-05T01:49:49 | 2018-11-05T01:49:49 | 89,107,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,343 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# TODO : Just had an idea. Why not change the gross "if X.is_valid(obj): return X(obj)
# into a single classmethod? That'd look way better and potentially be
# easier to loop over
#
'''The classes and functions needed to parse the types of all astroid nodes.
... | [
"colinvfx@gmail.com"
] | colinvfx@gmail.com |
9b5f678ee01f74948e3abe78205622ca733d1def | f6d96e9505103428402ea9772fdd0b48c4dff7e9 | /tests/test_models/test_place.py | 4bd8e6e2e665353886e8de7c111a98acd68c7add | [] | no_license | KarenCampo777/AirBnB_clone | 8271a2a7f75c01ea875b9232a939f1f58f484705 | 95051e3c7c05837b89966caae55bb54eef81c95f | refs/heads/master | 2023-03-14T03:41:18.367359 | 2021-02-24T22:32:17 | 2021-02-24T22:32:17 | 276,201,869 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | #!/usr/bin/python3
"""
Test module for place module
"""
from models.place import Place
import models
import unittest
import os
import datetime
class TestPlace(unittest.TestCase):
""" Testing an Place instance """
def setUp(self):
"""
Setting up the test instance
"""
self.my_... | [
"andresbaymon@gmail.com"
] | andresbaymon@gmail.com |
ada10adc0bef6aee3f66cc6505c04af63ade6437 | ca2818572d17285210792694ba1f07c99e11d9ad | /setup.py | 209a4bd93203208084c183cf32cece8f76ddf3bd | [
"Apache-2.0"
] | permissive | tomzhang/codesnap | cc335e8a63af70ed0121b222eb4fc2e35841b0b0 | 04e11176888243052c46a6a04a1ba63a8f80d684 | refs/heads/master | 2022-11-29T16:23:05.625385 | 2020-08-09T07:11:58 | 2020-08-09T07:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import setuptools
from distutils.core import Extension
with open("README.md") as f:
long_description = f.read()
setuptools.setup(
name="codesnap",
version="0.0.4",
author="Tian Gao",
author_email="gaogaotiantian@hotmail.com",
description="A profiling tool that can visualize python code in flam... | [
"gaogaotiantian@hotmail.com"
] | gaogaotiantian@hotmail.com |
33bada0a6ebc9c86ad48aa12cb5fff42acd3588a | 3b43cf4cfc666798ebe85ed1db8858034b13d45c | /tests/universal_functions_tests/power_tests/normal.py | dab58c185239f89bab51ee55c80dbe61e5d4326a | [
"Apache-2.0"
] | permissive | Pandinosaurus/legate.numpy | 5428b80a0a53ab882cd74b5dbf5fd86c7ee82199 | 896f4fd9b32db445da6cdabf7b78d523fca96936 | refs/heads/master | 2023-06-27T04:33:52.982601 | 2021-07-01T21:39:52 | 2021-07-01T21:39:52 | 358,820,941 | 0 | 0 | Apache-2.0 | 2021-08-01T02:57:57 | 2021-04-17T08:06:05 | C++ | UTF-8 | Python | false | false | 1,000 | py | # Copyright 2021 NVIDIA Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"wonchanl@nvidia.com"
] | wonchanl@nvidia.com |
153121106ebc24e5c336526de3225d92751f09bb | 2efa07bd7d8864950fb2f377386d74a2ee992d3a | /project.py | c044ceba15827ad76acdba4c58a966ae8a6a9a4b | [] | no_license | Sbk3824/RestaurantWebsite | 9e318c30dd65fe46fe8adbc3aa4ccde0a4924f74 | a7930a6d487700d2d6fa54201f87eda48d16528f | refs/heads/master | 2020-03-20T19:19:48.387025 | 2018-07-06T01:52:47 | 2018-07-06T01:52:47 | 137,632,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,252 | py | from flask import Flask, render_template, request, redirect, jsonify, url_for, flash
from sqlalchemy import create_engine, asc
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem, User
from flask import session as login_session
import random
import string
from oauth2client.clie... | [
"shantu24@gmail.com"
] | shantu24@gmail.com |
8a4209560e01a9bb2625b02445afa69dcf3b28fc | e7ff2f9e21a94f2956b8c79f268dc6d45b41237b | /Frontend/node_modules/watchpack-chokidar2/node_modules/fsevents/build/config.gypi | b5962c025c83982c05fecf7c1819e71e4893c18a | [
"MIT"
] | permissive | vipul-07/MERN-Project | fcb4af686557b99b802404e8622905781e89bbc3 | c0bdd3b5dfc73b2657b8563d069360e11466714a | refs/heads/master | 2023-02-14T15:42:38.653627 | 2021-01-10T05:35:02 | 2021-01-10T05:35:02 | 317,460,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,709 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"apple@Apples-MacBook-Pro.local"
] | apple@Apples-MacBook-Pro.local |
f32cc09e9b5e4191dae2fb825a128f8ca6aa38c6 | 2e2a02ec8323982975ace3d249b22a42d8b97a1f | /skipper.py | 11171dc6ca97629b3d735b09f2921f679e80ed68 | [] | no_license | datagovua/os-budget-ukraine | 4e8c6d0373aead42890349befbd69bf8e8fef0a1 | 3a45f89c3872c9b9b45fb1206da445989b37b335 | refs/heads/master | 2021-01-13T02:49:03.608617 | 2016-12-22T20:59:14 | 2016-12-23T01:14:22 | 77,156,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import logging
from datapackage_pipelines.wrapper import ingest, spew
_, datapackage, resource_iterator = ingest()
def intTryParse(value):
try:
int(value)
return True
except ValueError:
return False
def process(res):
for row in res:
if intTryParse(row['1.0']):
yield row
... | [
"vanuan@gmail.com"
] | vanuan@gmail.com |
b0258289543572c3d2fd2b3d83991eb4e2d9f4dc | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/orchs/svcsencap.py | 83b1a538fc7c72069845b02465a56b59e320b8da | [] | 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 | 8,108 | 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 |
3157fe6fdd447bb57057687c3cf1dc6b2b15380c | 7eadcb17f2555a80b1d7a065a9f9cefbe3c127e7 | /frappe/translate.py | d3d629a6fbd8419a6d004f9b68b66dfb0ab778d2 | [
"MIT"
] | permissive | sivaranjanipalanivel/frappesample | a97f7c636d5f5869e3410a57bc3ac82d32884d0e | e37ff70ac92c16d1fb0bce5eb11dad62c9ff7564 | refs/heads/master | 2020-07-24T17:00:35.139985 | 2019-09-12T07:21:50 | 2019-09-12T07:21:50 | 207,989,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,483 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals, print_function
from six import iteritems, text_type, string_types
"""
frappe.translate
~~~~~~~~~~~~~~~~
Translation tools for frappe
"""
import frappe, os, re, codecs, jso... | [
"you@example.com"
] | you@example.com |
80a7585e86a4e8633b65ccb5495c63da103934b7 | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python3/216.Combination Sum III(组合总和 III).py | 4c2a30d0cd8dad2c5c465ba3a4dfdb989f691e11 | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,388 | py | """
<div>
<p>Find all possible combinations of <i><b>k</b></i> numbers that add up to a number <i><b>n</b></i>, given that only numbers from 1 to 9 can be used and each combination should be a unique set of numbers.</p>
<p><strong>Note:</strong></p>
<ul>
<li>All numbers will be positive integers.</li>
<li>The solut... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
c5daf96e1ec9ac90dc1db252619f073fb6d4df6d | 179a0f995f5a3eb7a6005f8e96498ef21b2bf166 | /docs/conf.py | 45ccdf6d81b9baf63f859bf4fc96836c47707904 | [
"MIT"
] | permissive | VB6Hobbyst7/pycatia | 845052a4584318bf0cf0861512203ddd337a7bca | cff309fe2b4802ff2b2c5c984f8064747f81065d | refs/heads/master | 2023-04-14T20:28:51.427101 | 2021-04-27T11:03:42 | 2021-04-27T11:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,936 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"evereux@gmail.com"
] | evereux@gmail.com |
5b32271db5c92ee02645aa87c392e218c743cf69 | 4e8ac215b672b333f19da87787c0d8768fee439e | /MIDI Remote Scripts/ableton/v2/control_surface/control/control.py | b050616c5b7e2facc9c92208f7c4ed9e683e3dbf | [
"MIT"
] | permissive | aarkwright/ableton_devices | 593f47293c673aa56f6e0347ca6444b7fce2812a | fe5df3bbd64ccbc136bba722ba1e131a02969798 | refs/heads/master | 2020-07-02T08:11:21.137438 | 2019-08-09T13:48:06 | 2019-08-09T13:48:06 | 201,467,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,384 | py | # uncompyle6 version 3.3.5
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\ableton\v2\control_surface\control\control.py
# Compiled at: 2019-05-... | [
"apollo.arkwright@gmail.com"
] | apollo.arkwright@gmail.com |
8c1605776199c122465a2aa10d3dade49beec409 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02748/s229745856.py | 07e6ff9b4f694f31ed7e0dfb26750d3f2b624a60 | [] | 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 | 232 | py | _, _, M = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
xyc = [tuple(map(int, input().split())) for i in range(M)]
print(min([min(A)+min(B)]+[A[x-1]+B[y-1]-c for x, y, c in xyc]))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
572938151b792f0f6e8e2bb10d5c6bd6a452af48 | e5504d8c4880993b82d5583a11c5cc4623e0eac2 | /Arrays/loopInCircularArray__IMP.py | 768b8bdc06fdc4ba7a36f6287179bf3b4b92d756 | [] | no_license | noorulameenkm/DataStructuresAlgorithms | e5f87f426fc444d18f830e48569d2a7a50f5d7e0 | 7c3bb89326d2898f9e98590ceb8ee5fd7b3196f0 | refs/heads/master | 2023-06-08T19:29:42.507761 | 2023-05-28T16:20:19 | 2023-05-28T16:20:19 | 219,270,731 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | def circular_array_loop_exists(arr):
# TODO: Write your code here
for i in range(len(arr)):
slow = fast = i
is_forward = arr[i] >= 0
# if slow or fast becomes '-1' this means we can't find cycle for this number
while True:
# move one step for slow pointer
slow = get_next_index(arr, is_f... | [
"noorul.km@people10.com"
] | noorul.km@people10.com |
3aefb338c74473c31e9b8b9f5b57d93c9d53d0e5 | 5f957add3e3f7a1885d4f1b106de72e93c8fcb1a | /ExerciciosPython/ex072.py | a2215342cdcfa208efd442734fd5f94405993530 | [
"MIT"
] | permissive | mpatrickaires/curso-python | 6e32cf785a3bc0076bb3ea24cd6d896604f4e774 | aba023648527d53bfe18833b91210a7e528a84d7 | refs/heads/main | 2022-12-27T00:57:07.467940 | 2020-10-14T00:48:09 | 2020-10-14T00:48:09 | 302,203,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | extenso = ('zero', 'um', 'dois', 'três', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove', 'dez', 'onze',
'doze', 'treze', 'catorze', 'quinze', 'dezesseis', 'dezessete', 'dezoito', 'dezenove', 'vinte')
while True:
numero = int(input('Digite um número entre 0 e 20: '))
while numero < 0 or numero > 2... | [
"mpatrickaires@gmail.com"
] | mpatrickaires@gmail.com |
bb474b239a91648af44dd841343b2853899bbb38 | da38287bf935ce68321f63f17c24433384312786 | /generate&inference no texons/inference_demo_v1.2.py | 51c6887b269101830e3f04d67e3685f1a59fe4bb | [] | no_license | ningtangla/sceneParsing | 08eb5e58bceba5171e2b60a63e3b30661428e2c3 | 5b425e4203d725ac628c6b43bf1d5fa889eae7e0 | refs/heads/master | 2022-12-25T09:21:53.192613 | 2019-06-18T00:48:19 | 2019-06-18T00:48:19 | 192,429,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,323 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 24 13:52:00 2017
@author: Edward Coen
"""
from __future__ import division
from scipy.misc import comb
import math
import scipy.stats
import numpy as np
import networkx as nx
from networkx.algorithms.traversal.depth_first_search import dfs_successors
import ... | [
"ningtangzju@gmail.com"
] | ningtangzju@gmail.com |
1114a68d8b2e5c4fd05992b6c8ee4ca498cc92af | 755e4e6e966433fe887f0f28f14916696b1588d7 | /code/exceptions/exceptions.py | 7e62995995ecbc57b12ce62c9ad0de8d73a94b9e | [] | no_license | phildue/FingerspellingRecognition | f18518a6e2e29b769d131e5b54846f00213f3ff1 | 1b5236142734d7b50f0f4161ecc533b7d10347b8 | refs/heads/master | 2021-03-24T10:40:24.507766 | 2017-07-03T09:33:09 | 2017-07-03T09:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | class NotTrained(Exception):
pass
class NoRoiFound(Exception):
pass
class NoContoursFound(Exception):
pass
class DescriptorFailed(Exception):
pass | [
"phild@protonmail.com"
] | phild@protonmail.com |
d1684f57fb28491ecde85c741f45fcd4e4659cf8 | ed9e4027cbd76fbac19598163b9673628cb07eea | /anjia/asgi.py | 372aac7872de8b88fd3e438e294b71fb8dafce32 | [
"BSD-2-Clause"
] | permissive | ankiwoong/python_kindergarten | 3a1f9a486a32866b5f37ba4673dfc2135a85eec0 | 43b1e15969f0d35073e2f7fb1286d8c094fd80a8 | refs/heads/master | 2022-09-01T08:11:27.374802 | 2020-05-27T08:45:14 | 2020-05-27T08:45:14 | 258,760,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for anjia project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"ankiwoong@gmail.com"
] | ankiwoong@gmail.com |
6a50f6dc840ad5ee463050db663639df9a8ea7dd | e8b12e314782bf68347838599c8168e4a8019373 | /CompareAlternatives.py | 0d80231eb7ed1c3ac5094ee2f446c2fa5eed2155 | [] | no_license | HPM573/Lab_ParallelProcessing | 0ce7e4b615afe9e2e2a281f79684e9067003aa1b | f2e6401f4a5dc057a150914653079c0284c92b4b | refs/heads/main | 2023-05-12T06:03:15.275404 | 2023-05-02T13:58:18 | 2023-05-02T13:58:18 | 180,822,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | import EconEvalInputData as D
import ProbabilisticSupport as Support
import ProbilisticParamClasses as P
from ParallelClasses import ParallelMultiCohort
N_COHORTS = 200 # number of cohorts
if __name__ == '__main__': # this line is needed to avoid errors that occur on Windows computers
# create a mu... | [
"reza.yaesoubi@yale.edu"
] | reza.yaesoubi@yale.edu |
48b211d3ffc2fe351f125460bfa2de347c5ad89c | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/frenetic-lang_pyretic/pyretic-master/pyretic/tests/test_mac_learner.py | 19c0e4482c157a77029346d963681440c374e52d | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,387 | py | #!/usr/bin/python
from mininet.net import Mininet
from mininet.node import RemoteController
import os, shlex, subprocess, utils, time
from utils import init
### Module Parameters
def get_controller():
return 'pyretic.modules.mac_learner'
def run_mininet():
# mn = Mininet()
# s1 = mn.addSwitch('s1')
# ... | [
"659338505@qq.com"
] | 659338505@qq.com |
dc4ee8e84412fbe9e26fa41aea2ba61f0a80d687 | 3b11dc40c7d772fffeb4d8683e5c9791c41f6454 | /custom/clients/ecobank/ecobank_inventory/models/inventory_account.py | 54cf03c640a891acbae5ed78bf433efd0cd027f2 | [] | no_license | Jacky-odoo/Ecobank | b986352abac9416ab00008a4abaec2b1f1a1f262 | 5c501bd03a22421f47c76380004bf3d62292f79d | refs/heads/main | 2023-03-09T18:10:45.058530 | 2021-02-25T14:11:12 | 2021-02-25T14:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | from odoo import api, fields, models
from odoo.exceptions import ValidationError
class InventoryUser(models.Model):
_name = 'inventory.account'
_rec_name = 'name_and_code'
name = fields.Char(string='Name', required=True)
code = fields.Char(string='Code', required=True)
name_and_code = fields.Char... | [
"francisbnagura@gmail.com"
] | francisbnagura@gmail.com |
101e6d98e6ea5327b9632183ef8eb52de0c552e9 | ff5eea95bb0827cb086c32f4ec1c174b28e5b82d | /gammapy/background/tests/test_ring.py | 047cad9a887193d1551fbd48446204c72bfc2e9e | [] | no_license | pflaumenmus/gammapy | 4830cc5506a4052658f30077fa4e11d8c685ede0 | 7b5caf832c9950c886528ca107203ce9b83c7ebf | refs/heads/master | 2021-01-15T23:27:46.521337 | 2013-09-25T14:23:35 | 2013-09-25T14:23:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import division
import unittest
import pytest
import numpy as np
from numpy.testing import assert_almost_equal
from astropy.io import fits
from ..maps import Maps
from ..ring import RingBgMaker, outer_ring_radius
try:
import scipy
... | [
"Deil.Christoph@gmail.com"
] | Deil.Christoph@gmail.com |
77c326d8b4be8828d4ff340158b1355fd541aecb | b97edfc765baa1432fcef82596e2a2d48310cce0 | /algorithms/say.py | d6b5ed481550797d2a4d690ecaf72ebaaa5c6346 | [] | no_license | NicholasPiano/scripts | 4dadaa97bb1bb18bd51c5526b0a57c7ddc554fce | 76b610af49128f0434419fcd75be606ef5efbb37 | refs/heads/master | 2020-05-31T01:29:43.284877 | 2015-01-05T02:00:28 | 2015-01-05T02:00:28 | 27,193,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | #!usr/bin/python3
import os
os.system('say vizontlatahshrah') | [
"nicholas.d.piano@gmail.com"
] | nicholas.d.piano@gmail.com |
ff31f03d357f8dd02d1fef1e8193bb092e608bea | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02708/s465285057.py | b9e8c08a651992f50a225309892a6784c1a1572f | [] | 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 | 257 | py | from itertools import accumulate
N,K = map(int,input().split())
acc = list(accumulate(range(N+1), lambda x,y:x+y))
ans = 0
mod = 10**9+7
for i in range(K, N+1):
r = acc[N] - acc[N-i]
l = acc[i-1]
ans = (ans+r-l+1) % mod
ans += 1
print(ans % mod) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
38eaeac29ebaa70dc88d888b36fe8d2e3156dd76 | 083b3f5b0d23c269c6a9ff1ea413e70fb799a497 | /Leetcode Challenge/09_September_2020/Python/Week 5/2_First Missing Positive.py | 5daf39e470ef89206f9440b17c1cc1717578a4f7 | [] | no_license | HectorIGH/Competitive-Programming | b2e02dff140d9ebb06c646f7be0b53ea0afe90c9 | 467058c63e8a7e76805feebe3020bac4d20516a6 | refs/heads/master | 2022-12-31T18:32:46.824626 | 2020-10-16T20:38:33 | 2020-10-16T20:38:33 | 279,733,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | #Given an unsorted integer array, find the smallest missing positive integer.
#
#Example 1:
#
#Input: [1,2,0]
#Output: 3
#Example 2:
#
#Input: [3,4,-1,1]
#Output: 2
#Example 3:
#
#Input: [7,8,9,11,12]
#Output: 1
#Follow up:
#
#Your algorithm should run in O(n) time and uses constant extra space.
#
# Hide Hint #1
#T... | [
"HectorIGH@users.noreply.github.com"
] | HectorIGH@users.noreply.github.com |
21cc1ba23778a7ba76d8b97034ae2a2236266abf | 864acf7235e330123c3d68ed14cdd8bf8eed800b | /crm/accounts/models.py | be98a7f2e0926b1e0b0ec5e7fd8a599dfe9597b2 | [] | no_license | wahid999/djangostuff | 83f0ae53df5c53d192603d7aaf7ee72f8665c240 | c102edfb13b8ba39930e44069122c5e545ef00ee | refs/heads/main | 2023-07-04T20:02:32.550831 | 2021-08-13T16:07:20 | 2021-08-13T16:07:20 | 399,344,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Customer(models.Model):
user = models.OneToOneField(User, null=True, blank=True, on_delete=models.CASCADE)
name = models.CharField(max_length=200, null=True)
phone = models.CharField(max_length=200, null=True)... | [
"wahidhussainturi@gmail.com"
] | wahidhussainturi@gmail.com |
6ad749b446664d9299143f36496269a2281f3e3d | 8cb7e95552d9b55282a26b39eef8223ad5a998a5 | /tests.py | 93e1e420b7f8dedbe4386bb28761d13079a3eb66 | [
"MIT"
] | permissive | coleifer/ucache | c3f8949a710edd2e19ae18ae32eeccc1e1100837 | 1b2ac7ca8c67dd895b45d0fddcc7b5542b0b8fd9 | refs/heads/master | 2022-12-28T00:49:59.736055 | 2022-12-14T02:41:29 | 2022-12-14T02:41:29 | 165,595,140 | 72 | 8 | null | 2019-05-12T12:37:44 | 2019-01-14T04:26:22 | Python | UTF-8 | Python | false | false | 10,273 | py | #!/usr/bin/env python
import glob
import os
import sys
import time
import unittest
from ucache import *
class BaseTestCache(object):
cache_files = []
def get_cache(self, **kwargs):
raise NotImplementedError
def cleanup(self):
for filename in self.cache_files:
if os.path.exi... | [
"coleifer@gmail.com"
] | coleifer@gmail.com |
7e06dd17c6c8f3382921b07d5a29bfd3f67c4817 | 846e642fd9b01d3b500d3efba4790761039eec24 | /code/smtp.py | 978b10738307ac891f4680f1e0a033f0d1ac1892 | [] | no_license | sachinyadav3496/Machine_Learning_Workshop | ffea23799c0f8477d9b5cc19b98e7d33a6364390 | 37f433631d1ae4e4db37c4baae6cdc3a7619423e | refs/heads/master | 2020-11-24T11:49:45.936367 | 2020-05-01T08:38:10 | 2020-05-01T08:38:10 | 228,130,385 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py |
import smtplib
import getpass
def Main():
print("\n\n*************************welcome************************\n")
print("\nWelcom to Email Service \n")
print("Enter your login details - \n")
gmail_user = input("\n\nUserName : ")
gmail_password = getpass.getpass("Password : ")
... | [
"sachinyadav3496@gmail.com"
] | sachinyadav3496@gmail.com |
ce3be2e0574e1ed136c469dfa1ef2ac357ed40cc | dfb8d3c365bd2ea27cef9af5cb00b7be1dae978d | /train.py | b23821e543d1b2a73205ead7e410f2b5b7bac887 | [
"MIT"
] | permissive | Windstudent/IRM-based-Speech-Enhancement-using-DNN | dd0cedfd4150fed69c55d33a744d0a6520fdf2d5 | 27a6f73b5b7fa91a4796e093e6ea3e30508a5c15 | refs/heads/master | 2020-07-05T15:34:52.712226 | 2019-05-07T14:36:40 | 2019-05-07T14:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | import argparse
import json
import os
import numpy as np
import torch
from torch.utils.data import DataLoader
from data.test_dataset import TestDataset
from data.train_dataset import TrainDataset
from trainer.trainer import Trainer
from utils.utils import initialize_config
def main(config, resume):
... | [
"haoxiangsnr@gmail.com"
] | haoxiangsnr@gmail.com |
93e0d1af53bc2b9efd06b47d2a1c4276bdb0b0bd | 5390d79dad71ad0d9ff9d0777435dcaf4aad16b3 | /chapter_06/favorite_number.py | 124b9763eeac8593df0e93e0c0e845aa9bc3e5dd | [] | no_license | JasperMi/python_learning | 19770d79cce900d968cec76dac11e45a3df9c34c | 8111d0d12e4608484864dddb597522c6c60b54e8 | refs/heads/master | 2020-11-26T08:57:02.983869 | 2020-03-11T10:14:55 | 2020-03-11T10:14:55 | 218,935,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | favorite_numbers = {
'bob': 2,
'sarah': 6,
'martin': 8,
'katy': 9,
'tom': 10
}
print('bob' + "'s favorite number is " + str(favorite_numbers['bob']) + ".")
print('sarah' + "'s favorite number is " + str(favorite_numbers['sarah']) + ".")
print('martin' + "'s favorite number is " + str(favorite_numbe... | [
"darmi19@163.com"
] | darmi19@163.com |
ad3bb9cee62e36edbee53a574699af1e1489a8af | a06596102ed51de6b7786c1a3260f8d75bae676c | /adanet/core/eval_metrics_test.py | 8b5251e4bbd59810c4c26ccf00943c06677a0940 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | phymucs/adanet | 803b07cea49cc3821657085252c222ebe487be20 | 9fcd68cc220371d75923dcbf4eae9c1c6b9ed106 | refs/heads/master | 2020-08-11T18:56:26.858537 | 2019-10-02T16:09:17 | 2019-10-02T16:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,088 | py | """Tests for AdaNet eval metrics.
Copyright 2019 The AdaNet 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
https://www.apache.org/licenses/LICENSE-2.0
Unless re... | [
"weill@google.com"
] | weill@google.com |
282ae6e15473678f51124dfb45ce9e9e04bf37aa | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/birdlik.py | b5d428582689d4d0a1ff28dc6b984b99dcdccca4 | [] | 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 | 82 | py | ii = [('LandWPA.py', 1), ('MedwTAI.py', 1), ('MedwTAI2.py', 1), ('WordWYR.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
1ba19442b8c3c6088b2d7f91c116de4870e58ec3 | 8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4 | /pyobjc-framework-SpriteKit/Lib/SpriteKit/_metadata.py | 133d826139cade678d14d84de54d9b4985ef7ec4 | [
"MIT"
] | permissive | strogo/pyobjc | ac4201c7742eb75348328eeecb7eedf4e3458de3 | 2579c5eaf44b0c5af77ee195c417d2c65e72dfda | refs/heads/master | 2023-07-13T00:41:56.448005 | 2021-08-24T06:42:53 | 2021-08-24T06:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,549 | py | # This file is generated by objective.metadata
#
# Last update: Sun Jul 11 21:54:16 2021
#
# flake8: noqa
import objc, sys
if sys.maxsize > 2 ** 32:
def sel32or64(a, b):
return b
else:
def sel32or64(a, b):
return a
if objc.arch == "arm64":
def selAorI(a, b):
return a
else:... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
b1f2bc27194e8f706625493989d95c5335783f9f | fc58366ed416de97380df7040453c9990deb7faa | /daoliagent/services/arp.py | 7d9cf1622fdcd08505553150ef2cdef052d75232 | [
"Apache-2.0"
] | permissive | foruy/openflow-multiopenstack | eb51e37b2892074234ebdd5b501b24aa1f72fb86 | 74140b041ac25ed83898ff3998e8dcbed35572bb | refs/heads/master | 2016-09-13T08:24:09.713883 | 2016-05-19T01:16:58 | 2016-05-19T01:16:58 | 58,977,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,005 | py | from oslo.config import cfg
from ryu.lib.packet import arp
from ryu.lib.packet import ethernet
from ryu.lib.packet import packet
from ryu.lib import addrconv
from ryu.ofproto import ether
from daoliagent.services.base import PacketBase
from daoliagent.lib import SMAX
from daoliagent.openstack.common import log as log... | [
"wenxiang.wang1204@gmail.com"
] | wenxiang.wang1204@gmail.com |
5bba101ad14c50d3036fcbeb1308b66a5996c235 | 38744aa4f3ba165a8c043ac51c87b849882ea129 | /game/lib/python3.7/site-packages/Security/_metadata.py | 7cce69ed3c96048306a7eabc4a36fc086d625bc0 | [] | no_license | CleverParty/containers | 5be3c82e38e65ccbaf703fe68f35992ad9941219 | a0d45e62fda2cb7b047c7a930cf6437e71a31d80 | refs/heads/master | 2023-08-04T01:32:58.122067 | 2021-02-07T15:14:35 | 2021-02-07T15:14:35 | 266,421,416 | 2 | 0 | null | 2021-09-22T19:39:31 | 2020-05-23T21:20:17 | Python | UTF-8 | Python | false | false | 107,766 | py | # This file is generated by objective.metadata
#
# Last update: Sun Mar 22 17:27:39 2020
#
# flake8: noqa
import objc, sys
if sys.maxsize > 2 ** 32:
def sel32or64(a, b):
return b
else:
def sel32or64(a, b):
return a
misc = {}
misc.update(
{
"AuthorizationExternalForm": objc.cr... | [
"shanatmail@gmail.com"
] | shanatmail@gmail.com |
0b2c7b6c78f2f20e685b99106e28b2dcfabe7a03 | 9d852841463c64f75da8a8579c32cea856d2073d | /leetcode/validate_binary_search_tree.py | 4931cdb9a7da506dea78bd8a759a89b592284296 | [] | no_license | LarsIndus/algorithms-DS | 2d94a5ba3e17de7c8d9e7ac4ace8eb70bb2a7331 | 32a64a4522f8474ab63421b06e945f6e44a441e1 | refs/heads/master | 2023-04-26T00:13:06.026785 | 2021-05-20T18:55:12 | 2021-05-20T18:55:12 | 243,239,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | """
Leetcode Problem 98: Validate Binary Search Tree (Medium)
Given the root of a binary tree, determine if it is a valid binary search tree (BST).
A valid BST is defined as follows:
- The left subtree of a node contains only nodes with keys less than the node's key.
- The right subtree of a node contains on... | [
"test@test.com"
] | test@test.com |
c394f35d81a2eb6ac4c455dd44b7add384a8b18b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/84/usersdata/203/57032/submittedfiles/lista1.py | 4fe9d85ddd31f1891fa346e0bba2e39623b993ce | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # -*- coding: utf-8 -*-
n=int(input('tamanho da lista: '))
l=[]
somai=0
qi=0
somap=0
qp=0
for i in range (1,n+1,1):
a=int(input('elemento da lista: '))
l.append(a)
for i in range (1,len(lista),1):
if l(i)%2==0:
somap=somap+l(i)
qp=qp+1
else:
somai=somai+l(i)
qi=qi+1
print... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9166a5025b83503317fc99cf5620f56acadc063c | 35fb652b0b20e7352cacdc078e23464fad40ccf3 | /web/controllers/food/food.py | ed79027f6fa2230bee2cb9150725d18254385a43 | [] | no_license | xiaoheng14/flask_wx_order | 52f8fe01a473855c22a43c2651b102c291dbde04 | be3314fdb0266eecf4ca7f5a55b2ea24078857c9 | refs/heads/master | 2020-08-23T03:59:19.006943 | 2018-11-19T12:21:25 | 2018-11-19T12:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # _*_ coding: utf-8 _*_
"""
__author__ = 'lawtech'
__date__ = '2018/10/27 3:14 PM'
"""
from flask import Blueprint
from common.libs.helper import ops_render
route_food = Blueprint('food_page', __name__)
@route_food.route("/index")
def index():
return ops_render("food/index.html")
@route_food.route("/info")
de... | [
"584563542@qq.com"
] | 584563542@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.