blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15592a4780200d155b607e06d039b8f6cc76f932 | 187313a571fa75c32090dc04d5159425c068b015 | /practicals/06_python_2015/nb_exons.py | b95b648b97fe380acc163dacddaf8747bfc2089f | [] | no_license | dputhier/jgb53d-bd-prog_github | 51e02f15fb85acb0713f6278a94140ae71dae8b8 | ca7430bc50b557b3ac9da18dd0baba8e3af79190 | refs/heads/master | 2021-10-29T14:13:50.209213 | 2018-12-03T22:30:09 | 2018-12-03T22:30:09 | 70,686,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | # -*- coding: utf-8 -*-
# La ligne précédente permet d'utiliser des caractères accentués
# dans les commentaires
"""
Author D. Puthier
date: Wed Oct 28 16:44:29 CET 2015
program: nb_exons.py
This program is intended to compute the number of exons in the gtf file.
"""
# On importe le module re
# afi... | [
"puthier@gmail.com"
] | puthier@gmail.com |
a2cbb64e6ca5306f7716b8b05e7503a78cc5cc68 | 9eef34128b8574f5ceeb5de85d23da0b4f271693 | /accounts/migrations/0002_auto_20180922_0513.py | 49e2401d189612170f2d301f3e035659a80bec9c | [] | no_license | MiJamil/My-first-djangoapp | ef6cae484951745bf6cd8051f49047bc5cc12afe | 6df3fd60dd411a159339e55d9515249ba0956d1e | refs/heads/master | 2020-04-01T18:13:35.957598 | 2019-08-06T02:47:37 | 2019-08-06T02:47:37 | 153,479,819 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-09-22 05:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | [
"m.mdislam93@gmail.com"
] | m.mdislam93@gmail.com |
c3f1df372c3cd9580a5d053a7825131737d34df7 | a199e8cdd97d7b698bafb22707c488a5984ea360 | /elastic_VTI_solvers/elastic_VTI_example.py | baa1d8942f0d62d7e0f4fc1e0fd0fee2c44907d2 | [
"MIT"
] | permissive | ckhimji/IRP_testing | c1b5ed3b81386fe3a150d032e1a05e7e7d6ceb5f | f3d69af7987d182bdd7c5d659d3fa9ed02e792cf | refs/heads/master | 2022-11-17T10:42:41.939780 | 2020-07-11T15:32:27 | 2020-07-11T15:32:27 | 278,889,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,347 | py | import numpy as np
from argparse import ArgumentParser
from devito import configuration
from devito.logger import info
from elastic_VTI_solvers.wavesolver import ElasticVTIWaveSolver
from examples.seismic import setup_geometry
from model_VTI import ModelElasticVTI
def elastic_VTI_setup(origin=(0., 0., 0.), spacing... | [
"noreply@github.com"
] | noreply@github.com |
55d08469ece7444288c08eaf48facc922824714d | 8ed19af680ce46ae33f9c05681356432f60e2cb9 | /ssh-reset-mavlink-router.py | 3ac617dc44e2d09fea619fb5f75222cb0df7c3a5 | [] | no_license | themcfadden/bin | 648f3c074531f4d59d6c13d925bb54c6e7a1a5d8 | 7d43f30e7c50d1cd386478f6aba8e5798098c466 | refs/heads/master | 2023-08-03T11:21:59.614047 | 2023-08-01T16:11:04 | 2023-08-01T16:11:04 | 89,616,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,135 | py | #!/usr/bin/env python3
"""
SSH systemctl restart mavlink-router.
Usage: ssh-reset-mavlink-router.py
"""
import os
import sys
import time
import traceback
import pexpect
MK1_PASSWORD = "oelinux123"
def ssh_password(child, passwords):
"""
Use expect to send passwords and process response
"""
ssh_pass_... | [
"matt.mcfadden@tealdrones.com"
] | matt.mcfadden@tealdrones.com |
18bb104561c4f2f543251644d9fcd7289c25a575 | 4125bad7406f9f44a5a83101cee4b81142c8de73 | /paypro/hooks.py | 051b4e66bee3cec7c7a31cfea7dd780329f110e4 | [
"MIT"
] | permissive | lightningmaharaja/payPRO | 1eb3e271864d3d4b4c2473b61f65aac5c1ad39fe | 15389ce24bd3b5825c65f91ad2f85a9a29342e5f | refs/heads/master | 2023-03-15T14:18:27.097526 | 2020-11-09T10:35:31 | 2020-11-09T10:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version
app_name = "paypro"
app_title = "Paypro"
app_publisher = "Teampro"
app_description = "Payroll Management"
app_icon = "octicon octicon-file-directory"
app_color = "grey"
app_email = "barathprathosh@groupteampro.com"... | [
"subash13579@gmail.com"
] | subash13579@gmail.com |
8fe386036ae3d2b2bc96e016ee126c685860a1bb | 785f6cdfd819fa57cd50d2b3d930009686832384 | /Docx/Use_ReadDocx.py | 1d14364f3f47bcea3d050b25d650b2137afe6f59 | [] | no_license | dixit5sharma/Individual-Automations | b5da6e4abafd11f74556a07d709b2a05a3a50052 | aab85aa19d4cc74f3ecb7ba0151193320a84dd6d | refs/heads/master | 2020-04-14T13:46:12.354063 | 2019-01-19T10:55:37 | 2019-01-19T10:55:37 | 163,878,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | import ReadDocx
filename = "Files\\demo.docx"
print(ReadDocx.getText(filename)) | [
"dixit5sharma@gmail.com"
] | dixit5sharma@gmail.com |
a4172035efb4e703eaf933bf8be065a1c6214edd | 14e3a6d5d5ef1a7fc576c0670361fc908630b495 | /siem_integrations/clx_query_service/manage.py | 7d1c4283d89a7e6b0b9ec1217baeea5034f89afd | [
"Apache-2.0"
] | permissive | rapidsai/clx | 3b6e49b53704de7f81fcd923ae88148a6ed5f031 | 68c14f460b5d3ab41ade9b2450126db0d2536745 | refs/heads/branch-23.04 | 2023-05-25T09:37:15.553353 | 2023-05-19T16:07:00 | 2023-05-19T16:07:00 | 186,716,715 | 169 | 93 | Apache-2.0 | 2023-05-19T16:07:02 | 2019-05-14T23:47:32 | Jupyter Notebook | UTF-8 | Python | false | false | 637 | 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", "clx_query_service.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
ra... | [
"bhargavsuryadevara@gmail.com"
] | bhargavsuryadevara@gmail.com |
e25b350871e12d31f6b6bc62c04e5aba3c26130e | 5db3009eb36afe7110ed5402be3a9e570c58c540 | /my_plugins/YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi/test/completion/docstring.py | 2b9f3481cf5fd27532a2eb46fe7d83f487fbd3c2 | [
"GPL-3.0-only",
"GPL-1.0-or-later",
"MIT"
] | permissive | imfangli/vimrc | ced2c6caece1cf19421c6ea7deb017bec4ca3a27 | d2d14e7d083d70cc8627ddccb5b99c53c3c38be3 | refs/heads/master | 2022-02-01T00:34:31.855421 | 2022-01-22T15:57:28 | 2022-01-22T15:57:28 | 211,766,038 | 2 | 0 | MIT | 2019-09-30T03:15:03 | 2019-09-30T03:15:02 | null | UTF-8 | Python | false | false | 3,723 | py | """ Test docstrings in functions and classes, which are used to infer types """
# -----------------
# sphinx style
# -----------------
def sphinxy(a, b, c, d, x):
""" asdfasdf
:param a: blablabla
:type a: str
:type b: (str, int)
:type c: random.Random
:type d: :class:`random.Random`
:param ... | [
"fangli@zhiai2019.com"
] | fangli@zhiai2019.com |
d26b26be22550b430e392792287c16f88d629e86 | 8826ef8f6a206a3d995bf21ebd9f26a940933d46 | /project/app/main.py | d1454fbcc58a29034b8dbf1fb83b8ede93a4b972 | [] | no_license | caetasousa/FastCar-FastApi-SqlModel-Alembic-Docker | ff8f14303a2c06dfcfae7f04f2a46a7ab30cc40c | f3a80c276113618b163c66bee062cdfa3300e898 | refs/heads/main | 2023-08-25T17:05:19.302365 | 2021-10-17T01:53:00 | 2021-10-17T01:53:00 | 417,993,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from fastapi import FastAPI
from app.api.routes import router as api_router
app = FastAPI()
@app.get("/ping")
async def pong():
return {"ping": "pong!"}
app.include_router(api_router, prefix="/api") | [
"root@LAPTOP-BM9S8AHN.localdomain"
] | root@LAPTOP-BM9S8AHN.localdomain |
465619035f486d9994e385124ffd90f3755d09a0 | 6a2d106c896f62018198f90e8d3a3323f25a0624 | /bot.py | f94fb37b48c158201547ca188b98ddcad4b568cd | [
"MIT"
] | permissive | arya2krishnan/covidPredictorBot | d02851b680ed5ae93d6ab5d7ad713f34776c21b1 | 18215bd30117bf3aba32e9c45847118988a94bb6 | refs/heads/main | 2023-01-24T12:23:03.794297 | 2020-11-15T22:38:46 | 2020-11-15T22:38:46 | 312,965,622 | 0 | 1 | MIT | 2020-11-15T06:19:06 | 2020-11-15T05:36:19 | Python | UTF-8 | Python | false | false | 1,381 | py | import discord
import newcovidpredictor
client = discord.Client()
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
if message.author == client.user:
return
end, tomorrow, new_tot, diff, pending, hospital, total ... | [
"noreply@github.com"
] | noreply@github.com |
b763c6f7ccf02fc091dbceba1f1aa1bff14ba011 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /8qD23E6XRMaWhyJ5z_9.py | 4d2e12540b5fba5e913c81d0957e9d467412bb06 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py |
def happiness_number(s):
happy = 0
sad = 0
happy += s.count(":)")
happy += s.count("(:")
sad -= s.count(":(")
sad -= s.count("):")
return happy + sad
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
94074b5e17d457e7a9d022d4332e0c95e6d45fa4 | c471e8d4d5cf59a68ccfbe79037cb256505b5502 | /venv/lib/python3.8/site-packages/hass_nabucasa/__init__.py | fb1c329404b66c3ff972eece6c2260f24dbd7c43 | [
"Apache-2.0"
] | permissive | vsevolodpohvalenko/home-assistant | b7fc37537929cc2c9989df357a8b76eb4de849e3 | 4ae19b7d5d843c65ba700922c1814755257eb4e0 | refs/heads/master | 2023-07-16T08:05:07.126996 | 2021-08-30T11:52:35 | 2021-08-30T11:52:35 | 401,318,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,947 | py | """Component to integrate the Home Assistant cloud."""
import asyncio
from datetime import datetime, timedelta
import json
import logging
from pathlib import Path
from typing import Awaitable, Callable, Coroutine, List
import aiohttp
import async_timeout
from atomicwrites import atomic_write
from jose import jwt
from... | [
"vsevolod.pohvalenko@gmail.com"
] | vsevolod.pohvalenko@gmail.com |
04859fbd85175a3cb70f7db15f7f3fa3793ea838 | 4363315facc6ce5c3982e7f2f300cb6be2501a37 | /allennlp_spatial_reasoning_NLVR/DeepSpRL/NLVR2_image_together/train_test_functions/train_funcs.py | c002c0919844c6c8676290d3c16b1b62b4d6c01d | [] | no_license | HLR/DeepSpRL | cb80e8376687dd6919358f1b9745dda00c11f33c | d566a3711013817a122fbc113f8df779ee9d81de | refs/heads/master | 2020-03-31T13:40:20.642771 | 2019-09-04T12:09:46 | 2019-09-04T12:09:46 | 152,264,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,581 | py | '''
Institution: Tulane University
Name: Chen Zheng
Date: 10/23/2018
Purpose: Some functions help to train process.
'''
import torch
import torch.nn as nn
from torch import optim
import torch.nn.functional as F
import sys
sys.path.append('../')
from config.first_config import CONFIG
from train_test_functions.test_func... | [
"zhengchen02@baidu.com"
] | zhengchen02@baidu.com |
e2c6029f4567166af805e894ef6dbf2ccd3b4e48 | 86af752602afec596b50a6dee07d824a36698d81 | /sales/views.py | 9e0700b077ab0627ef3f9ef1f4d3db285be98eac | [] | no_license | ijharulislam/e-commece | 9f78d2516de7594d3b5ae60d09dfe245f13a617b | cbcdac6f4035804618835ac1045fcc685e746221 | refs/heads/master | 2021-01-10T09:42:16.506852 | 2015-05-24T02:10:30 | 2015-05-24T02:10:30 | 36,151,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,058 | py | from django.db import transaction
from django.db.models import Q
from django.conf import settings
from django.http import HttpResponseRedirect, HttpResponseBadRequest
from django.http.response import Http404
from django.core.urlresolvers import reverse
from django.template import Context
from django.template.loader imp... | [
"rajbp02@gmail.com"
] | rajbp02@gmail.com |
b7bc6489f228ace5d7d44cd54e9fe2572d8a1f8d | 4865b66089f6ca2b6ffbb6522b82aa7dea6eade8 | /RNS/__init__.py | de31d78880d11807a3c7d7a823aae857cd87a120 | [
"MIT"
] | permissive | scottrcarlson/Reticulum | 5163acc6eed5ea99fdb484e4fa904c9c7afc3df7 | 8e19d5bd97a109935d5b748cb91f80de529a8d06 | refs/heads/master | 2020-09-02T11:46:23.145964 | 2019-11-10T12:56:04 | 2019-11-10T12:56:04 | 219,214,357 | 0 | 0 | MIT | 2019-11-02T21:10:12 | 2019-11-02T21:10:11 | null | UTF-8 | Python | false | false | 1,940 | py | import os
import sys
import glob
import time
import random
from .Reticulum import Reticulum
from .Identity import Identity
from .Link import Link
from .Transport import Transport
from .Destination import Destination
from .Packet import Packet
from .Packet import PacketReceipt
from .Resource import Resource
modules = ... | [
"mark@adepta.io"
] | mark@adepta.io |
d58f040c51ca400611d8cdbbf0e0e9810f30c476 | b81711ae06421c2168a54e4b59f9533603a5f154 | /Weekend/LetCode Problems/ReverseString.py | 49e8ff7c03e7a17b12876d779a1f456486956d8e | [] | no_license | vxela/altera-batch5- | 359b69ca0c69f16afd412a90c55880595b198113 | a0934917dfe1bbb0720b15e046d6a47c55428579 | refs/heads/master | 2022-06-18T04:13:48.414471 | 2020-03-23T08:45:19 | 2020-03-23T08:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | s = [1, 2, 3, 4, 5, 6, 7]
print(s)
for i in range(len(s)//2) :
temp = s[i]
s[i] = s[len(s)-1-i]
s[len(s)-1-i] = temp
print(s) | [
"sholeh@alterra.id"
] | sholeh@alterra.id |
fa751f128d9ce6cc8de27b5d0d8262f701ca0df7 | 1dc727f5b326dd984962efa4d982ed9fe036c8fc | /cmsplugin_hanz_card/cms_plugins.py | 9342ebd45a4d621b861df6bbe5db794242c93700 | [] | no_license | hanztura/iamhanz | 2a7380dfe5aa9f05d72fdc1d77d77c950692d30c | 1aeee4c3404ed5048a48187e8b75f0e958c042ba | refs/heads/master | 2021-08-30T22:51:53.916315 | 2017-12-19T18:13:44 | 2017-12-19T18:13:44 | 113,453,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | from django.utils.translation import ugettext as _
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cmsplugin_filer_image.cms_plugins import FilerImagePlugin
from .models import Card
from .forms import CardForm
@plugin_pool.register_plugin
class CardPlugin(FilerImagePlugin):
... | [
"hctura.official@gmail.com"
] | hctura.official@gmail.com |
d0c04d8d6b0caebcc5131c6d7c9185c6da08fb8a | b7ebcfa8429948745dbd9fb11f6d13c6905e9aa1 | /lib/panda/_obj.py | fd7b9191f276e967f2b4dc2a6fbb176e63be53ec | [] | no_license | SiewYan/PandaTree | c00c83a92044b59d460dd2d9a4319eef9f777045 | 5d2da2dc5d419c498a3a14870197aad360d6b071 | refs/heads/master | 2020-12-30T12:35:36.718617 | 2018-02-01T16:25:54 | 2018-02-01T16:25:54 | 91,395,990 | 0 | 1 | null | 2017-05-16T00:16:27 | 2017-05-16T00:16:27 | null | UTF-8 | Python | false | false | 2,279 | py | from base import Definition
from oneliner import Include
from constexpr import Constant, Enum
from refbranch import RefBranch
from refvbranch import RefVectorBranch
from generic import GenericBranch
from objbranch import ObjBranch
from branch import Branch
from reference import Reference
from function import Function
f... | [
"yiiyama@mit.edu"
] | yiiyama@mit.edu |
db43ee1f9ac5c213db5b0a430f22e316fd4513b6 | 842c21f0a93c5e2ebc43501f8b9f3fd25c39851a | /shepherd.py | b0dab82befea3d847fec33adfdee43485b074fb6 | [] | no_license | mortrevere/shepherd | 1062ac6117d6bf1613c14bc96ce76ba87f986f01 | b2fa572f4893bd11b9ced3d01effd8582e35311e | refs/heads/master | 2020-06-27T04:15:20.035574 | 2019-08-08T09:25:02 | 2019-08-08T09:25:02 | 199,841,961 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,609 | py | #! /usr/local/bin/python3.7
import socket
import sys
from http.server import BaseHTTPRequestHandler, HTTPServer
import asyncio
import json
import os
import time
hosts = {};
class S(BaseHTTPRequestHandler):
def _set_headers(self):
self.send_response(200)
self.send_header('Content-type', 'applicati... | [
"leo.vincent1337@gmail.com"
] | leo.vincent1337@gmail.com |
31d9a115cbd2a43f5ea11e98d4b3a4cde1224566 | 6bdb32ddbd72c4337dab12002ff05d6966538448 | /gridpack_folder/mc_request/LHEProducer/Spin-0/Radion_ZZ_ZlepZhad/Radion_ZZ_ZlepZhad_narrow_M2500_13TeV-madgraph_cff.py | 55b8ce6b6aafef4854d46112ee4cdb202e8e7861 | [] | no_license | cyrilbecot/DibosonBSMSignal_13TeV | 71db480de274c893ba41453025d01bfafa19e340 | d8e685c40b16cde68d25fef9af257c90bee635ba | refs/heads/master | 2021-01-11T10:17:05.447035 | 2016-08-17T13:32:12 | 2016-08-17T13:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import FWCore.ParameterSet.Config as cms
# link to cards:
# https://github.com/cms-sw/genproductions/tree/b9fddd83b7d8e490347744408902940547e8135f/bin/MadGraph5_aMCatNLO/cards/production/13TeV/exo_diboson/Spin-0/Radion_ZZ_ZlepZhad/Radion_ZZ_ZlepZhad_narrow_M2500
externalLHEProducer = cms.EDProducer("ExternalLHEProdu... | [
"sudha.ahuja@cern.ch"
] | sudha.ahuja@cern.ch |
579528bb6dac8b7a786b56c7fa8aebcbc771d0bc | dd15b5ed1050bdd6de3d9a0ee0c448d2ccba09e0 | /assets/python/mm_surface.py | f39a152bc61b12bf8992ad5c81b8cbbfa09dac2c | [] | no_license | rblack42/nffs-2021-symposium | 7f5c581fb46c23dd6896a37e0ac429b22d9de823 | 496696a43958fdf6ad5870b730675ed0b097e8cc | refs/heads/master | 2023-02-24T02:16:01.579345 | 2021-01-27T21:47:15 | 2021-01-27T21:47:15 | 329,161,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | import math
class Surface(object):
def __init__(self,
span, # with dihedral
chord, # root chord
camber, # root camber
tip_radius, # outer LE tip radius
center_span, # center section span (<= span)
tip_elevation # dihedral tip elev... | [
"roie.black@gmail.com"
] | roie.black@gmail.com |
d468d136d9cebb4e44f01f359725a327063eb133 | 241dc11ca83565b0e4626277c2b4226d2bb2a7d0 | /Dhein_Elegans_Projects/Code/time_evol.py | ea4bc4da2e81a8b4b147a217fcdce107a1fb051d | [] | no_license | SES591/C.-elegans | 7badaaf0317e6b5f67fd41e6a9d867d2f569a2cd | 08f0ef49f7002dd4847b27c7dc9afac8e75da989 | refs/heads/master | 2016-08-12T13:39:38.032623 | 2016-05-05T23:26:30 | 2016-05-05T23:26:30 | 50,062,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,496 | py | #!/usr/bin/python
#bioinfo.py
__author__ = '''Hyunju Kim'''
import os
import sys
import numpy as np
import networkx as nx
import matplotlib.pyplot as plt
from collections import OrderedDict
import input_net as inet
import updating_rule as ur
################# BEGIN: decimal_to_binary(nodes_list, decState, Nbr_Stat... | [
"Kelle Dhein"
] | Kelle Dhein |
d3fc31344ad05d1cccd859ad51a3d6332059f748 | 8b7559f7b69173109d7b6e89ab912dbb8b675c3f | /main/tests/test_models.py | 104c45dcd9bc75e5d3b2024147d13fa149a12099 | [] | no_license | GoodnessEzeokafor/django-bookstore | 7859b74ad0bddd32415b6bd917d37c008ba38a73 | dc47e7fe201cf2a62a93c30730fa1e72a6707f93 | refs/heads/master | 2023-02-14T14:13:58.941227 | 2021-01-08T10:14:29 | 2021-01-08T10:14:29 | 327,135,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | from decimal import Decimal
from django.test import TestCase
from main import models
class TestModel(TestCase):
def test_active_manager_works(self):
models.Product.objects.create(
name="The cathedral and the bazaar",
price=Decimal("10.0")
)
models.Product.objects.cre... | [
"gootech442@yahoo.com"
] | gootech442@yahoo.com |
af58e7975c92cb99766c3323524c22904d9ae372 | 55fae905406470ed60aadf3460115c1b1b0a49d9 | /chap2/02-7_bool.py | 62bc409ec6b1043cfc516b447caa4745b8cf1617 | [] | no_license | junmin98/JumpToPython_practice | e858abe8bb397a8ac39f50fcc0738d6b6cfd3dd7 | 159d43758aad298da661313618139eae943a3bab | refs/heads/main | 2023-06-07T23:04:46.503935 | 2023-06-02T15:50:43 | 2023-06-02T15:50:43 | 322,387,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | a = True
b = False
print(1 == 1)
print(bool(0)) # False
print(bool('')) # False | [
"noreply@github.com"
] | noreply@github.com |
ad7b0b5fccd2951a4d8e3d28056322b5a64c1f14 | f9646f1a269b0108b174b68172424f19ea563da5 | /lande/utilities/shell.py | b81a52fb5394cf59fcfe24f8cce4cf478e85e955 | [] | no_license | zimmerst/PhD-python | 07a4ef2dd66e2bc9ac08861a04acbf934cb0ae49 | 21d24c0ae70925201b05f73c8044cc39639f8859 | refs/heads/master | 2020-12-26T04:56:27.165230 | 2014-01-27T00:55:17 | 2014-01-27T00:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py |
def format_command(*args, **kwargs):
r""" Create a string suitable for running a shell program command where
*args are the positional arguments for the command and
**kwargs are the keyword arguments for the script
For example:
>>> print format_command('ls','-al', '--author')... | [
"lande@37a9682d-6443-41a2-8582-b44379b6e86f"
] | lande@37a9682d-6443-41a2-8582-b44379b6e86f |
20bb0ef25901482c47de8542f21e7e78fb02f09f | 614cad3588af9c0e51e0bb98963075e3195e92f5 | /models/vote_net/backbone_module.py | 674167186b7eb5fdbacd2d4702c1c38abea4bcc9 | [] | no_license | dragonlong/haoi-pose | 2810dae7f9afd0a26b3d0a5962fd9ae8a5abac58 | 43388efd911feecde588b27a753de353b8e28265 | refs/heads/master | 2023-07-01T14:18:29.029484 | 2021-08-10T10:57:42 | 2021-08-10T10:57:42 | 294,602,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,862 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import sys
import os
BASE_DIR = os.path.dirname(os.path... | [
"lxiaol9@vt.edu"
] | lxiaol9@vt.edu |
e54990b791469e8f9788843e62d9cbd5ba1586b7 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Py Box/Games/Connect4.py | f10c212bbe6d558099c3a54e5c383f2009f477de | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:1559de38727aac969fef6c397825e86b6e68b16dacaafbe4b2f54499954aaaa9
size 5271
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
0af95378e0e392f99cf06587dc97eef7e8859d13 | ef2ea1152afc07e1341abdc99b037f2c803a0a68 | /test_cnn.py | 6de00fafda4942ffd6bbc0f62aafb20aaa792164 | [
"Apache-2.0"
] | permissive | Diriba-Getch/CNN-Multi-Label-Text-Classificati2on | 484a82ed66e7266fb565ebe834e2c7842d1d2f91 | 0792c0f244b8190e097da42e8719c8bb03573e14 | refs/heads/master | 2023-05-14T16:22:32.973452 | 2021-05-27T14:47:21 | 2021-05-27T14:47:21 | 362,522,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,167 | py | # -*- coding:utf-8 -*-
import os
import time
import numpy as np
import tensorflow as tf
import data_helpers
# Parameters
# ==================================================
logger = data_helpers.logger_fn('tflog', 'test-{}.log'.format(time.asctime()))
MODEL = input("☛ Please input the model file you want to test, ... | [
"chinawolfman@hotmail.com"
] | chinawolfman@hotmail.com |
12a0e0d2aeaf443a2c76350a7f0a7ce2f8a41329 | 3d85f716aaeb42592adcdeabd7cb76152b8104ed | /pugh_torch/tests/datasets/classification/test_cifar.py | 616cc78f11d59e21948511350baec7cb988778dc | [
"MIT"
] | permissive | BrianPugh/pugh_torch | a78836b9c286814b8df5df57d67b8dbfc8d6412d | d620a518d78ec03556c5089bfc76e4cf7bd0cd70 | refs/heads/master | 2023-02-14T16:53:07.625650 | 2020-11-03T16:23:22 | 2020-11-03T16:23:22 | 294,986,957 | 4 | 1 | MIT | 2020-11-03T16:23:23 | 2020-09-12T16:54:00 | Python | UTF-8 | Python | false | false | 998 | py | """
Really only tests cifar10, but cifar100 shares everything.
"""
import pytest
from pugh_torch.datasets.classification import CIFAR10
from torchvision import transforms
from torch.utils.data import DataLoader
from tqdm import tqdm
@pytest.fixture
def train(tmp_path):
return CIFAR10(split="train")
@pytest.fix... | [
"noreply@github.com"
] | noreply@github.com |
ea66c9e0116ad4c114f43c85859b9d1075caba0a | 8ac002b27782b8ad8df977f062959846bf567de5 | /test_sudocube/module/test_data_extraction.py | 39170796c8230a2bc30916702d191772a8bfe74e | [] | no_license | pobed2/sudocubes | 820e38154ce7f99af84e8055bfb98484d020de85 | e5cb1d4f472b084dedd8cc73db60096dab55eba3 | refs/heads/master | 2021-01-01T18:49:41.484018 | 2013-11-19T23:14:11 | 2013-11-19T23:14:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | #coding: utf-8
import unittest
import cv2
from Kinocto.sudocube.sudocube_factory import SudocubeFactory
from Kinocto.test.test_sudocube.test_images.test_images_parameters import *
class ModuleTestDataExtraction(unittest.TestCase):
def setUp(self):
self._sudocube_factory = SudocubeFactory()
def test... | [
"pobed2@gmail.com"
] | pobed2@gmail.com |
3f6a8661a1e93d80f971df67da5aee4c9b53e2a1 | 556d821af0042dcc1a68a7235cf37f84dc473676 | /bin/make_shape.py | b97d4b3cbd86e2a5daea1ea87ed09d4a5ba01f29 | [
"MIT"
] | permissive | Ded316/mujoco-worldgen | 6f685b38b3a09ced1c600f89339b8355e58c4061 | 39f52b1b47aed499925a6a214b58bdbdb4e2f75e | refs/heads/master | 2020-08-30T00:33:13.314079 | 2019-08-21T20:43:55 | 2019-09-17T15:41:25 | 218,215,970 | 1 | 0 | MIT | 2019-10-29T06:08:28 | 2019-10-29T06:08:28 | null | UTF-8 | Python | false | false | 6,951 | py | #!/usr/bin/env python
# Make STL files for simple geometric shapes
# This file is expected to be edited and ran, or used as a module
# It's a bit of a hack, but it makes objects that work!
import os
import numpy as np
from collections import OrderedDict
from itertools import chain, combinations, product
import xmltodic... | [
"todor.m.markov@gmail.com"
] | todor.m.markov@gmail.com |
844eb6e55297c84d9f5d6f7cda1364b1996d71df | 8b9dd576d28aa315c41c7ac2cf328e661890c65c | /src/ltool/rules/rulecate.py | 558e044fc96c608820673fa861cd228b022b9458 | [] | no_license | the-champions-of-capua/xsqlmb | 72fdd8bd09d59d37b2900887a3a68fe92e706846 | 6f1446dd76bf9ba0a533a14642f3c9b0bd14ea28 | refs/heads/master | 2020-05-23T12:42:11.291948 | 2019-05-15T06:26:44 | 2019-05-15T06:26:44 | 181,443,773 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | # coding:utf-8
res_pratean = """
REQUEST-903.9001-DRUPAL-EXCLUSION-RULES.conf(规则应用示例)
REQUEST-903.9002-WORDPRESS-EXCLUSION-RULES.conf(规则应用示例)
REQUEST-910-IP-REPUTATION.conf(可疑IP匹配)
REQUEST-911-METHOD-ENFORCEMENT.conf(强制方法)
REQUEST-912-DOS-PROTECTION.conf(DOS攻击)
REQUEST-913-SCANNER-DETECTION.conf(扫描器检测)
REQUEST-920-PRO... | [
"meigea@0528@gmail.com"
] | meigea@0528@gmail.com |
2cb17da1f2ca89667aa5351107d28665b8883899 | 177cf66abc14a3779146d18b87ab941f41b01efc | /data_preprocess/data_preprocess.py | 180ae9e14f446cdf3209f55e05522158e8820b05 | [] | no_license | liang-8421/text_classification_pytorch | 446b34f76233d1612c9644766e9da0164c25e6f6 | c1bb91937f3be5cbba0b4b429065b79dcb6a3b4c | refs/heads/main | 2023-06-13T22:06:11.330652 | 2021-07-11T13:12:56 | 2021-07-11T13:12:56 | 384,947,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | # -*- coding: utf-8 -*-
# @Time : 2021/6/6 19:47
# @Author : miliang
# @FileName: data_preprocess.py.py
# @Software: PyCharm
from config import Config
import pandas as pd
def Get_class2id(file_path):
class_list, class2id, id2class = [], dict(), dict()
with open(file_path, "r", encoding="utf-8") as fr:
... | [
"2937198838@qq.com"
] | 2937198838@qq.com |
4cd35535f7781c80ba779ff265828851cf0927a2 | 32bebb34124cfd06705e20276524a19d2a938e0c | /dev/old/ray_drawing_split.py | 04f9c6b7c753079e0f88f333c9b2b942522b7309 | [] | no_license | ecpoppenheimer/TensorFlowRayTrace | 48c512141119ebf61f9946ec3547cbdb1df03115 | 18116946f0ac53bfca5726fc38ef1de99015557c | refs/heads/master | 2022-09-29T08:39:50.473225 | 2022-06-09T14:07:18 | 2022-06-09T14:07:18 | 171,573,566 | 4 | 1 | null | 2022-06-08T16:48:16 | 2019-02-20T00:41:09 | Python | UTF-8 | Python | false | false | 1,909 | py | # ray drawing test
import itertools
import math
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import tfrt.TFRayTrace as tfrt
import tfrt.drawing as drawing
import tfrt.OpticsUtilities as outl
from tfrt.spectrumRGB import rgb
STYLES = itertools.cycle(["-", "--", "-.", ":"])
COLORMAPS = ... | [
"ecpoppenheimer@gmail.com"
] | ecpoppenheimer@gmail.com |
69514aeaf459f434fbf702f46da5b26a01c4ab4d | 37815f4d3201fc1e29f6aab014d134f61b4acf8c | /main_project/main_project/settings.py | 3968fa990c59d58ba1bf755a72384490f474ac47 | [
"MIT"
] | permissive | mayc2/MStream | 92dc34440896170c7dc4efd6ce4772547dcd769b | f5ec884a69499ecf90414c36dadb6c17f7fd6b95 | refs/heads/master | 2020-12-24T14:35:37.061933 | 2015-02-06T03:22:22 | 2015-02-06T03:22:22 | 26,694,223 | 0 | 0 | null | 2014-11-16T18:38:51 | 2014-11-15T21:15:20 | PHP | UTF-8 | Python | false | false | 2,868 | py | """
Django settings for main_project project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
... | [
"paulc183@gmail.com"
] | paulc183@gmail.com |
971eddb84ca8f99728885698226ec131063f72c1 | f049ffaf6a9bd0a8c8a0fb785f016b73651778f3 | /util/connect_db.py | 1fc548398a2cf5047445e065c2cf23a708ff0ea7 | [] | no_license | hemj132/Ainterface | 031b2b6974d352afba387967ab3c21c9009626e7 | 6ca5185e02b823abb17047cc28abbbd4fdc5ac30 | refs/heads/master | 2020-05-03T00:34:10.307747 | 2019-03-29T01:53:41 | 2019-03-29T01:53:41 | 178,313,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | #coding:utf-8
import pymysql
import json
class OperationMysql:
def __init__(self):
self.conn = pymysql.connect(
host='192.168.199.162',
port=3306,
user='root',
passwd='root',
db='game_api_developmentv3',
charset='utf8',
)
self.cur = self.conn.cursor()
#查询一条数据
def search_one(self,sql):
se... | [
"717474445@qq.com"
] | 717474445@qq.com |
d04d6df927667a5e8f413d32185bf9ec4e892f1a | f1c41d441f31f82e44a32e69cf697594e6f81f03 | /homeassistant/components/broadlink/device.py | c8751182cb9efc877e1f9eeca3d2089a05e2cb47 | [
"Apache-2.0"
] | permissive | titilambert/home-assistant | 363240782fb74b47251ccb5f2e518ab5ff790aa9 | a2651845f379992231fd7b9c8458828036296ee0 | refs/heads/dev | 2023-01-23T04:19:40.006676 | 2020-08-26T16:03:03 | 2020-08-26T16:03:03 | 56,938,172 | 4 | 0 | Apache-2.0 | 2023-01-13T06:01:54 | 2016-04-23T19:56:36 | Python | UTF-8 | Python | false | false | 5,673 | py | """Support for Broadlink devices."""
import asyncio
from functools import partial
import logging
import broadlink as blk
from broadlink.exceptions import (
AuthenticationError,
AuthorizationError,
BroadlinkException,
ConnectionClosedError,
DeviceOfflineError,
)
from homeassistant.const import CONF... | [
"noreply@github.com"
] | noreply@github.com |
1d1585c6cd01744d768b0a0412fb34e50bda988f | 20e5d1bf167ac56db3f0bb784e182898a793529f | /src/data/cages.py | 02db8d6c065fc390a47c11e7bd86bd59a33bc2d7 | [] | no_license | ericodex/Python_mongoDB | fd84918afdc9522a7afd149dee72269fcb7a6e9a | af8746f5082fe67abfcaa4d27c858ca2b7e4d789 | refs/heads/master | 2020-06-17T22:53:29.205985 | 2019-07-10T14:38:45 | 2019-07-10T14:38:45 | 196,089,048 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | import datetime # Date time, otimização do uso de unidade de tempo no banco de dados.
import mongoengine as me
from data.bookings import Booking
class Cage(me.Document):
''' Estruturação de definição de propriedade do objeto Cage '''
registered_date = me.DateTimeField(default=datetime.datetime.now)
name ... | [
"eric.075315@gmail.com"
] | eric.075315@gmail.com |
161c467f5b64ffc651b0161eecd5079017b1d8f1 | c0de030b078a49d246f9f6eb27e0c3707719904c | /atharva_theme_general/__manifest__.py | 498f206d592979a32892849044e7a42600e180b4 | [] | no_license | cokotracy/Pinnacle | 5cc728b3c67d694ac57589c9b3aac026433f5ca7 | 3f051397de002ba589f4109f65666a74e36080ad | refs/heads/main | 2023-02-26T02:34:42.337556 | 2021-02-04T13:41:09 | 2021-02-04T13:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | # -*- coding: utf-8 -*-
{
'name': "Atharva Theme General",
'category': 'Website',
'sequence': 5,
'summary': """Atharva Theme General""",
'version': '2.6',
'author': 'Atharva System',
'support': 'support@atharvasystem.com',
'website' : 'http://www.atharvasystem.com',
'license' : 'OPL-... | [
"support@atharvasystem.com"
] | support@atharvasystem.com |
65da8f31eec34e35df36db0edc77988d9760b5bb | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_plat_product_get_list_request.py | f8948ba21e7402d29e9aed6e09e6cc8e9cb8dcca | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 738 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.platproduct.model.plat_product_get_list_request import PlatProductGetListRequest
class TestPlatProductGetListRequest(unittest.TestCase):
... | [
"tokimekiyxp@foxmail.com"
] | tokimekiyxp@foxmail.com |
38611a283e055ff5824b88d92fcf6d1216fec345 | bc3da13c8e6427553d4e917290d65d66d54e4b77 | /pharma/migrations/0004_auto_20201219_0620.py | 3fdd5049dfff5793d2708d166460350daed4621f | [
"MIT"
] | permissive | RishiMenon2004/med-bay | 7a8f6f0ea47ae23a4e78a0c87e3e52745b09f327 | ed039b1bf3b10fb1b5097567df28fb4575c95b18 | refs/heads/main | 2023-08-18T17:51:04.062791 | 2021-03-23T10:33:52 | 2021-03-23T10:33:52 | 407,439,729 | 0 | 0 | MIT | 2021-09-17T07:01:28 | 2021-09-17T07:01:27 | null | UTF-8 | Python | false | false | 541 | py | # Generated by Django 3.0.7 on 2020-12-19 06:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('patients', '0003_cases_appointed_date'),
('pharma', '0003_prescription_status'),
]
operations = [
m... | [
"marudhupaandian@gmail.com"
] | marudhupaandian@gmail.com |
ab3cd9228918e57b3233b0500f80929d0d936bb2 | 85a247759d026d03eb8b625667a5aa99bdace5b0 | /deep_learning_nano_degree/4_recurrent_neural_networks/language_translation/language_translation.py | 2e5ce1af4051fd693596d7f5a0a4da351d800331 | [] | no_license | mkao006/dl_udacity | 000d325bdeb507f2b57a25e592c34ec72287cb06 | a3f795b3c66c16946b0cdab0255cc1d79fc0f82f | refs/heads/master | 2022-12-15T06:50:49.403783 | 2018-01-30T23:45:52 | 2018-01-30T23:45:52 | 93,637,489 | 0 | 0 | null | 2022-12-07T23:59:22 | 2017-06-07T13:19:11 | Jupyter Notebook | UTF-8 | Python | false | false | 18,903 | py | import time
import numpy as np
import tensorflow as tf
import helper
import problem_unittests as tests
source_path = 'data/small_vocab_en'
target_path = 'data/small_vocab_fr'
source_text = helper.load_data(source_path)
target_text = helper.load_data(target_path)
def inspect_data(source_text, target_text, view_sente... | [
"mkao006@gmail.com"
] | mkao006@gmail.com |
29d59797e23ce5b3c1c01c4ca79eddeffbe0447a | 981da55bfc1a0eb8ff5584b6c7a88c6f10c43d15 | /blog/urls.py | aa76875e4bdcb8e7db600228fd0dc668f5a987ad | [] | no_license | Rih/djangogirls | 1055e14737e3c8d73b363417e2f416294d9871a8 | c4439f8c27e40092bc02193cbc80cc670f59b73c | refs/heads/master | 2020-03-22T08:14:07.251838 | 2019-04-04T11:53:17 | 2019-04-04T11:53:17 | 139,753,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.conf.urls import include, url
from . import views
urlpatterns = [
url(r'^$', views.post_list),
] | [
"rodrigo.ediaz.f@gmail.com"
] | rodrigo.ediaz.f@gmail.com |
456a38ad9b87e1b826c521e146df928c90163e88 | 0fbd56d4a2ee512cb47f557bea310618249a3d2e | /official/vision/beta/modeling/layers/roi_sampler.py | 46b4c349839f207291fc2ca42a601d9eaabce92c | [
"Apache-2.0"
] | permissive | joppemassant/models | 9968f74f5c48096f3b2a65e6864f84c0181465bb | b2a6712cbe6eb9a8639f01906e187fa265f3f48e | refs/heads/master | 2022-12-10T01:29:31.653430 | 2020-09-11T11:26:59 | 2020-09-11T11:26:59 | 294,675,920 | 1 | 1 | Apache-2.0 | 2020-09-11T11:21:51 | 2020-09-11T11:21:51 | null | UTF-8 | Python | false | false | 5,978 | py | # Copyright 2020 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 |
1dba441eba9e895c8b00e03309a0bcd68e736e31 | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/mojo/public/tools/bindings/pylib/mojom/generate/test_support.py | eb394619d2bf4855522d7157dff0d13e87c59850 | [
"BSD-3-Clause"
] | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | Python | false | false | 6,092 | py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
import traceback
import module as mojom
# Support for writing mojom test cases.
# RunTest(fn) will execute fn, catching any exceptions. fn shoul... | [
"csineneo@gmail.com"
] | csineneo@gmail.com |
816c44aeab0edee9437c9a9d14a89d6d3f9adb72 | f2c296c34f5fcbc58f242a223086851150752b25 | /modules/form_bucket.py | d8e98435acd61c37893eb56255401e0194e4eaae | [] | no_license | chandradee23/ec2_admin | 82f6b416742a9db182b10678e98590e5db5090cc | ab569576df2b01a6faaa3923c2fc9df2bfb939ca | refs/heads/master | 2020-05-07T11:01:14.167430 | 2019-02-16T00:45:23 | 2019-02-16T00:45:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,744 | py | #echo s3fs#$BUCKET /mnt/$BUCKET fuse _netdev,uid=userbda,gid=analytics,allow_other,umask=002,endpoint=us-east-2 0 0 >> /etc/fstab
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 1 23:33:56 2018
@author: dfischer
"""
from PySide2.QtWidgets import *
from modules.functions import *
from modules i... | [
"danielfm123@gmail.com"
] | danielfm123@gmail.com |
1a8972f5e58acab710e90a551d29145682b229c8 | 2d91e44b4c474b826ee109d7eebace6a07e22f7e | /test/test_del_group.py | cb0c7b1b5e7cfd9848b14e85fb73c8ad82e4d63d | [
"Apache-2.0"
] | permissive | Mai-ah/python4testers | 5c0fa3416bd4393813090960db3412a38766ee94 | 457751759c77d9fb06d8567aaf93787928503456 | refs/heads/master | 2021-01-22T07:22:52.016208 | 2017-04-19T22:38:35 | 2017-04-19T22:38:35 | 81,809,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # -*- coding: utf-8 -*-
from model.group import Group
import random
def test_del_some_group(app, db, check_ui):
if len(db.get_group_list()) == 0:
app.group.create(Group(name="test"))
old_groups = db.get_group_list()
group = random.choice(old_groups)
app.group.del_group_by_id(group.id)
new_... | [
"milena.zahorska@stxnext.pl"
] | milena.zahorska@stxnext.pl |
8ec2d2db2d68e554d38973660c0b8a31ff674532 | 0dcd04348eb8364973d775380a242066cfcf42e0 | /src/parser.py | 5309d3074a42d89dce8f684618ea8c805250d0d0 | [] | no_license | zatserkl/donation-analytics-project | b5877511b0efb550f79c5076fa9be40d3e32a282 | 1827f9e43baa4c2faa6d675f4a57ce181011e297 | refs/heads/master | 2021-05-01T03:22:05.103981 | 2018-02-14T04:23:22 | 2018-02-14T04:23:22 | 121,191,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,474 | py | # Andriy Zatserklyaniy <zatserkl@gmail.com> Feb 12, 2018
from __future__ import print_function # to run this code under python27
class LineParser:
""" Parses line and provides basic checks.
"""
def __init__(self):
self.debug = False
def clear(self):
""" Clear the data fields b... | [
"zatserkl@gmail.com"
] | zatserkl@gmail.com |
7c46d8a9418deb8e9a5a2c6c23f07e133a2c2d90 | 20a6fb2ff61e01c30c73079f7f90f2489b5a9123 | /spider_wooyun.py | 4089ebdffb0d77cfcf8a78ec7cd128c2d295a613 | [] | no_license | JASON0916/spiders | 4e20da55d6c3782dd410da05ec7bd5a970fb5031 | f39b487cd96081abc82102ceb19133e2d3f7abb8 | refs/heads/master | 2020-12-24T08:30:28.694780 | 2016-08-12T02:51:44 | 2016-08-12T02:51:44 | 30,913,988 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,007 | py | Enter file contents here
import mysql.connector
import sys, os
import urllib.request
import re
import itertools
import base64
search_item='金融'
#以后只需要修改search_item就可以了
#转成bytes string
bytesString = search_item.encode(encoding="utf-8")
encodestr = base64.b64encode(bytesString)
#base64 编码
user = 'root'
pwd = ''
host = ... | [
"JASON0916PHOENIX@GMAIL.COM"
] | JASON0916PHOENIX@GMAIL.COM |
47d8eed9075c33a4d57f2b6b83d5a4a59086c59c | 60070c509749086eb385013160ee537e28f0fbf5 | /apitaqueria/apitaqueria/settings.py | b3fd6050544de3aaa48d4185f857d6bc3afa25cc | [] | no_license | arturoBP/taqueria | 0709de10fbb6fdbd85dcfe4777608dfab2db8856 | 0c59e06760fd7bcb6150238988274b011adf73a3 | refs/heads/master | 2021-01-20T05:13:22.685105 | 2017-03-04T03:34:02 | 2017-03-04T03:34:02 | 83,857,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,216 | py | """
Django settings for apitaqueria project.
Generated by 'django-admin startproject' using Django 1.9.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import ... | [
"fatima beltran"
] | fatima beltran |
d149b5add1701e0ca3c77c9ad09001bfccd01188 | 99ea5ac1c5f09a569b2373474d1fc0b2be71f6b0 | /clean_plots.py | b1802a796535099ef87d3480069c9c5334f76a99 | [] | no_license | whiteted-strats/Lag_Analyser | e53e0cbcbaad1fea773d2c7ab77d20252c7b46f4 | 1ce60852adf0898751002412f4b44351f3c76254 | refs/heads/master | 2020-04-25T00:47:43.912801 | 2019-02-26T22:28:06 | 2019-02-26T22:28:06 | 172,388,854 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py |
from PIL import Image
import os
for f in os.listdir("tmp_plots"):
im = Image.open(os.path.join("tmp_plots", f))
assert im.size == (320+64, 240+48)
im.crop((32,34,352,274)).save(os.path.join("plots", f)) | [
"noreply@github.com"
] | noreply@github.com |
3c1535a2a07ed38a85551fd89caf43b2d1e16f7a | c1d63e4d798d9895419994c2ec87563246d24bab | /textchange/migrations/0010_auto_20151129_2212.py | 4f2982c4496af438018de6b91c01f02a9eb00792 | [
"MIT"
] | permissive | ProgrammingJoe/Texchange | 5d336dc4b2919c44a0c63bd58a0f939f3b16d498 | f0992f62092bf2362669cc3a8454be9d428e34bc | refs/heads/master | 2021-01-24T17:06:38.807892 | 2017-11-23T01:09:36 | 2017-11-23T01:09:36 | 36,322,874 | 0 | 0 | null | 2017-11-23T00:52:43 | 2015-05-26T20:48:06 | JavaScript | UTF-8 | Python | false | false | 427 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('textchange', '0009_auto_20151129_2210'),
]
operations = [
migrations.RemoveField(
model_name='feedback',
... | [
"joeczepil@gmail.com"
] | joeczepil@gmail.com |
3404f3e49a25f966611424cfd7a383685b804ee8 | df4ab1a98e59bb995bf9866041feccf732918ceb | /mysite/polls/migrations/0002_auto_20201113_1920.py | 185f3600ef609697b65291de4c776ac57f324b3e | [] | no_license | zhasny17/Django-tutorial | 4ca7a630c11f5087c41bb144188f993245a69f4d | 8c299f285d91675b941876a607cae6e77d8ff6bb | refs/heads/master | 2023-01-20T21:29:03.209266 | 2020-11-17T20:40:57 | 2020-11-17T20:40:57 | 308,008,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | # Generated by Django 3.1.2 on 2020-11-13 19:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='question',
old_name='pud_date',
ne... | [
"lucasluz@fortalsistemas.com.br"
] | lucasluz@fortalsistemas.com.br |
9703ffbfa97298169431afeb7f45ea557aa014ec | 4b0569763f6b5dcaee25369ea35560af27c89f09 | /tests/test_average_pixels.py | c45c45f52c1c0926e61a1a5646573ba2e513f09e | [
"MIT"
] | permissive | liviu-/average-pixels | 4ddddaab466d5743144d7f62d689546dc85da847 | 0f798fbef40c5fae66271f18566cfbdb9def3505 | refs/heads/develop | 2022-11-27T05:05:01.624361 | 2016-09-01T19:57:18 | 2016-09-01T19:57:18 | 60,898,052 | 8 | 0 | MIT | 2022-11-22T01:08:45 | 2016-06-11T08:29:56 | Python | UTF-8 | Python | false | false | 1,567 | py | import os
import glob
from average_pixels import average_pixels as ap
from average_pixels import SAVE_DIR
from average_pixels.average_pixels import WIDTH, HEIGHT, MAX_INTENSITY
SAVE_DIR_TEST = SAVE_DIR + '_test'
def download_images(term='anything', count=10):
return ap.save_images(term, count)
filenames = gl... | [
"hi@liviu.me"
] | hi@liviu.me |
a07113903ecfd7a15611e6321b364d3204f11ee3 | a26f5826cb08e759aeef857cab33259f61e736dc | /ramid/fake_data.py | 38e6b96f3b662b1aac1d2115bb5b2d7a22bc3704 | [] | no_license | Sijiu/talkpy-ramid | 3cdbb414a924e4a98e78065c8ba3fa456ed11357 | f708d0d5894d64ab74f4a4f118e93f3dc819ab7b | refs/heads/master | 2020-05-03T00:47:53.401515 | 2019-03-29T03:58:10 | 2019-03-29T03:58:10 | 178,318,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: mxh @time:2019/3/29 10:43
"""
def get_orders():
return [
{'name': 'Cereal', 'price': 4.99},
{'name': 'Cheese', 'price': 2.15},
{'name': 'Milk', 'price': 6.99},
{'name': 'Oranges', 'price': 2.54},
{'name': 'Apples', ... | [
"mxh403@163.com"
] | mxh403@163.com |
1121f6a53acf5a9c8ef5d493abbc9e47d48c8622 | f5215d2abeeffab1f2340cd2e9584c65f4c8b091 | /new code/configure.py | 8f8e71475ea62163677dfb733a1e3b12fd2b3cf5 | [] | no_license | pengyanhui/LineaRE | aebca037d7e49bb7ff58723f65e4d55d085b5cad | 506bc1377ade11c7e1657291cf30f6358b536d71 | refs/heads/master | 2022-05-09T01:20:05.024645 | 2022-03-15T23:16:30 | 2022-03-15T23:16:30 | 233,355,178 | 25 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import json
import logging
import torch
class Configure(object):
def __init__(self, config_path):
with open(config_path, 'r') as fjson:
json_config = json.load(fjson)
self.dim = json_config['dim']
self.norm_p = json_config['norm_p']
self.alpha = json_config['alpha']
self.beta = json_config... | [
"noreply@github.com"
] | noreply@github.com |
a6a68143b6886cc7011672847f3ca8144462f48b | 1a48130b5b71dee249e66531290ddc5cba19d93a | /add_event_test.py | a69b87d27c27001684c1a71046c3e308a69aa45e | [] | no_license | HardyHu/FirstAutomationFramework | 456bf30c40354e67885d753874ff14bb884755ae | b770a7b361ed7f8c0dc635287d27d0f4fd9d8c49 | refs/heads/master | 2020-03-23T04:41:04.620754 | 2018-07-16T08:18:55 | 2018-07-16T08:18:55 | 137,856,242 | 0 | 0 | null | 2018-06-19T07:43:31 | 2018-06-19T07:33:38 | null | UTF-8 | Python | false | false | 2,370 | py | # -*- coding: utf8 -*-
__author__ = 'HardyHu'
import unittest
import requests
import os,sys
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0,parentdir)
from db_fixture import test_data
class AddEventTest(unittest.TestCase):
''' 添加发布会 '''
def setUp(self):
sel... | [
"noreply@github.com"
] | noreply@github.com |
461cf65f28dea329b58a8685b0d9103c062b6eb9 | a3e722e34bc0e1b8d05920b637fa0501775494cf | /app/helpers.py | ee801000e8c68617f276c3ac28c6373cdbd09ccb | [] | no_license | LachlanMarnham/PersonalWebsite | 09a6ad99372ad1f8f10440919e1f50965de76717 | ef8712e763ae64a8fc8c2e688bb567d4462b9b21 | refs/heads/master | 2022-12-10T15:24:43.269400 | 2019-05-05T23:17:00 | 2019-05-05T23:17:00 | 136,801,777 | 0 | 0 | null | 2022-09-16T17:54:18 | 2018-06-10T11:09:16 | JavaScript | UTF-8 | Python | false | false | 2,836 | py | from typing import Tuple
from collections import namedtuple
from enum import Enum, unique
from flask import url_for
MenuItem = namedtuple('MenuItem', ('title', 'url', 'context'))
@unique
class NavContext(Enum):
home = 0
music = 1
projects = 2
partita = 3
cv = 4
class NavBarMenu:
def __init... | [
"lachlan.marnham@gmail.com"
] | lachlan.marnham@gmail.com |
66e34708e4306f979f9fb0805e11116b0f55e041 | 176ebc25c8f2cd361ca9135fc2c2b1df32386371 | /horizen_code/tools/train.py | 90888007f4750ba7db351b7ab79170086176b198 | [
"MIT"
] | permissive | yangJirui/DOTA-DOAI | a3ba7c0e17ebad69eb24ad373d3ffb74f84b2cb3 | aec4a2085d62a941c1b3f50fc9a452b2c8d3cd9f | refs/heads/master | 2022-02-23T07:42:52.565128 | 2019-04-16T07:05:05 | 2019-04-16T07:05:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,387 | py | # -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import tensorflow as tf
import tensorflow.contrib.slim as slim
import os, sys
import numpy as np
import time
sys.path.append("../")
from libs.configs import cfgs
from libs.networks impo... | [
"1192150908@qq.com"
] | 1192150908@qq.com |
6ea3fc70974521946eb18ef5d9e5c911a97d513d | 84e9a9a57001404af4595b60eeb817415592600b | /src/lisa_drive/scripts/vel_stabilizer.py | 5e7dc75fd5e92b1d80c4eb1df1aeeae521dc3e26 | [
"MIT"
] | permissive | ncos/lisa | f0589e18bea6e5b88abb2502ebb6406cdc09ef2c | 81d3197b41bd2746ab51ce5a6c2bfa461b9d3e23 | refs/heads/master | 2021-01-22T15:00:27.559370 | 2019-05-09T21:17:47 | 2019-05-09T21:17:47 | 33,986,312 | 0 | 0 | null | 2015-04-15T09:55:55 | 2015-04-15T09:55:54 | null | UTF-8 | Python | false | false | 1,897 | py | #!/usr/bin/env python
import roslib; roslib.load_manifest('lisa_drive')
import rospy
import sys
import argparse
from nav_msgs.msg import Odometry
from geometry_msgs.msg import Twist
import numpy as np
import matplotlib.pyplot as plt
class VelocityControl:
def __init__(self, target_speed, alpha):
self.target_spee... | [
"bcolebro@umd.edu"
] | bcolebro@umd.edu |
fed85901a7eb3200b3c289b1fe6e387840863bd0 | df071775e4cc39a56669469c7f59c253e618ddb6 | /backend/simps_restful/wsgi.py | 6965020abda571a96371b0617c74fcdab850a18f | [] | no_license | LNMIIT-CODING/simps-cnb | 371cb8742192ea51916ae4bcafddaf080e49d4d3 | 3a25100c65355c824f3eef24aadf3b99c436830e | refs/heads/master | 2023-03-20T18:30:57.494193 | 2021-02-26T13:51:50 | 2021-02-26T13:51:50 | 342,176,780 | 0 | 3 | null | 2021-02-26T13:51:51 | 2021-02-25T08:37:57 | Python | UTF-8 | Python | false | false | 403 | py | """
WSGI config for simps_restful 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"dreadarceus@gmail.com"
] | dreadarceus@gmail.com |
2a3b4c6c3858e836062f22a4320698cb132e99a1 | 8ec293c17d5a8635c4bf06cdd5b264429ec94d48 | /INF/INF tc1/BE1/temp.py | 60beeba0121e603c50e038f09dd6545edd9141e7 | [] | no_license | EmelineGOT/Centrale | 79636116ac18e3f5a31e67477d910edb0b105d9d | 8661f5010fbe60db3443ff0fc90e8df44d9dce4d | refs/heads/master | 2020-04-03T15:50:13.616829 | 2018-10-30T12:24:46 | 2018-10-30T12:24:46 | 155,379,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py |
a=int(input('Donner un entier:')) #On demande l'entier a
if (a%2==0): #Si le reste de la division euclidienne de a par 2 est nul...
print(a,"est pair.") #...L'entier est pair
else:
print(a,"est impair.") #Sinon l'entier est impair
import math;
def quadratique(a,b,c):
if (a == 0):
if ( b !=... | [
"got.emeline@gmail.com"
] | got.emeline@gmail.com |
cf4527d6e9245e38d0554d1b83b1a2874c00b008 | 0fcef1d34be0d8375c5ada73697f48fd8d507ea0 | /0x0B-python-input_output/1-write_file.py | a124ded86b4ad3d8579c482284a8e5969e6c7a7f | [] | no_license | jdcera4/holbertonschool-higher_level_programming | 1a81c43fa30ff2d9324bc1d3878d2769491d03a6 | 15cc85c2a6a9b8aaa209d47d393f27a6fa8615f2 | refs/heads/master | 2023-08-17T22:25:39.599851 | 2021-09-27T22:26:03 | 2021-09-27T22:26:03 | 361,773,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | #!/usr/bin/python3
"""function that writes a string to a text file (UTF8)
and returns the number of characters written
"""
def write_file(filename="", text=""):
"""Print text in the filename"""
with open(filename, "w", encoding="utf-8") as f:
cont = f.write(text)
return cont
| [
"jdcera4@gmail.com"
] | jdcera4@gmail.com |
e6c36884b98e2a9d2654d352c67bc82e1b7d2659 | 9c18348e6bcb255fe187743907c262e842966829 | /semestres/5_semestre/Estructura discreta/unidad-4-estructura/mcd_metodo_clase.py | acfe18b25035c26688aee80b5ab112d827358973 | [] | no_license | ricardovergarat/A-U | 0d912f561f313be94ffdabeb0eac1a25ef4daea5 | 5f85dae83ad45f21de9c7f066fcd011dd7d8869f | refs/heads/master | 2021-09-11T14:45:45.406639 | 2021-08-26T17:06:30 | 2021-08-26T17:06:30 | 204,372,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from el_algoritmo_euclidiano import *
def obtener_mcd_metodo_clase(a,b):
lista = algoritmo_euclidiano(a,b)
return lista[len(lista) - 2][6] | [
"ricardovergarat1@gmail.com"
] | ricardovergarat1@gmail.com |
87920170a74947b9f89c3e958893179fc55c33ba | d7f6c6c480375cff847712e754ae37e81aa31d46 | /make_game/14_grid.py | aa25feaf674a9297cf0a77aacdc6c6fd27e9e3a8 | [] | no_license | junwoopark93/pythonworkspace | fc0804697a0ede0fbbc65283f2e6e77cf428c8e5 | fa1c8994a997fdd88bf5318203faccfdf71f7682 | refs/heads/master | 2023-01-23T00:53:13.118219 | 2020-12-12T14:17:25 | 2020-12-12T14:17:25 | 317,523,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | from tkinter import *
root = Tk()
root.title("Park's UI")
root.geometry("640x480")
# btn1 = Button(root, text="button1")
# btn2 = Button(root, text="button2")
# #btn1.pack(side="left")
# #btn2.pack(side="left")
# btn1.grid(row=0, column=0)
# btn2.grid(row=0, column=1)
btn_f16 = Button(root,text="F16", width=5, hei... | [
"pjw040293@gmail.com"
] | pjw040293@gmail.com |
8b0d0af563b04234591e79e11b078ff9d9f40eb4 | 9547e94056acc29caa76aa3d55ee6dea501e5f6f | /guess/guess/guess/wsgi.py | 2640ca849accf6e7377f2e6613838b453803daa7 | [
"MIT"
] | permissive | PeteCoward/teach-python | bd1cdaa08af9fe7cac22e19e69dd6f644a505496 | 2a63ece83151631ab4dcf868c361acdfe4e6c85f | refs/heads/master | 2021-05-04T10:37:29.998473 | 2017-08-19T06:46:15 | 2017-08-19T06:46:15 | 45,660,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for guess project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTING... | [
"peter.coward@gmail.com"
] | peter.coward@gmail.com |
cf699af21b0d0fd761b081328d5a6b79c0af8136 | 90e55952cd6890498f972e1896a8ae815134ee40 | /whogotit/profiles/models.py | e798afd4366f16e2be076fe0219f10508faf2fef | [] | no_license | stonaz/whogotit | 50e6b7f3abc3dd1da46f8a6c54ef78a18a909f88 | e7493fbefbaca6362e8bc737976e6a77bcb79100 | refs/heads/master | 2021-04-14T19:44:37.321862 | 2018-05-09T15:28:25 | 2018-05-09T15:28:25 | 126,524,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,393 | py | from datetime import datetime
from django.contrib.auth.models import User
from django.contrib.gis.db import models
from django.utils.timezone import utc
from django.utils.translation import ugettext_lazy as _
from django.utils.http import int_to_base36
from django.template.loader import render_to_string
from django.co... | [
"stefano.tonazzi@gmail.com"
] | stefano.tonazzi@gmail.com |
d8f8388ccf0bde786d3c4b612af5b9f908999b36 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v5/googleads-py/google/ads/googleads/v5/errors/types/keyword_plan_idea_error.py | 7317f5950bfe3158aa862fb8e1d10e4d1711708a | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
3c7165e1c6f28d3dec906fe46f353875353e70cf | 8e99450be41b6a448f50b58b63fe0650765e6fa1 | /pliki/nauka09.py | df2d9bfafc5c3ac658975c95a26e7ed999217458 | [] | no_license | adrianmikol/2020-11-21-python | 2cf7fd1234603db3c224f647eb90a4c727741898 | 890a3fbdd242c87654b919c68ea959839b6b2ad8 | refs/heads/main | 2023-02-27T23:49:10.103642 | 2021-01-31T15:44:18 | 2021-01-31T15:44:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import pickle
dane = {
"imie" : "Mateusz",
"szkolenia" : { "Linux", "Python", "git" },
"xyz" : [5,6,7,8,9],
"test4" : range(5,10)
}
x = pickle.dump(dane, open("nauka09.dat", "wb"))
| [
"m.adamowski@alx.pl"
] | m.adamowski@alx.pl |
fde91efd3a8d9eba07eafe0198bc165fb6784d17 | e87b7192c836b680ec36c2b93aa07d8cbb297a6f | /kbengine_spaceship_demos_assets/scripts/cell/interfaces/Arsenal.py | da47f2ae2a75cb59a6266e600911354f7a92c9ff | [] | no_license | petergjh/spacecraft_demos | 95ee993e0e4e59457cf3a3227e6d695c27eed73a | 53833e089e50ea54bd1ef319a8797ebdec89b456 | refs/heads/master | 2020-12-10T03:36:14.764199 | 2018-07-18T09:14:03 | 2018-07-18T09:14:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | # -*- coding: utf-8 -*-
import KBEngine
import GameConfigs
import SCDefine
import d_entities
import math
import Math
from KBEDebug import *
class Arsenal:
"""docstring for Arsenal"""
def __init__(self):
self.coolTimeList={}
# self.addTimer(1,1,SCDefine.TIMER_TYPE_WEAPON_CD)
def hasWeapon(s... | [
"760905035@qq.com"
] | 760905035@qq.com |
290df94161503fe64508cd16fdcb1b54fe6edb58 | 170b1fc17e29c0d96b1f7c0970f85b1328597447 | /manage.py | abf3cfbaf070bc7f28e52cca9c3d5f7c8a21b862 | [] | no_license | adiela/directory-backend | 5446c32b12e0a6ebf28c703d08cf9dafc2456f6a | 75bf3b881eb381a94c9cf797447f53a507fdc03b | refs/heads/main | 2023-04-14T20:18:45.925725 | 2021-04-21T20:46:40 | 2021-04-21T20:46:51 | 349,205,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
from decouple import config
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', config('DJANGO_SETTINGS_MODULE'))
try:
from django.core.management import execute_from_command_line
exce... | [
"adiela.abishua@gmail.com"
] | adiela.abishua@gmail.com |
3123b2e166e0c4d6732e9496e51de271ea7f14b1 | 512f48fdcfa78e322526cf47163110009b84bf73 | /rapid7vmconsole/models/privileges.py | 62da3458bc049d084294218fcc09b1e20475b6aa | [
"MIT"
] | permissive | confluentinc/vm-console-client-python | 9a0f540c0113acf68ee9dc914715bc255e4d99f4 | ccbd944a0e0333c73e098b769fe4c82755d29874 | refs/heads/master | 2023-07-18T10:33:58.909287 | 2021-09-02T20:52:20 | 2021-09-02T20:52:20 | 402,559,283 | 0 | 0 | MIT | 2021-09-02T20:49:56 | 2021-09-02T20:49:56 | null | UTF-8 | Python | false | false | 4,944 | py | # coding: utf-8
"""
Python InsightVM API Client
OpenAPI spec version: 3
Contact: support@rapid7.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Privileges(object):
"""NOTE: This class is auto generated by the swag... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
0546efda0b5f0a7c3fa89c0af1a6b8f52c07b48e | 27d43a78ad85c8182489bd2b95578597780fdf15 | /isprinkle-server/isprinkle-server | 87617372d09467aae99bfdc0aec27816b5674d07 | [] | no_license | djsmith42/isprinkle | 1ba1c2630f5a5365f8f9a54a39075c01e44ad4ac | b154c8cac8060d4c3d5c1e570986455c5fbab686 | refs/heads/master | 2016-09-05T10:01:08.785592 | 2015-08-29T04:10:47 | 2015-08-29T04:10:47 | 4,769,808 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | #!/usr/bin/env python
import os, sys, time, signal, datetime, uuid
from webservice import iSprinkleWebService
from wateringservice import iSprinkleWateringService
from persister import iSprinklePersister
shutdown_requested = False
THREAD_TIMEOUT_SECONDS = 5.0
def handle_sigterm(signal, func=None):
p... | [
"dave@thesmithfam.org"
] | dave@thesmithfam.org | |
3a427aa4224c49b21ff8fe2aa4a4b2fc97d65227 | 695ec68b5e3e1c4b038b472cabced8944f479ca7 | /backend/db/patient.py | 464a989a9cb27c1d1baa77e94436a8092fe897da | [
"MIT"
] | permissive | wooque/openpacs | 1ca5326ea98be6f40129684a408705bd2c3a4693 | 4524bc7fade0934a70a53bb311f302828cc56905 | refs/heads/master | 2022-07-22T11:34:25.891686 | 2019-09-25T13:13:49 | 2019-09-25T13:13:49 | 210,719,218 | 4 | 1 | MIT | 2022-07-05T21:35:09 | 2019-09-25T00:07:45 | Python | UTF-8 | Python | false | false | 2,633 | py | from db.table import Table
from db.study import Study
from db.series import Series
from pypika.pseudocolumns import PseudoColumn
class Patient(Table):
name = 'patients'
async def sync_db(self):
await self.exec("""
CREATE TABLE IF NOT EXISTS patients (
id SERIAL PRIMARY KEY,
... | [
"contact@vukmirovic.org"
] | contact@vukmirovic.org |
1e62a0ec5f56aed2c6fcd80abc1a40a459dd63b0 | d1b407466f57ac998b84d06b66af997d1f009706 | /t100data/settings.py | 307c71e5277f83e10e132dfca0143725a2e1020e | [] | no_license | jmshulett/assignment45 | 4727f46fec7616c31f38fb502a1f796c628d9cef | b0a6fe27ff658ca9f11c05bc40f7986c2989a8ef | refs/heads/main | 2023-08-23T13:56:14.774451 | 2021-10-24T17:08:29 | 2021-10-24T17:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | """
Django settings for t100data project.
Generated by 'django-admin startproject' using Django 3.2.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
... | [
"noreply@github.com"
] | noreply@github.com |
982b9bf2c89ff1eb8bd5a4efbb592ba072bf5008 | c169ba2ac6719b6668ac69861f6dcbaeb2635f9c | /setup.py | 9459fb034c6a05c8f83e9317509d648b6846a704 | [
"MIT"
] | permissive | lhillber/tmps | 7652eba1519170513fdd108c795c1ae6378b5801 | f5f12cfa5a5e180c1947b138e0c42787a5de90ea | refs/heads/master | 2022-03-06T14:41:19.522604 | 2019-09-30T18:31:23 | 2019-09-30T18:31:23 | 104,544,591 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import setuptools
with open("README.md", "r") as f:
long_description = f.read()
setuptools.setup(
name="tmps",
version="0.1.dev2",
author="Logan Hillberry",
author_email="lhillberry@gmail.com",
description="thermo-magnetic particle simulator",
long_description=long_description,
long_de... | [
"lhillberry@sensoryinc.com"
] | lhillberry@sensoryinc.com |
2425e893da55a228ed9df844aa45c63afeec10c7 | c36996f302ced350a5264f366eec608b52f65b9a | /__init__.py | 4f4eb0e52ad20eb25360dab0422cc4e6c8a674a4 | [
"MIT"
] | permissive | parkus/arc | 1d99fbc2cd703c1350858bfa619881e8c78fe5a8 | a3df293e49531c1d0e7dfac71794f1896925835b | refs/heads/master | 2020-05-17T18:33:34.950538 | 2015-04-28T20:14:19 | 2015-04-28T20:14:19 | 33,963,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | from arc_functions import * | [
"parke.loyd@gmail.com"
] | parke.loyd@gmail.com |
8c462a9504616211d1a864ac6f1a00d0a2cba936 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pypos/pypos-000/pypos.py | 1d36f8dacb776baa51da76f15440425f8f40a5f8 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,615 | py | #!/usr/bin/env python
import os, sys, getopt, signal
import gobject, gtk, pango
# ------------------------------------------------------------------------
# This is open source sticker program. Written in python.
GAP = 4 # Gap in pixels
TABSTOP = 4
FGCOLOR = "#000000"
BGCOLOR = "#ffff88" ... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
7c2282ccb89860811bd007ff2cc35647d217322f | 02023fb46d07eb23a21d733062500dbabe636998 | /loginlogout/urls_log.py | 43dccd6ae4c936d85fee98677eceb5b66edff9fe | [] | no_license | SamSSupreme/myrepo | 7c4c5d1cb1ba44ac1751b5b6a0c2bab8ab5a3ee9 | a9a72431a840cfa5358dcf38038dd29815c24005 | refs/heads/master | 2020-04-03T21:55:24.077366 | 2018-11-08T21:14:28 | 2018-11-08T21:14:28 | 155,587,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | from django.urls import re_path
from . import views
urlpatterns = [
re_path(r'^login/$', views.login),
re_path(r'^logout/$', views.logout),
] | [
"danya.samusenkov@gmail.com"
] | danya.samusenkov@gmail.com |
28b8940fb39efb304eb29f75d9a59657e3bea185 | 89a331cf47fc7b9765de9abf8d4fd53dd6fe399d | /final/support.py | a454ff767372d7632a8dc61735c1c021259d9034 | [] | no_license | devangsharma14/Skin-Cancer | 11dc5921a46a1b346d73a05f6eb9d11858bf0665 | 88de8cdb3d4cd87033ac83a3aef1e6b4fdd0c0d7 | refs/heads/main | 2023-03-28T08:42:45.681973 | 2021-03-30T10:49:33 | 2021-03-30T10:49:33 | 338,076,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,590 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 27 11:24:25 2021
@author: Devang
"""
import glob
import boto3
from flask import send_file
import os
import numpy as np
import torch
from PIL import Image
import torchvision.transforms as transforms
import torch.nn as nn
import torch.optim as optim
import... | [
"noreply@github.com"
] | noreply@github.com |
73801716579f06b4fea1bcac3e99b7ab239a38bc | b0dfba93bee2a5483295ce2e827164c76f9ab66c | /09_Special Pythagorean triplet.py | 14aa2db9622f9892f2f30d0ff6544953ed01af41 | [] | no_license | kasanitej/Project-Euler-Python | bf9f25ff5b136616c6b6f19f8a0a5d65ab61c9f6 | 52159a345b0544cc60e37c872b2799f70d671277 | refs/heads/master | 2020-03-22T08:19:18.620451 | 2018-07-23T19:19:47 | 2018-07-23T19:19:47 | 139,759,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from math import sqrt
triplets=[]
for x in range(1,333):
for y in range(x,500):
z=sqrt(x**2+y**2)
if z%1==0:
z=int(z)
triplets.append((x,y,z))
print(triplets)
sum1=[(x,y,z) for (x,y,z) in triplets if x+y+z==1000]
print(sum1)
print(sum1[0][0]*sum1[0][1]*sum1[0][2]) | [
"noreply@github.com"
] | noreply@github.com |
2c7462f9a75f58b2ed2e7b8ccb191d0fef666f05 | a096eb61ca7c2146c41cba8affabf3daafd6373f | /instagram/migrations/0002_auto_20210712_1000.py | 0dfbffa775e0279e5eb9e55f6acaad91c8b616d9 | [
"MIT"
] | permissive | Kiru-axis/Instagram_Clone | 2a32ea3cdbc85f30c429a729ab571abc676d62c0 | 07937945b7ce7310c886335a4d077731fe1b1250 | refs/heads/master | 2023-06-20T04:42:23.900578 | 2021-07-12T07:13:19 | 2021-07-12T07:13:19 | 385,066,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # Generated by Django 3.2.5 on 2021-07-12 07:00
import cloudinary.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('instagram', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='post',
name='image... | [
"peter.kiru@student.moringaschool.com"
] | peter.kiru@student.moringaschool.com |
4fb9881f8d25ca657aa47ab7c4b51b8976af9eed | fa5cb3cb27132a330673650afa1d68dd35f15251 | /tests/datastore_memcache/test_multiple_dbs.py | b83d7dfcc1be82e7947678f63af35397e02cebe7 | [
"Apache-2.0"
] | permissive | jbeveland27/newrelic-python-agent | 95b4fdf253915100bc62bbd143066f589efc3ab9 | 86c78370ace1eba18e05de5e37aadb880f5f3ac4 | refs/heads/main | 2023-07-12T06:40:58.741312 | 2021-08-19T23:37:14 | 2021-08-19T23:37:14 | 398,122,410 | 1 | 0 | Apache-2.0 | 2021-08-20T01:38:35 | 2021-08-20T01:38:33 | null | UTF-8 | Python | false | false | 4,162 | py | # Copyright 2010 New Relic, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"noreply@github.com"
] | noreply@github.com |
1adf1bdb1f54c7630e2de726c7944c29d6553e38 | 56e3b92f011214980e48ba55685f908a3afb5630 | /Model/app.py | ff68d0b799892f727bd7c87b85c63a466804beb8 | [] | no_license | anuanmol/Air_pollution_Analysis | af2dc4cee3546733eed2ff0a975d64845ebba87a | b6962509281a776f4dd68ee9edb0d2807aba6911 | refs/heads/main | 2023-07-09T20:36:37.988096 | 2021-08-14T09:14:28 | 2021-08-14T09:14:28 | 393,097,859 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,931 | py | import streamlit as st
import pickle
import numpy as np
import pandas as pd
from datetime import datetime, timedelta
from fuzzywuzzy import process
import requests
import plotly.express as px
from copy import deepcopy
import json
import os
from PIL import Image
import time
# import folium
# set... | [
"noreply@github.com"
] | noreply@github.com |
f19c41f917adc71b85eb4842e9c5e8595add38fd | caab2457e8f4961ec7e3725f5060f899161e0c7e | /Algorithm_And_Data_Structure/hashtable/magic_dictionary.py | 8ee20070b40976f4dff13214799e169e56d89365 | [] | no_license | omidziaee/DataStructure | 7ea9991737ecbf97bd17ec9aea1db0383c5a390c | 66a4325c5999535e64e8e985bac4e3a96108bf1a | refs/heads/master | 2021-06-06T17:37:42.003610 | 2020-04-05T03:38:02 | 2020-04-05T03:38:02 | 148,665,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,483 | py | '''
Created on Feb 23, 2020
@author: omid
Implement a magic directory with buildDict, and search methods.
For the method buildDict, you'll be given a list of non-repetitive words to build a dictionary.
For the method search, you'll be given a word, and judge whether if you modify exactly one
character into another ... | [
"omid@192.168.2.15"
] | omid@192.168.2.15 |
ed2cdf64be7e759b23041fe811fe97aeafd47736 | 1db1dd6f8a76d61c37e66cd7eaede726bd053f06 | /projectsample1/app/serializers.py | ac9001703362d058987982f2d7005c1abadf53e7 | [] | no_license | CDACFRTP-APR21/G6-PythonShoutNest | 9b90463c147dffe566ced658d8b4fd9d20af4fc7 | 31ebae49137f94a8f7a662eb985f6920208e85b7 | refs/heads/main | 2023-06-03T05:34:52.018724 | 2021-06-26T09:31:38 | 2021-06-26T09:31:38 | 380,444,454 | 0 | 1 | null | 2021-06-26T09:38:25 | 2021-06-26T07:40:09 | Python | UTF-8 | Python | false | false | 1,610 | py | from django.db import models
from django.db.models import fields
from rest_framework import serializers
from app.models import Reports, User,Shouts,Friends
""" class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('userId',
'userName',
... | [
"noreply@github.com"
] | noreply@github.com |
b90f2ec4cb0dc5d6cc682ef6baaf6cf27eab2d04 | ca16fc994a6a4994b5f20c45a47cbff66f041e2a | /store_owner/migrations/0001_initial.py | 1cf62befa13f94601df2aecc1f521211d0d312b6 | [] | no_license | hackathonteam16/hackathon_web | fbbe1dfcb4ee49c4978047858e0169d9a5af0c60 | 4b58e5bdd9cb558642e1f6f28e7b4adce0df7c22 | refs/heads/master | 2023-04-29T06:53:13.570455 | 2021-05-20T20:25:30 | 2021-05-20T20:25:30 | 369,142,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | # Generated by Django 3.2.3 on 2021-05-20 10:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Shop',
fields=[
('id', models.BigAutoField(... | [
"mohakoune@gmail.com"
] | mohakoune@gmail.com |
b055d8ae6cafcbe25b727929949414109497dfbf | fe91e0f7f74c3156a5c194713a69d9846b9e26a2 | /flask_app/blueprints/api/blueprint.py | 9493ed788ee23a4f569ba5bbd705e244e4682ac4 | [
"BSD-3-Clause"
] | permissive | getslash/backslash | cbf963006e3de565a1512f79c6c9ab84e705c67e | 67554c039f8ac6a648deb191cc7fb69480f28253 | refs/heads/develop | 2023-01-10T22:26:11.666887 | 2022-06-17T05:06:00 | 2022-06-17T05:06:00 | 23,376,788 | 17 | 15 | NOASSERTION | 2022-12-27T16:17:59 | 2014-08-27T04:30:58 | Python | UTF-8 | Python | false | false | 1,268 | py | import functools
from flask import Blueprint
from flask_simple_api import SimpleAPI
from ... import activity
from ...utils.api_utils import (auto_render, requires_login,
requires_login_or_runtoken)
blueprint = Blueprint('api', __name__, url_prefix='/api')
api = SimpleAPI(blueprint)
... | [
"vmalloc@gmail.com"
] | vmalloc@gmail.com |
b992279df4179e343cd86a13c730cb7d56b36b83 | 96909e3b2eb787afa739f3020a9292afae61b0b5 | /web/__init__.py | f2ab81fbc93b8f2f236e99d276ed434f89b742c1 | [] | no_license | fengges/se | 09bd6306f67d78fe0f51286ab41f629237fcf4d6 | 51e199a7fc5f7666063a556f41669a6a8b4fe37d | refs/heads/master | 2020-03-27T04:29:32.207191 | 2018-08-24T05:47:40 | 2018-08-24T05:47:40 | 145,944,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py |
# author :feng
# time :2018/1/25
# function : 应用初始化
# 注册蓝图
import os
from main import Query
from flask import Flask,json,request
app = Flask(__name__)
subject = [{"code": '01', "k": 46}, {"code": '02', "k": 98}, {"code": '03', "k": 98},
{"code": '04', "k": 88}, {"code": '05', "k": 98}, {... | [
"1059387928@qq.com"
] | 1059387928@qq.com |
312251e0b9dadff3dd07e922e12f3799828a2905 | 4c56bbe4a2ed47ce4d1f18a13a89d0180d02f1bb | /venv/Scripts/pip3-script.py | ea9ba72ed63332a6d7195d3e2692787496295b84 | [] | no_license | spiritanand/Prime-Check | ba16ad565ffa26d27b99107b43b500349acda5d9 | cf8a6831f9fc591401bd6e46a0bcdbf645089f72 | refs/heads/master | 2023-02-12T21:04:44.802116 | 2020-03-21T12:06:33 | 2020-03-21T12:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | #!C:\Users\surya\PycharmProjects\primer\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0... | [
"suryansh.anand007@gmail.com"
] | suryansh.anand007@gmail.com |
2a66489cb6a9a1d4ce60b4f659a14f264a284583 | ebaa9244a881dceb14dbbecf61e86b429516e332 | /appium/爱买店.py | f45b82c80c8af94801d694e5ac580220822ef020 | [] | no_license | lw2000017/ibuy_test | 249737f5b2d172615b09fb576ff736bb4b23ff54 | b0b8c1686eaab76a9a6d513b75fbeacb5fd122c9 | refs/heads/master | 2020-05-22T12:18:15.752000 | 2019-06-25T10:08:55 | 2019-06-25T10:08:55 | 186,334,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,542 | py | # -*- coding:utf-8 -*-
# @Time :2019/4/16 14:53
# @Author :LW
# @File :爱买店.py
from appium import webdriver
import time
def Start_appium():
device = '127.0.0.1:62001' # 设备号
pack = 'cn.iiibest.app' # app的package名称
activity = 'com.ibuyproject.MainActivity' # app的主activity
desired_caps = {}
... | [
"1063681467@qq.com"
] | 1063681467@qq.com |
3dc723fb32a6c2be36f941fbfb3a83459bebe914 | f7c923c11184d184d40221b5f7119b3aa2b263da | /src/apps/book_app/admin.py | b17b64b1c7b57d8c1ee322812062c36f037dca2f | [] | no_license | skiesx/book_djangostars | 0c6bf7acda144cdb1095f31d940100368cf6722a | c54681524c2264c3110525bf3ece53254fb17b77 | refs/heads/master | 2020-04-03T13:50:53.965770 | 2018-10-30T01:19:19 | 2018-10-30T01:19:19 | 155,300,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | from django.contrib.admin.models import LogEntry
from django.contrib import admin
from apps.book_app.models import *
admin.site.register(WebRequest)
admin.site.register(Book)
class LogEntryBookAdmin(admin.ModelAdmin):
list_display = readonly_fields = [
'pk', 'action_time', 'object_id', 'object_title', 'a... | [
"SkiesX@ex.ua"
] | SkiesX@ex.ua |
e9e3cda5266717a5660707d3e5cbb04a54cdf11c | 34a7e30c3ceafb06c9a21c59c88c3ea5a6e91388 | /python/datagen/addPriority.py | dbbff881d7bd7fd56ded7dd0a280ef0ad32f27fd | [] | no_license | DinoBektesevic/DinoBektesevic.github.io | 91643f54411d214e7552e9ef2e1e0fbece5fb841 | be8cc8b3b2b58cbc1517593377228ff541fd515c | refs/heads/main | 2023-05-29T22:39:23.801299 | 2021-06-10T02:55:12 | 2021-06-10T02:55:12 | 364,038,461 | 0 | 0 | null | 2021-05-10T20:30:01 | 2021-05-03T19:27:07 | HTML | UTF-8 | Python | false | false | 1,301 | py | import glob
import pandas as pd
import numpy
import seaborn as sns
import matplotlib.pyplot as plt
# filename = "mjd-59662-sdss-simple-expanded.csv"
allfiles = glob.glob("testDir/mjd*-simple-expanded.csv")
for filename in allfiles:
df = pd.read_csv(filename, index_col=0)
newfilename = filename.strip(".csv"... | [
"csayres@uw.edu"
] | csayres@uw.edu |
b108a1c031785469143ca7c1f5b9ae87b78aa63d | 057b5b3044cb9b5b8078a42b1b16b60b86d5d612 | /welcome/models/__init__.py | cdfd4b338177d3a17d959c8c69080c82b044fdad | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | vincentrm89/django-ex | 202063969cde0f56bf786d1b511b550f44985a3e | feaf60ba19f21d0155c69850c0f9a1ab478b4b83 | refs/heads/master | 2020-08-31T06:07:10.698771 | 2019-10-30T23:17:32 | 2019-10-30T23:17:32 | 218,618,179 | 0 | 0 | null | 2019-10-30T20:25:15 | 2019-10-30T20:25:14 | null | UTF-8 | Python | false | false | 59 | py | from .pageview import PageView
from .mission import Mission | [
"vincentrm89@gmail.com"
] | vincentrm89@gmail.com |
e060fc4d2e2654c3df2dbe29d697eb692a0cbbd4 | db94f342091c298f49adc49dc052d9541934d960 | /tests/__init__.py | 8503b79fbcdd5e7a09275f846c27cb2f0a98953b | [] | no_license | dhanshew72/zonar-wishlist | 590f78ee962cb38da49c6ca928249054d7570805 | 664f2ffb9d3643cc3540874badad9af84941f3ff | refs/heads/main | 2023-08-22T14:20:07.647361 | 2021-10-07T20:44:54 | 2021-10-07T20:44:54 | 414,752,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | import os
import sys
sys.path.append(os.path.join(os.path.dirname(os.path.dirname(__file__)), "src"))
| [
"dhanshew@infoblox.com"
] | dhanshew@infoblox.com |
99eacc90992f58160c82a3091b537b0fcdf37c30 | 4b1fc2fb34f15c2cb7c159ad75bb639dee520819 | /pydocker/netclass.py | 2184fb80f7cb7eddc00e0de626b2c9adda66e47c | [
"Apache-2.0"
] | permissive | Hyperpilotio/experimental | df7afb5a2ab45c70daeece5ec820cdf5d9543377 | 67fdb3136c05a2289dbaedb73ebeccc3fde7248b | refs/heads/master | 2021-03-22T00:21:56.404190 | 2018-03-04T04:30:40 | 2018-03-04T04:30:40 | 83,843,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,837 | py | """
Network utilies class
Current assumptions:
- Manual entry of max throughput possible
- Each BE container has their own IP address
- Not managing bursts for now
"""
__author__ = "Christos Kozyrakis"
__email__ = "christos@hyperpilot.io"
__copyright__ = "Copyright 2017, HyperPilot Inc"
import subprocess
import re
... | [
"kozyraki@stanford.edu"
] | kozyraki@stanford.edu |
326d041bf3c62db88e54e60c05578758e5dbe54d | 2bb7d296bb159540d5dd1f201b88f13a2c4f36e0 | /project/tests/test_summaries.py | d43f1236e0702d4efa3c5c159ddaa98895d0fdbd | [] | no_license | heizerbalazs/fastapi-tdd-docker | 96e4394e14b52b448c07b66f8037c3ee2a31561e | 42b4c2e9115294586fabdf2ce39006bf314884a0 | refs/heads/master | 2022-12-20T06:17:31.122002 | 2020-09-27T08:50:04 | 2020-09-27T08:50:04 | 296,577,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | # project/tests/test_summaries.py
import json
def test_create_summary(test_app_with_db):
response = test_app_with_db.post(
"/summaries/", data=json.dumps({"url": "https://foo.bar"})
)
assert response.status_code == 201
assert response.json()["url"] == "https://foo.bar"
def test_create_summ... | [
"heizer.balazs@gmail.com"
] | heizer.balazs@gmail.com |
ca9b5394dc6522949a1d8a88828a4ac6086710d5 | 38be6da813f2d230a90d1ac4c7deb81ca6221be0 | /ad_hoc/beginner/timus/F1000/Solution.py | d913c165f7dad707131916fd5663b31f6f25c1a3 | [
"MIT"
] | permissive | MdAman02/problem_solving | c8c0ce3cd5d6daa458cb0a54ac419c7518bdbe1f | 1cb731802a49bbb247b332f2d924d9440b9ec467 | refs/heads/dev | 2022-09-13T09:40:51.998372 | 2022-09-04T14:15:17 | 2022-09-04T14:15:17 | 256,194,798 | 0 | 0 | MIT | 2020-04-16T19:08:24 | 2020-04-16T11:27:57 | Java | UTF-8 | Python | false | false | 251 | py | # problem name: A+B Problem
# problem link: https://acm.timus.ru/problem.aspx?space=1&num=1000
# contest link: (?)
# time: (?)
# author: reyad
# other tags: (?)
# difficulty level: beginner
a, b = map(int, input().split())
print(a + b) | [
"reyadussalahin@gmail.com"
] | reyadussalahin@gmail.com |
b454a7571ea51919efa5e03634793990c193a480 | 2571b3ad135e7085156817c929d6bc68fb0bec97 | /pilha1.py | f787e866eaccb50bee239f5d7cc5eb96610ed693 | [] | no_license | pmalvees/atividades-pilha-est-tica | 4d86d9d1e7ba89459f9f938b69d1fdd5614ba2c6 | 71b1845d4052e3fee18baa92eb9bb1a7b496f810 | refs/heads/main | 2023-07-13T01:44:59.123955 | 2021-08-18T23:06:12 | 2021-08-18T23:06:12 | 397,755,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | class Pilha1:
def __init__(self):
self.elementos = []
self.tamanho = 0
def empilha(self, valor):
self.elementos.append(valor)
self.tamanho += 1
return valor
def desempilha(self):
if self.esta_vazia():
raise Exception('Pilha Vazia, operação não po... | [
"pmalvees@gmail.com"
] | pmalvees@gmail.com |
a7127f2690e2da8ab0f8bf832c908d3211dd21a2 | b98cd0e4c06d48fc197e5f10468f359a70305676 | /tensorflow_graphics/physics/demos/finger_plot.py | 1e7f6cbe19259abe9d7910b60963d9a51845f160 | [
"Apache-2.0"
] | permissive | aespielberg/graphics | e2b515b35ae8f228d9cb68476bc10be1dbb88d63 | 28a5c1a51565a9c30c82290eb420e9854d588882 | refs/heads/main | 2023-06-26T18:29:31.343006 | 2021-02-23T19:38:29 | 2021-02-23T19:38:29 | 341,668,523 | 0 | 0 | Apache-2.0 | 2021-02-23T19:37:08 | 2021-02-23T19:37:07 | null | UTF-8 | Python | false | false | 7,320 | py | import sys
sys.path.append('..')
import random
import os
from simulation import Simulation, get_bounding_box_bc
import time
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
import tensorflow.contrib.layers as ly
from vector_math import *
import export
lr = 2
gamma = 0.0
sample_density = 40
multi_tar... | [
"aespielberg@csail.mit.edu"
] | aespielberg@csail.mit.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.