blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ca12d0553370be58a4e3f461d5eb2ef2d6995281 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncanon.py | fbf0d87bad8b52f95da4ae2656a4b80d205e6358 | [] | 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 | 1,300 | py | ii = [('CookGHP3.py', 2), ('MarrFDI.py', 2), ('GodwWSL2.py', 1), ('ChanWS.py', 1), ('RogePAV.py', 1), ('SadlMLP.py', 2), ('WilbRLW.py', 1), ('WilbRLW4.py', 1), ('ProuWCM.py', 1), ('CookGHP.py', 1), ('LeakWTI2.py', 1), ('LeakWTI3.py', 1), ('PettTHE.py', 1), ('AubePRP.py', 2), ('AdamWEP.py', 1), ('ClarGE2.py', 2), ('Carl... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
96113d307e68e6ecf1ab568b98dfef680ef7a326 | 949e75c7edfc600f16a5931828e5a678f0775778 | /shelf/admin/__init__.py | f8084a25454f4716389dd18a8a79b547b885700f | [] | no_license | alexpirine/shelf-cms | 8d76ea62f161c91e36f5cc73e630a2a93f39e1a8 | 2a0873b4a197e4ebc2bd92f01666cfec27cc9be3 | refs/heads/master | 2020-04-05T23:38:05.355330 | 2017-12-15T14:02:57 | 2017-12-15T14:02:57 | 49,945,172 | 5 | 1 | null | 2018-05-07T12:37:02 | 2016-01-19T10:28:58 | HTML | UTF-8 | Python | false | false | 44 | py | from base import Admin
__all__ = ['Admin']
| [
"as@netica.fr"
] | as@netica.fr |
eb64a20b89f12a415cbf2d405f001c051f4c7815 | 7936e1cba3dc2e2b98a62b3c7d2dc46145951ab2 | /attendance_portal/views.py | 48ee9b9b7e33f8affbc7ab291ab0458e09293ac6 | [] | no_license | agbilotia1998/attendance_portal | 127af2951a2a2a301317e2e16945302898cbcba2 | 0baa861241bf928eb3cd5dc9cb1af559fca95fb2 | refs/heads/master | 2021-05-12T15:35:44.406847 | 2018-01-09T17:58:57 | 2018-01-09T17:59:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,060 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from .models import *
from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.decorators import api_view
from .serializers import *
from django.utils import timezone
from ... | [
"hj.harshit007@gmail.com"
] | hj.harshit007@gmail.com |
4a7a01e5cb12d0a238a17ba751a56c9fc83ceea1 | 3c0f8b3ff8e15d354a92ab060a9bda187f1eb4af | /blog/migrations/0002_auto_20180906_0729.py | 372c03f1416be1bc0eaf496590c7577d18099162 | [] | no_license | TamannaArora/Blogging | cc9baedb0bfe1e6b19923fdcae749dbafd740d54 | 57467e4c5f311db45878a588e94eaac91ab160e6 | refs/heads/master | 2022-12-15T04:53:56.092112 | 2018-09-24T06:35:40 | 2018-09-24T06:35:40 | 149,570,576 | 0 | 0 | null | 2022-12-07T23:52:22 | 2018-09-20T07:38:17 | Python | UTF-8 | Python | false | false | 402 | py | # Generated by Django 2.0.8 on 2018-09-06 07:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='postpagecomments',
name='page',
),
... | [
"tamanna.arora@netsolutions.com"
] | tamanna.arora@netsolutions.com |
58460e195591fa74ab7ac0ef1d322fab526420a8 | af2306e4e78f619c8adf1c80a9edc4932fff77a8 | /session/views/session.py | efbea2599960434c1cd534838d5d07f73f98d715 | [] | no_license | andybui01/openCMS | 440284890650a2152b0a1d9a9e3156a5b7bfbe6b | 2203b412886043ca53450bdfde0613d3e0a00898 | refs/heads/master | 2023-05-01T08:29:21.956782 | 2020-02-26T23:24:25 | 2020-02-26T23:24:25 | 228,292,304 | 0 | 0 | null | 2023-04-21T20:43:52 | 2019-12-16T03:08:55 | Python | UTF-8 | Python | false | false | 4,569 | py | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.urls import reverse
from simple_barloader.generate import generate
from ..models import Session, Athlete
from ..forms import CreateAthleteForm, UpdateAthleteForm
def index(request, me... | [
"andy.bui2001@gmail.com"
] | andy.bui2001@gmail.com |
8830c2898a2a2fdf1585445d96bea0025756f561 | ed54290846b5c7f9556aacca09675550f0af4c48 | /salt/salt/modules/boto_kms.py | ec2ea5bc01595adf8767bcb4cf716358e7dc0430 | [
"Apache-2.0"
] | permissive | smallyear/linuxLearn | 87226ccd8745cd36955c7e40cafd741d47a04a6f | 342e5020bf24b5fac732c4275a512087b47e578d | refs/heads/master | 2022-03-20T06:02:25.329126 | 2019-08-01T08:39:59 | 2019-08-01T08:39:59 | 103,765,131 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,620 | py | # -*- coding: utf-8 -*-
'''
Connection module for Amazon KMS
.. versionadded:: 2015.8.0
:configuration: This module accepts explicit kms credentials but can also utilize
IAM roles assigned to the instance trough Instance Profiles. Dynamic
credentials are then automatically obtained from AWS API and no further... | [
"5931263123@163.com"
] | 5931263123@163.com |
7f45e9874c2bec2f7cbb448475e5c45d63d5972f | 315450354c6ddeda9269ffa4c96750783963d629 | /CMSSW_7_0_4/src/TotemRawData/Readers/test/.svn/text-base/raw_data_example.py.svn-base | fe26aa920afdb0d2be6cac4e77ee9b7bb3cb236e | [] | no_license | elizamelo/CMSTOTEMSim | e5928d49edb32cbfeae0aedfcf7bd3131211627e | b415e0ff0dad101be5e5de1def59c5894d7ca3e8 | refs/heads/master | 2021-05-01T01:31:38.139992 | 2017-09-12T17:07:12 | 2017-09-12T17:07:12 | 76,041,270 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 934 | import FWCore.ParameterSet.Config as cms
process = cms.Process("rpReconstruction")
# minimum of logs
process.load("Configuration.TotemCommon.LoggerMin_cfi")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(2)
)
process.load('TotemRawData.Readers.RawDataSource_cfi')
process.source.verbosity = ... | [
"eliza@cern.ch"
] | eliza@cern.ch | |
ac8acff2dcb4b82c2b1917c7a973d1992c0d57b3 | a0dba1abf1970fde535234a9bed30cd34e9550e1 | /good_first_pgm.py | 004f4a87e33383a000e7db501d104dc92125096f | [] | no_license | deepak1211/python_101 | e7a22beb1c9277169c13622b82c5075628056a31 | 19865b07ddc1c8b013b8fe1169a9374d28b1a0a3 | refs/heads/master | 2020-03-25T08:17:41.261075 | 2018-08-05T12:42:05 | 2018-08-05T12:42:05 | 143,605,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | print("HEllo")
print("Hi Python")
print("hello world")
| [
"deepak12.pss@gmail.com"
] | deepak12.pss@gmail.com |
42742cd191a5e2dc9ca2d07d896126833e05562d | acf95ae9a81f6ca7146aa803019602262122d4aa | /main.py | 4bcaa6844d8738292fb12dcb518decefe9051800 | [] | no_license | UtkuDenizSonmez/snake-game | bd7556e4632b8058806b1e466dc0f288c82066bd | a15799e548af146beb4385e7ed3f849f56ae3fb4 | refs/heads/master | 2023-05-24T04:10:28.169124 | 2021-06-23T15:26:27 | 2021-06-23T15:26:27 | 379,648,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | from turtle import Screen
from snake import Snake
from food import Food
from scoreboard import ScoreBoard
import time
GAME_OVER_WALL = 290
screen = Screen()
screen.setup(width=600, height=600)
screen.bgcolor("black")
screen.title("My Snake Game")
screen.tracer(0) # Screen de olan her şey sırayla olmasını sağlıyor. 0... | [
"73853487+UtkuDenizSonmez@users.noreply.github.com"
] | 73853487+UtkuDenizSonmez@users.noreply.github.com |
7b7236e04ce84478b326d1bf5639d8e284d3c418 | 47175228ce25812549eb5203fc8b86b76fec6eb9 | /API_scripts/dfp/dfp_python3/v201411/custom_field_service/create_custom_fields.py | f810346ad2e1082080513f0a6bbf67f474035af9 | [] | no_license | noelleli/documentation | c1efe9c2bdb169baa771e9c23d8f4e2683c2fe20 | a375698b4cf0776d52d3a9d3c17d20143bd252e1 | refs/heads/master | 2021-01-10T05:41:30.648343 | 2016-02-13T05:46:31 | 2016-02-13T05:46:31 | 51,477,460 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | #!/usr/bin/python
#
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"noelle@makermedia.com"
] | noelle@makermedia.com |
46a33a67736e7b3e187d1302396f135fa21a695c | 9d12d8086552762413999907ac7ce3242b1e05bf | /task2/task1_2.py | 410f708ce519b7690e43ad80da43a6dbc94fb97a | [] | no_license | clthegoat/IML_project | 4b5bf9506f0a21e29b88ca08061bc8c52a825957 | 7b5b002ce0266343fcb44729b521a75daf9c6d38 | refs/heads/master | 2022-11-04T23:13:34.372989 | 2020-06-13T14:57:37 | 2020-06-13T14:57:37 | 247,167,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,096 | py | import pandas as pd
import numpy as np
from sklearn.metrics import r2_score
from sklearn.model_selection import KFold, GridSearchCV
from sklearn.feature_selection import SelectFromModel
from sklearn.preprocessing import StandardScaler
from sklearn.metrics.pairwise import cosine_similarity
import tqdm
import matplotlib.... | [
"lechen.chn@gmail.com"
] | lechen.chn@gmail.com |
122c75e27c17df4bbf14e2c70b81f28d3bea7b90 | 088d4cdb572e1ef31dea6fffd22db943ceab31bb | /test/sample.py | cc6dee78451a1bb979e6b1b9aeebbc2b87ec6cf9 | [] | no_license | umesh-gattem-rzt/Python_utils | 2904cbcb1e1d23542991b7d94e79b301fb7d6bba | 3f877f9a262be01e507fab78c98d209a934899b5 | refs/heads/master | 2021-01-20T09:20:03.527339 | 2017-05-04T09:24:37 | 2017-05-04T09:24:37 | 90,237,672 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | import os
import tensorflow as tf
logs_path = 'logs'
train_data = [1, 2, 3, 4, 5]
label = [6, 7, 8, 9, 10]
epoch_acc = tf.Variable(1)
tf.summary.scalar("acc", epoch_acc)
summary_op = tf.summary.merge_all()
init = tf.global_variables_initializer()
with tf.Session() as sess:
sess.run(init)
# summary_write... | [
"umesh.kumar@razorthink.net"
] | umesh.kumar@razorthink.net |
7c1292d91e51bb80995f6b69217480ef9b74e4c4 | cd9d1c2de48193218efc5bf4945cc412ae9578a7 | /casa_scripts/split_dataset.py | 4222e9e6f18c84e585a14cac277c1d22691d0dc9 | [] | no_license | RTIP/artip | c4bc7a0c60d5cfb840e5bb56f7d688323f893dec | c4f3a98b5952261371a446a33702f6db1ddca8d2 | refs/heads/master | 2021-07-22T17:39:01.386175 | 2018-11-23T05:47:06 | 2018-11-23T05:47:06 | 112,178,563 | 18 | 5 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | script_parameters_start_index = sys.argv.index('-c') + 2
parameters = sys.argv[script_parameters_start_index:]
ms_dataset = parameters[0]
output_dataset = parameters[1]
field = parameters[2]
datacolumn = parameters[3]
width = [int(v) for v in parameters[4].split(',')]
spw = "" if parameters[5] == 'all' else parameters... | [
"ravis4376@gmail.com"
] | ravis4376@gmail.com |
ee93cddd16945c87b62476643878d8e30493b53a | 3db4afb573e6e82e9308c43ae13e9426c5c77c80 | /glue/conftest.py | 7ed2f145177687ccad2672345c69031f834095a5 | [
"BSD-3-Clause"
] | permissive | mariobuikhuizen/glue | af8a53498fd4e2365bf98e5089677efdcdb67127 | 6b968b352bc5ad68b95ad5e3bb25550782a69ee8 | refs/heads/master | 2023-01-08T07:33:03.006145 | 2020-09-20T09:25:06 | 2020-09-20T09:25:06 | 298,285,919 | 0 | 0 | NOASSERTION | 2020-09-24T13:22:37 | 2020-09-24T13:22:36 | null | UTF-8 | Python | false | false | 3,493 | py | import os
import sys
import warnings
import pytest
try:
from qtpy import PYSIDE2
except Exception:
PYSIDE2 = False
from glue.config import CFG_DIR as CFG_DIR_ORIG
try:
import objgraph
except ImportError:
OBJGRAPH_INSTALLED = False
else:
OBJGRAPH_INSTALLED = True
STDERR_ORIGINAL = sys.stderr
O... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
5ed70f0e700b94f33c1adb2652989b0386fa2b10 | 4008d7f798eb10e08381225269c2683ece50dd10 | /supervised_learning/0x04-error_analysis/1-sensitivity.py | dbaf511b2d2a5ae1c61a17ddaf16175d57add51d | [] | no_license | tyedge/holbertonschool-machine_learning | 51392cb0c8d153db4ed5aa7bfa1fc4d91ce3d96a | ac4f79965e65b7716029cd31a9b026c904bdef09 | refs/heads/main | 2021-12-02T07:46:25.200529 | 2021-11-08T05:29:35 | 2021-11-08T05:29:35 | 236,518,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | #!/usr/bin/env python3
"""This module contains a function that calculates the sensitivity for each
class in a confusion matrix"""
import numpy as np
def sensitivity(confusion):
"""This function calculates the sensitivity for each class in a confusion
matrix"""
tp = np.array([confusion[i][i] for i in range(le... | [
"tyedge.inc@gmail.com"
] | tyedge.inc@gmail.com |
0a89f00e61b99fc24c2200e195e32fef8e804757 | 1a2d843df90bbde9d958c9539b418a6c765cfef5 | /Easy/BeautifulStrings.py | 72bc1197757fc1141e18ebfc70b76b24be877f2d | [] | no_license | tramxme/CodeEval | 4a0255bc795558f512d1aa918ecd53bd555fd506 | 1914daa981d0f4bac0f6ec1227f09cf530fb0431 | refs/heads/master | 2021-01-20T15:12:41.770646 | 2017-06-08T19:13:41 | 2017-06-08T19:13:41 | 90,733,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import sys, re
alphabet = "abcdefghijklmnopqrstuvwxyz"
def getVal(string):
string = re.sub(r'\n', '', string)
string = string.lower()
total = 0
string_dict = {}
for char in string:
if char in alphabet:
if char not in string_dict.keys():
string_dict.setdefault(cha... | [
"tramlaisf@gmail.com"
] | tramlaisf@gmail.com |
f56344ec03298cfd6368be3e8e5f8f4c8d6ba39b | 09f89953329fdcf3c5faec67b218cf807dcf018b | /node_modules/webpack-dev-server/node_modules/fsevents/build/config.gypi | 6e187ad3224fd2f75fa83990bc929db8e6642560 | [
"MIT"
] | permissive | ogjaylowe/orion_webtools_parent_client | 4d6feae4acdbecc6d868ad986ade43298c242c42 | ce14872c7c3da3ec3b530ca175486c292d624ba7 | refs/heads/master | 2022-11-29T04:24:29.524178 | 2020-08-13T19:21:42 | 2020-08-13T19:21:42 | 286,554,089 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,681 | 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... | [
"jlowe@orionacademy.org"
] | jlowe@orionacademy.org |
3765211e0c207bb119cdda1a1d3de087a63cce44 | 1b71913237e59ce02a4675fb2e15828a28295a75 | /crowd/middleware.py | 137338f801b004b8de95437361e649efa63a41e0 | [] | no_license | taxilian/django-crowd-backend | c4d657b8137427a624fd7da36824736fb00c43dd | b339a6e00218b3168a1ffaf30f7a5c5e1acaf454 | refs/heads/master | 2021-01-10T21:17:42.299845 | 2011-05-31T16:59:18 | 2011-05-31T16:59:18 | 1,514,677 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | from crowd.backend import CrowdBackend
from datetime import datetime, timedelta
from django.contrib.auth import login as auth_login
from django.contrib.auth.models import AnonymousUser
__author__ = 'sannies'
class CrowdSSOAuthenticationMiddleware(object):
crowdBackend = CrowdBackend()
crowdUserLoggedIn = Fa... | [
"Sebastian.Annies@googlemail.com"
] | Sebastian.Annies@googlemail.com |
34629b6fb15080ccaf408cf9a8dedc6b2f74309e | 208a9a35191c6e4d9c63f3915a518f191f3108ba | /train_analysis.py | a7f627a9f1fc5c8658158d7050ed3e60f21edfe1 | [] | no_license | Soma2-HighFashion/image_analysis | 619b9ea6574e518f0e77f93b80adf5d2c50656eb | b805f8ede64e3d2ae96d4d4103f25babc5f4f6fa | refs/heads/master | 2021-01-17T12:48:37.971868 | 2016-06-16T02:28:01 | 2016-06-16T02:28:01 | 58,246,352 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,067 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import sys
sys.path.append('./data')
import data
import numpy as np
import tflearn as tl
from tflearn.layers.core import input_data, dropout, fully_connected
from tflearn.layers.conv import conv_2d, max_pool_2d
from tflearn.laye... | [
"ehdwns2045@gmail.com"
] | ehdwns2045@gmail.com |
adbcbf6a12df25a98d01ded607da3023800ac5e0 | d0864c366018e03a30be0ddede37d0752400041c | /resnets.py | bd8c05f1356d83810bdddd0c36312bdc82faaf5c | [] | no_license | armen-h/wildlife_classification | 89391389f69649b0452e30a8678b21643454e5f1 | f02e947273912061ee8683f5973a8d858ebe5096 | refs/heads/master | 2022-09-01T07:43:12.702345 | 2020-05-28T15:53:10 | 2020-05-28T15:53:10 | 267,630,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,174 | py | # coding=utf-8
"""
Resnets networks implementation in pytorch
adapted from https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py
"""
# 3rd party imports
import torch
import torch.nn as nn
import torch.utils.model_zoo as model_zoo
model_urls = {
'resnet18': 'https://download.... | [
"noreply@github.com"
] | armen-h.noreply@github.com |
b815002f092f7fa8b69f3b801a668fdef61e40b4 | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /networks848.py | f7be8eb4307013b16d110cd51277a2c9fe945916 | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,798 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
__version__ = 205
# Number of wires in the CDC
n_wires = 3606
# Number of continuous features (E, t, dca)
n_features = 3
geom_dim = 3
def wire_hook(grad):
print('wg %.2e %.2e' % (grad.abs().mean().item(), grad.std().item()))
... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
9772ce5848adc7c9da48c2e2e30b61912f27f1c6 | 3060cb5b82db7fbad565701b56c5588aa1a136f9 | /py/dump.py | f0372e86e95f9083626b9033d34a2a0d5abdb99d | [] | no_license | sszachow/eprom_reader | b359868b5779699df15d070d5682fdcf184b0eb8 | f28a2c7f4b6bd224dd6fbb09542070d9a32dda38 | refs/heads/master | 2021-04-09T17:21:13.698830 | 2014-04-17T19:01:36 | 2014-04-17T19:01:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | import serial
import string
from time import sleep, localtime, strftime
from sys import exit
ROOT_DIR = ".."
DUMPS_DIR = "dumps"
MODULE = 4
PROM = 'circle'
def get_data(addr, ser):
higher = chr((addr & 0xFF00) >> 8)
lower = chr(addr & 0x00FF)
ser.write(higher)
ser.write(lower)
data = ser.read()
... | [
"sszachow@gmail.com"
] | sszachow@gmail.com |
b65a6229f1b9f7085e11017b5a161be1f5b069c2 | b9253b4b6551863f2a4d2413fb1aa8d1afada4a0 | /Programming/Python/BASSU.py | 5e68b642badd2406667a4a16fe881537d9d5990e | [] | no_license | BhumikaReddy/3GRM | ac2192f717ba824cf8a0a873ed813d892e7e374b | 38a3716f9a61ae49d4d8e846a411d36b4344be98 | refs/heads/master | 2021-06-07T20:45:08.092646 | 2021-01-27T17:10:02 | 2021-01-27T17:10:02 | 151,905,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | print("jaswanth mango business")
x=int(input("number of mangoes:"))
y=int(input("cost per each mango:"))
print(x)
print(y)
#calucation logic for total mango#
#total cost = number of mangoes * cost of each mango
total_bill=(x*y)
print("total cost of mangoes before discount:" ,total_bill)
if x<500:
discount_amoun... | [
"bhumikasamaseni@gmail.com"
] | bhumikasamaseni@gmail.com |
89865d17fff9a6d97352b98b73b47870ea963c12 | 9cbd534ea0eede825b18057fbc37b7c6251ac4d0 | /promos/api.py | efed1319fd7d9ec4a412805eac696ef19962239e | [
"BSD-2-Clause"
] | permissive | kianhean/ShiokAPI | f8a7fa71f68e934c24c02a55a5497ba8edb201bd | 892c32d1ca1cac7ecf575567016bdd47af7e9d64 | refs/heads/master | 2023-01-06T07:27:32.442940 | 2019-04-22T15:34:31 | 2019-04-22T15:34:31 | 102,997,371 | 0 | 0 | BSD-2-Clause | 2022-12-26T20:43:15 | 2017-09-10T02:16:33 | Python | UTF-8 | Python | false | false | 2,816 | py | """api.py: Getting and displaying promo codes"""
from urllib.request import urlopen
import json
from bs4 import BeautifulSoup
def bann(code):
""" If banned return True else False """
ban_list = ['First Ride', 'New Customers', 'From SMU', 'From NTU',
'From NUS', 'From SUTD', 'From SIM', 'First... | [
"kianhean@gmail.com"
] | kianhean@gmail.com |
4bf8c937d1cb5fca14b04296a6c9c0a5afd934fd | 8da1d25e1ecaeade49723207c9185c920da21040 | /Log.py | 19636b147b644a155d4328a05d136d1d9b0385bd | [] | no_license | batekmc/honeypot | fbaa7f78263e750a72f9d81057f1c5bfafbfcdd4 | ae07c622215dd5a9ee1eec345f45679db15cce67 | refs/heads/master | 2020-04-05T23:20:04.028352 | 2015-07-10T10:11:25 | 2015-07-10T10:11:25 | 32,019,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | import threading
import Queue
from datetime import datetime
class Log(threading.Thread):
def __init__(self, fileName=None):
threading.Thread.__init__(self)
self.daemon = True
self.fileName=""
if fileName is None:
self.fileName="honeypotLog"
... | [
"t.batiha@gmail.com"
] | t.batiha@gmail.com |
fd8c461c6a49189e245594956e73066da9675fbc | 2e396444e67fc649dad1b8eef6f1bf8cafa60c07 | /auto-stop-all-running/stop_ecs.py | 61061af430a08bf2c4bd5eb399fe1169c44bb406 | [] | no_license | soren-wandrup-bendixen/aws-lambda-python | f32b5f30b8474d859129c027972d087ce3eafb97 | d7eb4d7563404fcb4910064f0977a93be402b3b9 | refs/heads/master | 2021-07-10T02:23:28.476145 | 2020-09-10T08:40:13 | 2020-09-10T08:40:13 | 195,198,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # File_name: stop_ecs.py
# Purpose: Stop ecs that are running
# Problem:
# Author: Søren Wandrup-Bendixen
# Email: soren.wandrup-Bendixen@cybercom.com
# Created: 2019-07-01
# Called from lambda_function.py
import boto3
# instance_type = 'ecs'
def stop_instances(instance_type,region_name_,RunningInstances) :
clien... | [
"sobe70@linux-e2v9.swb.dk"
] | sobe70@linux-e2v9.swb.dk |
174dd9ad5009af5573e49c63538a4a3f3b95d55e | d50ec43131be668368200315d1d9d307071d5385 | /keanu-python/keanu/stubs/pandas/io/clipboard/exceptions.pyi | bdbaf0be98ea94794a4318f30816b92e94162d5b | [
"MIT"
] | permissive | improbable-research/keanu | 605e4dc6a2f90f095c2c1ec91fa1222ae8d04530 | 99de10a15e0d4b33d323093a5cc2dd10b31c9954 | refs/heads/develop | 2023-04-14T01:17:29.130975 | 2021-09-21T10:24:48 | 2021-09-21T10:24:48 | 128,393,918 | 155 | 47 | MIT | 2023-04-12T00:18:07 | 2018-04-06T12:48:36 | Java | UTF-8 | Python | false | false | 307 | pyi | # Stubs for pandas.io.clipboard.exceptions (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class PyperclipException(RuntimeError): ...
class PyperclipWindowsException(PyperclipException):
def __init__(self, message: Any) -> None: ...
| [
"michaellewin@improbable.io"
] | michaellewin@improbable.io |
f3d490be214a07767a8a5d010e787cde28cac24a | 8cdb726f140558f7bec27b488a1156ce0507925d | /pymodoro/util/Clock.py | f21fe33f51c6a8672663ec6a027851914dbeff25 | [] | no_license | davidbeckingsale/pymodoro | 43b1be88951fcf91fa7634c3d846b7dfa40b4a93 | 53ad40bdbcad09a19577d556090f0e2ee6e6fa69 | refs/heads/master | 2021-01-01T18:42:58.006619 | 2011-08-02T11:19:36 | 2011-08-02T11:19:36 | 2,141,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from notify.all import *
class Clock(object):
def __init__(self, pymodoro):
"""Create a new clock"""
self.time = 0
self.expire = Signal()
self.expire.connect(pymodoro.clock_expired)
self.pymodoro = pymodoro
def reset(self, start_time):
"""Set the clock to start_... | [
"davidbeckingsale@gmail.com"
] | davidbeckingsale@gmail.com |
e50128b5baa2595e7cfaa9908e37e5171eaa04bd | 7e7ce015d7d4509cb68cf979d4aee3c9c37e7f50 | /www/www/__init__.py | c2aa36657dcc7c48d0e6fde125d78fc93a52ea96 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | brocade-apj/anzsdnhackathon2016 | 4315ab655ea947f2f50fbbe11c03e930c46b29ab | 95e9a9dc3ce0199e1ad622a264a5b901ba0e9466 | refs/heads/master | 2021-01-17T10:23:09.385651 | 2016-05-16T04:03:50 | 2016-05-16T04:03:50 | 55,376,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | #! ../env/bin/python
# -*- coding: utf-8 -*-
__author__ = 'Darin Sikanic'
__email__ = 'dsikanic@brocade.com'
__version__ = '1.0'
from flask import Flask
from webassets.loaders import PythonLoader as PythonAssetsLoader
from www.controllers.main import main
from www import assets
from www.extensions import (
cach... | [
"darin.sikanic@gmail.com"
] | darin.sikanic@gmail.com |
29d4c776460c4ce74d98f5fe77a392f5b4003cc8 | a92c125843395b4cef168f99a0694394dfa0257e | /projekat.py | b7455984b88ef0fffa2b9a7d406a3311f5007cd5 | [] | no_license | StefanPandzic/SoftKompjutingProjekat | e838ea5c1a8fde138851594aee6de1128d81b510 | d3d427a6e39505e5088c2bdade56ed3d59baeacd | refs/heads/master | 2021-09-05T06:16:50.713079 | 2018-01-24T17:57:51 | 2018-01-24T17:57:51 | 115,950,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | # Stefan Pandzic ra48-2013
| [
"fansterambo@gmail.com"
] | fansterambo@gmail.com |
c181c6bc1a057a641458646a7b74415f98dc38d7 | b20762dbbb2adb2c8fc8a919cb66522f76014b5a | /startup.py | 7bdbb83b9b62dbb24306cebce61dea150cfd5632 | [] | no_license | sychang/owl_watch | 1758f713bd3ca3995c38e98d68a10c69270c4e13 | b1a727257e4f65e43333ce63f05a7d314dad7baf | refs/heads/master | 2016-09-14T01:18:49.751548 | 2016-05-03T20:06:36 | 2016-05-03T20:06:36 | 57,067,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py |
LD_LIBRARY_PATH=/usr/local/lib mjpg_streamer -i "input_file.so -f /tmp/stream -n pic.jpg" -o "output_http.so -w /usr/local/www"
cd Desktop
sudo python total.py | [
"sychang@berkeley.edu"
] | sychang@berkeley.edu |
6d98ccacbdf0ae25f09883599e16712c57df834b | f350464b0ec1d2747a93ea533b04746c8ff68c18 | /setup.py | 0b1315dc2d83cf67c02b1f8d493b7614673acf85 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | erdogant/hgboost | ed4e0e31aff87fba2c9591b59b70ffc7a91c27b7 | 8492331b15b883918d2159a61563932ae82bf313 | refs/heads/master | 2023-08-17T14:08:01.729366 | 2023-08-15T17:01:03 | 2023-08-15T17:01:03 | 257,025,146 | 48 | 15 | NOASSERTION | 2020-09-11T08:09:36 | 2020-04-19T14:48:23 | Python | UTF-8 | Python | false | false | 1,549 | py | import setuptools
import re
# versioning ------------
VERSIONFILE="hgboost/__init__.py"
getversion = re.search( r"^__version__ = ['\"]([^'\"]*)['\"]", open(VERSIONFILE, "rt").read(), re.M)
if getversion:
new_version = getversion.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIO... | [
"erdogant@gmail.com"
] | erdogant@gmail.com |
00b984934266fcf64124f11d5370a8748a52e00c | ae2761c32988512324e0bfc8c2c58ed7a0dba54f | /source/libs/normal_dis_random.py | 73acd24e1c4221df92c26793cc836542ff450146 | [] | no_license | sutekicut/deep_learning | 63c42790be228045a31df6497ee90de5acb20808 | 161f736f312bbecf3320ea511e8793b0551547ac | refs/heads/master | 2021-01-12T14:34:25.663054 | 2016-11-10T09:27:40 | 2016-11-10T09:27:40 | 72,021,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | import random
from math import cos, log, pi, sin, sqrt
#正規分布に従った乱数を生成する関数
class NormalDistRandom:
#期待値exp, 分散varの正規分布に従った乱数を生成
#乱数生成器を作成
def __init__(self, exp=1.0, var=1.0):
self.exp = exp
self.var = var
self.values = []
def get_random(self):
if len(self.values) == 0:
# ボックス・ミュラー法で乱数を生成... | [
"codeip@codeip.local"
] | codeip@codeip.local |
c5655aa30ff6f9abc48ceb66a27468db4ad86152 | 2ac69f98e28bef196ca7ec27517647c845be6ddf | /convratetotal.py | 83e46bd649276cb379e177a003a9eee20dd3245a | [] | no_license | rls347/ensembleanalysis | 4c4dad543cbd47e4a69a1c09a8c39c4206ac67c5 | 86c22cf98091647c0d39ca27069fa0e838a4ce5e | refs/heads/master | 2020-04-22T07:43:26.006307 | 2019-02-11T23:47:23 | 2019-02-11T23:47:23 | 170,223,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | import numpy as np
import h5py as hdf
import glob
import os
import copy
import matplotlib as mpl
mpl.use("Agg")
import matplotlib.pyplot as plt
import matplotlib.animation as animation
def precipstats(maindir, modeldirs, dirout):
totalpcprates = {}
totalpcp = {}
convpcprates = {}
allrates = {}
allconv = {}
for ... | [
"rls347@gmail.com"
] | rls347@gmail.com |
b15d79e4f64af92bac0c62ac89724291a7769724 | e20a27f874d9c4e1436eda9dae3c0953f3ce49d3 | /chess.py | 0ec3f3ca06baf9df304d56f826d5ca0549905d5c | [] | no_license | samKHa92/ConsoleChess | 8752ab14bb2bd7e1152a99cfbe6d7f1358d3c36d | d73b9b6df4cc6512204f1d7bf90464ae55f03834 | refs/heads/main | 2023-08-13T19:03:31.488854 | 2021-10-15T11:30:33 | 2021-10-15T11:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,666 | py | from board import Board
from pieces import *
class Chess:
def __init__(self):
self.board = Board()
self.currentPlayer = "White"
def swapPlayers(self):
self.currentPlayer = "Black" if self.currentPlayer == "White" else "White"
def isStringValidMove(self, moveStr):
if le... | [
"samkha@gfmstudio.com"
] | samkha@gfmstudio.com |
50f2936f5fc592859a4013566000aa298dca23b2 | d0718809d4b8026a9653bf1d66bb180e9bb57e49 | /manage.py | 3d426a3b9af015029699b476696ca8b51e710fb0 | [] | no_license | ShankarKushwah/Mutual-Fund-Alert | cf429e64308d9dc5aa511d8adc5d53083be5ef7f | fbb3e92d72b16845b8832d2d5c900b19297982e9 | refs/heads/master | 2020-03-21T18:48:03.244106 | 2018-06-27T17:40:28 | 2018-06-27T17:40:28 | 138,913,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Mutualfundalert.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure t... | [
"shankarkushwah94@gmail.com"
] | shankarkushwah94@gmail.com |
5f9d58a3d04aba60ea973e110bf51644ed1f65fc | 4aeec0497ca0a3cb749f17b877c9b84953e545c5 | /AmrAndMusic.py | 808cedf0bd2be378fe31649c37182d3786e9afb0 | [] | no_license | ece-mohammad/CodeForces | 8b9ee0d205b3f29278d1dcc85f5f2593c9d354d8 | 3481f6779248640ab502b767d3855515eb21bea0 | refs/heads/master | 2020-07-29T03:08:08.460371 | 2019-09-19T20:42:53 | 2019-09-19T20:42:53 | 209,644,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py |
# http://codeforces.com/group/P8UZg7UOT5/contest/225111/problem/E
def AmrAndMusic():
n, k = map(int, input().strip().split())
learned = []
inst = [ *map(int, input().strip().split()) ]
if min(inst) > k:
return 0
else:
inst = [ (... | [
"noreply@github.com"
] | ece-mohammad.noreply@github.com |
6200aaaed0d9b12accd7a6d74f5418db8b539e15 | 14713690191b806ff0c53f7362a7f22c98d43665 | /novojogo.py | 86411da59e71e44f601df752285d7a7d37886180 | [] | no_license | gasparzds/trabalhodaforca | 98c5ea67a2364f84442aad02d93bdcad3d13ba4f | 674055784238dae86c6b03c3d5c524e132f47438 | refs/heads/master | 2022-10-08T20:18:00.127951 | 2020-06-10T23:38:50 | 2020-06-10T23:38:50 | 271,402,669 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,570 | py | from modulos.textos import textoinicial
from modulos.entrada_de_informacao import input_usuario
from modulos.tabuleiro import tabuleiro
Errou_letra = True
Ganhou_jogo = False
n_de_errou = 0
base = []
dica = None
palavra_escolhida = None
escolhendo_papeis = 0
desafiante = None
desafiado = None
#BLOCO INICIAL, PEDIDO ... | [
"paulopmgaspar@outlook.com"
] | paulopmgaspar@outlook.com |
2f10c0fc4429d0811c309e418f22f5c1c3ef9850 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/check_update_20210125140228.py | 03eaacfa439dd94d42ef81213aea4ae61bc8634b | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | import datetime
def check_update():
prjtypes = ['ipo','refinance','reproperty']
for prjtype in prjtypes:
proj_list_new = index_getter(prjtype)
proj_list_old = load_pickle(os.getcwd()+'/saved_config/sz_index'+'_'+'prjtype'+'.pkl')
updated_idx = [index for (index, d) in enumerate(proj_list_new) if d... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
d5baa1faff9f4d00231718d2daf693d838aae255 | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/tower/lib/python2.7/site-packages/openstackclient/identity/v3/group.py | df684c129b58ffd52b260bbe46cb320276c2f08a | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 12,118 | py | # Copyright 2012-2013 OpenStack Foundation
#
# 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 la... | [
"admin@example.com"
] | admin@example.com |
c1793e5dd2ad6011958f09d44189053b3dde4fd6 | fa8decf5ffbadfb7f62ca59ddb497cfcbe2dac86 | /Data_To_10_22_2020/Hull_White_plot_General_q.py | e0d44fe017992e31afaede1313a5ee37ecbe913e | [] | no_license | ghamrick34/Math-Senior-Thesis | 22a25a32da43a05d36e3ad1a274e0eb2bf8bbfe8 | 6e3d9188ecb2f5af193faa1aeb632213e90c2822 | refs/heads/master | 2023-01-28T01:30:29.907092 | 2020-12-08T18:26:03 | 2020-12-08T18:26:03 | 288,797,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | import matplotlib.pyplot as plt
import numpy as np
import u_and_d_General as u_and_d
import fetch
from Hull_White_class import Node
from datetime import datetime, timedelta
import matplotlib.patches as mpatches
import nodes as n
def plot(q, entry):
u = u_and_d.u(q, entry)
d = u_and_d.d(q, entry)
tree... | [
"graysonhamrick1@gmail.com"
] | graysonhamrick1@gmail.com |
5c154d2a01bd376210d04584348139747d614a2b | ba477b178d58d3bdc77e0cf3bc27c3d56f7577fe | /init_demo/m2.py | e5ca54363b88940a8f677aec0679190a8c1e262d | [] | no_license | lpxxn/lppythondemo | 4002124eaacb5cbc207ffa93a23ab5928bf37dec | c9916d1229ffc12687418b06fab848ccec44b362 | refs/heads/master | 2023-07-20T15:16:34.763158 | 2023-07-11T14:37:52 | 2023-07-11T14:37:52 | 140,224,667 | 0 | 0 | null | 2023-05-01T20:34:27 | 2018-07-09T03:05:39 | Python | UTF-8 | Python | false | false | 213 | py | # 报错 这样的语句会导入哪些文件取决于操作系统的文件系统. 所以我们在__init__.py 中加入 __all__变量.
#from package_y import *
from package_y.sub_b import *
module_m2.func_b_q()
| [
"mi_duo@live.com"
] | mi_duo@live.com |
ccfb150c5f8960a99796a0c0bb02a4af4da9162d | 246cbf2bbc0cc8fb6787bde466f1f900e21da249 | /MyAPI/models.py | 9041eba63c8f3c102ca92fe427cc647ebd6d6cd5 | [] | no_license | zarifikram/Disease-Prediction-API | 63382c82ce60bf6c8684c3cc2319e88b4af80474 | 6a9055eb2ce92f4a7fe3ded2914af13d590c6530 | refs/heads/main | 2023-09-03T08:19:18.576215 | 2021-10-31T20:39:19 | 2021-10-31T20:39:19 | 423,158,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from django.db import models
class approvals(models.Model):
firstname = models.CharField(max_length=15)
lastname = models.CharField(max_length=15)
dependants = models.IntegerField()
applicantIncome = models.IntegerField()
def __str__(self):
return self.firstname
| [
"65703522+zarifikram@users.noreply.github.com"
] | 65703522+zarifikram@users.noreply.github.com |
2a10e7bef34bdb10181c6a62a9e338aec04431c8 | 75c2dd4342f2e343cf741383b805b1d3ea01ea7c | /src/py/key.py | 5200dca40955db368f82bb769f04678762720182 | [
"Apache-2.0"
] | permissive | progressive-identity/proposal-1 | 59581196a74ef3b8bfa539008f891e7e003eff1d | f65cc21c707bcf0629b8b96de7d92074477b1231 | refs/heads/develop | 2023-03-17T10:48:21.251042 | 2019-06-21T09:01:26 | 2019-06-21T09:01:26 | 186,801,390 | 0 | 0 | Apache-2.0 | 2023-03-08T13:51:52 | 2019-05-15T10:10:51 | Python | UTF-8 | Python | false | false | 4,814 | py | import re
import hashlib
from utils import tob64, fromb64
import config
class KeyException(Exception):
pass
class UnknownAlgorithmException(KeyException):
pass
class MalformedKeyException(KeyException):
pass
class key:
STR_RE = re.compile(r"(?P<kb64>[a-zA-Z0-9_-]+)\.(?P<algo>[a-z0-9]+)")
@... | [
"g@wenarab.com"
] | g@wenarab.com |
df6f23ab2b24753f70d9fb66d2653c02d17fd426 | f4355f9847827b971646e91656e8036d6c07a1a3 | /example032.py | 9638ef3f5e1484205b81212a3f66ac56576151a5 | [] | no_license | kernellmd/100-Python-examples | 1242fc00fe4a1446cf51c6b3d7ef10815133e6c1 | a8a4bab784ccaf8a0ee3b2a189e7883bd98a4c80 | refs/heads/master | 2020-03-11T11:49:09.976461 | 2018-05-25T02:24:33 | 2018-05-25T02:24:33 | 129,979,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | #!/usr/bin/env python3.6
#-*- coding: utf-8 -*-
"""
题目描述:按相反的顺序输出列表的值。
程序分析:利用序列的操作
"""
#原始程序
#利用随机数生成序列
"""
从random模块中导入种子初始化函数seed
和随机数生成函数randrange
"""
from random import seed, randrange
def gener_rand_seq(n):
L = []
seed()
#构造1~1000范围内的随机数序列
for i in range(n):
L.append(randrange(1, 1000))... | [
"KernelLmd@163.com"
] | KernelLmd@163.com |
b7a3c7ad867d6b0d17cbc01339de7cfc5985ed07 | ad007420005b441b4869cd93c04ceab4a6e655da | /pynitrokey/nethsm/client/exceptions.py | cfe93aafc004fca09ee0eafc606dcfbecdba2472 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | fayrlight/pynitrokey | ed17a96d754747815fe4c1c476111acb284a6287 | c6a93da7a811d34213746b60fab22affb3616a88 | refs/heads/master | 2023-05-04T15:24:45.389359 | 2021-05-21T13:56:59 | 2021-05-21T13:56:59 | 369,707,084 | 0 | 0 | NOASSERTION | 2021-05-22T03:36:50 | 2021-05-22T03:36:50 | null | UTF-8 | Python | false | false | 5,267 | py | """
NetHSM
All endpoints expect exactly the specified JSON. Additional properties will cause a Bad Request Error (400). All HTTP errors contain a JSON structure with an explanation of type string. All <a href=\"https://tools.ietf.org/html/rfc4648#section-4\">base64</a> encoded values are Big Endian. # noqa: E... | [
"robin@nitrokey.com"
] | robin@nitrokey.com |
3b2ea560ffd065ec8ffed538873d800783745494 | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst/initial_33419.py | 3e1f56e16e4a23c0c9bedf8bed739f07b94d46f8 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,950 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
4db653db2794ce7471f2ca800dad3e663c4941b4 | 66e63c540b9f2c0a1092b08b5db204ced3d66154 | /other/analyzeCheckins.py | 3c94b6f65689760f3f74465c385d101cf744c84e | [] | no_license | thawsitt/foursquare_link_prediction | 1c3944009d22aebdf5bf4e9b879129742676fa96 | 53ddfcabfdf1419398c78726bd48a7e5d1fa40ee | refs/heads/master | 2020-04-04T08:14:09.301456 | 2018-12-10T08:24:45 | 2018-12-10T08:24:45 | 155,776,267 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | """
analyzeCheckins.py
------------------
Author: Thawsitt Naing
Date created: 11/06/2018
Analyze Foursquare Checkins dataset.
Note: Use Python 2.7
"""
# Number of unique users: 485381
# Number of unique venues: 83999
# Max user id: 2153502
# Min venue id: 2153503
from collections import defaultdict
import matplotli... | [
"thawsitt@cs.stanford.edu"
] | thawsitt@cs.stanford.edu |
226d84d6251f8a49fe24832a0f49353fd4bcd3ff | 7e76e3ae9a33d778a69a607a1b770ebeb7197aaf | /conversations/apps.py | 24db44f93a30a8908561af178597b6d31e5f3a35 | [] | no_license | hminn/airbnb-clone | 1e038e140f03e65d0e20cf310e7688df8997163b | ae3369fd35d02435ee51f4c1bc88a358b3f5bc20 | refs/heads/master | 2022-12-21T01:03:37.367675 | 2020-04-30T16:45:47 | 2020-04-30T16:45:47 | 249,930,847 | 1 | 0 | null | 2022-12-11T02:46:29 | 2020-03-25T09:00:10 | Python | UTF-8 | Python | false | false | 106 | py | from django.apps import AppConfig
class ConversationsConfig(AppConfig):
name = 'conversations'
| [
"hmkim0008@gmail.com"
] | hmkim0008@gmail.com |
034649dec321456b8bba8ca8a6f6f3a8c8cb272d | 4af2dbd98088c968f9f2e1a348c4252e8b90a8ca | /fossil_gov/application_details.py | bc346792452a900e3242fe1167b63bda93fd02db | [
"MIT"
] | permissive | OddBloke/us_gas_trade_applications | 800015b0f3f799d67b1b786fbf8bd5f8e2332242 | 169a02e068c62a6cc03cbd69a7e279e8d805ecfe | refs/heads/master | 2020-06-03T17:33:22.410725 | 2014-09-22T18:45:40 | 2014-09-22T18:45:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,749 | py | import re
from datetime import datetime
import requests
from BeautifulSoup import BeautifulSoup
from fossil_gov import ROOT_URL
# TODO: Multiple "Any/all Order and/or Docket numbers"
# TODO: Test comments against an application with actual comments
# TODO: Test 'Current Order Number' in more cases.
# TODO: URLs th... | [
"daniel.watkins@canonical.com"
] | daniel.watkins@canonical.com |
134e673b4e325ce2ba6f35e5d0941b91507dcabe | 28ca5727a642a24e840463e7cb12e47f32d22578 | /code16.py | baa7c05a5cb4180a9aca04367e96e959bae7fe17 | [] | no_license | bivin1999/code | ee54282b6615e021ccd7e4c70c8ca319f26e69b3 | 152118111ecc45655713587362ed34c35705bda2 | refs/heads/master | 2020-06-16T10:58:07.311117 | 2019-07-06T16:25:28 | 2019-07-06T16:25:28 | 195,547,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | #drawing book
#link : https://www.hackerrank.com/challenges/drawing-book/problem
import sys
def solve(n, p):
a=p//2
if n&1==0:
b=(n+1-p)//2
else:
b=(n-p)//2
return min(a,b)
n = int(input().strip())
p = int(input().strip())
result = solve(n, p)
print(result)
| [
"noreply@github.com"
] | bivin1999.noreply@github.com |
add086b912c431679fe699dbc2468eac797c8fc5 | 41ab49af48988477d9c7eb99c903e305fced7c8c | /ICP2/ICP2.py | 2f0a5473f245ee1de0c5066cc824b93b1553a1bd | [] | no_license | Lohithayenugu/Python-DL | 7dd97f39c1a037e39a267a809b495c938e56b951 | 5f8c33688d1bea4d208449ecffc9c7bb9ad3909d | refs/heads/master | 2020-06-04T03:37:05.784342 | 2019-07-24T03:54:40 | 2019-07-24T03:54:40 | 191,858,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | n = int(input("Enter number of elements"))
list1=[]
list2=[]
for x in range(n):
list1.append(float(input("Enter "+str(x+1)+" element")))
list2 = [x * 0.454 for x in list1]
print("L1: ",list1)
print("Output: ",list2)
def string_alternative():
str= input("Enter the string")
str1 = ""
for i in range(len(st... | [
"47069512+Lohithayenugu@users.noreply.github.com"
] | 47069512+Lohithayenugu@users.noreply.github.com |
c81efd2e4190b6987977d82ab2f1ea3ed7152de1 | e4f0df3cc6e41e65e6a88278173a093012f768fa | /create_S3bucket_and_user.py | 0b372f0edf00dfbcd6c96c859ad26440b0949fb9 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bcgov/nr-dell-objectstore_admin | cd6c0a58449189e730a1c4cf5be8fa447a66d488 | ef6c33b187a72903c66f0162e071a833df38ad69 | refs/heads/master | 2023-02-11T19:51:06.792485 | 2021-01-03T19:05:50 | 2021-01-03T19:05:50 | 265,933,250 | 0 | 0 | NOASSERTION | 2021-01-03T19:05:53 | 2020-05-21T19:22:25 | Python | UTF-8 | Python | false | false | 7,637 | py | #-------------------------------------------------------------------------------
# Name: create_S3bucket_and_user.py
# Purpose: login into the S3 DELL management and create buckets and users in a standardize way.
#
# Author: MRDOUVIL
#
# Created: 16-12-2019
# Copyright: (c) MRDOUVIL 2019
#... | [
"Michelle.Douville@gov.bc.ca"
] | Michelle.Douville@gov.bc.ca |
c0af8343bd8ac717f83209b64a1c61ee65daa406 | 428c13380a4f7f156cf826ac591ba4c1766ce529 | /venv/fibonacci_sequence.py | 6c30ab4e2de74f99a74f62bdb3bf6c3bb4fe197c | [] | no_license | flowler/study | db7e0af2c472457b2a738341585fa93ba1d129a9 | 3c9911bdb19688485cac8a8ac17bf2680687a0fc | refs/heads/master | 2022-11-06T12:39:20.905173 | 2020-06-13T11:27:44 | 2020-06-13T11:27:44 | 271,995,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py |
#斐波那契数列,前两个数相加为第三个数
a,b=0,1
while b<1000:
print(b,end=',')
a,b=b,a+b
| [
"chenyuan@chenyuan03.local"
] | chenyuan@chenyuan03.local |
61485c3a5c32dc5a84cd3007368d7d17989f5d3e | 73480e2fe52136d7b4226d28bd58e7e4007faa1f | /SConscript | 7b2a5d863aa99de948d587225112b00f9e1e5773 | [
"MIT"
] | permissive | zznop/jump | e0486955f9f9bab8690fef4f97399d69a64f0ddd | a1cece179f53cc0bcde0559ffb52844a9cd2bc29 | refs/heads/master | 2020-05-09T12:38:50.501219 | 2019-05-05T20:23:48 | 2019-05-05T20:23:48 | 181,118,801 | 16 | 2 | null | null | null | null | UTF-8 | Python | false | false | 361 | Import('env')
sources = [
'./src/jump.S',
]
obj = env.Object(
source=sources,
)
bin = env.Command(
'jump-nocheck.bin',
obj,
'$LINK -Ttext 0 --oformat binary -o $TARGET $SOURCE'
)
# TODO: make a scons tool
fixed_bin = env.Command(
'jump.bin',
bin,
'$PYTHON ./tools/checksum.py --out $... | [
"zznop0x90@gmail.com"
] | zznop0x90@gmail.com | |
801b0bef78c978c648043d7ecc8c62ef076eac3e | 49404307ec4db944de30e07cae9148bedd1f9b28 | /scripts/average_model.py | 0ac7c06538bb8af2cac1a5321b0f69ea2f4abd49 | [] | no_license | fyabc/DL4NMT_Theano | 777c335700be94bf63d9f4ea502b74bdd1d16dd6 | 2b4d030d7bf80e44b3582d5a09e9cb1409f469fc | refs/heads/master | 2021-01-19T00:31:59.714240 | 2017-12-12T13:31:35 | 2017-12-12T13:31:35 | 87,180,476 | 12 | 10 | null | 2017-11-04T15:46:57 | 2017-04-04T11:50:37 | Python | UTF-8 | Python | false | false | 2,043 | py | #use this script to average several dumped models
import argparse
import numpy as np
import os
from collections import OrderedDict
def main(args=None):
parser = argparse.ArgumentParser(description='Average models.')
parser.add_argument('model_prefix', nargs='?', default='model/complete/e4d4_enfrlarge_reslaye... | [
"feitian@outlook.com"
] | feitian@outlook.com |
08953a719b418bbb15d0969431d2b06d0839e3be | 1e3ccb661b2560b29f4403f769fce01ba33433ef | /lab1/sumCalculator.py | 28bc1c9754dd5e450c5443a0f450b9cb89fee369 | [] | no_license | Anurag-Bharati/week3Lab | e49969f0c6aaeba802158ac6cc03a21588a931d3 | 85a81ca926197fbdd3841d6d7c9c4c1e069c3e86 | refs/heads/master | 2023-05-01T15:30:59.865464 | 2021-05-17T04:36:57 | 2021-05-17T04:37:44 | 339,624,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # WAP that takes three no and prints their sum. Every no is given on a separate line.
numA = float(input("\nEnter the first no: "))
numB = float(input("\nEnter the second no: "))
numC = float(input("\nEnter the third no: "))
sumTotal = numA + numB + numC
print(sumTotal)
| [
"anuragbharati26@gmail.com"
] | anuragbharati26@gmail.com |
c1d1f6e95434658b32064851c5155d7b1125a967 | 43c870b240a807db330a7abf53758c1fef924432 | /cloudkitty/storage_state/alembic/versions/9feccd32_create_reprocessing_scheduler.py | ce3cc37561b331d4531c41e57560f3feba4b3712 | [
"Apache-2.0"
] | permissive | openstack/cloudkitty | fb3cb83d8d89b27efe64768862f07781a2ef3b5a | 94630b97cd1fb4bdd9a638070ffbbe3625de8aa2 | refs/heads/master | 2023-08-31T15:10:44.524252 | 2023-08-23T16:27:35 | 2023-08-23T20:01:01 | 20,042,606 | 103 | 57 | Apache-2.0 | 2017-11-29T15:39:28 | 2014-05-22T00:52:38 | Python | UTF-8 | Python | false | false | 1,606 | py | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under... | [
"pierre@stackhpc.com"
] | pierre@stackhpc.com |
0509308d31b11e87cad7d3ef68a20a1d9351f211 | 9a4610fdaab19f62a46ac5809292eeb1e25228a9 | /settings.py | 3846f1d228f640ac5564eda9a94536923f44eb93 | [] | no_license | webworkerhq/wwhq-project | 6c75a67ad5c2006697d02166ace48702e5862c0d | 6fdfe8e6863fccda845e419dbcf18b55c83c4dfd | refs/heads/master | 2016-09-05T09:36:28.576747 | 2010-11-08T01:31:35 | 2010-11-08T01:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,958 | py | # Django settings for myproject project.
import os
import django
# For setting relative paths. See: http://tinyurl.com/adsa3k
# Path of Django framework files (no trailing /):
DJANGO_ROOT = os.path.dirname(os.path.realpath(django.__file__))
# Path of this "site" (no trailing /):
SITE_ROOT = os.path.dirname(os.path.rea... | [
"sanch1f@cmich.edu"
] | sanch1f@cmich.edu |
497806a1b6198237ed69f609207fe410f7da4465 | 0ea24d2e1591a7255b43c6ebff775af90aa136c8 | /module_07/hw7_8.py | 228e9f947ffc7d1eae8583d02d8923dba777b68a | [] | no_license | YanaAnisimova/goit-python | 2a37008caa6376ab40388029078600d330e574f6 | c511d764205008dd5a56c71b9ee7abd1cad58e33 | refs/heads/main | 2023-05-10T00:21:24.108994 | 2021-06-09T14:26:47 | 2021-06-09T14:26:47 | 341,244,308 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | def token_parser(s):
if s == '':
return []
new_string = ''
for i in s:
if i == ' ':
pass
elif i in '*+-/':
new_string += ' ' + i + ' '
elif i == '(':
new_string += i + ' '
elif i == ')':
new_string += ' ' + i
els... | [
"begemotvot2@gmail.com"
] | begemotvot2@gmail.com |
afe4f0e9bb5901580c70826acd5842bb66749c78 | c4cfa64ff9c38c8138f574f36268a247673398f2 | /recommendation_missing_sections/wikipedia.py | 12097dd698cbc74bbaab643a59702a38047d50b0 | [
"Apache-2.0"
] | permissive | wikimedia/recommendation-missing-sections | 1500888cd17b4a8f757acc79a1604e255cf1177d | 48bbcc19da6e02e57e10f211c2f69f7a664aec4e | refs/heads/master | 2023-06-30T15:00:27.162978 | 2017-07-03T16:53:37 | 2017-07-03T16:53:37 | 84,074,494 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | from multiprocessing import dummy as multiprocessing
from recommendation.api.external_data import fetcher
from recommendation.utils import configuration
def get_sections_for_articles(titles):
with multiprocessing.Pool(len(titles)) as pool:
results = pool.map(get_sections_in_article, titles)
aggregate... | [
"nschaaf@wikimedia.org"
] | nschaaf@wikimedia.org |
799855cb17139265c0f5530fe5551146acd4543e | fa2977a59edfd1237b8dbe3ce1aedfe576530f95 | /setup.py | f08e4e419dfc25acfcc049fbd761219964aeff20 | [
"Apache-2.0"
] | permissive | zjufrankzhang/ipdb-python | d8756bba0a52ebd222431abdf032ce692f3e8677 | b9248a7ccf7938b026068461681a023654bbb844 | refs/heads/master | 2022-07-04T23:09:25.066451 | 2020-05-15T04:02:33 | 2020-05-15T04:02:33 | 264,084,566 | 0 | 0 | Apache-2.0 | 2020-05-15T03:16:50 | 2020-05-15T03:16:49 | null | UTF-8 | Python | false | false | 1,059 | py | # coding=utf-8
from setuptools import setup
setup(
name='ipip-ipdb',
version="1.3.2",
description=(
'IPIP.net officially supported IP database ipdb format parsing library'
),
author='IPIP.net',
author_email='frk@ipip.net',
maintainer='frk',
maintainer_email='frk@ipip.net',
... | [
"ilsanboo@gmail.com"
] | ilsanboo@gmail.com |
e830f7351dad25f5cc3d2faf83a61bf0ffbe4390 | 366bc4dbb4a1689cabaa00d8fbdbf9606aa462fe | /spacexlaunchbot/discordclient.py | 5b1edc6d88e43995e39fd2cce6a4f2be95559b0c | [
"MIT"
] | permissive | Tominous/SpaceXLaunchBot | 551c7c07984bafffb00d276134e2a0791e937763 | 4622e4f590f9a2f8276ab752308e5d3cce7be8fb | refs/heads/master | 2022-10-03T01:57:09.056700 | 2020-06-05T17:23:32 | 2020-06-05T17:23:32 | 270,282,740 | 1 | 0 | MIT | 2020-06-07T11:20:08 | 2020-06-07T11:20:07 | null | UTF-8 | Python | false | false | 5,375 | py | import asyncio
import logging
import platform
import signal
from typing import Union
import discord
import discordhealthcheck
import apis
import commands
import config
import notifications
import embeds
import storage
class SpaceXLaunchBotClient(discord.Client):
def __init__(self, *args, **kwargs):
supe... | [
"simjenner3@gmail.com"
] | simjenner3@gmail.com |
e943db374255cba583a06ae593626accc392a224 | 2b6a02a34ee6bf68820ad185245e2609b296e0aa | /182.py | 5cee2a650fbaa5cc1f8840e937e7c22e3defc6dc | [] | no_license | shants/LeetCodePy | 948e505b6fcb0edcb9a1cf63a245b61d448d6e27 | 2337b5031d4dfe033a471cea8ab4aa5ab66122d0 | refs/heads/master | 2020-03-28T08:43:04.606044 | 2019-11-25T05:03:15 | 2019-11-25T05:03:15 | 147,984,830 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | #select Email from Person GROUP BY Email HAVING COUNT(*) > 1 | [
"mailtoshants@gmail.com"
] | mailtoshants@gmail.com |
554a1f0c33e07c3788581a6e1dc8bcb0ef375036 | 9c7324dfe7b1f4ec10c60f9850cfe26b69f5d305 | /py2.2/:/if:.py | dcc623a211ed76547a79a14c17b5625a1d1ccb32 | [] | no_license | RyanFatsena/Python_Prak2 | 55d38244681527693505c5654d5e8c742e7c17a2 | c1c9fd88b7f19a04683efd6311cf341d64710103 | refs/heads/main | 2022-12-28T05:38:42.935440 | 2020-10-14T12:40:08 | 2020-10-14T12:40:08 | 304,011,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | x = 3
print(type(x))
y = 1.5
print(type(y))
print(type(x/y))
| [
"71627584+RyanFatsena@users.noreply.github.com"
] | 71627584+RyanFatsena@users.noreply.github.com |
ec669664a01bd273b8ee1ae285da9a46c1b96850 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/2569808f732d45a1a7c5dbd7f66d16e1.py | db46159bc52e0c46102481740258245a199f94aa | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 213 | py | def to_rna(input):
dnaTypes = {"G":"C","C":"G","T":"A","A":"U"}
output = []
for each in input:
value = dnaTypes.get(each,'not found')
output.append(value)
return ''.join(output)
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
6f1b41958b6af109f299f7ced42048d6db69d508 | cfe2abe4b252ec2b1c3987157734b04f0ef0dacf | /helpers/db.py | d542e998f498f6279d7d832658cf457278192842 | [] | no_license | Praveeeenn/Supernova | 9406ffc64257e5d50826c3801b3737607ce11fc7 | f27d7b29bec0c52ea65276d383c12f782b769cd9 | refs/heads/master | 2022-09-26T19:10:35.421199 | 2022-09-17T23:14:32 | 2022-09-17T23:14:32 | 103,510,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import pymongo
class MongoDB:
def __init__(self, db_name):
con_string = "mongodb://admin:password@localhost:27017"
self.client = pymongo.MongoClient(con_string)
self.db = self.client[db_name]
| [
"praveen.rajput@sliceit.com"
] | praveen.rajput@sliceit.com |
3a95699c2332e8a78a1609466f15989fe5d2c1b5 | 00fb75954c9a577147e3bb530bebe774aef6c62e | /ex06_05.py | bc23f43020b8e4c5343e77d958b76b8feb70be9e | [] | no_license | stevesea/py4e | 6b110df91d9a0525dc291362e6835791fcdffe98 | ee249a48672f8973f13ac7c95cd9e073d3fdd9c5 | refs/heads/master | 2020-03-10T11:23:04.997144 | 2018-07-13T19:10:43 | 2018-07-13T19:10:43 | 129,355,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # Write code using find() and string slicing (see section 6.10) to extract the
# number at the end of the line below. Convert the extracted value to a floating
# point number and print it out.
text = "X-DSPAM-Confidence: 0.8475"
ind = text.find(":")
substr = text[ind+1:]
print (float(substr.strip())) | [
"steve.christensen@mediciventures.com"
] | steve.christensen@mediciventures.com |
03ab8c75f3d5facff903e1533e9051286674cba7 | 0f96c4fe2e4842427829e521ce950b0e552749b3 | /main/management/commands/import_data.py | 2fbd9669ad548af5c393153f832e08b6290055cb | [] | no_license | matardoky/booktime | 206cf5076ceb6374935cd362438ddfb6ec3992a0 | 245a030ad2eebd5ba0be2ccc3dc19c1fd5c7b6fd | refs/heads/master | 2023-02-16T03:40:20.691875 | 2021-01-17T13:49:07 | 2021-01-17T13:49:07 | 313,128,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | from collections import Counter
import csv
import os.path
from django.core.management.base import BaseCommand
from django.core.files.images import ImageFile
from django.template.defaultfilters import slugify
from main import models
class Command(BaseCommand):
help = 'Import products in BookTime'
def add_argum... | [
"mdokydiop@gmail.com"
] | mdokydiop@gmail.com |
4c5b98dcb0e5971fa8e16b9150b20e53eaa42687 | 90f729624737cc9700464532a0c67bcbfe718bde | /lino_xl/lib/invoicing/__init__.py | e4adea047c066bd0b4bff8eeb6e269f443914fa4 | [
"AGPL-3.0-only"
] | permissive | lino-framework/xl | 46ba6dac6e36bb8e700ad07992961097bb04952f | 642b2eba63e272e56743da2d7629be3f32f670aa | refs/heads/master | 2021-05-22T09:59:22.244649 | 2021-04-12T23:45:06 | 2021-04-12T23:45:06 | 52,145,415 | 1 | 5 | BSD-2-Clause | 2021-03-17T11:20:34 | 2016-02-20T09:08:36 | Python | UTF-8 | Python | false | false | 2,783 | py | # -*- coding: UTF-8 -*-
# Copyright 2016-2019 Rumma & Ko Ltd
# License: GNU Affero General Public License v3 (see file COPYING for details)
"""
Adds functionality for **invoicing**, i.e. automatically generating
invoices from data in the database.
See :doc:`/specs/invoicing`.
"""
from lino.api.ad import Plugin, _
f... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
0e98660cef8d593393fd7f5239d57526602a5f0e | a56252fda5c9e42eff04792c6e16e413ad51ba1a | /resources/usr/local/lib/python2.7/dist-packages/bx/seq/seq.py | 727c700f5b0caaf1da917454450ecd64e677025f | [
"Apache-2.0"
] | permissive | edawson/parliament2 | 4231e692565dbecf99d09148e75c00750e6797c4 | 2632aa3484ef64c9539c4885026b705b737f6d1e | refs/heads/master | 2021-06-21T23:13:29.482239 | 2020-12-07T21:10:08 | 2020-12-07T21:10:08 | 150,246,745 | 0 | 0 | Apache-2.0 | 2019-09-11T03:22:55 | 2018-09-25T10:21:03 | Python | UTF-8 | Python | false | false | 4,887 | py | """
Classes to support "biological sequence" files.
:Author: Bob Harris (rsharris@bx.psu.edu)
"""
# DNA reverse complement table
DNA_COMP = " - " \
" TVGH CD M KN YSA BWXR tvgh cd m kn ysa bwxr " \
" ... | [
"szarate@dnanexus.com"
] | szarate@dnanexus.com |
80133892251d267f16b4c796934dae0fd65c9fa4 | a0babe40c9895cf067e143dd1ab238cd2ec699e3 | /shop/migrations/0004_order.py | 215d0b94854c485c9e2abe74a7b202d21eb4df1b | [] | no_license | jayeshn10/ecommercewebsite | 260ac476c5b8a5676cc284ec0385355060c8d207 | bcd3316c366d963d9b2f4e5e9a108231f0b91859 | refs/heads/master | 2023-01-11T08:27:57.693357 | 2020-11-15T12:19:01 | 2020-11-15T12:19:01 | 313,022,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # Generated by Django 3.1.2 on 2020-10-26 09:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0003_shopproduct'),
]
operations = [
migrations.CreateModel(
name='order',
fields=[
('id', m... | [
"jayeshnangaonkar10@gmail.com"
] | jayeshnangaonkar10@gmail.com |
13df2ce1f451f2a9f0ce7e5aee70d7abdb0fbc1f | cea41feba6e6a98cfc6473b23588144138341752 | /views.py | b7a43fc0213ce09f1dbef965ca3ebdee72933949 | [] | no_license | cobhimself/altitude | dbfa3794e97f832f4ce6eeaf45098d72539e79b1 | decb2f2ccaef5b707051b8f786648b3538e6be5e | refs/heads/master | 2021-01-20T12:04:53.956426 | 2011-07-23T21:46:43 | 2011-07-23T21:46:43 | 1,243,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # Create your views here.
from django.http import HttpResponse
#This view is used for the main altitude page ('/').
def index(request):
return HttpResponse("Hello, world. You're at the index.")
| [
"collin.brooks@gmail.com"
] | collin.brooks@gmail.com |
1ad55091358e590323afd520fb02e7dc9aae300d | 665cce39709ed06a9170d1433bc4f9facc3cc559 | /python英文视频学习/Modules and Pip.py | 8dfd8e6c65972c278cfc5ab939d94604455069b5 | [] | no_license | LiuJiYangYang/python-ride | a717aa6a19a43dbfbb9e65f5f41430f2125ec348 | 7c5b0223253ade7617e21963dce1f65bb4add834 | refs/heads/master | 2020-05-15T23:09:05.384607 | 2019-05-09T13:25:29 | 2019-05-09T13:25:29 | 182,544,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | import useful_tools
print(useful_tools.roll_dice(10))
# 模块 谷歌搜索<python-docx>
# <https://python-docx.readthedocs.io/en/latest/>
import docx
docx.Document()
| [
"1318335493@qq.com"
] | 1318335493@qq.com |
5fbb00fa6a47c24747670f11fee2bce6ece45192 | 067f3b050f796e135763bddb8093e5b9768600b9 | /Scripts/bin/cutadapt/lib/python3.6/site-packages/cutadapt/__main__.py | 83f39c236569ebdb105cabed326d483e147feaa9 | [] | no_license | irycisBioinfo/CrisPRAL | 00f34501c8f95cde946c173129f113ca2f7639a3 | 0a91ed9dfa9a52ed69abd635317ec58d1bc8ee56 | refs/heads/master | 2023-02-01T21:35:15.831184 | 2023-01-31T11:17:01 | 2023-01-31T11:17:01 | 159,354,930 | 3 | 0 | null | 2018-11-27T15:13:40 | 2018-11-27T15:13:40 | null | UTF-8 | Python | false | false | 35,130 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# kate: word-wrap off; remove-trailing-spaces all;
#
# Copyright (c) 2010-2018 Marcel Martin <marcel.martin@scilifelab.se>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software")... | [
"sergio.fern1994@gmail.com"
] | sergio.fern1994@gmail.com |
557a98329f24a892e121a652554f6993793fddf4 | 9379d741a44ea70f83703fdb0ee4b2a528c707e2 | /controllersMap.py | ec52301affd466e89a9e458f1bb3529f7966f04a | [] | no_license | Kamikoto-sama/NetBookShop | e237d227c1302d72dbbe2135964e294612848be2 | 2e3b324a0d150e1d6967ab1a865d291bccf99164 | refs/heads/master | 2021-07-19T06:08:12.566795 | 2021-06-27T13:52:04 | 2021-06-27T13:52:04 | 250,855,627 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | from controllers import AuthController, CustomerController, LibrarianController
class Controllers:
Auth = "auth"
Customer = "customer"
Librarian = "librarian"
routes = {
"auth": AuthController,
"customer": CustomerController,
"librarian": LibrarianController
}
| [
"dan.mok999@yandex.ru"
] | dan.mok999@yandex.ru |
3d278e98a1fab5ed76fd8bb93ee6f0c07abfabbc | e978ae78828022c80bad03c588b2045a01fde263 | /src/ex4-var.py | aace763753e4101285fcf695dec1ac4e7df53b13 | [] | no_license | rever4433/LearnPythonExample | e668fdd02866665793c7b1a7d1aceee8b3714e67 | 1028d923b747f0b25ed4c3ae15a0b901edd15c2d | refs/heads/master | 2021-01-20T21:32:22.737608 | 2017-10-05T11:54:51 | 2017-10-05T11:54:51 | 101,768,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print ("There are",cars, "cars available.")
print ("There are only", drivers, "drivers av... | [
"gao2524289@outlook.com"
] | gao2524289@outlook.com |
20a4156e7220c7868945fefe59dc8eb50df3db69 | 367f8fdbce11e4901f50c8b8c98bb675bf9882b7 | /configs/old/VAE_CausalData_ld2.py | b863c9243c1592ef11bd3ae96ae8e974a605fb4e | [] | no_license | petrapoklukar/causal_disentanglement_miniproject | c4684524ac2c5f7cfd55d9325482295d35f6c86c | f85228278eca162ee510ac708f35fce32f420ab4 | refs/heads/master | 2022-11-29T18:24:44.936649 | 2020-08-01T06:19:04 | 2020-08-01T06:19:04 | 250,300,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 4 11:41:40 2020
@author: petrapoklukar
"""
batch_size = 64
config = {}
# set the parameters related to the training and testing set
data_train_opt = {}
data_train_opt['batch_size'] = batch_size
data_train_opt['dataset_name'] = 'causal_data'
data... | [
"petra.poklukar@gmail.com"
] | petra.poklukar@gmail.com |
acfffeeedaed98d86cfc1c342521f3ed17d4ab02 | 9a94d8fcdb2561a1dde8066d98d4c6412666bd3d | /rss.py | 22f5b85c3456032de000a9ca59210495733ec56d | [] | no_license | liumanman/btpro | f5bfd76ef47459751365e70b26c2d73f31ba3520 | c415396c6202900ef8a1a3cb985350be76abe8cf | refs/heads/master | 2021-01-11T02:38:15.780868 | 2016-11-16T18:25:02 | 2016-11-16T18:25:02 | 70,946,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,851 | py | import os
import json
from functools import reduce
from datetime import datetime, timedelta
from flask import Flask, request, make_response, render_template
import re
import hashlib
try:
import xml.etree.cElementTree as ET
except ImportError:
import xml.etree.ElementTree as ET
import requests
import configparse... | [
"liumanman@gmail.com"
] | liumanman@gmail.com |
2cdd965d4c6d388d23f12cbd8f7966ac00696647 | a7214e7ff9453f22586cf0e09bb2c95092335d91 | /venv/Scripts/pip3.6-script.py | 96c507768c50d0951d4544ef22aaa62f2b0fac21 | [
"MIT"
] | permissive | migzpogi/PokerCalculator | 32069f92959f5c3929cd8d06f4ad93cccb4638a3 | dafe73fa75e561bce92832807c81ab4a680a29c1 | refs/heads/dev | 2023-05-26T18:07:43.932496 | 2022-06-19T21:27:49 | 2022-06-19T21:27:49 | 149,702,916 | 6 | 2 | MIT | 2023-05-23T02:09:54 | 2018-09-21T03:09:36 | Python | UTF-8 | Python | false | false | 407 | py | #!D:\Projects\PokerCalculator\venv\Scripts\python3.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
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])
... | [
"migz.zgim@gmail.com"
] | migz.zgim@gmail.com |
710681e8432fda6fe291df58ec43f1b8b3917168 | 2ea49bfaa6bc1b9301b025c5b2ca6fde7e5bb9df | /contributions/MeatWizard/Python/Data Structures/2016-10-29.py | 8e90749f8ba5a1a1a2da11877b63712a7b695e86 | [] | no_license | 0x8801/commit | 18f25a9449f162ee92945b42b93700e12fd4fd77 | e7692808585bc7e9726f61f7f6baf43dc83e28ac | refs/heads/master | 2021-10-13T08:04:48.200662 | 2016-12-20T01:59:47 | 2016-12-20T01:59:47 | 76,935,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | Your own Python `calendar`
Best way to implement a simple `queue`
Get the most of `int`s
Operations with `bytes` and `bytearray`
How to count | [
"dasleah@gmail.com"
] | dasleah@gmail.com |
3f952527300df60b654627ce7bbef7b2f314235c | 96f44e6f9b834d4f89a3119565b46a58589b7e83 | /crm/views.py | 113239bb64f87591b6d9966cb588cb2827a1f492 | [] | no_license | thwalker/mfscrm | af27932c828682b94002e21e02287bb23b481907 | 4c7945c31e8aad789ab330698293220656b58d52 | refs/heads/master | 2020-04-21T01:14:19.345729 | 2019-09-11T20:28:20 | 2019-09-11T20:28:20 | 169,188,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,123 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from .models import *
from .forms import *
from django.shortcuts import render, get_object_or_404
from django.shortcuts import redirect
from django.db.models import Sum
now = timezone.now()
def home(request):
return rend... | [
"thwalker@unomaha.edu"
] | thwalker@unomaha.edu |
9c85f5d5791d3d14ac61c80470e39516b5b5b94a | b162de01d1ca9a8a2a720e877961a3c85c9a1c1c | /389.find-the-difference.python3.py | 787bd1ca19ae6a5ffdf1788af2408a2944611bb1 | [] | no_license | richnakasato/lc | 91d5ff40a1a3970856c76c1a53d7b21d88a3429c | f55a2decefcf075914ead4d9649d514209d17a34 | refs/heads/master | 2023-01-19T09:55:08.040324 | 2020-11-19T03:13:51 | 2020-11-19T03:13:51 | 114,937,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | #
# [389] Find the Difference
#
# https://leetcode.com/problems/find-the-difference/description/
#
# algorithms
# Easy (52.22%)
# Total Accepted: 126.9K
# Total Submissions: 243.1K
# Testcase Example: '"abcd"\n"abcde"'
#
#
# Given two strings s and t which consist of only lowercase letters.
#
# String t is genera... | [
"richnakasato@hotmail.com"
] | richnakasato@hotmail.com |
f07cd33d834fc5291a12b22d788b5a08960acc00 | 034a774f78600388f34dac2f2073fcd7b97080ba | /src/model/DAE_C.py | aa03495929d3688fc0e2354540be1684d814c9f7 | [] | no_license | weichian0920/MFA_DAE | 492cff423b968e85b8a69086f0747b9af5bddbcf | 633a6d99b3552367aea5619ea10e4be6fb6c08df | refs/heads/main | 2023-04-03T06:23:19.272466 | 2021-04-08T01:09:30 | 2021-04-08T01:09:30 | 312,521,165 | 9 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,498 | py | # -*- coding: utf-8 -*-
#Author:Wei-Chien Wang
import numpy as np
import os
import torch
import torch.nn as nn
import math
def ACT(act_f):
if(act_f=="relu"):
return torch.nn.ReLU()
elif(act_f=="tanh"):
return torch.nn.Tanh()
elif(act_f=="relu6"):
return nn.ReLU6()
elif(act_f=="sigmoi... | [
"noreply@github.com"
] | weichian0920.noreply@github.com |
42f8338aa52c662b047edce255ef1519c9b2a427 | 59adc89b3b9c95f5bf78f383f1b5c6f622827200 | /venv/Scripts/easy_install-3.7-script.py | 2a892957364de8dc878dbfe04976f44e140fd698 | [] | no_license | hand-sound-organization/Web | d6b87330aed4dac9860907390ce2ac2e9af1ae34 | 2e95484f1478809ac726eb1da00d1b3452a1d651 | refs/heads/master | 2022-09-15T05:15:20.622364 | 2020-06-01T03:34:55 | 2020-06-01T03:34:55 | 255,280,337 | 0 | 0 | null | 2020-05-25T08:55:38 | 2020-04-13T09:12:52 | JavaScript | UTF-8 | Python | false | false | 447 | py | #!E:\python_programs\Flaskweb\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$'... | [
"993006297@qq.com"
] | 993006297@qq.com |
684f5d077c5571bc21a6c8cfc8f6596f0a2852ec | 5dbf309d11fb9fe8ad29c14bb900770ead8e58ce | /week2/forstatement.py | 31ef2b8ed5e6eb2c907df089f375d58c2190c8b6 | [] | no_license | gruntfutuk/codecoach | a280accb0942102358729cfe2f3ce799c20ed8a9 | 25f5c847234eabd21a82c15aba66c73d2ba4b913 | refs/heads/master | 2020-05-22T02:23:25.714310 | 2017-04-18T13:03:07 | 2017-04-18T13:03:07 | 84,662,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | #!/usr/bin/env python
# week 2 - example 2, for statement
words = ['one', 'two', 'three', 'four']
for word in words:
print(word)
print("%s has %d letters" % (word, len(word)))
| [
"github@kyber.co.uk"
] | github@kyber.co.uk |
5caec5d9a8ccca40938aa679181df75ee6367197 | 6d3ac655065e7592d7d8f6692b48546fb9adab75 | /VirtualEnvAndPagination/env/bin/pip-3.7 | f324b76b04fee41f8ec85adbfd6cbdd528e977ac | [] | no_license | lensherrggg/Django2Masterclass-BuildWebAppsWithPython-Django | 81aa3fe582801d887b526bf3e022539cc0c739f5 | 22631e46cf48cb4206f8b77da664685fa141fec3 | refs/heads/master | 2021-04-08T11:43:23.265987 | 2020-03-27T12:56:50 | 2020-03-27T12:56:50 | 248,772,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | 7 | #!/Users/rui/Documents/Code/Learning/Django2MasterClass/VirtualEnvironment/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gr98522@gmail.com"
] | gr98522@gmail.com |
3c43c345d111372a9ca89a1f6a3b93c59a6b2ed2 | 8bc18494749c7bad01678b14bc2f768953680446 | /BinaryCounter.py | b4e5528b16381be75e61d852d0b31982961a1f3c | [] | no_license | anshul-16/Turing-Machine-Problems | f034a94c9e3f61eb06424534ecf65e974629df41 | 2dd7c15ab7e2598b576479735b2cb5447d0b6684 | refs/heads/master | 2021-09-06T21:26:25.507632 | 2018-02-11T18:28:03 | 2018-02-11T18:28:03 | 116,153,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | from tabulate import tabulate
print("State Table for 3-State Binary counter Problem is: \n\n")
print (tabulate({"State":["State0","","","State1","","","State2""","",],\
"Symbol Read":["Blank","0","1","Blank","0","1","Blank","0","1"],\
"Write Instruction":["Write Blank","Write 0",... | [
"noreply@github.com"
] | anshul-16.noreply@github.com |
42b7de1ad5db10624c06cd011f69cb9faf146edd | 2b5263a83bdc8f5d7ab115fdb49ff51f9de0b67a | /online-movie-app/myapp/models.py | 82cde9bcfaf192d11e2d0748fd24c16302e448b5 | [] | no_license | sreedhar484/ott-platform-app | 4b36652a7bac28910a3dd0eae24235a56b71f1a8 | 0707afa53f210986778e8e9fba924e05fe2fcd74 | refs/heads/master | 2022-11-16T15:04:26.470944 | 2020-07-09T17:37:00 | 2020-07-09T17:37:00 | 278,428,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | from django.db import models
from django.contrib.auth.models import User
from multiselectfield import MultiSelectField
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User,on_delete=models.CASCADE)
photo = models.ImageField(upload_to='pics',default='default.png')
MY_CHOI... | [
"sreedharr484@gmail.com"
] | sreedharr484@gmail.com |
457dccff4153b6a1c4b3ba627030b9354d3a29b1 | 00da9084edb298c768ad0ecdc209e26915dec485 | /pymessages/client.py | bd3b313e729f88a6b2f3d44972a586ddfc384b0a | [
"ISC"
] | permissive | shivamsn97/pymessages | 4fc3d11354c02bd6663038b6c5176d56e4411c5b | 5ff3d5758f8d89889f60324b52c30c0b471c63e9 | refs/heads/master | 2023-03-18T05:38:37.673910 | 2021-03-07T19:03:42 | 2021-03-07T19:03:42 | 344,465,037 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,661 | py | import asyncio
import json
import signal
from typing import Callable
import pyppeteer
from pyee import AsyncIOEventEmitter
from pymessages.service import MessageService
class ClientOptions:
headless:bool
credentials: object
def __init__(self,headless=False, credentials={"cookies":[], "localStorage": {... | [
"shivamsn97@gmail.com"
] | shivamsn97@gmail.com |
8690d231a167e9b88233a27f26976e8d40a700d9 | a8f0cb9c022a97d77c5df1e626f0c4d26e6edbd5 | /config/settings/base.py | ff7d394bc8cc22d7f56b59482970d4b006ecee7a | [] | no_license | gaetangr/P10_application_deployment | e5daaddc1e1ad61f537009dbd52e1ea10bff7738 | 40fd9a90366f9376603a96efda3aea80c73b02d1 | refs/heads/master | 2023-02-16T20:35:19.550550 | 2021-01-19T17:40:24 | 2021-01-19T17:40:24 | 329,312,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,144 | py | """
Base settings to be extended for production, test and local.
Settings common to all instances of the project.
"""
from pathlib import Path
import environ
# purbeurre/
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
APPS_DIR = BASE_DIR / "purbeurre"
env = environ.Env()
ENV_FILE = BASE_DIR / "... | [
"39266116+Mcflan-7@users.noreply.github.com"
] | 39266116+Mcflan-7@users.noreply.github.com |
a347f4c79bc48fe3924d4320204831df966ad7c2 | 3764a90813b6419e679ecbbf9fcf3fd9d879dde0 | /new/migrations/0001_initial.py | 0822912dac641292782acd2f8df60156ca8993d3 | [] | no_license | siwenyuzhong/django_rbac | 187b5d0cf9b536b91fe52e8aa58937d63322a79d | a6dadfc78844ad0b8aff53430d051f3b14262612 | refs/heads/master | 2022-03-14T21:38:51.060978 | 2019-09-14T00:36:51 | 2019-09-14T00:36:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2019-08-01 14:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='info',... | [
"cinyann@163.com"
] | cinyann@163.com |
7753cb95d4466b610a3d6b8af4f2b00cc22c1d9b | a6f52b361be35ecd0b750289145d1dd5e5d1d48d | /src/profiler/formatters/SimpleTableFormatter.py | 34c51c4caadb51c8ef5c62c9146a34e98f4bf99b | [] | no_license | deeptiagrawa/Flow123d-python-utils | d360329d28b1c24d600e309fabf09539bce80dee | a80b2dd10eb77ed0fc6469c675dc400feffdcc09 | refs/heads/master | 2021-01-12T05:31:26.649733 | 2016-12-20T13:28:05 | 2016-12-20T13:28:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,009 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# author: Jan Hybs
from __future__ import absolute_import
import re
import os
from utils.dotdict import DotDict
from utils.logger import Logger
class SimpleTableFormatter (object):
"""
Class which takes json object from flow123d benchmark profiler report
and r... | [
"jan.hybs@tul.cz"
] | jan.hybs@tul.cz |
0b1c8beb8eb1ef95cb6a4d4727885e8cadf1df70 | a04cda70267d2cf36ea8375d18e1a96cca59665e | /ex34.py | 5344b5d78d6593c727fab61511578cc2e3281c5d | [] | no_license | Heffie/Learn-Python-the-hard-way | 8fb38dbbcc6379a9bb43b3707bb75c1e2b2d32eb | 4d0ae2a79b0b54af5c05fa1b33c266016ae0f46b | refs/heads/master | 2020-09-11T16:53:31.086776 | 2019-11-16T16:58:14 | 2019-11-16T16:58:14 | 222,131,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | animals = ['bear', 'python', 'peacock','kangaroo','whale', 'platypus' ]
print("1 ",animals[1])
print(animals[3])
print(animals[2])
print(animals[4])
| [
"jdhagenstein@gmail.com"
] | jdhagenstein@gmail.com |
54fe7f80e2409f542e48140134eecaa742fb0091 | bb7771dbcdb443103ae462c42bd4abf9b755e885 | /vang/core/tests/test_core.py | 24a8bc31174aca08734c2a6aea89bc19c41a6274 | [
"Apache-2.0"
] | permissive | mattiasl/scripts | f514a2bd110ea4b795887b553b7e18919caf462d | e9245ce432b0dd5743506654ada52e017d0b6be0 | refs/heads/master | 2021-06-24T18:25:00.791235 | 2020-11-12T20:20:12 | 2020-11-12T20:20:12 | 158,198,967 | 0 | 0 | Apache-2.0 | 2020-11-12T20:20:24 | 2018-11-19T09:56:45 | Python | UTF-8 | Python | false | false | 1,411 | py | from datetime import datetime
from unittest.mock import patch
from vang.core.core import create_timestamp
from vang.core.core import has_match
from vang.core.core import is_included
from vang.core.core import pmap
from vang.core.core import pmap_unordered
from vang.core.core import select_keys
def test_create_timest... | [
"magnus.bjuvensjo@evry.com"
] | magnus.bjuvensjo@evry.com |
10b448f764ee578360e04f05635be76a553fbf2f | 5fdc52d776b933ddb9884c8593bc1518747261ce | /pelt/trainer.py | 310b33155c42910dcac91bcc630d348c9ae5c866 | [] | no_license | queengooborg/peltengine | 76185b21cb90ddf95c0172abbb3fc652655c0894 | 818736a7118a68108821459cf2ac6a387a2159aa | refs/heads/master | 2021-09-08T10:21:33.099532 | 2015-01-27T23:27:14 | 2015-01-27T23:27:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,515 | py | #In need of remodeling
#Created April 28, 2014 at 22:28
import settings
#class for trainer object management
if not settings.ios:
import pygame #import everything pygame-related
from pygame.locals import *
else: import scene
import objects
import data
import battle
import transition
class TrainerObject(objects.NP... | [
"dark.tailed.wolf@gmail.com"
] | dark.tailed.wolf@gmail.com |
193d83661abceb7d1a25e87ede730ae52535bc9d | d50bba88b6d3acbc03909a16b56989815fe0e91e | /libraries/abstractions/ble_hal/test/ble_test_scipts/test1.py | f00d34b149815df18309c4b17857df89e438f820 | [
"MIT"
] | permissive | sifive/Amazon-FreeRTOS | 256382a96c0a74b16cd364b5c8d0e4b37d0d9a47 | 3cb6cc8d0bf2551eee5eda602501b89a5d5791b2 | refs/heads/master | 2023-08-15T10:40:33.458569 | 2019-12-28T02:53:06 | 2019-12-28T02:53:06 | 223,478,100 | 9 | 8 | MIT | 2023-08-01T22:59:28 | 2019-11-22T20:06:25 | C | UTF-8 | Python | false | false | 2,100 | py | #
# Amazon FreeRTOS BLE HAL V2.0.0
# Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, includ... | [
"m.keyran@gmail.com"
] | m.keyran@gmail.com |
94bf08a7ce82fd2b63625597118eb7bbeb7fe531 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part008601.py | faee6c6b3a4acdcb9b277c59692c5169f5000ac5 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,923 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
9eec80d56ef9daa48da8496c5084cbcda72872f6 | 88a67ee743ddf7b9a9f83a91d6541bd416951de6 | /x11/ulauncher/files/patch-ulauncher_utils_display.py | 36e21f1c1333833f5730c7880397030d506980b7 | [
"BSD-2-Clause"
] | permissive | rem-os/ports | ef5be84936a73c629668b7574911f25c9182f28e | a710dd4db67ff8f8d805685ca0c24c4206fadadd | refs/heads/master | 2021-08-22T09:51:42.070526 | 2021-08-17T15:53:17 | 2021-08-17T15:53:17 | 237,510,543 | 0 | 1 | NOASSERTION | 2021-08-17T15:53:18 | 2020-01-31T20:28:01 | null | UTF-8 | Python | false | false | 256 | py | --- ulauncher/utils/display.py.orig 2021-02-07 15:10:13 UTC
+++ ulauncher/utils/display.py
@@ -1,4 +1,5 @@
-import logging
+import gi, logging
+gi.require_version('Gdk', '3.0')
from gi.repository import Gdk, GdkX11
logger = logging.getLogger(__name__)
| [
"danfe@FreeBSD.org"
] | danfe@FreeBSD.org |
3d045cf1ae24697138f2e696199a634d99751695 | 54f1b46d7e6c8603cf10988ecd34659104c4e784 | /boba/urls.py | 2eab0f647c6956e437c94442cb2b51519f9b9af4 | [] | no_license | SuzannAdams/boba_backend | 7bd2b778289555329abf0423d1a23fb5390e1fe8 | c08b801046df65e98788da05d77629945a23ef45 | refs/heads/master | 2021-09-24T16:43:39.077107 | 2020-03-13T05:40:59 | 2020-03-13T05:40:59 | 245,221,255 | 0 | 0 | null | 2021-09-22T18:45:55 | 2020-03-05T17:04:08 | Python | UTF-8 | Python | false | false | 255 | py | from django.urls import path
from . import views
from rest_framework.routers import DefaultRouter
urlpatterns = [
path('meets/', views.MeetList.as_view(), name='meet_list'),
path('meets/<int:pk>', views.MeetDetail.as_view(), name='meet_detail')
] | [
"muezzinsarwar17@gmail.com"
] | muezzinsarwar17@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.