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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1bc9840697ceb026d50ea0fff544febc007b4d99 | 0c1cd8ae58f8b0b8eda2b682ac071cd31c25bfa0 | /scripts/layout_constraint.py | 7fe105a047e34c5e1320fa9bef47bd9847a12fb1 | [
"MIT"
] | permissive | gemsi/cocoa | b3a64fae5bb9112b9eec0653e5dc230592827c65 | 834a1ee556bbafed27bc0b2b5a2ca3be271e2b01 | refs/heads/master | 2023-01-28T17:13:22.873526 | 2020-12-09T05:35:44 | 2020-12-09T05:35:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,267 | py | #!env python3
from generate import Component, Property, Method, Return, Param, init_method
if __name__ == "__main__":
w = Component(
Type="appkit.LayoutConstraint",
super_type='foundation.Object',
description="the relationship between two user interface objects that must be satisfied by t... | [
"dongliu@kuaishou.com"
] | dongliu@kuaishou.com |
cb7ba224121f3de25c0055cc0bc1096c98c01fbb | 34c4951edc118b3763eeca9734d47ea8c10d0654 | /preprocessing/plotting.py | 11c344406208071f2a7fe831e055ffa0c9dcaa77 | [] | no_license | yiren-liu/retailer-search | 5739af9682f6c53ed05edaed4b95174d4493b56c | 5e2b8f9ee3fde56363db417e1ac06543225990ec | refs/heads/master | 2022-04-04T20:14:53.991264 | 2019-11-18T04:14:29 | 2019-11-18T04:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | # %%
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import pickle
# %%
def draw_word_num_pic():
with open('descriptions_results_num_params.sav', 'rb') as f:
tmp = pickle.load(f)
des_num = tmp[0]
resu_num = tmp[1]
des_num_reta = tmp[2]
des_num_manu = tmp[3]
... | [
"724139392@qq.com"
] | 724139392@qq.com |
b02bca5c918def6a70efac656fdcaa65b903a14d | 35a2a3f5fa6573c32e411d399a60e6f67ae51556 | /tests/python/mkl/test_mkldnn.py | 2caf7af7eb4c4c9e8eb2cdcff9d02cfcbd19da5f | [
"Apache-2.0",
"BSD-2-Clause-Views",
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause",
"Intel"
] | permissive | TuSimple/mxnet | 21c1b8fedd1a626cb57189f33ee5c4b2b382fd79 | 4cb69b85b4db8e1492e378c6d1a0a0a07bd737fb | refs/heads/master | 2021-01-09T07:59:24.301512 | 2019-07-27T00:56:52 | 2019-07-27T00:56:52 | 53,660,918 | 33 | 47 | Apache-2.0 | 2019-07-27T01:09:17 | 2016-03-11T10:56:36 | Python | UTF-8 | Python | false | false | 7,303 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"anirudh2290@apache.org"
] | anirudh2290@apache.org |
454cbfb46c7d918fb69092033e9e5117676beb29 | 6eef7d400474384c9e36cafbbae95e3c34dbb6ad | /manage.py | 9546f991d846e27cec4ace859f5bbc2dda3e97ad | [] | no_license | codeAligned/clinvitae | 61d3c160e9dbc65d548818292681a27501d330ce | 4a75c14113dc562991c7d2d1a5812d2db91e2da0 | refs/heads/master | 2020-05-17T12:02:33.514187 | 2019-02-21T06:47:35 | 2019-02-21T06:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ben_kremer_clinvitae.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"kremerdesign@gmail.com"
] | kremerdesign@gmail.com |
e3f53a3a413ada1afe4a2375cc0ac058751e6347 | c8bb293178969cb8974079b8c9e14c56f53bfbeb | /python2.7/site-packages/tinyrpc/protocols/jsonrpc.py | fa0875b17dd58f306455aeb3acd6166f78a5eb9b | [] | no_license | ahaWDY/ryu-controller | a322833db49910e5630f72291890e495adf12ab2 | 13c704c0a061901aaf8d2d2f77d6b5f2d8189536 | refs/heads/main | 2023-02-25T05:45:21.516870 | 2021-02-09T19:19:23 | 2021-02-09T19:19:23 | 323,458,834 | 1 | 1 | null | 2020-12-21T22:27:53 | 2020-12-21T22:08:49 | Python | UTF-8 | Python | false | false | 10,573 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import inspect
import json
import sys
import six
from .. import (
RPCBatchProtocol, RPCRequest, RPCResponse, RPCErrorResponse,
InvalidRequestError, MethodNotFoundError, InvalidReplyError, RPCError,
RPCBatchRequest, RPCBatchResponse
)
if 'jsonext' in sys.modu... | [
"2503131624@qq.com"
] | 2503131624@qq.com |
196076833a5592428b92e52569b4b23032a18e2c | 7c241ec2d3255f232db634a037af54658712caf7 | /Projekte/Modulo/Main.spec | 32993d25989bdae4389c1862c61d894ee4bf4431 | [] | no_license | GoodGuyTuring/GreaterOnes | 85c47814901e7dface2a839510ed9f6028464cc0 | c3ea1f7005d192fc504f33a78e42e90f27d873ae | refs/heads/master | 2020-09-01T01:39:24.274355 | 2020-01-24T16:10:25 | 2020-01-24T16:10:25 | 218,844,671 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['Main.py'],
pathex=['/home/mark/Git/GreaterOnes/Projekte/Modulo'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
... | [
"daniel.huschina@uni-bonn.de"
] | daniel.huschina@uni-bonn.de |
1be96dfd88ce2372ebf4307223158365f6f38a93 | 900aabfb61b714b98dc843a7a6922df0d1fac4bc | /txartnet/test/__init__.py | 758981b66e65db20aabe9a9bfa8775eb870457bd | [
"MIT"
] | permissive | aalex/txartnet | ee93b17f911d37f0dea3d091d61f008f7b399424 | a01abe5e2d5cec616421f3ba769b6851aae04923 | refs/heads/master | 2016-08-07T19:53:45.832967 | 2014-02-28T22:11:35 | 2014-02-28T22:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | #!/usr/bin/env python
"""
Unit tests for the txartnet library.
"""
| [
"alexandre@quessy.net"
] | alexandre@quessy.net |
0dbb5d5f42d7c6f530c0b2a619756f5d5850c136 | 95ca12c782c7ae4f392e297186a7d95a74c472bb | /for_build.spec | 11e817261abf67d9d09e7f4b6df88101f1a2b646 | [] | no_license | TepNik/Sumulation-newton-s-cradle | 9efda83f402c69c14f0aad5720b31c0c8e740cd0 | 48b05a5f787f68fcd58b396d1732efdae5961430 | refs/heads/master | 2020-05-27T17:54:02.262347 | 2019-05-26T21:12:06 | 2019-05-26T21:12:06 | 188,731,725 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['proga.py'],
pathex=['Your path'],
binaries=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_as... | [
"tepelin.nikita@gmail.com"
] | tepelin.nikita@gmail.com |
cd0c89d314658b289357e3eaf240900c29f54130 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /aoj/aoj-icpc/300/1305.py | e3d262fb73a310e2dafd28e76451fa6d53bedd63 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | while 1:
n = input()
if n == 0: break
ans = {}
for i in range(n):
group,name = raw_input().split(":")
if i == 0: first = group
ans[group] = set(name[:-1].split(","))
while 1:
for key in ans:
flag = 0
if key == first: continue
for key1 in ans:
if key in ans[key1]:
ans[key1] |= ans[key]
... | [
"roiti46@gmail.com"
] | roiti46@gmail.com |
695f3f91507485220caf4ed5db68b50ce6fe4ed8 | 7628b23a81440834dac9aa629b3ea9165cc5c5a5 | /media.py | 0cee132c2410713d9c27a06eea0be271940b81d9 | [] | no_license | puisaha/Movie_Trailer | 078c1317578e1727aa86a656fa479210f97ef56b | ddf55473d8767ff0fdf29bbac2e668d160ce9d1b | refs/heads/master | 2021-05-12T08:54:23.981298 | 2018-01-14T18:47:52 | 2018-01-14T18:47:52 | 117,302,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | # This file defines Movie class which provide a way to store movie information
# Author: Amrita Saha
# Date: 01/14/2018
import webbrowser
class Movie():
""" This class provide a way to store movie related information """
# Description:
# This is constructor of Movie class
# Parameters:
# m... | [
"pui.amrita@gmail.com"
] | pui.amrita@gmail.com |
ba19d402cada443858f5c912e94740794ab239c6 | fd7473c2ae601add76525dd0c0c7da375189cfe9 | /neighbors2d.py | 408f86ec32af32424b2dab448ce77aa9b8b55b38 | [] | no_license | SlamminU/chem160module3 | 759794e7180749dac829f1e878c5fa18121fb859 | 93a26096a8dd9a2bc0e79d31ae1ab177074e51f4 | refs/heads/master | 2022-12-22T03:23:05.073053 | 2020-09-09T07:04:21 | 2020-09-09T07:04:21 | 294,030,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from random import choice
n=100
count=0
nocc=0
list2d=[[choice((0,1)) for x in range(n)] for y in range(n)]
for x in range(1,n-1):
for y in range(1,n-1):
if list2d[x][y]==1:
nocc+=1
neigh=list2d[x-1][y]+list2d[x+1][y]+\
list2d[x][y-1]+list2d[x][y+1... | [
"noreply@github.com"
] | SlamminU.noreply@github.com |
576e9d4e00c457925362b7811446d04872edd57c | 07271909bd7c0f78127c39509ea5b842dd4b65e3 | /logicallake/grammar/test/test_hana_sql.py | 4504bc86e196e6bd4ed4e5d6ebbf3bc9fd344024 | [
"BSD-2-Clause"
] | permissive | stewarg9/logicallake | 61e8cb8040f8682b0d4ca9da4a408841eb67fe2c | a5ac4d172b94a4bb8130545b6d41eebad60eb4b4 | refs/heads/master | 2023-01-28T16:55:22.838434 | 2020-12-07T21:31:03 | 2020-12-07T21:31:03 | 318,164,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,080 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 26 16:21:17 2020
@author: kbzg512
"""
import unittest
from tatsu import parse, compile, to_python_model
from tatsu.util import asjson
import tatsu
import json
GRAMMAR_DIR = "..\\"
#
#
# Things to be aware of...
# The granmar is case insensitive; it's mun... | [
"stewarg9@yahoo.co.uk"
] | stewarg9@yahoo.co.uk |
2a7cf01986d9df5b9680b2ea1ec075516674419f | 1e42fb25742cf029d6ad96242b1178f7d76add44 | /classes/api/BitAPI.py | 40e377a9eb8e6274a29f95dadd3bd269f0365ae0 | [
"MIT"
] | permissive | WongLynn/bitfinexbot | bfc3e707f7429be768dba7f3374009e0c407f685 | b7b12bbb2e48eaf0d4d92d2190f8f85f546e47cb | refs/heads/master | 2020-03-11T21:07:52.951966 | 2018-01-05T16:51:56 | 2018-01-05T16:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,318 | py | #!/usr/bin/env python
import requests
import json
import base64
import hmac
import hashlib
import time
import functools
class BitAPI:
"""
For reference and to make a valid code, im using code developed by dawsbot.
Check his repo: https://github.com/dawsbot/bitfinex
"""
def __init__(self)... | [
"rdenadai@ccuec.unicamp.br"
] | rdenadai@ccuec.unicamp.br |
4651ffff83608bc314d7fb43a722b4e68943837a | b188fc954db980188a362d853c237c4a8c742276 | /server/apps/budget/admin/transaction.py | a8685fa0e76e02c2e368bc604d37a303d2e668d5 | [] | no_license | vshagur/sibdev-practice-2021-project-python | 78081b35749c5d96f5bdd4f3e4fb016e22cbd3ed | 2c6d7877a78dd2d9505ba1bb3a75ea0cb3ab7bf7 | refs/heads/main | 2023-07-16T16:06:32.348534 | 2021-08-24T03:39:40 | 2021-08-24T03:39:40 | 399,317,220 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from ..models.budget.transaction import Transaction
from django.contrib import admin
@admin.register(Transaction)
class TransactionAdmin(admin.ModelAdmin):
pass
| [
"vshagur@gmail.com"
] | vshagur@gmail.com |
9c455ce4b8af925afea25a90680844bd0cd02e46 | 301b039050c00a9efa4f3a5635e8b633f8adf988 | /caffe2/python/layers/functional.py | 08612d21a4babfe8b412473834b03ea02a2621a1 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | sunpan822/caffe2 | 9704b6fe556d272fbedfd6edfdb796f6a8f02970 | a3c56d892eb85054b4e7cbd1cf0a0d07422ae796 | refs/heads/master | 2020-04-12T14:31:45.919799 | 2019-04-19T04:10:40 | 2019-04-19T04:10:40 | 162,555,100 | 1 | 0 | Apache-2.0 | 2018-12-20T09:14:48 | 2018-12-20T09:14:47 | null | UTF-8 | Python | false | false | 5,022 | py | # @package functional
# Module caffe2.python.layers.functional
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core, schema, scope, workspace
from caffe2.python.layers.layers import (
Mode... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
557f3838b0dc8bef75277c2e4dca2caff00cb413 | 78370c33a987d4c319b55fa8a698afd48f15d0aa | /lessons/admin.py | 5bb09113e7ea5258dc5ac9c76c8fd357a8334e07 | [] | no_license | liuzhenxin2/RuleOf72 | 6296e05a0351ce1af19d80e7b8d3ed64de9da943 | c80dce7dd3c5733a2b4aee81edd67dac9e11ae15 | refs/heads/master | 2022-12-24T02:17:57.733797 | 2020-10-04T18:06:12 | 2020-10-04T18:06:12 | 293,755,711 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.contrib import admin
from .models import Lesson, Sub_topic
admin.site.register(Lesson)
admin.site.register(Sub_topic)
| [
"liuzhenxin1@live.com"
] | liuzhenxin1@live.com |
0ba4c698d48293dfd250b0cf5dcc7f196103bfaa | d4850a40bc5dbebb33739f219fe35b02a12589db | /ceramic-master-beta/Ceramic/settings.py | bf60a93b017fde420d89dbfa6dc06571bc21599c | [] | no_license | kong9410/ceramic | ccd77ffa71a7309f922eb56dbaa6fa733a7af146 | 65ccd5b08128bbfeb070e03b308602b5377231e1 | refs/heads/master | 2022-05-26T13:40:34.053380 | 2019-11-07T15:26:49 | 2019-11-07T15:26:49 | 220,264,997 | 0 | 0 | null | 2022-04-26T01:25:52 | 2019-11-07T15:12:08 | HTML | UTF-8 | Python | false | false | 3,577 | py | """
Django settings for Ceramic project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"gnitsgogo@gmail.com"
] | gnitsgogo@gmail.com |
185b47c53fb33ce144d02c63d274d36c771c8b4e | f3caac4e79efe25e1db20c78f04c2e62e573aab2 | /projects/01_fyyur/starter_code/migrations/versions/bf9d672acc27_first_attempt_at_venue_genres.py | 3ae15b86b9b68727bf7ead80fca0505cd41b90f6 | [] | no_license | EsNFish/FSND | ced0b81ac4d2076abc038b6cfdb5f370627dc5a4 | 5cc8aee5cb7d8a032dbc4d84e630fba7deebf8f3 | refs/heads/master | 2023-05-08T13:49:21.239342 | 2021-06-02T22:37:31 | 2021-06-02T22:37:31 | 357,344,134 | 0 | 0 | null | 2021-06-02T22:07:32 | 2021-04-12T21:28:37 | Python | UTF-8 | Python | false | false | 887 | py | """first attempt at venue genres
Revision ID: bf9d672acc27
Revises: 170e9f5a7391
Create Date: 2021-04-14 16:42:41.107310
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'bf9d672acc27'
down_revision = '170e9f5a7391'
branch_labels = None
depends_on = None
def u... | [
"esnfish@gmail.com"
] | esnfish@gmail.com |
1de7c275d0299c2c4771f2e76446f0388e3b6064 | 57dbcfe5fe149b5353d42d687ebacfee36f16551 | /sambam/sam_strip_tags.py | 07dd6983bcdc366b975a62036992193da80974d7 | [
"MIT"
] | permissive | peterjc/picobio | 74d3f570a6344dc3fbd3ddca46d65c4292ce0ee7 | 63a5f8b5670afc3680bdeac0d9663d8fcbe904c1 | refs/heads/master | 2023-09-06T04:26:31.955632 | 2023-08-31T14:12:25 | 2023-08-31T14:12:25 | 2,184,466 | 34 | 14 | null | null | null | null | UTF-8 | Python | false | false | 3,572 | py | #!/usr/bin/env python
"""Python script to remove tags from SAM/BAM files.
This script is designed to be used as part of a Unix pipeline. It
takes as optional command line arguments a white list of tags to
preserve (or a black list of tags to remove). It reads SAM format
data from stdin, and writes SAM format data to s... | [
"p.j.a.cock@googlemail.com"
] | p.j.a.cock@googlemail.com |
624d54fc452b022fe7756a520b32eb2daf1ccb3b | 3045cc6ae29a6bd01b76c453b6084f22378bc5f9 | /Fibot/api/data_types/lecture.py | 7d638bf7274131dc2c682a8768b6ad6e3d0be3b5 | [] | no_license | caoxu915683474/FIB-Chatbot | f425c6f9da2fb49dc726a790ea408a66020a1663 | beb0ab40d37bbbc9369236bcc9a5ac98fce808c9 | refs/heads/master | 2021-04-06T05:34:34.098658 | 2018-02-21T19:22:54 | 2018-02-21T19:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class Lecture(object):
""" Helper class for actions
Parameters:
data(:obj:`dict`): Information of a lecture. Example:
{
"codi_assig": "WSE",
"grup": "10",
"dia_setmana": 2... | [
"victorbusque@gmail.com"
] | victorbusque@gmail.com |
946a2d515b6d377f0bab4dc01a5dfc573d4295b6 | b8088fa77c164e9c1af30862185232d3ed47c58c | /mapper.py | 4cd75ef6e0859c68e505c918bdaff77c05121b87 | [] | no_license | 2russellsmith/cs462Lab4 | f1ec0c6e1bd86ff3ebbbc425366f95a2d8c2fa71 | e3829b6a177751243659f3910eafbcc92b7b75d7 | refs/heads/master | 2020-09-10T15:54:13.142963 | 2016-08-25T18:59:58 | 2016-08-25T18:59:58 | 66,584,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | #!/usr/bin/python
#
# Adapted from script by Diana MacLean 2011
#
# Mapper script adapted for CS448G from Amazon's example: http://aws.amazon.com/jobflows/2273?_encoding=UTF8&jiveRedirect=1
#
#
import sys
import re
stopwords = ['i','me','my','myself','we','our','ours',
'ourselves','you','your','yours','yourself','y... | [
"2russellsmith@gmail.com"
] | 2russellsmith@gmail.com |
074889911eebba54b35240e90b3e3237c5da2856 | dab8aafc0f4fcc22c1fb7ec3bc69cb58eb93692c | /mysite/settings.py | 42ec093fc747f47210c97dc6a777a8fcab670c64 | [] | no_license | nayans99/my_first_blog | 7cc35c9038246f28e1d2b98cfa9ea5a40406268a | 17d4bf8e505ac19e0e75b0d355eb0dcaa054d764 | refs/heads/master | 2020-06-08T11:10:24.064124 | 2019-06-22T10:14:15 | 2019-06-22T10:14:15 | 193,218,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,226 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.13.
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 os
#... | [
"nayansabnis99@gmail.com"
] | nayansabnis99@gmail.com |
6fa53185e2e05b9e6e6db365d3d3defaf82130cf | f8e64dd069b2d65f1b9af53e03c42d97301e9a1d | /apps/currency/forms/fields.py | 9c65327d4b8701519fd5e5bf2100f8c390ed6e36 | [] | no_license | grengojbo/django-currency | 8daef53e442d7409f02c68dec48ff535b1712377 | 26e26cfb09ae8e62851a81bc8d821e1530eef20c | refs/heads/master | 2021-04-12T04:32:53.928776 | 2010-04-28T17:00:39 | 2010-04-28T17:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | from django.utils.translation import ugettext_lazy as _
from django import forms
from widgets import InputMoneyWidget
from currency.money import Money
from currency.models import Currency
__all__ = ('MoneyField',)
class MoneyField(forms.DecimalField):
def __init__(self, currency_widget=None, *args,... | [
"oleg.dolya@gmail.com"
] | oleg.dolya@gmail.com |
703921458c0f564aaa1f58619aad6a1b66d47297 | 3fb3038f212d68550836d1956515da8cbccbdf8e | /products/migrations/0001_initial.py | f90d612c99f51ebf6f7a9e485beb3139dadbd8ca | [] | no_license | ivanbat1/mysite | 9e8debb6ec713b6148fa1dd6b50e4f768c1c29df | 8ea492c22c0b8c3b340f79812d39320f61308627 | refs/heads/master | 2020-03-19T04:18:41.227917 | 2018-12-27T12:51:55 | 2018-12-27T12:51:55 | 135,815,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,386 | py | # Generated by Django 2.0.5 on 2018-05-23 19:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
... | [
"baturin.ivan9@gmail.com"
] | baturin.ivan9@gmail.com |
b59c5b90bec745c23ed7e23d949ecbabbe82375a | 4762b15498e642b39edfff3745e9ea134f081893 | /workshop_admin/moodle/migrations/0002_statement.py | 302a1756920a5a26ec21dd32551a7dd89f96533f | [] | no_license | Informatinks/informatics-back | d1d29e7297e547a8749b8da4d6c70565495fc509 | be298f72c072023be004895faf88cff9806650f6 | refs/heads/master | 2022-12-10T05:33:34.637043 | 2019-11-01T16:29:12 | 2019-11-01T16:29:12 | 171,288,054 | 0 | 3 | null | 2022-12-08T04:53:26 | 2019-02-18T13:20:53 | Python | UTF-8 | Python | false | false | 671 | py | # Generated by Django 2.2.1 on 2019-07-02 11:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('moodle', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Statement',
fields=[
('id',... | [
"n.pakhtusov@tinkoff.ru"
] | n.pakhtusov@tinkoff.ru |
c97367ed534b90c843c6311c841f761386ab1f08 | 0c5aab3ed30f00c8dbbf95a95dca2160b360a599 | /ecommerce/form.py | 17c701d38230436eb713b5d2d688f9956c4493db | [] | no_license | 13alireza77/ecommerce | 7fa0bcd16d9e809ef14167edc8910868624116ce | e552a788ce2af5a66934ef5fb5fc48d75a887c5e | refs/heads/master | 2020-04-24T22:01:07.458180 | 2019-02-24T04:42:12 | 2019-02-24T04:42:12 | 169,950,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | from django import forms
from django.contrib.auth import get_user_model
User = get_user_model()
class contactForm(forms.Form):
fullName = forms.CharField(widget=forms.TextInput(attrs={"class": "form-control", "placeholder": "Full Name"}))
email = forms.EmailField(widget=forms.EmailInput(attrs={"class": "form... | [
"13alirezaalidoosti77@gmail.com"
] | 13alirezaalidoosti77@gmail.com |
be607de4c4d3d9045d21c9098fef2bd6258ce7a9 | cd77de4a0c3796c1cf7e9508fdd9e02bb6b7c81b | /products/urls.py | 9a1a694e1031a564596f65efd9a83479392a2036 | [] | no_license | Sohelll/ghostownstore | 5569dba1c7cf044cbc04f8a9ee422599d30970ef | dfa373c4fa6c394e7e07619e63106da4d17289c6 | refs/heads/master | 2020-04-16T03:19:05.646820 | 2019-01-24T13:21:19 | 2019-01-24T13:21:19 | 165,227,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='products'),
path('search', views.search, name='search'),
path('<int:product_id>', views.product, name='product'),
path('category/<int:category_id>', views.cat_wise, name='cat_wise'),
path('checkout_single/<... | [
"shaikhsohel.011@gmail.com"
] | shaikhsohel.011@gmail.com |
118e3b71b782fa295f2a247d81a815d8673f60c5 | b4982d7ffb9e65db8432e7728f89fa2dd4878aa6 | /Object Oriented Concept/encapsulation.py | f8aed772cf8b60e7fcaabebf4a62a52ede6aebd2 | [] | no_license | anupjungkarki/30-Days-Python-Challenge | 1d8e794235ac60e098f704cefa2c4a461134e8a4 | 96be38590a159d59397b122f8ee171574f5a556c | refs/heads/master | 2023-06-04T13:24:16.250487 | 2022-12-05T09:46:26 | 2022-12-05T09:46:26 | 327,277,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | # Encapsulation is one of the method of the fundamental concept in object oriented programming(OOP).Other programming have access specifier
# to handle with the private data but in python private data is easily access from the outside of the class so Encapsulation helps to
# restrict to access data and variable outside... | [
"anupkarki2012@gmail.com"
] | anupkarki2012@gmail.com |
009c97483cd7634d38ffeac4a1744beaae479f57 | ae7d5d11351af9201ce6181c48b8c60363c7ed00 | /packages/data/setup.py | 28faa87c3d988024ce6993d21ad79eeb365f0a85 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | natefoo/galaxy | 818037d03f39ccfb3714c7e784fd64d7ad8f4d2e | 64150c5bd803e75ed032e9f15acd003bae92b5ef | refs/heads/master | 2023-08-17T02:57:02.580487 | 2020-03-26T13:33:01 | 2020-03-26T13:33:01 | 31,212,836 | 2 | 1 | NOASSERTION | 2019-04-25T12:30:28 | 2015-02-23T15:01:46 | Python | UTF-8 | Python | false | false | 3,207 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import ast
import os
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
SOURCE_DIR = "galaxy"
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('%s/project_galaxy_data.py' % SOURCE_DIR, 'rb') as f:
in... | [
"jmchilton@gmail.com"
] | jmchilton@gmail.com |
bc5318fa1d6c7db54b728d4678f3d5df28b75c30 | fe42aa7f3729e87ec486552b767f7049ff50ef12 | /ILLUSTRIS/CREATE/CREATE_SUBHALOS_HYDRO.py | d00533238addc36157d6bcba75f645a0ba508359 | [] | no_license | aishwaryasrivastava/AstrophySURP | 2b49f97d267a7d743cca1516044a51db9c682251 | 93546a646eb661be0b3e703f7cf689e010214068 | refs/heads/master | 2021-01-21T21:09:56.468433 | 2017-07-24T15:14:52 | 2017-07-24T15:14:52 | 92,312,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,287 | py | #--------------------------------IMPORTS-------------------------------#
import numpy as np
import illustris_python as il
np.seterr(divide = 'ignore', invalid = 'ignore')
import sqlite3
import sys
#--------------------------CONSTANTS-----------------------------------#
# Multiply the mass in Illustris catalog with this... | [
"noreply@github.com"
] | aishwaryasrivastava.noreply@github.com |
f2d1848cd8952136feb770854fcef44e99792594 | 5550bd31a3f039d98d080d40dc1a28efde5b1297 | /worksheets/12 - Source Files/12q8.py | 4bb781e344a97771e9a33546919eefa7397e48c9 | [] | no_license | ceucomputing/olevel | f3bfb36ce3ccfa720aa6bcf4611639e8bcdd7bd2 | 71865c2109886b3c7fe66be742c621f11000c4e0 | refs/heads/master | 2023-01-03T02:00:18.794288 | 2020-10-27T03:58:41 | 2020-10-27T03:58:41 | 66,807,322 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | g = 9.8
m = float(input("Enter the object's mass in kg: "))
h = float(input("Enter the object's height in m: "))
pe = m * g * h
print("The object has " + str(pe) +
" J of gravitational potential energy.")
| [
"jiunwei@gmail.com"
] | jiunwei@gmail.com |
791b3a07d266c9d2ec5209ea3c1e8bddf037739b | 9c79d6517bafd1ec7540a864f2bfb31fe02d1a78 | /scripts/plot_spectral_bands.py | 7ab2d4a882f683f1fe0918a73c121f4bf9625a08 | [
"MIT"
] | permissive | jhoule42/lamps_conversions | 2d512ef2ce602447a72a3d20b51e380a778cb77e | d166f39b9669142ae45f5f5a84f2f7d70cb944c0 | refs/heads/main | 2023-07-13T11:37:28.221811 | 2021-08-19T18:36:02 | 2021-08-19T18:36:02 | 398,003,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # Script pour plotter les
# Auteur : Julien-Pierre Houle
# Importer les librairies
import numpy as np
import matplotlib.pyplot as plt
import pytools as pt
import MultiScaleData as MSD
import hdftools as hdf
path = "git/Illumina-scripts/Spectres"
# SPECTRES d'Integration
scoto = path + "/scotopic.dat"
JC_U = path + "... | [
"noreply@github.com"
] | jhoule42.noreply@github.com |
b54b585317c3cbdc1c1f9f7667ef9ec3526dbb4e | f4b6422703af7534867f90f2902aa3baa7b72416 | /2018/csiectf/hw5/lab3/lab3.py | b77153baa9653db6b42d406aee3da7f8c3490ba3 | [] | no_license | b04902036/ctf | d1eac85b915057e0961ad862d7bf2da106515321 | fac16cd79440a9c0fc870578d5c80b1491bb8eae | refs/heads/master | 2020-03-18T16:23:02.321424 | 2019-11-22T03:34:25 | 2019-11-22T03:34:25 | 134,962,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | #!/usr/bin/python
from pwn import *
context.arch = 'amd64'
host = 'csie.ctf.tw'
port = 10131
#host = 'localhost'
#port = 4000
r = remote(host, port)
raw_input('#')
pop_rdi = 0x0000000000400883
pop_rsi_r15 = 0x0000000000400881
leave_ret = 0x0000000000400818
read_plt = 0x400610
puts_plt = 0x4005e0
puts_got = 0x000000... | [
"b04902036@ntu.edu.tw"
] | b04902036@ntu.edu.tw |
2b7533e5b81c60de7c5946f4f6c3ef4026c3dc6b | 5a35b4e745027c8631d6931dc5e1f8aa7c43915b | /product/migrations/0005_auto_20180704_1749.py | 0394c14b4fe30093fe98153489b0ddf90c41ba09 | [] | no_license | lucasLB7/mybus_systems | 44a336c61a2a2de7e461ae82aa37b9f28c24cdfb | aed761bddb26b0b6042c485f47539a404461d4ac | refs/heads/master | 2020-03-22T05:50:24.141316 | 2018-07-06T16:46:41 | 2018-07-06T16:46:41 | 139,593,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | # Generated by Django 2.0.7 on 2018-07-04 14:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0004_laminateflooring_date_of_arrival'),
]
operations = [
migrations.AddField(
model_name='laminateflooring',
... | [
"plucaslambert@gmail.com"
] | plucaslambert@gmail.com |
8eec6af91bf6913d22c03c800138aa02e775746e | ad4137e1ef30cdab7a8179b4ee7d48d1cdad6ce6 | /Menu.py | ac869bc6f6c1fe6e9c82ca26470ec4a6eca073a0 | [] | no_license | JulianMarsal/SopaDeLetras | 59f3441388839131f2a606da7a44dc958141c8bb | 4accbd8cda9f29c9bfd3f08d1cb6d726255b8135 | refs/heads/master | 2020-05-29T12:55:31.918901 | 2019-10-07T00:21:09 | 2019-10-07T00:21:09 | 189,144,070 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,896 | py | import PySimpleGUI as sg
import sopadeletras as Sopa
import constantes as const
import configuracion
import comprobacion as ingreso
from importlib import reload
import json
from funciones import leer_archivo
def promedio_temperatura():
oficinas=leer_archivo("json files/datos-oficinas.json")
config=leer_archivo... | [
"noreply@github.com"
] | JulianMarsal.noreply@github.com |
5ff40e3149ac45dd8fb3384d8481fc3795f2c5e9 | e0d0121d927d1b9aac42308728748f796f53cbe1 | /src/script/reflection.py | 7dda843f4cb6b5b37f0a26c22d13ce26067babde | [] | no_license | 5255b64/PyAnalysis | 9a5e11b4ece0c2ed9dd4b12168f990072aa4db25 | cb6501136cf92232aa64d18080bb69a0094f097d | refs/heads/master | 2022-12-18T13:56:25.557086 | 2020-09-22T05:22:56 | 2020-09-22T05:22:56 | 295,336,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | import csv
from decimal import Decimal
def run(input_csv_file_addr: str, output_csv_file_addr: str):
with open(input_csv_file_addr, 'r', encoding='utf-8') as f_in:
with open(output_csv_file_addr, 'w', encoding='utf-8') as f_out:
f_out_csv = csv.writer(f_out)
f_in_csv = csv.reader(f_... | [
"5255b64@gmail.com"
] | 5255b64@gmail.com |
d72a1163acfa6e897a9e131e9d3523083253254c | 0268f4c895f9f54e93fc7e3d2b0334206a4e6d9e | /day14/03-tk.py | a2ce5018023977ebed3408b81989034151538d9e | [] | no_license | zhangzongyan/python0702 | adebccacf26e300ec7a681bdf0f7ab7bdf228eeb | 7dcb6133d241fdf97b0812b9f25933ab389d2663 | refs/heads/master | 2020-03-22T21:05:51.218502 | 2018-08-15T09:54:42 | 2018-08-15T09:54:42 | 140,656,620 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py |
import tkinter as tk
# 按钮触发的方法
def click_button():
print("已点击")
def click_button2():
print("再次点击")
root = tk.Tk()
root.geometry("400x600")
root.title("这是一个测试窗口")
#root.minsize(width=400, height=300)
#root.maxsize(width=400, height=300)
#root.resizable(width=0,height=0) # width 0不可伸缩, 1可伸缩
'''
# 按钮类Button
bu... | [
"zhangzongyan@uplooking.com"
] | zhangzongyan@uplooking.com |
01676da4dc26233e3f4a9e9dd6096a563d95e76b | d728d6d47080ca37b0a6e8ded1baf63fe1f9e929 | /vision/datasets/VIRAT_DataLoader.py | e51b0f497b18e219a83eae30afecf4f6d01694f9 | [
"MIT"
] | permissive | Jwy-Leo/SSD_Detection | 8500de891ec4fa8b0eb7c791f16ae14d9cfd37a8 | 2d19a36ab6815a8546b3730eb6a6b1810f1df708 | refs/heads/master | 2020-07-06T06:21:57.150154 | 2019-08-17T19:09:50 | 2019-08-17T19:09:50 | 202,921,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,735 | py | import torch
import os
import sys
import numpy as np
import pickle
import torch.utils.data as data
import glob2
import logging
import cv2
logging.basicConfig(stream=sys.stdout, level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
class VIRAT_Loader(data... | [
"s0936100879@gmail.com"
] | s0936100879@gmail.com |
f0e927d2314e78e9861ea2b166aa51741f5e0816 | 648796da46791794ee5de7a8004da437c840323e | /pipeline_update/pipe_tools.py | 7c911ec5f4ef1987dbd89864e8381f7f40df112d | [] | no_license | YulianaGomez/ml_pp | 86530a2ee26bb2f39117ec6a458368a5c1c74104 | 3891350e1ef6fbf2fd29a792387182601f94c250 | refs/heads/master | 2020-03-07T19:09:25.958025 | 2018-05-25T22:34:28 | 2018-05-25T22:34:28 | 127,663,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,470 | py |
import numpy as np
import pdb
import itertools as it
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.dates as dates
from sklearn.metrics import f1_score
import pandas as pd
import os
import sys
import datetime
import glob
import re
import graphviz
import seaborn as sns
import numpy as np
from scipy... | [
"ygomez297@gmail.com"
] | ygomez297@gmail.com |
7272ed278e983c56a0003cccbd7ac2dbb0ddce94 | 86ca276527868f0eebc98d2f72f0ea8804defb47 | /python/MIS-5400/exam1/talk2.py | b355cd16d7698af04b1efacdf0ae078d0d805146 | [] | no_license | RussellMoore1987/resources | 73cacfc17658ece645316a26084a4a49aca928d2 | 4876813fd7f29701984b25e651189ad363049d43 | refs/heads/master | 2023-08-09T06:49:21.869110 | 2023-07-27T16:02:42 | 2023-07-27T16:02:42 | 151,770,329 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | # Write the following code in a .py file and upload it:
# * to run: python python/MIS-5400/exam1/talk.py
# Define a function named "talk" that accepts the following parameters:
# name - required
# age - optional parameter - default value should be 21
# occupation - required parameter
# In the body of the function do... | [
"truthandgoodness87@gmail.com"
] | truthandgoodness87@gmail.com |
15a05b515ac2a5fa114c23136a7a3cd7a6f74e1d | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/clips_pattern/pattern-master/pattern/text/de/inflect.py | 69c40f1e7abcdb645f18e27579ac930f4b905f6d | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 29,115 | py | #### PATTERN | DE | INFLECT ########################################################################
# -*- coding: utf-8 -*-
# Copyright (c) 2012 University of Antwerp, Belgium
# Author: Tom De Smedt <tom@organisms.be>
# License: BSD (see LICENSE.txt for details).
######################################################... | [
"659338505@qq.com"
] | 659338505@qq.com |
93f89e660325eefbc7ce9cfde9dc271e5890cce4 | 878b78e4b30b1c8e1ece2441669145e131622248 | /gslb/api/v1/__init__.py | 1172bb83b3423acdba17807840ba715be7911e61 | [
"Apache-2.0"
] | permissive | khgandhi/gslb | 1665bfd13d4c0bb7c01f023f6aa4ac51810113e9 | a4e33452fa809d7699a6d6377f873fc4e73e2a32 | refs/heads/master | 2021-01-23T21:27:47.180638 | 2015-08-25T03:16:25 | 2015-08-25T03:16:25 | 40,106,674 | 0 | 0 | null | 2015-08-03T05:31:34 | 2015-08-03T05:31:34 | null | UTF-8 | Python | false | false | 84 | py | __author__ = 'kugandhi'
"""
This module implements the v1 API controllers.
"""
| [
"kugandhi@ebay.com"
] | kugandhi@ebay.com |
ea6625719c5ac7b9e768344b7ea249f8faaf371b | 8df1c9bc047eee03e465df9872261e6984f3e175 | /test/language-features/assignment-simple.py | e1baec4a4acc4e004349252b2863ad3065896cea | [] | no_license | jstroem/TAPY | fbd82c2b3edfcd41ac9aaf2c14343b29fe70bc55 | 0989cb34c309d33f81bca5aa768009a681659b6a | refs/heads/master | 2021-01-23T03:53:12.018466 | 2013-07-01T14:10:37 | 2013-07-01T14:10:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13 | py | a = b = c = 0 | [
"christofferqa@gmail.com"
] | christofferqa@gmail.com |
c0c355f5a044a1f037795a602872e746d6fa3b11 | 1259bd44a79ada24a6ebc293eccac08e7aa255af | /app.py | 42f0a0d62ad452049ffa602fbea0821076682fcb | [] | no_license | surya739/app | a8558d01423b31f4ff172ae1e8bfc26877b9ef39 | 4600412d5300ff129f38d8f9791eaddf5bded8b0 | refs/heads/master | 2023-01-30T16:16:17.348418 | 2020-12-10T11:02:34 | 2020-12-10T11:02:34 | 320,240,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | from flask import Flask, render_template, redirect, url_for, session
from flask_mysqldb import MySQL
from flask import json
from flask import request
import MySQLdb.cursors
import re
app = Flask(__name__)
app.secret_key = 'your secret key'
app.config['MYSQL_HOST'] = '127.0.0.1'
app.config['MYSQL_USE... | [
"70879421+surya739@users.noreply.github.com"
] | 70879421+surya739@users.noreply.github.com |
f3c10a8701813ee291c2d173a9b909c955eb29cc | 71046fbb9db7ee7948832dd3c7a70eec3dcabfa3 | /app.py | 13cd777f29e3fb5a653a8602f7063b5143f65cf9 | [] | no_license | vvs1999/Secure-data-encryption-and-decryption-using-Crypto-and-Stego | 317de517de773f060b5d62f3a87bf55a436fc2d6 | d77c75271a380c46f0c0637bca67d2ce86a3567c | refs/heads/main | 2023-02-12T18:52:54.889055 | 2021-01-08T06:21:18 | 2021-01-08T06:21:18 | 327,815,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | from flask import Flask, render_template, request
app = Flask(__name__)
@app.route('/')
def home():
return render_template('home.html')
@app.route('/Encryption')
def encrypt():
return render_template('Encryption.html')
@app.route('/Decryption')
def decrypt():
return render_template... | [
"noreply@github.com"
] | vvs1999.noreply@github.com |
727bd531563b84fb2e2bddb7cd11d14b54aa1d1e | 636879d883c94f37075f3871cd7f9e1d9de9d75e | /snake.py | 4ee74adab22fb01034ad8237da72c4b119a3fc11 | [] | no_license | MdNaina/python_random_projects | 61e6eccb3a3953a55ad6f88e0e6b0ff6010448ad | a052dd07098ebb3fcc574277b8f6996ba49aa67e | refs/heads/main | 2023-02-11T23:13:53.983102 | 2020-12-31T11:31:41 | 2020-12-31T11:31:41 | 325,773,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | import pygame
import random
pygame.init()
red = (255,0,0)
blue = (0,0,255)
green = (0,255,0)
white = (255,255,255)
width = 600
height = 600
dis = pygame.display.set_mode((width,height))
pygame.display.set_caption("snake game")
box = 30
clock = pygame.time.Clock()
score_font = pygame.font.SysFont("bah... | [
"naina.stnm@gmail.com"
] | naina.stnm@gmail.com |
1c8662f885da78193eaf3178a82cdf91656f2dbf | a57fee81833a90828253b6590eb61dca460c408a | /view.py | b89c85e0bcb64ddd9f7722e7dbc085c289f0cc53 | [] | no_license | firststef/RNBreakout | 6c70f13a3e6b816632555ebc0d2ce865f6d641cb | dab308243e389ecb87d7f0d18bc5aaa2b78e0d1c | refs/heads/master | 2023-02-11T22:18:37.743788 | 2021-01-05T17:34:07 | 2021-01-05T17:34:07 | 321,891,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | from datetime import datetime
import gym
from time import sleep
import random
import numpy as np
import tensorflow as tf
from tensorflow.keras import Model
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Input
from tensorflow import keras
env = gym.make('Breakout-ram... | [
"noreply@github.com"
] | firststef.noreply@github.com |
7109aa376c0a9a18a06cb341979796f67349346b | 271cbadd98ad60e8c3609b1d5422c1b49b9a8347 | /turtlebot2_wss/turtlebot_simulation/build/vrep_simulation/catkin_generated/pkg.develspace.context.pc.py | 0592858c682d9ee83136524c7b345541f1f49b7e | [] | no_license | yxl-loading/ROCO506Z | 9a5a16ebb839b1424bf9b9be2c8358d5211d9ca4 | cd16e8a2428db3a3b8fea1534120d0affc2c262b | refs/heads/master | 2022-04-19T02:23:30.942440 | 2020-04-22T19:03:43 | 2020-04-22T19:03:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "vrep_simulation"
PROJECT_SPACE_DIR = ... | [
"youssefhindawi@hotmail.com"
] | youssefhindawi@hotmail.com |
808043585a57418013b8485f97a036e010cf856a | cbd9b30d155cb283a1cb9bf7c2410c5db1110e53 | /backup/drive/Client.py | 2fea6535072bcbf6ab743c679c8e657b1d77aa6d | [] | no_license | DominikHenkel/Self-Driving-Car | d3f4cd081187a01a2ca55fb0e75d44476423578a | cb0faff9a6abab79be1c1fffa8bea605152dca5b | refs/heads/master | 2020-03-22T08:18:19.633678 | 2018-11-16T22:55:08 | 2018-11-16T22:55:08 | 139,758,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | import time
import socket
client_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
client_socket.settimeout(10.0)
message = b'CONNECTED'
addr = ("localhost", 8000)
start = time.time()
client_socket.sendto(message , addr)
try:
while True:
data, server = client_socket.recvfrom(131072)
end = ... | [
"sup4tdc@yahoo.de"
] | sup4tdc@yahoo.de |
c3d0c6798414ea088eb7b3efc5bd017d1d44eda3 | 55267c377da7a2a6676978d958e07c07bfc9d9b6 | /nbutil.py | 395b05b0e7c54b1f0b25ec174c5bb9c33908ef84 | [] | no_license | larsks/netbox-data-scripts | 54916afab045bed663c2a08ca90f102bf7efeeaa | 91aa6554aa815bdfc894a500037e942962c16705 | refs/heads/master | 2023-01-11T16:50:50.551000 | 2020-11-11T22:33:14 | 2020-11-11T22:33:14 | 309,502,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | import click
import json
import logging
import pynetbox
import resources
import netbox
LOG = logging.getLogger(__name__)
logging.basicConfig(level='DEBUG')
@click.group(
context_settings=dict(auto_envvar_prefix='NETBOX'))
@click.option('--url', '-u')
@click.option('--token', '-t')
@click.pass_context
def main(... | [
"lars@redhat.com"
] | lars@redhat.com |
3045020f1542290997f407f8f8b43425a5a780ce | 4f098c687b0f067e31c6998cae48c4d8007450e1 | /oldzhifu/oldzhifu/settings.py | 91d4ce81a700df95d9cd4dccdc0c3c9f5a27ed2a | [] | no_license | wkongxiaojie/Test | 83ea1a3c1a89e7553b8ade98a3182754af6da266 | f3cf98baf512516962e312152a849452011b4556 | refs/heads/master | 2022-01-26T18:57:08.525899 | 2019-05-15T06:34:57 | 2019-05-15T06:34:57 | 186,727,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | """
Django settings for oldzhifu project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
... | [
"713042132@qq.com"
] | 713042132@qq.com |
2157fa5f00a7ea2f2da78c201b0648401aa85d19 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_attending.py | 42c967da90aa064ad1ee81dd35207c570ee2ae1f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
#calss header
class _ATTENDING():
def __init__(self,):
self.name = "ATTENDING"
self.definitions = attend
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['attend']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e25cf0d305a146cf875a01066af4a033c3902e8f | 99d889a460e1fea2bbdd8ff15b8e45ed9dd2acf7 | /coreproject/coreproject/urls.py | fa5725b4abb890511bf6c3a398e30b3661ca3d1d | [] | no_license | BregenzerK/CustomizedERP | f7f42080140590c57e5a0d2004c0e64388e8cd31 | f048ed0a60255cf5538d1de0e1e2e6069c97446b | refs/heads/master | 2021-01-10T18:52:03.739254 | 2017-12-10T12:01:50 | 2017-12-10T12:01:50 | 28,302,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,445 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
url(r'^$', 'coreproject.views.home', name='home'),
url(r'^kunden/create', 'kunden.views.create_with_account' ),
url(r'^kunden/overview', 'kunden.views.get_overview_filter'),... | [
"katja.bregenzer@bridging-it.de"
] | katja.bregenzer@bridging-it.de |
810c9a802e3d4c278f1c6108f938d8437907212d | 85da1d98e78fd2307f7077fa44ca2a3f08ac1e0e | /ExampleWidget/views.py | 86304c3fa653348dc7f61df215a7a75315f49ea9 | [
"MIT"
] | permissive | mcgoddard/example-widget | 532bfdaac5efd4c9778b57e6e91c8c2b3254ebc0 | 86c038ffcaa749d1b57a70c48c0bed81a4ce62b4 | refs/heads/master | 2021-01-10T07:28:59.632901 | 2016-04-03T20:27:17 | 2016-04-03T20:27:17 | 55,367,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | """
Routes and views for the flask application.
"""
from datetime import datetime
from flask import render_template
from ExampleWidget import app
@app.route('/')
@app.route('/red')
def red():
"""Renders the red page."""
return render_template(
'red.html',
title='red page',
)
@app.route('/... | [
"mikeygiom@gmail.com"
] | mikeygiom@gmail.com |
4126cae3139385d9130402aa99dcea5f4d49447a | eabc369a48d52a2f678794857738dbe859459261 | /app/utils/general.py | 29da0d161e92566733ebcd7da5c0c2b62cdc34c8 | [] | no_license | datawizzards-za/energyspazr | a6ea1ded17f2657474e906ad45194baa7c818b06 | cedfd99302b65a1067a78589a8f678e103e0d885 | refs/heads/master | 2021-12-15T13:56:11.503400 | 2017-08-21T01:06:19 | 2017-08-21T01:06:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from enum import Enum
class SIRole(Enum):
SUPPLY = 1
INSTALL = 2
BOTH = 3
| [
"adlaba@csir.co.za"
] | adlaba@csir.co.za |
99cb91a253228dbd5578a98ab5fdf1b02c43fe6e | 05eef27d0bb309b7596b405e429c2014c6a2d6de | /Random/sco.menu2.py | f95e6d4ca0a5be12dbdc6d4e4b049fda562669e2 | [] | no_license | vincenzo-scotto001/Python | 150981bc165f1308395206e0a33a9018400effc3 | d88f5b9a191689ab9fd8775bab18ddb30180e32a | refs/heads/master | 2020-04-04T06:54:35.252663 | 2019-09-11T14:10:03 | 2019-09-11T14:10:03 | 155,761,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | # Menu driven problem with two programs by Vincenzo Scotto Di Uccio
import math
import random
INTEGER = "1"
FALLING_DISTANCE = "2"
FALLING_DISTANCE_2 ="3"
STOP = "4"
def main():
x = 0
while x != STOP:
valid = 0
display_menu()
x = input("Enter your number(1-4): ")
... | [
"noreply@github.com"
] | vincenzo-scotto001.noreply@github.com |
5e6113a805693ced86ee2ff949b681a5f7303780 | 9142be77c2453a6631335832e960aaafbac6abf5 | /sickle.py | f8fc8e9b00191d64b356fd4fedcfdb14e80aec4c | [] | no_license | 1sn0m4d/Sickle | f9a4ceb924bda24cddc86defbedeca616e003752 | 4d3691b5556cb9e1364f225aa239e3898bacf2e8 | refs/heads/master | 2020-05-25T02:05:48.243644 | 2019-05-17T05:18:37 | 2019-05-17T05:18:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | #!/usr/bin/env python3
from Sickle import __main__
__main__.entry_point()
| [
"mvalen1997@gmail.com"
] | mvalen1997@gmail.com |
057b708cf69ba173fa400d3278be66d00cb31bc5 | 1985e2e8d817b9f1a0019d76fa86cd5866b3c58e | /blink_mouth-nn.py | ff41dafb6992e6e0c6176d3a0495bced5331142f | [] | no_license | Surya-Narayan/ADAS | 32754917cf4455d7dad154426a14a8cf995adadf | c517b142acb7bbed63b1e1872c02bc46cfae6b9f | refs/heads/master | 2020-04-19T19:08:29.951280 | 2019-04-29T16:25:44 | 2019-04-29T16:25:44 | 168,380,555 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,442 | py | # USAGE
# python blink_mouth-nn.py --shape-predictor shape_predictor_68_face_landmarks.dat --video cam.mp4
# python blink_mouth-nn.py --shape-predictor shape_predictor_68_face_landmarks.dat
# Epoch 5000 : cost = 5030.34 W = 1.5330261 b = -9.608036
# import the necessary packages
from scipy.spatial import distance ... | [
"noreply@github.com"
] | Surya-Narayan.noreply@github.com |
b14c2b98a07fad5acc877d946f624a0191ab7c48 | 3cfd5edbacb48d5197d709f52f77433194cedf2a | /app/middlewares/acl.py | 72dd97eb8c38bb3d704106b06790ff099a0bf2a5 | [] | no_license | pikoUsername/A-Search | 1ebb3062a930225cc3a7e5a515f77371aed862b6 | 59377c4e8cb6d0af09375aca1c03f35c371a212f | refs/heads/master | 2023-02-18T19:10:01.007817 | 2021-01-18T14:10:48 | 2021-01-18T14:10:48 | 325,986,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | from typing import Optional
from aiogram import types
from aiogram.dispatcher.middlewares import BaseMiddleware
from ..models import dbc, User, Chat
class AclMiddleware(BaseMiddleware):
async def setup_chat(self, data: dict, tg_user: types.User, tg_chat: Optional[types.Chat] = None):
user_id = tg_user.i... | [
"galymzhan.amantaj@gmail.com"
] | galymzhan.amantaj@gmail.com |
63b8925658c1f05ca2b3c52b232b086acf5307c0 | f2b5889d73cc9fcfd58a2dc807253bd4796849b5 | /naginpy/pipeforward.py | a4893a4b1d3370e7b48d50c402601de681886f75 | [
"MIT"
] | permissive | dalejung/naginpy | e290cb2d26728c625d9b4199dbf1956fe1f6a0c9 | bbc2b380a278a129449ee170fb22efa7f687b6e8 | refs/heads/master | 2020-12-25T18:17:16.498018 | 2018-08-19T18:14:12 | 2018-08-19T18:14:12 | 23,586,699 | 4 | 1 | MIT | 2018-08-19T06:29:59 | 2014-09-02T16:40:21 | Python | UTF-8 | Python | false | false | 419 | py | """
df = value %>%
sum %>%
filter(is_na) %>%
summarize
df = value |>
sum |>
filter(is_na) |>
summarize
with PipeForward(value) as df:
_ = value
_ = sum(_)
_ = filter(_, is_na)
_ = summarize(_)
df = _
with PipeForward(value):
sum
filter(10)
summarize
with va... | [
"dale@dalejung.com"
] | dale@dalejung.com |
c3a9940907e5fba2b01888c2fe89ad17729ac313 | 4ec8a0e68dd5ff97bdd7c4f57e510d77fa106dbf | /blog/migrations/0002_auto_20190527_1300.py | 689eebcd43ef87c71af7949aa7f4fddbf3efbea1 | [] | no_license | mohammadkanon/travel_blog | b377a13da2ee9be783639e6405244a5be6403a2e | f94ada7a44073151e81d4173cb1cbc9ed78cdd5d | refs/heads/master | 2020-06-04T15:07:53.762761 | 2019-06-15T12:15:42 | 2019-06-15T12:15:42 | 192,074,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | # Generated by Django 2.2.1 on 2019-05-27 07:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='commoninfo',
name='author_details',
... | [
"gentlekanon@gmail.com"
] | gentlekanon@gmail.com |
891ba0a2d86e0059af8f125d7eb99dae7de96607 | 6045518db77c6104b4f081381f61c26e0d19d5db | /python_scripts/search_version_added_mod1.py | b004390e83fe6d2b0ab9848b4394cb3dd5111e20 | [] | no_license | edisutoyo/msr16_td_removal | 6e039da7fed166b81ede9b33dcc26ca49ba9259c | 41b07293c134496ba1072837e1411e05ed43eb75 | refs/heads/master | 2023-03-22T21:40:42.993910 | 2017-09-22T09:19:51 | 2017-09-22T09:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,558 | py | # import difflib
# import distance
import psycopg2
import sys
import os
connection = None
# connect to the database to retrieve the file name linked with the commit
connection = psycopg2.connect(host='localhost', port='5432', database='comment_classification', user='evermal', password='')
cursor = connection.cursor()... | [
"everton.maldonado@gmail.com"
] | everton.maldonado@gmail.com |
8865201f90a6632cbc9f96134f21ab5e64e6c55a | 5a05bb7d51d2f8cadb83fec2e38c7a9cd83936e9 | /de1/python/host.py | dd9a963bebbe163401aaca84df7cd3d2806f715b | [] | no_license | GalinhaLX/quickshop | a59121e6ebdf01aba6f988cd85a444f8cf1110b5 | 2d7d24dc738629cc3061fcd9b015d4ae3d030490 | refs/heads/master | 2023-03-16T02:18:17.055789 | 2018-04-06T06:09:07 | 2018-04-06T06:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | import serial
import sys
import os
import time
import requests
import json
def main(args):
# init serial connection
ser = serial.Serial('/dev/tty.usbserial', 115200)
ser.flush()
ser.timeout = 15
while True:
try:
# check for valid hash requests
r = requests.get('http://store.saif.ms/needs_hashing').json(... | [
"benjaminlang12@gmail.com"
] | benjaminlang12@gmail.com |
cc6aeb11c159d67d3188ad48a3943fd5c5bb5b57 | 34bf67017440fe47658559f91fe153c153a359f4 | /126.py | ab76eec45e690df7ee056355c5e29df63513c5d3 | [] | no_license | KevinWangTHU/LeetCode | 1be5f8f1ab587eea5365abb940785c9fe26f5214 | a7916e0818b0853ec75e24724bde94c49234c7dc | refs/heads/master | 2021-05-04T10:16:26.666260 | 2017-08-09T04:17:12 | 2017-08-09T04:18:49 | 53,427,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | import collections, string
class Solution(object):
def findLadders(self, beginWord, endWord, wordlist):
"""
:type beginWord: str
:type endWord: str
:type wordlist: Set[str]
:rtype: List[List[int]]
"""
def construct_paths(source, dest, tree):
if sou... | [
"KevinWangTHU@gmail.com"
] | KevinWangTHU@gmail.com |
6f49313c3ac544ded1d289409656abd155683b62 | c7774cdff9de9b314949cddbc2b673c80e7b04a5 | /Data structures/seq.py | 0e255f961b6eba589a5d8fb9551092fb7b6e933a | [] | no_license | semkarim/My-Trainings | 62c5a39fe4be4fb0c28cd142f946757533a9bf67 | 6fbab76db97f16732f808fc96b173d1e19c21be2 | refs/heads/master | 2022-07-10T14:54:52.216763 | 2020-05-13T16:54:30 | 2020-05-13T16:54:30 | 263,679,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | shoplist = ['apples', 'mango', 'carrot', 'bananas']
name = 'ANAROG'
#Действия над списком
print('Element 0 -', shoplist[0])
print('Element 1 -', shoplist[1])
print('Element 2 -', shoplist[2])
print('Element 3 -', shoplist[3])
print('Element -1 -', shoplist[-1])
print('Element -2 -', shoplist[-2])
print('Element -3 -',... | [
"65163745+semkarim@users.noreply.github.com"
] | 65163745+semkarim@users.noreply.github.com |
97d7fca81a1b57c074e04ab9e757aae5b3fb4615 | 1c59ef00948129d8d48f4e73b335c1e419ef9b96 | /priv/demo.py | f2109fce094f4daec561fe9d5c1a716488c65609 | [] | no_license | xshrim/ethlab | a6903af93dcfcb080ca28ed0bfeb1ebfd6357215 | ad0781d3925f8dff1e8ecc4bae45bd936428b5d7 | refs/heads/master | 2022-12-15T02:55:09.217389 | 2019-07-11T00:44:32 | 2019-07-11T00:44:32 | 194,985,601 | 0 | 0 | null | 2022-12-08T23:51:52 | 2019-07-03T05:30:28 | JavaScript | UTF-8 | Python | false | false | 986 | py | import core
from web3.auto import w3
from web3 import Web3
from web3.middleware import geth_poa_middleware
# 直接使用web3自动的自动连接功能
w3.middleware_stack.inject(geth_poa_middleware, layer=0)
num = w3.eth.blockNumber
tnum = 0
btlist = []
# 计算每个区块的交易数量
for i in range(0, num + 1):
trans = w3.eth.getBlock(i).transactions
... | [
"xshrim@gmail.com"
] | xshrim@gmail.com |
a158aa15dd9c00ac920184022de0c9802124f639 | 4a7fccd99b8f34a136cdd5cd1bea558345881962 | /basics.py | 145a480f65588ad775e3382ffda14b3a9d3ec4b6 | [] | no_license | yc1838/Python-Mega-Course | 701e9cd022e09c6a56a40156b11495d240fd4035 | 6479510ceea25b993218c5be82b59b5dab3f7b72 | refs/heads/main | 2023-01-21T18:13:06.829176 | 2020-12-04T05:28:07 | 2020-12-04T05:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | with open("hey.txt", "a+") as file:
file.seek(0)
cont = file.read()
file.seek(0)
file.write(cont)
#have to ask teacher for this one.
# write a program that interacts below:
# Say something: Hello
# Say Something: how are you
# Hello. How are you?
'''
def sentences_modification(stringa):
caped = stringa.capitalize... | [
"cubthemagiclion@gmail.com"
] | cubthemagiclion@gmail.com |
ec1ab374642f6e84c93b717daa1ed23f3dafd3be | c9873319a4ce48dada8a078e5fd9b723b920fedb | /impy/ex/ex9stat.py | 263d93bca52996f171543afc30a40a21834274a5 | [] | no_license | imsoyounq/backupall | 7383d7ce9252770942bc2a12e4c092baaa02df96 | d7a8c8e7342687dba99af2cd41d94f25a27ca02b | refs/heads/master | 2021-01-24T08:55:48.405619 | 2016-10-02T13:16:52 | 2016-10-02T13:16:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # -*- encoding:utf-8 -*-
a = []
while True:
b = int(input("숫자 "))
if b == 0:
print "종료합니다."
break
else:
a.append(b)
print "mean:",sum(a)/len(a),", max:",max(a),", min:",min(a),
print ", stdev:"
continue
# mean: 10, 이 아니라 mean: 10 , 처럼 ,앞에 공백 추가
# 캡처 formatte... | [
"soyounginseoul@gmail.com"
] | soyounginseoul@gmail.com |
7e3b468b506301ebe3967b1c976b4ab45f06632f | 47ec3048a021319c19228c37acd71fb487de1716 | /spectrum/value_spectrum.py | 5e4507d117cd390200f7ee02f8e907d7f4160ee6 | [
"MIT"
] | permissive | ternandsparrow/natcap-invest-docker-flask | 5485691ec39c35d9a440cb564badee2b3b8cd1ab | 1ef3e58f6af58d1783f6c0b8c80377e645923204 | refs/heads/master | 2023-04-27T14:28:41.561597 | 2021-05-06T08:32:44 | 2021-05-06T08:32:44 | 119,615,923 | 0 | 1 | MIT | 2021-05-08T16:54:26 | 2018-01-31T01:13:17 | Python | UTF-8 | Python | false | false | 5,277 | py | #!/usr/bin/python3
# Runs all permutations and logs the results. Good for getting a feel about how the inputs affect the output
# Run with:
# python3 value_spectrum.py > output.csv
import requests
import json
import sys
def permute_inputs():
url = 'http://localhost:5000/pollination?years=0'
with sys.stdout as o... | [
"tom.saleeba@gmail.com"
] | tom.saleeba@gmail.com |
14a4b02855d5b08a9a4c3b2eb8ee8e69474fed12 | cf76b7ee525a60661402e053548ebdd279fd64e4 | /Day_3_Assignment/Day_3(Question2).py | 7d198588b044dec40f8fa74db2eab1a7380d3200 | [] | no_license | Atularyan/Letsupgrade-Assignment | 79ffff1b273c2f098676f17cd73e91463b8fe0c9 | 4eb90b172612b07c4102328980a4be34ef2a1376 | refs/heads/main | 2023-02-28T10:26:42.613035 | 2021-02-05T21:40:06 | 2021-02-05T21:40:06 | 330,799,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | """
Question 2
Define a function swap that should swap two values and print the swapped variables outside the
swap function.
"""
def swap(n):
rev=0
while(n>0):
rem=n%10
rev=(rev*10)+rem
n=n//10
return (rev+n)
n=int(input("Enter the number = "))
res=swap(n)
print("swap... | [
"noreply@github.com"
] | Atularyan.noreply@github.com |
85cac1f5bd1565fd1f4ee1b51dd351185d24ad6b | 0911eef4f271bbe014e3027457574fd9297c6865 | /clustering/attributer.py | 5fa075956952f316fc61dd0a0f9f263c015068e3 | [
"MIT"
] | permissive | bernhardtj/DetectorChar | a7d5dd3a25e88965f6afb8b387b5d4daddb62ed3 | be9fffc0a56c9c8848c67917a839d743a0380ce2 | refs/heads/master | 2020-12-15T03:29:55.456797 | 2020-01-19T23:12:09 | 2020-01-22T02:15:43 | 234,979,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,726 | py | """
attributer.py
get some cluster attributes.
"""
from gwpy.frequencyseries import FrequencySeries
from gwpy.plot import Plot
from gwpy.time import to_gps
from gwpy.timeseries import TimeSeriesDict, TimeSeries
from ligotimegps import LIGOTimeGPS
from numpy import stack, median, diff
from cluster import DEFAULT_FILE... | [
"31599460+bernhardtj@users.noreply.github.com"
] | 31599460+bernhardtj@users.noreply.github.com |
4e8773dfd7c43372b1e0e2487c9908b3ce02e2ec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02695/s928241641.py | 8a3650d94b02032a7e04ac7856e18f47bbcccc2d | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | import copy
def gen_mono_inc_seqs(N, M, cur_list, cur_len):
if cur_len == N:
return cur_list
result = []
for l in cur_list:
last_val = l[len(l)-1]
for i in range(last_val, M+1):
tmp = copy.copy(l)
tmp.append(i)
result.append(tmp)
return gen_... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d38c140e26cd68592ad73ae95fa562711473f5a4 | edd025ddd5ff9ff8830bd3dda598715a935d6447 | /openclnoise/addcolor.py | 00101a4dcefc11b4800a17981eaea2d14b305755 | [
"MIT"
] | permissive | antiface/OpenCLNoise | f142fb3fd5cc559803e3be8ecfa89ad63ef3c503 | 31b5ff6739340ce0a9a6a57f6012d71d6a27614f | refs/heads/master | 2020-12-26T04:48:11.260071 | 2013-02-05T21:36:25 | 2013-02-05T21:36:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | from basefilter import *
class AddColor(BaseFilter):
_filename = "addcolor.cl"
def __init__(self, color=(0.25,0.25,0.25,0)):
BaseFilter.__init__(self)
self.color = color
def get_name(self):
return "AddColor"
def get_number_of_inputs(self):
return 1
@pr... | [
"eswanson@alloscomp.com"
] | eswanson@alloscomp.com |
cde0caf06127a2d54753d2be9a1c321b2d3d73cc | f3abfa06395375bf88245ca172bb0af64b19adf3 | /dcivil/migrations/0003_auto_20200202_1316.py | 9392179bb018eac6d08ab42b599ba6462915fb42 | [] | no_license | loyolabechara/intelicity_be | 5394e356132f2532ad5dbf295a49fc207d1d8f86 | 81dc055ba1e686b2838d7294c641561886473b2c | refs/heads/master | 2020-12-05T19:10:18.721371 | 2020-02-29T03:28:31 | 2020-02-29T03:28:31 | 232,219,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | # Generated by Django 3.0 on 2020-02-02 16:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dcivil', '0002_auto_20200202_1257'),
]
operations = [
migrations.AddField(
model_name='dirigente',
name='celular',
... | [
"loyola@jlb.net.br"
] | loyola@jlb.net.br |
efcacf5019e593a4bf64f6c3a04e37e1c9331b44 | c6588d0e7d361dba019743cacfde83f65fbf26b8 | /x12/5030/435005030.py | a57f914a95dac66f74356e3869e7f5bc1cf84657 | [] | no_license | djfurman/bots-grammars | 64d3b3a3cd3bd95d625a82204c3d89db6934947c | a88a02355aa4ca900a7b527b16a1b0f78fbc220c | refs/heads/master | 2021-01-12T06:59:53.488468 | 2016-12-19T18:37:57 | 2016-12-19T18:37:57 | 76,887,027 | 0 | 0 | null | 2016-12-19T18:30:43 | 2016-12-19T18:30:43 | null | UTF-8 | Python | false | false | 879 | py | from bots.botsconfig import *
from records005030 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'RK',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'SID', MIN: 1, MAX: 9999, LEVEL: [
{ID: 'N9', MIN: 0,... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
711e8f71814bfa10e937a9521b55bec2afaaa889 | adf001bee2e322d9583c60ae42c2d3d5e9cfdd3d | /04-clean-evaluation-set.py | f0d6b27108dc013149ee02965b5112692f83fbf5 | [] | no_license | katerega/entity-expansion | 92e42df687194641cfd9139e7d07f89120ecb8b0 | 56db32ea4baac3a7ea44e872a545e353b7e7246d | refs/heads/master | 2022-01-22T08:52:44.228988 | 2019-07-18T18:56:50 | 2019-07-18T18:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import os
import json
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("dataset")
args = parser.parse_args()
dataset = args.dataset
cur_dir = os.path.join(os.getcwd())
# In[ ]:
gold_set = {}
with open('data/gold_set.json', 'r', encoding=... | [
"pxyu@cs.umass.edu"
] | pxyu@cs.umass.edu |
dafdf6e9e4f6f88b4153c18807b15bc3e4ee67ce | e71ef588cd26c6342d7cd75a28f71cc3e74eae2f | /portal/dashboard/admin.py | 3330f09c9532d72d756bd5749c60872beff5cce8 | [] | no_license | muska-choudhary/newProject | dfb4724348be983d2834f650c3fd1cbdb7176d0f | 4dd6e2d43c6d8037ba9feb4b7cd9d73d216aa1cf | refs/heads/main | 2023-07-17T07:41:32.631742 | 2021-08-23T16:15:04 | 2021-08-23T16:15:04 | 398,965,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.contrib import admin
from . models import *
# Register your models here.
admin.site.register(Notes) | [
"noreply@github.com"
] | muska-choudhary.noreply@github.com |
f9dfaccdf5e756e0032eeef3b25c1ae84e611a85 | b34e62032a142aca2f1180dd6a683c51f5f723e9 | /src/work_time.py | b378ac7588972d4afcfc07014d8fb13ba1ed6475 | [] | no_license | scoutiii/SoloScraper | 3de821fa8f9a11f5327f9389a4c21f69fd89e77a | b486ba674f9518a794f6108009bb8faaf68a594e | refs/heads/master | 2022-11-17T22:51:08.738112 | 2020-07-15T18:57:02 | 2020-07-15T18:57:02 | 261,906,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,229 | py | import csv
import sys
import re
from datetime import datetime
from tqdm import tqdm
# Class which has all characteristics of a message
class message_info:
def __init__(self, message):
self.msg_full = re.sub('[^a-zA-Z0-9 \`\~\!\@\#\$\%\^\&\*\(\)\_\+\-\=\[\{\]\}\\\|\;\:\'\"\,\<\.\>\/\?\\n]*', "",
... | [
"33967844+scoutiii@users.noreply.github.com"
] | 33967844+scoutiii@users.noreply.github.com |
cb472c96f064f2152d5691a9dcb04ca57b0bcebe | 990e3a0920f08727ddc521bfbf62cfc5547a013c | /remediation-functions/rds_instance/rdsinstance_performanceinsights.py | 7379513042347868ee77eee2eb6778e8a949ddc5 | [
"MIT"
] | permissive | xeaser/aws-auto-remediation | 73916390063faa7f6d81d8e33f6ae2632621a2ff | 6847e2756111f16bafb34529e07a1c383f99bebf | refs/heads/master | 2021-03-21T12:41:40.884595 | 2020-03-12T14:18:30 | 2020-03-12T14:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,538 | py | '''
RDS instance performance insights
'''
from botocore.exceptions import ClientError
def run_remediation(rds, RDSInstanceName):
print("Executing RDS Instance remediation")
performance_insights=''
try:
response = rds.describe_db_instances(DBInstanceIdentifier=RDSInstanceName)['DBInstances']
... | [
"ankitrao7739@gmail.com"
] | ankitrao7739@gmail.com |
dc9a696d53a940224de5525365420e23e1c82e96 | 5077fc5d82caa3b3ed5ce0e062bfe75cd4037ebc | /forever_thinking/bilibili获取封面.py | 260f9926d90e3490e4b217ca8bb4cc9d9081eb75 | [] | no_license | asswecanfat/git_place | ee10e1057d8307d3c72f57291b5bcb6d0579017e | 244ff0de11ffbe1aa9f20308e43af39486507f6f | refs/heads/master | 2021-07-18T23:06:14.324164 | 2020-09-02T12:15:27 | 2020-09-02T12:15:27 | 210,833,462 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | import requests
from bs4 import BeautifulSoup
from attr import attrib, attrs
import json
import re
import random
import os
@attrs
class BiliBili(object):
file_path = attrib(default=r'C:\Users\10248\Desktop\1.txt')
pic_path = attrib(default=r'C:\Users\10248\Desktop')
source_wab_url = attrib(default='https:... | [
"1024847824@qq.com"
] | 1024847824@qq.com |
b0fbdd67571f55ad9c0ff76b623e2117b8250698 | 0e477b7f21ff3e220b0fe21f5547ac3b4fb71cdd | /Run_GccCoverage_ForSourceFiles.py | 68554d4a8d619c87979fed5cc528e78eb1ed85d8 | [] | no_license | Fasten90/GccCoverageParser | 2c2cb8af41118ab59d960ae13446630565ba1da9 | e4cad4dbc012594e7dd5e9dc9cfa66cf9f6ab895 | refs/heads/master | 2022-03-21T18:07:22.205280 | 2022-02-22T00:02:33 | 2022-02-22T00:02:33 | 218,975,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,478 | py | import glob
import subprocess
import os
import time
from enum import Enum
import re
import argparse
# TODOs
# - UnitTest - system executing test
# Note: Similar command shall be called all gcno file
# gcov --all-blocks --function-summaries --branch-probabilities --branch-counts --unconditional-branche... | [
"fasten90@gmail.com"
] | fasten90@gmail.com |
afca61d5d8ba52a219c2ad7064268eca41cd96c6 | 495ce92166457a6d5818d786a6a3303d3280fcd0 | /src/registration/urls.py | ac889db2d836112cd2cb69c66483cb85276e9187 | [] | no_license | patrickhusi/django-inspectional-registration | 616e7d44716c41b09b32c30415a1cf86d3b7324f | c0aee3ddc4f1a5e870643a605d8a9575b3a7520f | refs/heads/master | 2020-12-25T22:57:45.123082 | 2015-08-01T00:19:32 | 2015-08-01T00:19:32 | 39,487,644 | 0 | 0 | null | 2015-07-22T05:35:21 | 2015-07-22T05:35:21 | null | UTF-8 | Python | false | false | 2,964 | py | # coding=utf-8
"""
URLconf for django-inspectional-registration
"""
__author__ = 'Alisue <lambdalisue@hashnote.net>'
from registration.compat import url
from registration.compat import patterns
from registration.views import RegistrationView
from registration.views import RegistrationClosedView
from registration.views... | [
"lambdalisue@hashnote.net"
] | lambdalisue@hashnote.net |
ba6306487c83faeec431bad2bb06879a4608adfe | 84cd1e3493cf0020d39a38c90c5eb7e7b103cf54 | /card.py | 51012e2d75aa1f6030fccf472e6a64e272e98c51 | [] | no_license | jbrunsting/poker-player | cf7c8b12a56ce1d52d330bb1ceeb42814476ad90 | 0e81c9f6bacfbd17bda16b573e3b0641c14e72cc | refs/heads/master | 2022-04-21T13:16:48.133194 | 2020-04-20T16:52:11 | 2020-04-20T16:52:11 | 254,972,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | SUIT_INDICES = "shdc"
MIN_CARD = 2
MAX_CARD = 14
NUM_SUITS = 4
class Card:
def __init__(self, suit, val):
self.suit = suit
self.val = val
def __str__(self):
unicode_card = ord('🂠')
if self.val <= 10:
unicode_card += self.val
elif self.val == 11:
... | [
"jbrunsting@uwaterloo.ca"
] | jbrunsting@uwaterloo.ca |
1be95d863dfee38a01b91acfc9abf1c957153b61 | 5e4bacde637e872ae9057dc1eeea6fa452e315c4 | /first_project/populate_test_app.py | 4dbe44ab661119f6f592964006d370453dc852fe | [] | no_license | get2nav/django_test_deploy | 9c738161c36df00b5693924b49534e65f6bbca95 | 8baab4644209b424bcda9cec2d3ee2ab83e2906b | refs/heads/master | 2021-07-13T00:21:55.530280 | 2017-10-18T05:14:20 | 2017-10-18T05:14:20 | 107,361,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','first_project.settings')
import django
django.setup()
#fake pop script
import random
from test_app.models import AccessRecord, Topic, Webpage
from faker import Faker
fakegen = Faker()
topics = ['Search', 'Social', 'Marketplace', 'News', 'Games']
def... | [
"get2nav@gmail.com"
] | get2nav@gmail.com |
ab6eedac97421d8a06a3c9e76013d65e82b63991 | 405ed3b49248e033789bd17bd8dfd30e5a9ef7bc | /lesson_3_task_4.py | 4f6c2419c91de2ae3490938613fc9646c830f15a | [] | no_license | GorobetsYury/python_geekbrains | c50d0909645c479bbc90d104ee1e0ffa789da563 | 1639f596b1666c5f36742409597f8e9c7bde394e | refs/heads/main | 2023-01-20T13:34:30.795615 | 2020-12-02T17:29:31 | 2020-12-02T17:29:31 | 309,039,606 | 0 | 0 | null | 2020-12-02T17:29:32 | 2020-11-01T06:47:51 | Python | UTF-8 | Python | false | false | 785 | py | # Определить, какое число в массиве встречается чаще всего.
import random
SIZE = 10
MIN_ITEM = 0
MAX_ITEM = 100
array = [random.randint(MIN_ITEM, MAX_ITEM) for _ in range(SIZE)]
# При равенстве повторов показывает то число, у которого индекс меньше
count = 0
max_count = 0
number = None
for i in array:
for j in ... | [
"u_gorobec@rambler.ru"
] | u_gorobec@rambler.ru |
4c76cab52caacba887c04c32272b2911ae465066 | e601b0f85267f884f94f4b4dd4da31de38d2e57d | /utils.py | 06bf308890806d2550ac1fd552dae30d28d1f1cc | [] | no_license | yq605879396/CapVis | fc0295d46f90787c76c82aaa4b76d36b58b0108d | e517732731d64ca83bcbc595e79d5cdaff0945a0 | refs/heads/master | 2023-03-23T00:15:47.474006 | 2021-03-16T23:17:07 | 2021-03-16T23:17:07 | 259,845,398 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,425 | py | import os, io, time, json
import numpy as np
import nltk
# get current path in you computer
current_path = os.getcwd()
# define the path: these files are trained of line
# related codes are in usefule_code directory
Labels = np.loadtxt('./pretrained/labels_100')
All_vec = np.loadtxt('./pretrained/All_vectors')
Center... | [
"yq605879396@gmail.com"
] | yq605879396@gmail.com |
d5c6bf8fc78a0d43c339a77d1a7de8e8d671ddf9 | 3448030a8da01a4c66ecbf52372bb71e929cd873 | /seed2xprv.py | 1dbe7932ab0ce4e2fdfb6c9e0ad1a2ef2a9a86cb | [
"MIT"
] | permissive | brunokrauss/crypto-key-derivation | 193662816a4a3f1e27a0144157fe1a056ec59c23 | 78285fca158aaf31a276406286d265318ee359ee | refs/heads/master | 2023-06-24T21:30:54.786702 | 2021-07-06T12:34:23 | 2021-07-06T12:34:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | #!./venv/bin/python
from lib import mbp32, utils
xprv = mbp32.XKey.from_seed(bytes.fromhex(utils.one_line_from_stdin()))
print(xprv.to_xkey().decode('ascii'))
| [
"errge@nilcons.com"
] | errge@nilcons.com |
fb2b8d39435d1abedcb800a15882e0bbdc634344 | 7fc6f40f442579fdc774061aa0c678264ff7873e | /venv/Scripts/easy_install-script.py | 219e5aadb997aca0465a804a5336bdd0bfc7ea88 | [] | no_license | devgunk/ShoppingWebsite | c142bee205b87fb00ff7cb50d437045f75fdd4a4 | a06e339b8409a0ba164109e7c59e4a09cc1920e4 | refs/heads/master | 2022-12-06T09:54:45.039961 | 2020-08-23T12:26:23 | 2020-08-23T12:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!C:\ShoppingWebsite\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"karandevgunsharma@gmail.com"
] | karandevgunsharma@gmail.com |
5d241edba0322488b4b7f84cee1a16c8cd0b1bd6 | cdd0fa35e6867932d9821b54f3e9897306139d1a | /myPracticeProblems/ordered_dict.py | ac21f387d95bb5f5a10a305313ea69109d20cc7d | [] | no_license | jisshub/python-development | cfd4246981999d5bc8cfe4cc15a57ebfada2691e | 392e7362bf8e83930d410984e985d73a0a2f40d1 | refs/heads/master | 2021-01-05T02:25:12.896814 | 2020-03-23T16:05:25 | 2020-03-23T16:05:25 | 240,844,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from collections import OrderedDict
ordered_dict = OrderedDict()
ordered_dict["jissmon"] = 33
ordered_dict["jissmon"] = 33
ordered_dict["jissmon"] = 33
ordered_dict["jissmon"] = 33
ordered_dict["jissmon"] = 33
print(ordered_dict)
new_dict = dict()
new_dict["a"] = 44
new_dict["a"] = 44
new_dict["b"] = 44
print(new_di... | [
"jissmon476@gmail.com"
] | jissmon476@gmail.com |
68939c3d483e5097c1f1e33bf06e1a96c678806c | 3ff045a27d4cd828f1568ef4551077dd3732b97f | /GoodleLanceJanice.py | c0857272da38ec9c7da90a1a5e4ffb3dbedc0221 | [] | no_license | nightowl97/goodle | 4ae6792e8eb43fb453a43716968419b27f73550b | 6718c3151cae837bbe96ee3cdce42b545a5b27f4 | refs/heads/master | 2021-01-19T21:13:14.145428 | 2017-01-10T23:43:30 | 2017-01-10T23:43:30 | 88,626,557 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py |
test = "Yvzs! I xzm'g yvorvev Lzmxv olhg srh qly zg gsv xlolmb!!"
def answer(s):
res = ''
for i in range(len(s)):
if ord(s[i]) <= 96: # If number is not a lowercase alphabet
res += s[i] # Then just keep it
else:
# Get the resulting char by using its distance from 'a'... | [
"feverier@hotmail.fr"
] | feverier@hotmail.fr |
b2cfeb0e568ca923f191916dc1ad85a9a2cad65e | 499b280cdaf8714aae193fd9b1aac95926def3b4 | /2017038076_조준희 2주차과제.py | 906467128e359f1fea673d747c8a1161ab7eb171 | [] | no_license | Joonehee-JO/python | 2972b52bb2472decffb12a4d13b556ac86adc75b | 857d15153f10a583bc4ad6a17ecf4f09fdcb68c5 | refs/heads/master | 2022-11-05T05:41:57.374225 | 2020-06-23T12:58:40 | 2020-06-23T12:58:40 | 264,381,305 | 1 | 0 | null | 2020-05-16T07:16:20 | 2020-05-16T07:16:19 | null | UTF-8 | Python | false | false | 218 | py | mem = int(input("참석자의 수를 입력하세요 : "))
chicken = mem * 1
beer = mem * 2
cake = mem * 4
print("치킨의 수 : %d\n" %chicken)
print("맥주의 수 : %d\n" %beer)
print("케잌의 수 : %d\n" %cake)
| [
"noreply@github.com"
] | Joonehee-JO.noreply@github.com |
b0b42a8618f56c00d5b0d03cce3873bd96adb26e | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scatter3d/line/_showscale.py | 534d53f00aee0a02ffb55e951c76e575cebf5dfe | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 425 | py | import _plotly_utils.basevalidators
class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name='showscale', parent_name='scatter3d.line', **kwargs
):
super(ShowscaleValidator, self).__init__(
plotly_name=plotly_name,
parent... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
657691f0e148e8ba93dc360f4d8b4aad40fc643d | b249363c964248fbf8e567e14ecd7c1fc7fde5b2 | /server/newscraper.py | 376c3bd9cd2c28bb5f7a900018ff55e13babbd86 | [] | no_license | Justintlai/watersports | fec7e8d9c75ab5b6085f83273207bf851bab5afb | 0b443299884e4f558c6a7d802365b3c843a4f7de | refs/heads/master | 2021-07-11T21:28:39.253446 | 2017-10-09T00:12:23 | 2017-10-09T00:12:23 | 106,175,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,080 | py | import random
import time
from datetime import datetime
import requests
from bs4 import BeautifulSoup
from pws import Bing
from pws.google import strip_tags
word_file = "words.txt"
WORDS = open(word_file).read().splitlines()
def main():
# c = gnp_fixed.get_google_news_query("earth")
# print(c)
# return
... | [
"alexanderfanthome@googlemail.com"
] | alexanderfanthome@googlemail.com |
b1a1e15b3a0558a5a77872235e3522ea33bab5cc | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /rcc/models/jaxb_element.py | 49e4e3b8f1e30a23cafa6a6b5a8c3fbc12ef4791 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,874 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from rcc.configuration import Configuration
class JAXBElement(object):
"""NOT... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
7b96378092ff574b8986da643f93a35f77f65f61 | ab43c27eeac4866aef9b9282d912f24b8238803e | /app/views/__init__.py | 8db42f13b7048140839fd65a2b555069cc2f1a09 | [] | no_license | RubenVanEldik/solar | 31c3018322841f271fa70883eb78759141345dd9 | 71d48fea12791a72558ddc0d512a1f6b7e8f4574 | refs/heads/master | 2021-10-18T22:33:05.663817 | 2019-02-14T19:59:07 | 2019-02-14T19:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from .charts import *
from .index import *
from .json import *
from .settings import *
from .user_management import *
| [
"74729@protonmail.com"
] | 74729@protonmail.com |
ce72e0f8bc1244eb6aab5eb1508279184c6fec5c | 1e5bf133026ff7afa9659652cc3ec1023f98dc1c | /326 - Power of Three/PythonSolution2.py | 14af1e155eee448238449ceaea5fa410eb42ddab | [] | no_license | DishantK1807/Leetcode-Practice | 51ca7d38889e1e2351968b8802185117ab629e78 | 094b33b38f81ce2b5572cdfecc1f5fb5bbd55816 | refs/heads/master | 2022-04-08T14:01:24.534693 | 2020-03-11T22:13:54 | 2020-03-11T22:13:54 | 232,390,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | class Solution:
def isPowerOfThree(self, n: int) -> bool:
return n > 0 and 1853020188851841 % n == 0
| [
"dishant.khanna1807@gmail.com"
] | dishant.khanna1807@gmail.com |
a772928bcbefc46afefe57c8cef08919a0e31326 | 8942d1537271a4f6707db6e81a786ca13451e469 | /_examples/example_pipelines/skullstrip_afni_ants_example/porcupine_generated_pipeline.py | 6ead358190e3d19af7f227b9bb95aa7b885fddfc | [
"MIT"
] | permissive | GiraffeTools/Documentation | ee78b565ba489e20172e23b88e1cbf6424e2f467 | 40fe4a141a444aa5f016a5d5073ddffba77187d0 | refs/heads/master | 2022-11-07T16:18:36.793918 | 2020-08-16T20:44:37 | 2020-08-16T20:44:37 | 174,414,952 | 1 | 1 | MIT | 2022-10-19T22:26:58 | 2019-03-07T20:26:15 | Python | UTF-8 | Python | false | false | 3,347 | py | #This is a Nipype generator. Warning, here be dragons.
import sys
import nipype
import nipype.pipeline as pe
import nipype.interfaces.io as io
import nipype.interfaces.ants as ants
import nipype.interfaces.afni as afni
import nipype.interfaces.fsl as fsl
WorkingDirectory = "~/Porcupipelines/ThisStudy"
#Generic datagr... | [
"timvanmourik@gmail.com"
] | timvanmourik@gmail.com |
1ab8aa09439b7feb4e64e7287cafca2b7cd40a94 | cc2fd2bd9947d97cbd351553dad75044f6978cf9 | /driver2.py | e63c6f4cb68c2d2442c635a3df87c770a4d7fbfe | [] | no_license | jsitaraman/MDOF | 7dc1178254e14dabb86c4670f8f619546fe75b5f | 96162e408c887ccf8954e117b5bff016bd359110 | refs/heads/main | 2022-12-24T13:44:51.690443 | 2020-10-08T00:36:51 | 2020-10-08T00:36:51 | 301,932,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | #
# driver code for sizing a simple
# rotor.
#
# Design Variables are
# [ Cl -> mean Lift Coefficient,
# R -> Radius of the rotor,
# Omega -> Rotor frequency
# sigma -> Rotor solidity]
#
# Objective:
# Maximize pay-load with a constraint of maximum power available
#
import numpy as np
from AeroSolver import ... | [
"jaina@onyx.erdc.hpc.mil"
] | jaina@onyx.erdc.hpc.mil |
88844da5196efc28ee33108e41edf931aadaebd1 | cf54ddb10342bfac8f868eddbfcba11f9729200f | /regex.py | 6c2685af92327db7e3c69460aa3e061f6e3419ab | [] | no_license | winters23/projects-python | 589a88a7d2828685807685646c1b58e1ce32dfac | d920cc62cd1ccc79d43a6869916713045509fd9e | refs/heads/master | 2020-04-23T06:38:55.883746 | 2019-03-22T08:06:29 | 2019-03-22T08:06:29 | 170,980,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import re
txt="The rain is in Spain"
x=re.search("^The.*Spain$",txt)
print(x) | [
"jain.diksha2398@gmail.com"
] | jain.diksha2398@gmail.com |
8dbddfb4997cc91e26fe303a38174baf39a53b42 | 53eaf9bb812f6f9317a143a08f60bb5515e7de8c | /setup.py | c401f0283d85762481b013d5265207f65a2113b7 | [] | no_license | JeffMv/jmm-util-libs | 103d77972ee7d3f196593396b4a78a6ce7db6617 | 137696ec9126ea35512dcb29500d3d7c6ffdde56 | refs/heads/master | 2023-07-11T20:04:18.782120 | 2023-07-01T17:44:45 | 2023-07-01T17:44:45 | 209,101,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pipenv install twine --dev
import io
import os
# import sys
# from shutil import rmtree
from setuptools import find_packages, setup, Command
# from jmm import version
# Package meta-data.
NAME = 'j... | [
"jeffrey.mvutu@gmail.com"
] | jeffrey.mvutu@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.