blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
69e60d082f827c096460c5d45d78477079781d57 | 02561ee089dddf0ac683aa5821028acb1cce2327 | /make_localization_cues/get_sod_model/DSS-pytorch-master/tools/visual.py | edc191c23e52bf9b0d2a7cb6fc52f5037a8e48a4 | [] | no_license | DQDH/Semantic_Image_Segmentation | d50f062527a78b6740db5956ba5b285a2baf1b70 | 91bb5c066e72f1854860b5352d47d088456004e7 | refs/heads/master | 2022-10-31T14:26:31.896743 | 2020-06-18T01:57:54 | 2020-06-18T01:57:54 | 272,595,555 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,268 | py | import torch
import numpy as np
import matplotlib.pyplot as plt
class Viz_visdom(object):
def __init__(self, name, display_id=0):
self.name = name
self.display_id = display_id
self.idx = display_id
self.plot_data = {}
if display_id > 0:
import visdom
... | [
"1606074918@qq.com"
] | 1606074918@qq.com |
01911c7523c4459f34569d28aa130a9361835017 | 00978681ffb1ece4342532fa0071d6d5427e30f8 | /Tree Hierarchy/main.py | 028c787d69c031c1d8d2b6af9ad2fd434abbb9da | [] | no_license | sounboul/ICD-11-Visualizer | f240f1ef1c9e53548bc58955ebffed2bc1a21aff | 80bba937ef877d0e3139c34c22ea2753a361bd56 | refs/heads/master | 2022-09-04T06:58:52.108896 | 2020-05-28T16:48:30 | 2020-05-28T16:48:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | from ICD11 import release_data as database
from pprint import pprint
import networkx as nx
import matplotlib.pyplot as plt
from networkx.drawing.nx_agraph import write_dot, graphviz_layout
master = {}
def get_title(icd11_code): # this returns a string title
return database(str(icd11_code))["title"]["@value"]
... | [
"e.tran.8714@gmail.com"
] | e.tran.8714@gmail.com |
c9e1ff0e4ec36697558947f4a2e18309922cc088 | 6135140b0c48f189c5672858b9d09732f178c829 | /proj3/akeelah/testeditdist.py | 3c8ba45c45948a74bc2cd23102be3fda648ce010 | [] | no_license | jw-develop/cs384-self | 8b23fcd39dd78e9a57876b7ac35452f962083ef2 | 9002d8ca254cc43ba9df7faab2df77167ca007f7 | refs/heads/master | 2020-05-21T01:30:57.870603 | 2019-05-09T19:18:08 | 2019-05-09T19:18:08 | 185,858,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | '''
Created on Oct 20, 2015
@author: thomasvandrunen
'''
import sys
from editdist import edit_distance
source_word = sys.argv[1]
target_word = sys.argv[2]
print edit_distance(source_word, target_word, 25) | [
"james.white@my.wheaton.edu"
] | james.white@my.wheaton.edu |
d3cd6c302249bc0a45cafb3e724725c383462017 | 6ce00e75df0425405568e6d3a1b27090f9968555 | /utils/labelme2csv.py | 05fbc6f5c8a6db40c322ec854e526c51d383cc4c | [] | no_license | XiaokangLei/img_utils | b48b7437980705569926c61811b67afdd6f8999a | 94c89bd286e10e678eed7ffdeea446445b4ed1cb | refs/heads/master | 2023-06-23T17:26:44.226676 | 2021-07-26T09:46:34 | 2021-07-26T09:46:34 | 368,769,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,546 | py | '''
Author: leixk_ai
Date: 2021-05-19 14:25:58
LastEditTime: 2021-06-08 15:26:01
LastEditors: Please set LastEditors
Description: 将labelme生成的json文件转换成csv格式(x1, y1, x2, y2, x3, y3, x4, y4, label)的数据
FilePath: /img_utils/utils/labelme2csv.py
'''
import os
import json
import shutil
from argparse import ArgumentParser
d... | [
"leixk_ai@si-tech.com.cn"
] | leixk_ai@si-tech.com.cn |
fe7101167f9d2763f0fed8f480827e333e0fa2eb | 8d9790a41d2b6422f47b3c199ff271d148ed3757 | /napari/layers/image/experimental/octree_image.py | 94f3a24938c40aec8823fef85386f81f5056753a | [
"BSD-3-Clause"
] | permissive | michalk8/napari | de62056b51ce6643e1a97f3830d56abcd8280d42 | 1d784cf8373495d9591594b6dd6ac479d5566ed1 | refs/heads/master | 2023-01-31T16:53:17.441082 | 2020-12-12T07:20:35 | 2020-12-12T07:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,844 | py | """OctreeImage class.
An eventual replacement for Image that combines single-scale and
chunked/tiled multi-scale into one implementation.
"""
import logging
from typing import List, Set
import numpy as np
from ....components.experimental.chunk import ChunkRequest, LayerRef
from ....utils.events import Event
from ..i... | [
"noreply@github.com"
] | noreply@github.com |
4df80986be4944f55373874a0764e8385fc5047d | 647efb68e1e7ec6614f86d57302f2e6b3fea6b0a | /src/constants.py | 0f0172ac017fe79d07e0088c4e769871b2192a30 | [] | no_license | Beavl/NowPension | 1d6cacb467f3a2f470626138a14789ca17f0090e | 5fcfec5aacec89573a77416f79e7855d39fa5d6f | refs/heads/master | 2023-01-30T17:48:45.023913 | 2020-12-09T12:31:56 | 2020-12-09T12:31:56 | 319,949,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | """
Script with the common constants of the module
"""
SEPARATOR=' '
END_LINE='.' | [
"p2311327@nwytg.com"
] | p2311327@nwytg.com |
967b2f623b1738ca567c502efd894d42447223e1 | c38a2f25d2654dd5d807a7dddd9ae569a7bd5857 | /factorial.py | 4b1c5e01bc203b350e9c0c53376535878d1f302b | [] | no_license | pranjalgupt/Python-lab | 253588e8e6a21b48cc987745b5d59429cda0dd12 | e411d3077c2bfaa1974da2eee9c6834f3e1bbf77 | refs/heads/main | 2023-03-15T01:04:17.817156 | 2021-03-22T10:09:37 | 2021-03-22T10:09:37 | 347,915,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | n = int(input())
p = 1
while n>0:
p*=n
n = n-1
print(p)
| [
"noreply@github.com"
] | noreply@github.com |
da4709175da480d1d754b645e999b98d051d37b1 | 8af8df74ac5ef039481e78ada357a7f6ef31062c | /app/handlers/handle_internal_donation_email.py | d951b28e5d65c14c47649687a1bc0d6cc9d1b5d3 | [] | no_license | KevynKelso/markhor-do | 987816b201f1f7bafda6cf594d18c15a1cbd8562 | b40bea85effa31d91f45b6d3622bba266d5e99d4 | refs/heads/main | 2023-02-15T04:26:27.557682 | 2021-01-05T19:47:36 | 2021-01-05T19:47:36 | 327,102,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | from requests import HTTPError
from apis import sendToPymail
def handleInternalDonationEmail(request_data, items_index):
try:
in_memory_slash_honor_of = None
if len(request_data['content']['items'][items_index]['customFields']) == 1:
in_memory_slash_honor_of = (
reques... | [
"kkelso@bscs.org"
] | kkelso@bscs.org |
884517c264aa7b9fe8d3adf58769051fffefc1e0 | 0e2bac9b62d41575632fcd9dfe115a72a5fd9412 | /handler.py | 4034602e8171ca47cf74cf672deea5f378f5c648 | [] | no_license | mayingming/serverlessbot | 7d444aeae22e7e13838cbd3c7796d23f36a52c45 | 5dc35fe1af812010b24a9050cc2dc5d7eac6e7fa | refs/heads/main | 2023-01-07T21:10:57.452415 | 2020-11-04T08:12:43 | 2020-11-04T08:12:43 | 304,585,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,056 | py | import json
import tweepy
import config
import csv
import os
import boto3
import botocore
# Send twitter every 5 minutes
def tweet(event, context):
# Authenticate to Twitter
auth = tweepy.OAuthHandler(config.CONSUMER_KEY, config.CONSUMER_SECRET)
auth.set_access_token(config.ACCESS_TOKEN, config.ACCESS_TO... | [
"noreply@github.com"
] | noreply@github.com |
bfda84e6ba0476ea5cfa870d4a9d4995f1c5e155 | 137cba430172ebb225a411cc59cf01c2c55cc55e | /src/python/modules/TorchScript/torch_multigammaln.py | c550d249e3839fe547df9ee0ec1502b99eded09b | [
"MIT"
] | permissive | microsoft/ADBench | 56bce08eb67d63b0ed5019526ecce710987afad1 | 38cb7931303a830c3700ca36ba9520868327ac87 | refs/heads/master | 2023-06-21T12:38:53.426980 | 2022-11-28T19:14:19 | 2022-11-28T19:14:19 | 38,539,834 | 77 | 30 | MIT | 2023-06-20T09:41:41 | 2015-07-04T16:16:32 | C++ | UTF-8 | Python | false | false | 1,114 | py | # TorchScript adapation
# https://github.com/scipy/scipy/blob/c1372d8aa90a73d8a52f135529293ff4edb98fc8/scipy/special/spfun_stats.py
import numpy as np
# from scipy.special import gammaln as loggam
import torch
import math
@torch.jit.script
def multigammaln(a, d: int):
# Python builtin <built-in function array> ... | [
"colin@gravill.com"
] | colin@gravill.com |
5f2ec4a1caf26dd0c6854ddb62224c95d850cf7a | 93376fdda5911125ce0a72c3ba6bd0c5b81d2fd0 | /venv/bin/flask | 0fecd1d9aa4ec87b97362e6b31ea8968574e1fbe | [] | no_license | sheffley201/shopping-cart | 508c353c13e2467cb7395a28da71aadc40b85b19 | e63d663df31ec146e9c1c9cea707705eb012f798 | refs/heads/master | 2023-03-24T02:19:27.386383 | 2021-03-26T17:24:48 | 2021-03-26T17:24:48 | 350,412,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | #!/Users/spencerheffley/code/shopping-cart/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"spheffley@yahoo.com"
] | spheffley@yahoo.com | |
cbac09e3ab3a33ec7effb97c5d4a07b0f8e001f9 | a3fab9eca1c26f35bd30e1b029b64ee1ad4fc8cc | /SocialTennis_proj/wsgi.py | 6d3843f851f60966d0a89d9d701c42e41b0ad2d7 | [] | no_license | dansgithubuser/SocialTennis | cf86110eef72c2818692673177127f7554cf5fc6 | cd84d996bfae1a515dd62ff658002ff5fc501aa6 | refs/heads/master | 2021-06-10T22:46:03.117970 | 2021-04-08T19:04:09 | 2021-04-08T19:04:09 | 171,059,299 | 0 | 1 | null | 2021-06-06T19:06:24 | 2019-02-16T22:38:24 | Python | UTF-8 | Python | false | false | 411 | py | """
WSGI config for SocialTennis_proj project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"dansonlinepresence@gmail.com"
] | dansonlinepresence@gmail.com |
1f3d6d8617a2f3652d4aa9fd89a36a0a52a2dedf | 3b91ec3304ca0c177ef0cea12097474668a1666d | /easy_rmg_model/rmg2arc/sensitivity.py | 595d83b7d90510bd78b67af33f7e06b0edc7c599 | [
"MIT"
] | permissive | Roolthasiva/easy_rmg_model | d0cffb77c96e721f9549f11d191796f4fcb55ac3 | 194321629e41495482e1ccffbfb15958bd90a02a | refs/heads/master | 2023-07-08T20:59:11.716927 | 2021-08-19T18:54:42 | 2021-08-19T18:54:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | #!/usr/bin/env python3
# encoding: utf-8
"""
The toolbox for sensitivity analysis related tasks
"""
import os
from typing import Union
import pandas as pd
from easy_rmg_model.common import get_files_by_regex
def find_sensitivity_results(path: str) -> list:
"""
Find all of the flux diagrams in the given di... | [
"xiaorui@mit.edu"
] | xiaorui@mit.edu |
218fef243d24f0c570240a111af436b200b31a0b | 96c8dad8103ab34636d562a0d0284419dc1c3332 | /dfsbfs/dfs1.py | f95a4bd788b790a283cf8ea026d24130a6881587 | [] | no_license | misombae/algorithm | 67d052b6e29f50da9383e698fa44ec76edfc17d8 | 4cf38a58d736298955814349b259e45dd86ef3dd | refs/heads/master | 2023-06-06T06:36:56.271585 | 2021-07-06T08:41:14 | 2021-07-06T08:41:14 | 312,466,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | def dfs(graph, v, visited):
visited[v] = True
print(v, end=' ')
for i in graph[v]:
if not visited[i]:
dfs(graph, i, visited)
graph = [
[],
[2,3,8],
[1,7],
[1,4,5],
[3,5],
[3,4],
[7],
[2,6,8],
[1,7]
]
visited = [False] * 9
dfs(graph, 1, visited) | [
"jung00351@daum.net"
] | jung00351@daum.net |
0b32ee51da6520203c238f484f0612348ef855f4 | 07c25b0830a57105fa0e7f9864f740132267aace | /cuboid/Ae20a_Ae40a/rbc_simulation_cuboid2_4ext20_40/src/libs_dataset/cells_dataset.py | 4b821c4d457358e541b9ef9710d45d42eba85c96 | [] | no_license | katkaj/rbc_classification | d0486760e5fe04ba3c7c586e616d1253070f71ed | 21b1c80bc2e61ecdf5fe04fe8c66a93cb3f4c43d | refs/heads/master | 2023-04-05T09:16:07.450794 | 2021-04-15T10:22:19 | 2021-04-15T10:22:19 | 331,882,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,399 | py | import numpy
import torch
from .dats_load import *
class CellsDataset:
'''
create dataset for classification
usage :
1, load data, just calling constructor
@param training_files : list of paths to dats files
@param training_labels : list of class IDs, integer numbers, from range <0... | [
"katarinajasencakova@gmail.com"
] | katarinajasencakova@gmail.com |
d60fd0cd20b5ebb9ad94e8a5ff23d7cf6b3a157d | 10ecee5ad6bbd1b53922ffcd0f88d047d3cad67c | /bullet.py | c7480f03732dbbb446e41923cff8919dbf0a3441 | [] | no_license | AlexeyNarush/Tankgame | 0e52384cfbd5c1be7b454d6b8eba316833708ce3 | a446bcb9335aa69d727207e8406627c5f48eaffc | refs/heads/master | 2021-06-25T22:31:33.650261 | 2021-01-15T11:30:31 | 2021-01-15T11:30:31 | 198,632,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | import threading
import pygame
from color import *
import settings
# Main part of the class
class Bullet:
def __init__(self, x, y, tank, enemy, boxes, screen, grid):
dx = 0
dy = 0
if (tank.direct == 1):
dy = tank.reverse
if (tank.direct == 2):
d... | [
"noreply@github.com"
] | noreply@github.com |
6a41cba7b5b408fb7bf3f0a195e14dcd1b736ff7 | 57e71ac3b8766c5330aefbbf97b36d55543b3135 | /user/urls.py | 0aca3a86de749c9e3d9109e750721b45570a45aa | [] | no_license | soha4597/SoftwareEngineering | 804869d1d88b9b3705a3f7c6de65901534e8a975 | efc44204bbaac045cb1c16a375b0e8474c774c31 | refs/heads/master | 2022-05-25T10:25:28.450031 | 2020-04-25T19:06:28 | 2020-04-25T19:06:28 | 257,473,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,955 | py | from django.conf.urls import include, url
from django.contrib.auth import \
views as auth_views
from django.contrib.auth.forms import \
AuthenticationForm
from django.urls import reverse_lazy
from django.views.generic import (
RedirectView, TemplateView)
from .views import (
ActivateAccount, CreateAcco... | [
"55846248+soha4597@users.noreply.github.com"
] | 55846248+soha4597@users.noreply.github.com |
dd1796069eca388c891cdb81582a79e9a4753f55 | 18cd88b68c1d859d17b1191d85003a7a8dc2c0c5 | /Algorithms and data structures (Python)/N. Test №2/E-Sort, even first.py | 4048d765c7b1dc26aa60e8f002f586613a42d10f | [] | no_license | GrigorevEv/Hello-World | f9783b3293958a4ed4e78b7f6727d577da6e0b85 | 2c376c8be1c95a1124fea4ce8de7e196abfa47ad | refs/heads/master | 2021-07-14T09:14:39.064437 | 2021-07-05T08:33:09 | 2021-07-05T08:33:09 | 241,601,746 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | # Сортировка: сначала чётные
# Дан список целых чисел. Отсортировать его так,
# чтобы сначала шли чётные по возрастанию, потом — нечётные во возрастанию.
# Формат входных данных
# Одна строка — список чисел через пробел. Длина списка не превосходит 10000.
# Формат выходных данных
# Отсортированный список чисел через пр... | [
"eug.grigorev@gmail.com"
] | eug.grigorev@gmail.com |
5696a36c2f8f7768f1c9549ab216ada16a7a7de9 | b17cc16682b9fecd8584c14d407db1f7d7be8285 | /Pythons/PlayList/playlist.py | f8798c916618fbdb803168f38618619a8dc30c5e | [] | no_license | mosesadelere/SeleniumTesting | 67a825ca809b0800ed4d7c185b090a7e813129b5 | 95916bbca20890600b4da43c6ebd25e42df93546 | refs/heads/master | 2023-01-09T22:35:38.200351 | 2019-11-08T20:16:29 | 2019-11-08T20:16:29 | 207,618,220 | 0 | 0 | null | 2022-12-27T15:37:34 | 2019-09-10T17:10:39 | C# | UTF-8 | Python | false | false | 5,290 | py | import argparse
#import sys
from matplotlib import pyplot
import plistlib
import numpy as np
def findCommonTrack(fileNames):
"""
find common tracks in given playlist files,
and save them to common.txt
"""
# a list of sets of track names
trackNameSets = []
for fileName in fileNames:
... | [
"moses.adelere@gmail.com"
] | moses.adelere@gmail.com |
8bbdf1ea9a66ac4566bc2f4eeb58a4233a72cbef | 5783df40921343441c4b14128d8fd15052cbcc9f | /Assignment4/frozen_test_policy.py | b05e85aa9a179593ea53acad94867874d21399e0 | [] | no_license | dheeraj141/CS7641 | 38fd819026ada35f65f7eda099acde42e90dc04b | c312762ae0890f7e4619188785c6686cf99b5e0c | refs/heads/master | 2020-12-15T11:27:08.259467 | 2020-04-13T02:12:38 | 2020-04-13T02:12:38 | 235,086,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,705 | py |
import numpy as np
import gym
from gym import wrappers
import time
import sys
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
from gym.envs.toy_text.frozen_lake import generate_random_map
# using the Bellman equation, we find the action providing the highest value for the given state s. ... | [
"dhiru5040@gmail.com"
] | dhiru5040@gmail.com |
de595e301bdb831393d86ebe115a6d1a6c36418f | a2e19fd174bedd860297bcc72032dce0f1ea2339 | /graphs/torch_geometric/transforms/target_indegree.py | 72931a2e680b9cf2cbcdde83d215c688111fe7a3 | [
"MIT"
] | permissive | Cyanogenoid/fspool | 29772ea76fa96c35b59e1c0cdb7581b3714028ee | a9f93cc774610c6d96c2c3095a1ab16f53abbefb | refs/heads/master | 2023-08-03T10:58:16.139258 | 2022-11-22T23:16:32 | 2022-11-22T23:16:32 | 190,535,015 | 47 | 8 | MIT | 2023-07-22T07:41:22 | 2019-06-06T07:25:24 | Python | UTF-8 | Python | false | false | 1,579 | py | import torch
from torch_geometric.utils import degree
class TargetIndegree(object):
r"""Saves the globally normalized degree of target nodes (mapped to the
fixed interval :math:`[0, 1]`)
.. math::
\mathbf{u}(i,j) = \frac{\deg(j)}{\max_{v \in \mathcal{V}} \deg(v)}
in its edge attributes.
... | [
"cyanogenoid@cyanogenoid.com"
] | cyanogenoid@cyanogenoid.com |
2f9507e0023317b7c1bcad8b2b356ae0211bfdb9 | 474316f5dd548bb184f95c637fdeef2014c639b0 | /lesson104.py | 9e4a8508e4c5f0c5eb4ca1c5ffcccabb290a40a3 | [] | no_license | ipcoo43/openpyxl | c9a3669ddc9bd81402676cdda41d21bbe03b0bc9 | 8cc35f86b280a192c0b473cc88e1affdf39707da | refs/heads/master | 2020-06-03T16:41:39.418059 | 2019-06-13T00:50:49 | 2019-06-13T00:50:49 | 191,653,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | import pandas as pd
# 데이터 가져오기
df_01 = pd.read_csv('https://goo.gl/VwsTBR', parse_dates=['년/월/일'], thousands=',', index_col='년/월/일') # 삼성전자
df_02 = pd.read_csv('https://goo.gl/2udsQq', parse_dates=['년/월/일'], thousands=',', index_col='년/월/일') # SK하이닉스
df_03 = pd.read_csv('https://goo.gl/TbBGhJ', parse_dates=['년/월/일'], ... | [
"ipcoo43@gamil.com"
] | ipcoo43@gamil.com |
59191c77f25619736c50028ce314e77aaf3e30e8 | 5ad0a8ab299d852cfccf2c2a2300ace1deffa567 | /profiles/urls.py | a909bf12551cfd7f9fdb6caf5dd0a83538baae1f | [] | no_license | Code-Institute-Submissions/wilsons_express_v1 | ee12bf6f2e4925f09d75a2863e0f1326a0a38a5a | a9f7cfc701c77b8457a23d60f1b77b9b1282843a | refs/heads/master | 2023-05-12T10:31:19.359384 | 2021-06-03T06:46:08 | 2021-06-03T06:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.profile, name='profile'),
path('order_history/<order_ref>',
views.order_history, name='order_history')
]
| [
"tom@wilson-express.co.uk"
] | tom@wilson-express.co.uk |
84969d228479d87b46b5c3f1187ed6c1ed997aac | 260aa7c38bfbae2bf7bdc17ab4e178f93bd60ec6 | /week8/hackerrank/H.py | 23844744f951d5a28f555af3e257dd750cdd69fd | [] | no_license | Orik236/Web_Orka236 | 0fe177febe193821f62cf3687865a11799662e13 | 49ddf61de35213be490b4aa08ad041231fe584e7 | refs/heads/master | 2023-01-09T22:22:40.846945 | 2020-04-16T22:47:38 | 2020-04-16T22:47:38 | 247,916,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | if __name__ == '__main__':
n = int(raw_input())
arr = map(int, raw_input().split())
arr.sort()
for i in range(n-1, -1, -1):
if arr[i] != arr[n-1]:
print(arr[i])
break
| [
"orik236@gmail.com"
] | orik236@gmail.com |
fd4e92bc1ce559550f5ed0eefe3489856b8f2c3e | bfa9de121fd150f6ae35b09e66a3a422b7d0d724 | /jobbole/spiders/blogjobbole.py | 13c24cada5d7a45e24663fa6ce7b17a1742584cf | [] | no_license | Damaomaomao/jobbole | 566a43780cd85f44ecf3060ba2ffb5d73e086a20 | c3b498131d48b2d61b269e93157e7b1caddf6c19 | refs/heads/master | 2020-03-27T09:48:09.207979 | 2018-08-28T01:25:51 | 2018-08-28T01:25:51 | 146,373,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,908 | py | # -*- coding: utf-8 -*-
import scrapy
from urllib import parse
from scrapy import Request
from jobbole.items import JobBoleArticleItem
from jobbole.utils.common import get_md5
from scrapy.loader import ItemLoader
class BlogjobboleSpider(scrapy.Spider):
name = 'blogjobbole'
allowed_domains = ['blog.jobbole.com'... | [
"noreply@github.com"
] | noreply@github.com |
dcbb3a2a64f363d7f18000a2d5f5d1e90f843698 | 4124ece01d93b56476f43150f3b74a2f6bee58de | /combine_imagees.py | 807f521e1a6ef5c1a7fdaa136e4748854e9490a3 | [] | no_license | codeWorth/Risk | 73eaadf20c3137731a72a4881cbec5ef931a3123 | f15b93b239862418e5fee0bfba2fa601b1a1d310 | refs/heads/master | 2020-04-13T03:13:30.623612 | 2019-01-07T21:32:42 | 2019-01-07T21:32:42 | 162,925,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
import os
folder = "Risk_Game_Masks"
img_names = os.listdir(folder)[1:]
print("Images:", img_names)
imgs = []
im = cv.imread(folder + "/" + img_names[0])
for i in range(1,len(img_names)):
print("Combining", img_names[i])
im_add = cv.imread(fo... | [
"agcummings11@gmail.com"
] | agcummings11@gmail.com |
293750a1df2e071993a368ed11baa5af6cd47c45 | 6c2949fdd8bb3f84d6c5724ac2696f7b2aacb1d5 | /Chap10/zipCompress.py | d664de31fb59f24d8983aa872306232b9910a380 | [] | no_license | KhubiThakkar/Automate_boring_stuff_with_python | e20b4678587cf4d318faa4c5466851268537eb87 | 4437df78fad638e69472f04836f9ef3ae2d80a59 | refs/heads/master | 2022-12-26T21:03:41.045900 | 2020-10-02T11:20:54 | 2020-10-02T11:20:54 | 268,807,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | import zipfile
newZip = zipfile.ZipFile('new.zip','w')
newZip.write('notes.txt',compress_type=zipfile.ZIP_DEFLATED)
newZip.close() | [
"khubithakkar@gmail.com"
] | khubithakkar@gmail.com |
aee25b2c0432faa4054629f062c5552c6b6ca076 | 3d2892dee75f10dd896bcc3164eb7794234f99c7 | /Web/migrations/0003_auto_20170219_1010.py | 52ce4bfc3a8c6c8ad028eacd6f6479261d011fd5 | [] | no_license | character123/NN | 9f3772de00f58d4622943cdc382fe0ec7cad5824 | 74d40f4a5a43034722c84cb9c1d55c6df6d01e5c | refs/heads/master | 2021-01-20T11:40:52.928062 | 2017-03-05T02:53:12 | 2017-03-05T02:53:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-19 02:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Web', '0002_administrator'),
]
operations = [
migrations.AlterField(
... | [
"iyinst@163.com"
] | iyinst@163.com |
2c1f69352b450d8c39cc563eeb0e9d94e66c2049 | b17cf12c9bc640843500b67f7a57ba5566db973b | /main.py | 1b1066e4b3ed0da4ff573fb31a49f4e6708b8686 | [
"MIT"
] | permissive | catarinaacsilva/smartcard-application | a3a6453dd8ea40241d6f8df482ceaea2fc21f548 | f5225b6054a101ba6c86ef6a8168481aca732191 | refs/heads/main | 2023-07-03T07:05:06.489618 | 2021-08-19T15:44:17 | 2021-08-19T15:44:17 | 348,493,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | # coding: utf-8
import base64
from flask import Flask, request, jsonify
from pteid import PortugueseCitizenCard
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
@app.route('/sign', methods=['GET'])
def sign():
data = request.args.get('data')
print(data)
data = base64.urlsafe_b64decode(data)... | [
"c.alexandracorreia@ua.pt"
] | c.alexandracorreia@ua.pt |
5c50a6c864458a2d13557be69ad99984215c517d | ff0205f9bb32d4ba3722062b5e006091baa0a075 | /Mnist_loader.py | 059e7ea53006c690fe1a5c688ece5cd821f15773 | [
"MIT"
] | permissive | Morbotu/drone-PWS | aa2897c32c21139cba57d13734c640bddd6536d3 | face9cbf30a55783592cce8af59c1c70da982b6a | refs/heads/main | 2023-08-13T23:55:24.361691 | 2021-09-29T19:15:18 | 2021-09-29T19:15:18 | 369,836,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py |
#### Libraries
# Standard library
import pickle
import gzip
# Third-party libraries
import numpy as np
def load_data():
"""Return the MNIST data as a tuple containing the training data,
the validation data, and the test data.
The ``training_data`` is returned as a tuple with two entries.
The first en... | [
"ivarmkl@gmail.com"
] | ivarmkl@gmail.com |
1ed1fd53c05132b0db20d7e934c8223cee591b0b | 138cc74989e553406675ad147fa68eea68857ddd | /roamer/constant.py | ab357735cc7e3aeec0ba58a239dd8b815e653797 | [
"MIT"
] | permissive | skiningham/roamer | 0e59a109eeb634d9e162f24a7494361ddfc911f3 | 95d15c3f5fcadb15acf256da22ce8b5e891ee113 | refs/heads/master | 2021-01-15T19:17:57.474588 | 2017-08-08T13:18:00 | 2017-08-08T13:18:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | """
App wide constants.
"""
import os
from os.path import expanduser, join, exists
ROAMER_DATA_PATH = os.environ.get('ROAMER_DATA_PATH') or expanduser('~/.roamer-data/')
ENTRIES_JSON_PATH = expanduser(join(ROAMER_DATA_PATH, 'entries.json'))
TRASH_JSON_PATH = expanduser(join(ROAMER_DATA_PATH, 'trash.json'))
TRASH_DIR =... | [
"alex@ecstaticlabs.com"
] | alex@ecstaticlabs.com |
96255d4f2ce8784e80468c3d0f97586ad4b37598 | 351cce7faf6d7b7d5d9ced841a2c43e56a64b382 | /python/pcc/alien_invasion/alien_invasion.py | b0a699b67d067399782cad5ed17e678a8556b933 | [] | no_license | uniqueyehu/snippet | 3bb70c766e4610d7c36db7616477f0982c669612 | 705624670efa299ead7af0dde3103214147ef72f | refs/heads/master | 2021-01-19T18:40:09.794143 | 2018-06-21T09:48:36 | 2018-06-21T09:48:36 | 101,152,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | import pygame
from pygame.sprite import Group
from settings import Settings
from ship import Ship
from game_stats import GameStats
from button import Button
import game_functions as gf
def run_game():
# 初始化游戏并创建一个屏幕对象
pygame.init()
ai_settings = Settings()
screen = pygame.display.set_mode(
(ai_settings.screen_w... | [
"yehuwuhan@gmail.com"
] | yehuwuhan@gmail.com |
73792dca5929690baefc1e1de428047a6769f82e | 9fbcb46606ac2ef683d8d4c15a1e5659013874b6 | /LimitSetting/test/amsbLimitConfigBkgds_2016BC.py | 5cc90edd199aa7919a4234d32c3a06930858297b | [] | no_license | Mohammed2/DisappTrks | 9431b1c221909d4e0b00da94f95a71785e1d036b | 954afb1c826afe59b7f86a56e08c06eb62f0d7c2 | refs/heads/master | 2021-01-09T09:38:13.325448 | 2017-02-06T23:14:10 | 2017-02-06T23:14:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | #!/usr/bin/env python
# Bkgd configuration file for limit-setting produced with makeANTables.py
backgrounds = {
'Fake2016BC' : {
'N' : '0',
'alpha' : '0.613186900771',
},
'Elec2016BC' : {
'N' : '19',
'alpha' : '0.112543527986',
},
'Muon2016BC' : {
'N' : '25'... | [
"ahart@cern.ch"
] | ahart@cern.ch |
440b04e023befaf72d7d3678165ee4c37222007b | bf6e3d9831292ccb0b5d80f43eef4d746743e8ad | /motion_planning.py | eac48db5d3eb8cb76049ccf166eb0646e6b7bec8 | [] | no_license | aherreraGH/fcnd-submission | 214a7c6bb2a1de7e5b3e878aeacbef6f39d94bcb | 97ebfbd40bdb2ccf47764c4926849e20b02b7122 | refs/heads/master | 2020-04-12T01:51:28.680051 | 2018-12-19T03:11:14 | 2018-12-19T03:11:14 | 162,230,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,057 | py | import argparse
import time
import msgpack
from enum import Enum, auto
import numpy as np
from planning_utils import a_star, heuristic, create_grid
from udacidrone import Drone
from udacidrone.connection import MavlinkConnection
from udacidrone.messaging import MsgID
from udacidrone.frame_utils import global_to_local... | [
"aherrera@ispatechnology.com"
] | aherrera@ispatechnology.com |
ba2717b239459dfb1604420e0c25d61e892727a9 | 9f25ae744df70ce1318833b5b454f03cdc8721ac | /tensorflow_federated/python/research/flars/run_emnist.py | 9448653a421e6eca44920fc22b9b645ea715c53e | [
"Apache-2.0"
] | permissive | zhenzhenclaire/federated | ae4bb49f134cc747c737d197874b30ac55523103 | 6749c9f51f3457c2377c95763afe6484062c7dcf | refs/heads/master | 2020-09-17T13:20:51.574956 | 2019-11-25T19:54:30 | 2019-11-25T19:55:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,950 | py | # Lint as: python3
# Copyright 2019, The TensorFlow Federated Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
c085a12af46eb81e89314a45406944f8eae28655 | c452b223adf390edddf4339dd7360fe6de66b8d8 | /common/models/general/arrangement_param_category.py | af4e79144973fc3d344abf6729f539cd45a73b87 | [] | no_license | dev1andriy/creditbase_server | a321b16976c7cfe87d3ee5cfaf700850ea1b689c | 4ee067e175a1cca3f907a61ebc3d369ecdcebd66 | refs/heads/master | 2023-05-13T17:13:23.486966 | 2020-07-16T07:50:56 | 2020-07-16T07:50:56 | 280,089,440 | 0 | 0 | null | 2021-06-10T23:10:15 | 2020-07-16T07:49:41 | Python | UTF-8 | Python | false | false | 828 | py | from django.db import models
from common.models.abstract import *
from common.models.general import ArrangementCategory
class ArrangementParamCategory(DescribeableModel, HostableModel, TimeStampedModel, InsertableModel, UpdateableModel,
StatusRecordableModel, MakeableModel, CheckableMod... | [
"dev1@azon5.com"
] | dev1@azon5.com |
ec374575740741eacd925cc5ae3600c4e7d3485f | 80d9b0e7562ab21a91fd41211d3158d0f2ffb6f4 | /views.py | 9221e9b08e9467f3dceafe6dd8abda81f447c3e4 | [] | no_license | andrewsdb/app | d5b03d9dd30e2bb0072574a96427b14aad65cfc8 | 50d97894f2ec65053732b953ba9531954d06fbec | refs/heads/master | 2021-01-10T13:46:38.300605 | 2015-11-14T19:47:54 | 2015-11-14T19:47:54 | 46,189,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | from flask import render_template
from app import app
@app.route('/')
@app.route('/index')
def index():
user = { 'nickname': 'Andrew' }
posts = [
{
'author': { 'nickname': 'Andrew' },
'body': 'Beautiful New York!'
},
{
'author': { 'nickname': 'Su... | [
"bazar201@yandex.ua"
] | bazar201@yandex.ua |
e51e9d8e55037af7027c1f21826354efb2f4e844 | 97ccb80711a21f48d4bc931f7e0fe2a4bd3e7b31 | /mysite/settings.py | 925d11ab029f8020b2c8324a55eb7a1b2e5de845 | [] | no_license | van130712/my-first-blog | 6a2fdd0e1dcaa40a5a014f89708a9094012bfce4 | 479c15604c1d86bbd7ab36312652f10749c8f639 | refs/heads/master | 2020-03-07T07:20:24.248663 | 2018-03-29T20:44:39 | 2018-03-29T20:44:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,209 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"van130712@gmail.com"
] | van130712@gmail.com |
54a16eb5e58dcb11b6d7cf9660c0f23195d77d80 | 1ae4d3632f788f1a5e8f1e919e3f43b5f53d9ecd | /lesson8 (Classes and Objects)/task1/tests.py | cddd379483e0bf414ccf987e4108c929e001695d | [] | no_license | catharsis96/pythonintro2 | fc1f2dc3380efff92918c4bf9f77615b39380c0a | ac896af08e0835372bd1e6901b99f005bf0bb4b8 | refs/heads/master | 2021-04-29T11:37:30.599143 | 2017-01-02T16:23:48 | 2017-01-02T16:23:48 | 77,846,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from test_helper import run_common_tests
if __name__ == '__main__':
run_common_tests()
| [
"catharsis96@yandex.ru"
] | catharsis96@yandex.ru |
86f82641a1c080209a57cf5742d18c46d141af45 | 3459c022f192229e787672c170ac72df666826d2 | /cgi-bin/cUpdateInfo.py | 7e956a1c21988f56bb5cefc750fbdfd4fff680ed | [] | no_license | RebeccaAxelro/TherapyClinicProject | 380950491b014944ed97a32826b8befc6765a8d3 | d81bdd31375c117d168dd2e686e6239b525680de | refs/heads/master | 2020-05-29T23:17:36.919339 | 2019-09-26T20:53:40 | 2019-09-26T20:53:40 | 189,431,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | #!/usr/bin/python3
import mysql.connector
from mysql.connector import errorcode
import cgi
# Connecting to DB
cnx = mysql.connector.connect(user='raxelro1', database='raxelro11', host='localhost', password='rikikiki98')
cursor = cnx.cursor()
# get values from form
form = cgi.FieldStorage()
clientID = form.getv... | [
"raxelro1@mail.yu.edu"
] | raxelro1@mail.yu.edu |
79a1e28b6284f2ab644f930fcb922a65d1c1e49e | 0e383dc880cb1494695796b22c2d6e4944606f8d | /ResimAktarma/1_resim_ice_aktarma.py | b3c28db9dfb36da6a9909496c9b3db4e65e13a49 | [] | no_license | mustafaermehan/ImageProcessing | 2bacce9874558c05743e99360c54a7069fa49e0a | ba5e2308a8ff87e9e78adb830244aa34b2b79b31 | refs/heads/master | 2023-04-16T07:01:24.538617 | 2021-04-09T21:25:46 | 2021-04-09T21:25:46 | 356,519,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | import cv2
#ice aktarma
img = cv2.imread("messi5.jpg",0)
#gorsellestirme
cv2.imshow("ilk resim",img)
k = cv2.waitKey(0) &0xFF
if k == 27:
cv2.destroyAllWindows()
elif k == ord('s'):
cv2.imwrite("messi_gray.png", img)
cv2.destroyAllWindows() | [
"muhammedermehan@hotmail.com"
] | muhammedermehan@hotmail.com |
7b572c56260cb84c647162a4b997c9efd4fb1876 | 835a4d70cbde27aa243cc29a444edba2ceece3c9 | /livemark/plugins/rating/__init__.py | 54309eb242f2b4875d2e36db64aa491a32045a61 | [
"MIT"
] | permissive | gassantos/livemark | 288b4ea2f828fe70971ccacdf86a8ed0367aa440 | 81f2fe6b80f867c605066b4f3d461a0b8376fac3 | refs/heads/main | 2023-08-18T04:16:48.653679 | 2021-10-05T15:00:29 | 2021-10-05T15:00:29 | 413,883,159 | 1 | 0 | MIT | 2021-10-05T15:52:12 | 2021-10-05T15:52:12 | null | UTF-8 | Python | false | false | 33 | py | from .plugin import RatingPlugin
| [
"eskarev@gmail.com"
] | eskarev@gmail.com |
8f45b32ff54590216f23d71428a9af02912ec472 | 63ca3ae6d647d56f4b4899717101e96165cadc10 | /facenet_sandberg/validation/src/calculator/threshold_calculator.py | d0781ab220355fbe86279ce80494dd6deaa2dafc | [
"MIT"
] | permissive | beholder-ai/Facial-Recognition-and-Alignment | 2da9f13b8eacf03258e47e32a8443e549e378b36 | 58f74668e5fe9f5e39ed294309345f50b90dc61a | refs/heads/master | 2020-06-01T01:48:10.965259 | 2019-06-06T18:49:15 | 2019-06-06T18:49:15 | 190,583,417 | 0 | 0 | MIT | 2019-06-06T13:09:33 | 2019-06-06T13:09:32 | null | UTF-8 | Python | false | false | 2,849 | py | from parser.pair import Pair
from typing import Callable
from typing import Iterable
from typing import Union
from typing import cast
import numpy as np
from sklearn.metrics import accuracy_score
from sklearn.metrics import f1_score
from sklearn.metrics import precision_score
from sklearn.metrics import recall_score
... | [
"arrahm@microsoft.com"
] | arrahm@microsoft.com |
8a557df71b669e1288c1046d61e2f9c5d36d7fb9 | 94c1877436496b76f6147033936b1a87bab8eb0b | /linguistic/params.py | 956b447f15c9b0c241dbe4fd98dabb69caaa42f4 | [
"MIT"
] | permissive | tejasvaidhyadev/IA-for-AI | 787852705915ad781d650b0b963e1df098c8904d | 8e6f21e9489e5e1651bfc8500708bf5fb10625ea | refs/heads/main | 2023-08-04T04:10:18.054185 | 2021-09-14T10:41:28 | 2021-09-14T10:41:28 | 405,497,716 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--seed", type=int, default=4214)
parser.add_argument("--test_mode", type=str, default="False")
parser.add_argument("--batch_size", type=int, default=16)
parser.add_argument("--lr", type=float, default=1e-5)
parser.add_argument("--n_epochs", type... | [
"iamtejasvaidhya@gmail.com"
] | iamtejasvaidhya@gmail.com |
7d3f714af967bd72c5b298559703ad61836d1ef6 | 7f1d7ab26d7451d463a259c5c3afdc2cb7c406a8 | /src/py/server.py | 29d6665a1b0bfe7eef9c29658159b11707e6ba72 | [
"Apache-2.0"
] | permissive | mitre-cyber-academy/2013-networking-400 | 47abe21d73ea8bd4ee99a2f8cf156aabb44a9250 | 7e69e3066ae9728ab135b78bbf1190cbbee18718 | refs/heads/master | 2020-04-09T18:39:14.962220 | 2015-01-30T22:37:53 | 2015-01-30T22:37:53 | 21,870,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | import socket
import hashlib
import time
#Create a UDP socket
servSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
#Bind to localhost on port 12345
# (change this to the system hostname to make sure the port is accessible
# externally)
servSocket.bind(('localhost', 12345))
#These are the accepted values for ... | [
"rbclark@mitre.org"
] | rbclark@mitre.org |
26588a5bd6c60329fb9784354d63a7c210882afd | 3232dbec06a45acb9f9b9b5b632206e4dfec1edb | /sandbox/forms.py | 98bac101f317c682bc72e0cd4816e17517bc6bbc | [] | no_license | Krzewskimichal/Python_tutorial | 301dc7a64c3227afaeff3f3b66a20c54c03c6d76 | adc883a7fddb0436fbfe53cd00aca26c1265afb9 | refs/heads/master | 2020-04-28T03:56:48.448864 | 2019-03-26T19:17:19 | 2019-03-26T19:17:19 | 174,958,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | from django import forms
from django.forms import ModelForm, TextInput
from sandbox.models import BuiltInFunction, Exams, StringMethods, ListMethods, DictionaryMethods, TupleMethods, \
Keywords, SetMethods, Messenger
class LoginForm(forms.Form):
username = forms.CharField(label='Login', max_length=128)
pa... | [
"koksawp@o2.pl"
] | koksawp@o2.pl |
e454e998b10b71eb2c5e4296521d0d1b6049e620 | 6aef2fdd5b98038fc6ecc7551dd76dccf370c4ae | /dam_files/GPOMDP_SVRG_WV_ada_verA_fr_nver.py | 3d7b6f4be390313cd231003fe202c8f7f2f11b2a | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Bobeye/rllab | 29b1cf3f29b748f93af4ac103d1a0eaa40290e7f | 53c0afb73f93c4a78ff21507914d7f7735c21ea9 | refs/heads/master | 2020-05-02T07:18:17.323566 | 2019-03-26T02:34:02 | 2019-03-26T02:34:02 | 177,814,299 | 0 | 0 | NOASSERTION | 2019-03-26T15:14:46 | 2019-03-26T15:14:45 | null | UTF-8 | Python | false | false | 14,358 | py | from rllab.envs.box2d.cartpole_env import CartpoleEnv
from rllab.policies.gaussian_mlp_policy import GaussianMLPPolicy
from rllab.envs.normalized_env import normalize
import numpy as np
import theano
import theano.tensor as TT
from rllab.sampler import parallel_sampler
from lasagne.updates import sgd
import mat... | [
"damiano.binaghi@gmail.com"
] | damiano.binaghi@gmail.com |
e5adbda3bfd130759ee55d9236a7a02a81be12f4 | c4b4c822cf145cca03d6234fa9b116e7db4e10f6 | /Djangoshop/Shopapp/views.py | b64073aa0ca3b927c5bdd038c58bb5f163b55d71 | [] | no_license | BeefpasteC/Django_shop | 98bff8a5242b3b86e9b98378846551dc0ac51f2b | 276ce6a8b21997b0854308f883c0a2cccc15bf2b | refs/heads/master | 2022-02-13T11:16:03.012290 | 2019-08-05T14:19:39 | 2019-08-05T14:19:39 | 198,127,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,454 | py | import hashlib
from django.http import HttpResponse
from rest_framework import viewsets
from django.shortcuts import render
from django.core.paginator import Paginator
from django.http import HttpResponseRedirect
from django_filters.rest_framework import DjangoFilterBackend #导入过滤器
from Shopapp.models import *
from Buy... | [
"ybw@qq.com"
] | ybw@qq.com |
f5008b11b7c269198447176e0be1ed0159fb3293 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03643/s854792404.py | 21c5aecd6628fea2e59a9a75708442b6a3221801 | [] | 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 | 30 | py | print("ABC", input(), sep='')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
00f48aaa623569a716ff694a42aefda03ced3f3f | cb1c89fa0ff9d6be258f79225432baa0557ea7e4 | /setup.py | 7ad925d18c07d69d8c3d5705bcc41ab8309954cb | [
"MIT"
] | permissive | MehdiKhiatiDS/pyzel | 6ee6cbdbfb531774e6be59602bd7026766384762 | 068efcb93d17b1ff55a1b3ff98f11b763696b531 | refs/heads/master | 2021-07-16T12:45:54.651089 | 2020-01-16T23:51:57 | 2020-01-16T23:51:57 | 234,185,576 | 1 | 0 | MIT | 2021-02-02T22:44:38 | 2020-01-15T22:24:44 | Python | UTF-8 | Python | false | false | 874 | py | """
lambdata - a collection of data science helper functions for lambda school
"""
import setuptools
REQUIRED = [
"numpy",
"pandas"
]
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
setuptools.setup(
name="lambda-MehdiKhiatiDS",
version="0.1.1",
author="mehdikhi... | [
"mehdi1710@me.com"
] | mehdi1710@me.com |
18cb5655c01d6818570cc0a5be0580119604d7dd | 04a7c28bc4a5cc8b60de89790014e8c55a257aaa | /Tests/test_shopping_cart.py | 4ab0c29c3d7cb2bf4e7fdd1bf41ce2b652bf7858 | [] | no_license | samphillips1879/bangazon-cli | 6752ff95c866a202aadf3bb6974aee6cc5e2f501 | 9aeb75bb63e4eae683c60e92de7039dc432a22d2 | refs/heads/master | 2021-01-11T13:29:22.100642 | 2017-02-09T15:53:52 | 2017-02-09T15:53:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | import unittest
import sys
sys.path.append("../")
from models.shopping_cart import ShoppingCart
class TestShoppingCart(unittest.TestCase):
"""
A test suite for the Shopping cart Feature of Bangazon CLI
Methods:
test_current_cart_should_be_ShoppingCart_object
test_ShoppingCart_should_add_product
... | [
"onodric@yahoo.com"
] | onodric@yahoo.com |
2eec319a9772ff9612bfe2709b8c3b2df9b1914c | f7801b1663359e743c6480a8c88673e59e3a7526 | /UIskeleton/settingsUI.py | f67750640d660d4ba947dbe231ba6e0b154237df | [] | no_license | Wireless-Research-Tester/demo-day-1 | 889981b3b6b5e07c6b18c1404c09921a8fffde9b | 941fd84a73f133fff1d95e1c409236789b21e8ce | refs/heads/master | 2022-04-20T01:35:24.212114 | 2020-04-19T14:24:17 | 2020-04-19T14:24:17 | 254,984,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,343 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'settingsUIui.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_SettingsWindow(object):
def setupUi(self, SettingsWindow):
... | [
"noreply@github.com"
] | noreply@github.com |
5db3c4e86d1a6261f1a040a0848cd0b6e9f505f8 | b50a3e5bffcf4bc74e82d1325078795188c9e693 | /appium_native/NativeScript_example.py | 69b3bb0c7c10ec043454f9a3be3421b3c3a203bf | [] | no_license | hyuhyu2001/Performance_Test | 0fe7a7261b4bbfc1441f97c46b2607bc83831490 | 350829c2245120d0d91e5b3042a35521ce7522c4 | refs/heads/master | 2021-01-20T13:54:49.298009 | 2017-09-04T07:18:46 | 2017-09-04T07:18:46 | 90,532,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,426 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: jinzj
@desc:
"""
import time
from appium import webdriver
import unittest
class MyTestCase(unittest.TestCase):
#脚本初始化,获取操作实例
def setUp(self):
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformV... | [
"hyuhyu2001@163.com"
] | hyuhyu2001@163.com |
56b73c378dc15cd1cb9b85ce3fbac27d7a98a8d2 | 5b2da553d6730c4a12dd79cc4b131ca5e9caa1e5 | /3.3. FindDistances.py | fff71a47ccb150ba3a09c0a9b149cf0c97ce7806 | [] | no_license | kyle-musser/pyQGIS | 5ddc3d9ba03326c57c80a0ed7db9d1dc08fd7a0e | 3da7a27e472cea89cde5b87ef35b0f0f1ce5a672 | refs/heads/main | 2023-03-14T04:48:23.679180 | 2021-03-02T20:53:21 | 2021-03-02T20:53:21 | 343,826,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | from geopy.distance import lonlat, geodesic
import pandas as pd
import os
# Set current directory of files
os.chdir(r"D:/cenBlock")
# Read in NCES directory 2018 CSV to Pandas DF (this data made in stata with .do file ("get_nces_dir.do")
cenBlks = pd.read_csv("points_AlbersXY.csv")
# Get list of unique sta... | [
"noreply@github.com"
] | noreply@github.com |
a6107f7c2a4bb3af826b9f687c7e29f7e8bb9073 | afd9c05005fba757f764c6bc8b102437b2901750 | /models/store.py | 126dd891e12ed31804a15c82d532a448d0657253 | [
"MIT"
] | permissive | LEMSantos/udemy-flask_rest_api_advanced | 083e29c82784ffa07f6b87dd0e8d9083f0df939e | c93f6643272154900f40b68f8afb33ff0e796d0a | refs/heads/main | 2023-04-23T10:14:04.132884 | 2021-05-15T15:30:10 | 2021-05-15T15:30:10 | 359,181,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | from typing import List
from db import db
class StoreModel(db.Model):
__tablename__ = 'stores'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80), nullable=False, unique=True)
items = db.relationship('ItemModel', lazy='dynamic')
@classmethod
def find_by_name(cls, na... | [
"lucas_m-santos@hotmail.com"
] | lucas_m-santos@hotmail.com |
1244cffa917235f8cc158bfee7ded70f12f8a100 | 5b03cd12bd8ed9e3cc14cdba32417c6012d9ba58 | /Chap 1 WRITING YOUR OWN FUNCTIONS.py | 0c6182594504d64f1cd33241e93252d4d80d1daa | [] | no_license | thediaryofmos/Python-Data-Science-Toolbox-Part-1- | f6b4426486219c3ac868073bbaa44d6400ead03a | 15b622ce1764ceef34317cf81ca0e7b302e44118 | refs/heads/master | 2020-03-26T06:57:14.752097 | 2018-08-14T17:26:40 | 2018-08-14T17:26:40 | 144,629,408 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | # Define the function shout
def shout():
"""Print a string with three exclamation marks"""
# Concatenate the strings: shout_word
shout_word='congratulations'+'!!!'
# Print shout_word
print(shout_word)
# Call shout
shout()
######
# Define shout with the parameter, word
def shout(word):
"""Prin... | [
"noreply@github.com"
] | noreply@github.com |
527edb431dd1457f28ca1352dd2e56a613093674 | 43e8af55bd953a3e435810574f0d4db8a00bcd82 | /nut/script/brand.py | 48321e0aea25cc7b349bf5cad31bf840e6c63ae8 | [] | no_license | bopopescu/nut | 3818cc66e543870180dae943944ef026f191a385 | 39c58afe7fa7be185b1a3ac64e8c295d16601bd6 | refs/heads/master | 2022-11-18T05:28:14.209311 | 2017-09-29T10:32:54 | 2017-09-29T10:32:54 | 282,010,209 | 0 | 0 | null | 2020-07-23T17:05:57 | 2020-07-23T17:05:56 | null | UTF-8 | Python | false | false | 660 | py | import os, sys
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
sys.path.append(BASE_DIR)
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings.production'
from apps.core.models import Entity, Brand
brands = Brand.objects.filter(icon__isnull=False).order_by('name')
for row in brands:
print row.name
# brands = ... | [
"edison7500@gmail.com"
] | edison7500@gmail.com |
8afc4b175d6daf29d8d76024f3fed50f27bd6e88 | f4fee13ab9d3c474b404ded89459c0e198ccb3d9 | /spotinst_sdk/test/test_deployment_action.py | 6d0e24b769ada670d02215aa24799f7e1d896f9a | [
"MIT"
] | permissive | nironkoren/spotinst-sdk-python | 6f195332f8d0fcaf47e7fbf9ae24a0e1d58c4a1b | f7ddca5a2510b9601a83e9d8f0befb8518cfe3c2 | refs/heads/master | 2021-01-13T21:02:08.739229 | 2020-03-09T10:23:29 | 2020-03-09T10:23:29 | 242,493,287 | 0 | 0 | MIT | 2020-02-23T09:58:01 | 2020-02-23T09:58:00 | null | UTF-8 | Python | false | false | 1,556 | py | import os
import unittest
from spotinst_sdk import SpotinstClient
from spotinst_sdk.spotinst_deployment_action import *
class AwsElastigroupTestCase(unittest.TestCase):
def setUp(self):
self.client = SpotinstClient(
auth_token='dummy-token',
account_id='dummy-account')
se... | [
"kmcgrath@users.noreply.github.com"
] | kmcgrath@users.noreply.github.com |
62f1bec1bce5d85beddd91380d21928a6282091f | 96d20f2e1f74f5fbc55832a0cb9cb1d8fd3337f6 | /21-occurence_of_a.py | efb5984aab4c4fa2aef6caae0dddb4e2a7d3f7f4 | [] | no_license | Anupama-Regi/python_lab | e2e5e38fd9233493f7a9d25ab5e8a5eb59e29689 | 3f79776a02f5565a3e908bfcfa56e4a2800bff47 | refs/heads/main | 2023-03-03T09:03:48.055327 | 2021-02-16T17:52:48 | 2021-02-16T17:52:48 | 314,258,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | print("*Program that store a list of first names.Count the occurences of 'a' within the list.*")
s=input("Enter list of names : ")
l=list(s.split())
print("List of names : ",l)
c=0
#for i in range(s):
# n=input("Enter the name : ")
# l.append(n)
for i in l:
for j in i:
if j in "Aa":
c=c+1
print("Occur... | [
"noreply@github.com"
] | noreply@github.com |
1cad745cb3fc25575b6ba2e453d2efb213f69eaa | 96d7fc7b53c881da09b460e4a6e6ad4faabe8fe7 | /spiking_model.py | 759b1c2c76a663d7c51531c7ed660e3d85f7ee65 | [] | no_license | zcqsata/depression-model-tdcs | cb43759264ab5b167e62eb4d36ac313b2fbf8c42 | cb8da08e2b29667aa71c34ae5b45fdbecbf23521 | refs/heads/master | 2022-12-08T04:41:43.837298 | 2020-09-01T18:34:38 | 2020-09-01T18:34:38 | 292,067,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,916 | py | ############################################################################################
#
# Simulation code for "A computational model of Major Depression: The role of glutamate
# dysfunction on cingulo-frontal network dynamics"
# Ramirez-Mahaluf J.P., Roxin A., Mayberg H.S. and Compte A. Cerebral Cort... | [
"anna.tarasenko.16@ucl.ac.uk"
] | anna.tarasenko.16@ucl.ac.uk |
a785fa75ca5f54312b34d6bd5aac24470cbef85a | ea9d5e38d55d7e69bcb4ae74bb3dfd3028fba4d3 | /open/Alibaba/scripts/restore_full_accuracy_logs.py | 4f38d42ed16346c08f49ba912ba62b8fd81f07fb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ltechkorea/inference_results_v1.0 | cbe29d0f32c525b74525c1c215bf66d8385f3fd0 | 48e24f151f2625a579d34f0a721ad3698d173dbb | refs/heads/ltech | 2023-07-04T06:38:49.691181 | 2021-08-09T23:40:48 | 2021-08-10T01:33:22 | 387,295,024 | 0 | 0 | NOASSERTION | 2021-07-31T00:54:06 | 2021-07-19T00:20:19 | C++ | UTF-8 | Python | false | false | 8,293 | py | #! /usr/bin/env python3
# Copyright (c) 2021, NVIDIA CORPORATION. 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
#
# ... | [
"tjablin@google.com"
] | tjablin@google.com |
131bd775fbf3660157f4776eed1ec7adfd17b2bf | 4bb2dd97c277feaa7da5fbe08d3cdf979fef27d2 | /Handwritten digit recognition/Handwritten_digit_recognition.py | 406487547b10e3f08baf66c9273b0b4ea142b525 | [] | no_license | mtraino/Projects | 5aec66678aea70701646fa631fa1de7e7fba09f9 | acd4e52c7cf3f353cc749f2f48c83bbe8209bb46 | refs/heads/master | 2021-06-21T00:11:01.867485 | 2021-01-27T16:19:10 | 2021-01-27T16:19:10 | 168,620,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | """
Matthew Traino
Handwritten digit recognition
Use a neural network for simple hand written number classification.
Python 3.6.7
"""
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense
from sklearn.metrics import confusion_matrix
import matplotl... | [
"noreply@github.com"
] | noreply@github.com |
231e4d07e29b17f02396788300517879e737412d | 8da5e4898e3371da60f9b59683709ff9fe7d2426 | /PostProcesing.py | 41c580d8bcdf487d70e8da6e0090807f5cafa7a0 | [] | no_license | deepakkumar18035/ScriptToAnimation | 29664028b690c84814da75804ac01d3f29ef79b5 | ea81be4837ce21b47742d46e45cf6a3d783984ac | refs/heads/main | 2023-04-18T05:29:27.869645 | 2021-05-05T03:29:54 | 2021-05-05T03:29:54 | 362,127,932 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | import moviepy.video.io.ImageSequenceClip
import moviepy.editor as mpe
import sys
import os
destinFolder = "VideoOut/"
def CleanDestinFolder():
for x in os.listdir(destinFolder):
os.remove(destinFolder + x)
return
def combine_audio(vidname, audname, outname, fps=24):
my_clip = mpe.VideoFileClip(vi... | [
"57425653+deepakkumar18035@users.noreply.github.com"
] | 57425653+deepakkumar18035@users.noreply.github.com |
1757b4ada40fc740822f3b724ac68b278d18e210 | 400797adf8ff2a1e72e7d9782e114c1ce29fcf1b | /guoanan/ybsmt/manage.py | 36314349be59a9bf735c1ec682cbf34872ee8cfa | [] | no_license | guoanan2013/guoanan | d42106fc497bb19dc64549f01825b319e24f219c | fa79cea662f685aadaa2ae81d89c6743f04b6beb | refs/heads/master | 2016-09-05T12:47:07.268876 | 2014-04-19T08:01:02 | 2014-04-19T08:01:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ManagementTool.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"guoanan1991@gmail.com"
] | guoanan1991@gmail.com |
4861fd1d218577378ff34c1e71ad307195501e93 | d0ba48b0f15020009d8ccdc0cac913a2f310734d | /Triplet_DataLoader.py | 7928acb3a90914f36250f9915487758c22124d33 | [] | no_license | hangxiu/MetricEmbeddingNet | 4bf1c61ba9d1dfd167621f9b4d4230f527b46f06 | e9ca2efc41a88bb87378635ac62e9e0a1b26cbaa | refs/heads/master | 2022-12-20T05:57:21.797528 | 2020-09-12T17:22:50 | 2020-09-12T17:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,714 | py | import torch.utils.data.dataloader as dataloader
import os
import torch
import torchaudio
import numpy as np
from random import sample as Sampler
from random import shuffle as shuffle
import matplotlib.pyplot as plt
import numpy as np
import math
import time
PATH = "/home/lucas/PycharmProjects/Papers_with_code/data/AM... | [
"lucvanwyk@gmail.com"
] | lucvanwyk@gmail.com |
de208f04509fcd32302469aab73510ac8b2d37a0 | a6ae30df32be713ea300f3c855be34c400b60a2a | /app/analyseData.py | 991a469b07eb6b7eb5687659b63e427c6e6e3046 | [
"MIT"
] | permissive | amelie-fri/munch-api | 894f54e430443876c9ed4c1f43ff8b3cd3c4e646 | cbb205acbb5b1a107862cd8a53197de5317a26e4 | refs/heads/master | 2023-02-12T22:44:16.585945 | 2021-01-04T15:46:53 | 2021-01-04T15:46:53 | 295,173,268 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | # script used to analyse how successful the approaches to extracting data are
from dataManager import parentManager
from TeiParser import Family
import os
import pprint
analysisFile = "analyse.txt"
# write to analysis file - analyse.txt
def writeToFile(_text, mode="a", pretty=None):
# Append to file
with ope... | [
"amelie.fritsch@posteo.de"
] | amelie.fritsch@posteo.de |
d3fe713ff5f60fc69efa875fdd910f323bdca4de | f9e80950ce3db2fc7075329d62fffd736c09f705 | /helpers.py | e01f9832461b7309290ef4b92cbb8d8f30f9dfba | [] | no_license | pjcunningham/kivy-slideshow | 9535a710ae80444978fcd1cbbbad4ce4d634e0fe | 7b7ee0aa59be1835926fde8101c60c88c68325b3 | refs/heads/master | 2021-09-04T00:39:49.667576 | 2018-01-13T12:52:16 | 2018-01-13T12:52:16 | 115,718,229 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | # coding: utf-8
__author__ = 'Paul Cunningham'
__copyright = 'Copyright 2017, Paul Cunningham'
__all__ = ('InformationPopup', )
from kivy.uix.popup import Popup
from kivy.properties import StringProperty
from kivy.factory import Factory
from kivy.lang import Builder
from kivy.clock import Clock
Builder.load_string('... | [
"pjcunningham@borsuk.co.uk"
] | pjcunningham@borsuk.co.uk |
fba3d916cd1e71365c605eae8806f8a831fd0736 | 5e8ed29add41ca0a1ac0eacbda447292313874c3 | /algo/neural_nets/models/transformers/common/utils.py | 2f252bd98a5e8af2e8a4c398bd737a204108ced7 | [] | no_license | TharinduDR/Offenseval_2020 | aa4961937bc98158b2e24c28934411df2a853c2d | a08764ae5980223ae8577c9fd6f160d8a450cfd6 | refs/heads/master | 2023-07-20T06:12:48.467268 | 2020-03-03T17:08:30 | 2020-03-03T17:08:30 | 224,734,186 | 2 | 0 | null | 2023-07-06T21:55:29 | 2019-11-28T21:41:28 | Jupyter Notebook | UTF-8 | Python | false | false | 13,750 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | [
"rhtdranasinghe@gmail.com"
] | rhtdranasinghe@gmail.com |
47a668f3b3c71dc906e455e0af643c0e9956d44c | d7c4fb488735495bf180ba8862b7526273cfe6ab | /034.py | ea9f7b56719f971829eff00432cc7a31800a55ec | [] | no_license | vasundhara7/Hangman-Game | 9c3d6938aacfc87c6ca8fe1c01824cfcacec3e9f | 21bf5164c420e07aad1be8121a9a5a758d3d013f | refs/heads/master | 2020-08-29T23:37:56.261315 | 2019-10-29T04:54:03 | 2019-10-29T04:54:03 | 218,203,863 | 0 | 1 | null | 2019-10-29T04:54:04 | 2019-10-29T04:24:56 | null | UTF-8 | Python | false | false | 3,909 | py | def game_category():
intro = True
Bg = p.Surface((1280,720))
Bg.fill(black)
Bg = Bg.convert()
image=p.image.load('hng7.JPG')
screen.blit(image,(0,0))
while intro:
for event in p.event.get():
print(event)
... | [
"riyashachijain@gmail.com"
] | riyashachijain@gmail.com |
f919b9550febb7ecf8b2528040e9d305db4824f9 | 962c6ebc7926557c2364ba3b160c16ec0dc3d177 | /src/prob_particle_advection.py | e04794cf0592f94e9a9b06799b8138061f70f572 | [] | no_license | behollis/bv-interp-python-etc | 25a0cd015d8c4df6b9b042c553db7eb7e6701e91 | 1de6c20511e58e01a083464d06ab91d0be57530f | refs/heads/master | 2021-01-20T13:47:32.905642 | 2014-03-19T22:37:05 | 2014-03-19T22:37:05 | 34,290,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88,044 | py | #!/usr/bin/python
# This is statement is required by the build system to query build info
if __name__ == '__build__':
raise Exception
'''
Author: Brad Hollister.
Started: 10/7/2012.
Code shows advection of particles in 2d velocity field with configurable distributions at each grid point.
'''
import n... | [
"behollis@soe.ucsc.edu"
] | behollis@soe.ucsc.edu |
e141b5109ef148c76ef47552c65a7500e0ccd86e | d63cc8ea5b5e9bf06f0c62032dc1065dda0b5056 | /apps/order/models.py | 5b12e73107a9dfb2fa4c81aa786f92e5b61c27a4 | [] | no_license | henya-lee/ecommerce | 4757bfe7f30d8bcc70b4a0ee997ab4f440462863 | 285ea86ed5d3643346fe1ef88d7b3e4e48765a72 | refs/heads/master | 2023-04-11T18:35:42.795797 | 2021-05-17T09:40:25 | 2021-05-17T09:40:25 | 363,979,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | from django.db import models
from django.contrib.auth.models import User
from apps.store.models import Product
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User, related_name='orders', on_delete=models.SET_NULL, blank=True, null=True)
first_name = models.CharField(max_length... | [
"henyahouse@gmail.com"
] | henyahouse@gmail.com |
68a88e898837c2b48769ce8f329b01880312bcd8 | c16074df9284162febda485038e53fdabc734a0d | /events/migrations/0027_auto_20161008_1342.py | 5cd603bd42cc53ceba5682fd5e2a9bb8f88a6aa5 | [] | no_license | CharterTechChair/Charter-Website | 42e8a4d5c5a5bc0925f8a55c8be276d926d112c8 | ddf53ec492202c3a8dc678ebabcd0c394e6884cb | refs/heads/master | 2023-02-12T20:02:56.143737 | 2021-01-17T00:40:59 | 2021-01-17T00:40:59 | 32,171,388 | 2 | 1 | null | 2021-01-16T22:30:17 | 2015-03-13T17:46:54 | Python | UTF-8 | Python | false | false | 1,912 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('events', '0026_auto_20161002_0127'),
]
operations = [
migrations.Alter... | [
"aw18@princeton.edu"
] | aw18@princeton.edu |
c3714a4e0accb876c1bd652b5af80327436ed625 | adf253ebc9c3bb326a727d87ba2e071ded76d608 | /ci_scripts/test_linux-daemon-gui.py | b29ae50d3a3e638eb5cde43fd9125dc4f71a011a | [
"MIT"
] | permissive | NeblioTeam/neblio | 5e0da815df7f1d69d04090fe5e7fed2445962dce | cebf9fcb1fb4e9935fcfdf459d5185488a2c04e5 | refs/heads/master | 2023-05-01T20:35:36.266611 | 2023-03-02T07:31:07 | 2023-03-02T07:31:07 | 98,357,215 | 143 | 71 | MIT | 2023-04-19T10:07:40 | 2017-07-25T23:06:34 | C++ | UTF-8 | Python | false | false | 3,035 | py | import os
import urllib2
import multiprocessing as mp
import neblio_ci_libs as nci
nci.setup_travis_or_gh_actions_env_vars()
working_dir = os.getcwd()
deploy_dir = os.path.join(os.environ['BUILD_DIR'],'deploy', '')
nci.mkdir_p(deploy_dir)
os.chdir(deploy_dir)
build_target = ''
build_target_alt = ''
if(os.environ['t... | [
"neblioteam@gmail.com"
] | neblioteam@gmail.com |
384655f551d569d0d82ac2fef4cb9233e2021e67 | 0eb77a906c13057f3156bcb8e0ccc10feac48f3b | /tests/test_expected_failures.py | 2ac2ea9be78d10daa460573c15add9080b21bb37 | [
"MIT"
] | permissive | VM-development/UnitTesting | 7afbbfbbd8558d8a196146c40b86841f18c28102 | 937e9988e5dac1aa888bf874a1e7b0f2f86422d7 | refs/heads/master | 2020-07-28T22:49:42.377462 | 2019-09-18T09:08:08 | 2019-09-18T09:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | from unittest.case import _ExpectedFailure, _UnexpectedSuccess
from unittesting import DeferrableTestCase, expectedFailure
class TestExpectedFailures(DeferrableTestCase):
def test_expected_failure_coroutine(self):
@expectedFailure
def testitem():
yield
1 / 0
try:
... | [
"herr.kaste@gmail.com"
] | herr.kaste@gmail.com |
f859154d5f57224e28ff3c86d52fb20ef3daa727 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/firebase/test/android/models/describe.py | 2e6269eaff842799d27a35ceee33f6973b77541a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 2,172 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google LLC. 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 requir... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
bd713cacf29a8daa5bc11405e1234ffe4d5053e6 | 808c626eb8d3ec779cb9a579740fc3b71637973e | /verification/tests/core/pro_results.py | 979155fdca9b46b9815a877bdd904b7330fb262a | [
"MIT"
] | permissive | hossamfadeel/pito_riscv | 86777518cc2eee2ef1d43fc28a5c47fcbf99e9ac | 94df6f2201798765984017c82d1fdf0355f68d45 | refs/heads/master | 2023-07-10T04:20:03.861621 | 2021-08-07T02:52:59 | 2021-08-07T02:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | all_tests = ['add','andi','bge','bltu','jalr','lbu','lui','ori','sll','slti','srl','sw',
'xori','addi','auipc', 'bgeu','bne','j','lh','lw','sb','slli','sra','srli',
'test','and','beq','blt','jal','lb','lhu','or','sh','slt','srai','sub','xor']
result = {}
for test in all_tests:
filename = ... | [
"m.h.askari.hemmat@gmail.com"
] | m.h.askari.hemmat@gmail.com |
21da6730408720e864074b332fe8aa9c76b7bd59 | 8aa3862892f0728eba5c31b27f56440962763551 | /count_and_say.py | fe237ffbd95f6981ffcaa6126524bd8c98247f03 | [] | no_license | WendyBaiYunwei/leetCodeSoln | 3220988407ac839a98a12df179993ae6784637ae | 16e2b3be21f8d0892e3323e57a41a0c7abe499b0 | refs/heads/master | 2022-04-17T12:14:07.189844 | 2020-04-17T06:29:11 | 2020-04-17T06:29:11 | 256,421,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | class Solution:
def countAndSay(self, n: int) -> str:
res = [1,1]
if n == 1:
return '1'
if n == 2:
return '11'
for _ in range(1,n-1):
new = []
subList = []
for num in res:
if not subList:
... | [
"yunweibai@gmail.com"
] | yunweibai@gmail.com |
867eef15b10f56265c0191117aa6083a3190b598 | 5da5c1dcc7358dd0d5d1a1c26a853b633e31e512 | /YQ/wsgi.py | e08c8b45c902b3976effbe8d7d6b55d3fef6c42e | [] | no_license | zwj4386/YQ | 94b6d0493a08ccdddcfb7ed006ae215a26edf268 | 83315e70be45a8d04dc9e6606ebddda556dd3927 | refs/heads/master | 2021-05-11T09:19:01.273317 | 2018-01-19T04:06:55 | 2018-01-19T04:06:55 | 118,074,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | """
WSGI config for YQ project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_M... | [
"noreply@github.com"
] | noreply@github.com |
8c49ec26ee9a34f09bae0f21d55ed20b5381019d | 8e411080e358b4f765a6240047483bc45d8ba141 | /migrations/versions/5fca91e724f3_addresses_table.py | a8ed6821dfbc185c18d59012ca14fb18923a8a49 | [] | no_license | bplantico/address_book | 6dab03ce610ec4e441cae988e876b30315bbb96f | bb95b58058d0807201c7b26d731f07d7bb14bbdc | refs/heads/master | 2022-12-11T07:06:59.764008 | 2019-10-07T17:13:34 | 2019-10-07T17:13:34 | 212,234,584 | 0 | 0 | null | 2022-12-08T06:40:39 | 2019-10-02T01:45:40 | Python | UTF-8 | Python | false | false | 1,180 | py | """addresses table
Revision ID: 5fca91e724f3
Revises:
Create Date: 2019-10-03 14:25:28.902577
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5fca91e724f3'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ge... | [
"bplantico@gmail.com"
] | bplantico@gmail.com |
108813c2966f2d28ebb9bd0f2bc7b804dff57b7b | 18dd49bbbb26e9aa7dfcc130c5056a6d71c806dd | /Second/venv/Scripts/pip3.6-script.py | 603907a7ffde12bbf64fdc8f52c64b193e04fa1d | [] | no_license | jin234/Python | f20f8f35347bd731c18e4fab81344d9b3bf1c51d | e0b7d27c0d91a157ec50400a94607d58c6e7c465 | refs/heads/master | 2020-04-06T17:23:00.721984 | 2018-11-15T06:56:10 | 2018-11-15T06:56:10 | 157,656,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #!D:\58121003-6\Python02\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6'
__requires__ = 'pip==9.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])
sys.exit... | [
"58121003-6@TNISTUDENT.AC.TH"
] | 58121003-6@TNISTUDENT.AC.TH |
b057ac191b726d52a6f84bef87683ab909713538 | 807f7a447ab6fcda12109b9835a28c85c62bf071 | /scripts/add_valid_user.lmns | e38a0e268db81b0c7d2a81fedc4f406f14f71ded | [] | no_license | tosbaa/samba_final | 81d816a09a34af36f9944f7143592a21ce4fa05b | 47ccba1e7822dfac3a3312aca49eda92b2f59737 | refs/heads/master | 2022-01-17T10:41:51.489928 | 2019-07-19T07:22:46 | 2019-07-19T07:22:46 | 197,715,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,329 | lmns | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 1
# User ile dosya paylaş
# Verilen kullanıcı samba paylaşımına eklenir
# 1.0
# samba
# section_name:string,user_name:string
# 3
# Yagiz Kocer
# yagizkocer@gmail.com
# Havelsan
# add_valid_user
import configparser
import json
import sys
import subprocess
import re
SAMB... | [
"yagizkocer@gmail.com"
] | yagizkocer@gmail.com |
250bea95e339f759048f6e65e8d2ab46e2e0255b | fe5ace1dbd848d01c94395195c4cfa03d7bdbc42 | /test_solver.py | 1e1f0e35ee2db8859b831cf08256ba07639889b4 | [] | no_license | mikemercer87/particle-diffusion-test | dd119ba5a6fb1334c91e86981706b20e38d3a802 | 00afde78d5f000e085982bc906eb3b26f54ffdd7 | refs/heads/master | 2020-04-04T10:05:32.035111 | 2018-11-01T16:07:08 | 2018-11-01T16:07:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from solver import *
def test_j_function():
d = Diffusion()
d.j()
for i in self.j_array:
assert i <= self.J_0
| [
"i.korotkin@soton.ac.uk"
] | i.korotkin@soton.ac.uk |
ef2ce05740e7b844a4e6ec703eaeddecf5ca482f | f52bce3bbd32e16b340edb9789fb6494e27afa38 | /pythings/hourglass_array.py | af6a233bd2cdddfe0ce3d0c075c18ba82a9afdb0 | [] | no_license | hsoni1687/crackDCode | e9332f731862b08864c5f6d34eb77892fe317c89 | 9143e8220fcfc7b99bf48e39d0b2b9b5df0828fc | refs/heads/master | 2020-09-17T05:58:03.402721 | 2020-03-29T14:35:47 | 2020-03-29T14:35:47 | 224,012,244 | 0 | 0 | null | 2020-03-29T14:37:24 | 2019-11-25T18:12:06 | Python | UTF-8 | Python | false | false | 2,786 | py | """Given a 2D Array, :
1 1 1 0 0 0
0 1 0 0 0 0
1 1 1 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
We define an hourglass in to be a subset of values with indices falling in this pattern in 's graphical representation:
a b c
d
e f g
There are hourglasses in , and an hourglass sum is the sum of an hourglass' values. ... | [
"its.safal@gmail.com"
] | its.safal@gmail.com |
379bb60b989827755983015f3c8a215044afd5c6 | 6aaed35d75e1867fe1e66c4e7ffc634e9c4c015d | /run_CORDOVA.py | c77191d10c12b479613b7df9ad5d2b8e3e366307 | [] | no_license | ancordovag/assignment4 | ca7f5c110d17510dca4d28f1b6d76ecb9eec26ce | 6c8e5a2ca19abdebfec8ab52a0d80632cd53ec0f | refs/heads/main | 2023-06-17T20:26:38.257374 | 2021-07-21T17:24:56 | 2021-07-21T17:24:56 | 379,573,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,153 | py | import os
import argparse
import yaml
import random
import torch
import time
from utils import Dataset
from model import NLINet
from torch.utils.data import DataLoader
from torch.optim import Adam
from torch import nn as nn
from tqdm import tqdm
from time import sleep
def parse_args():
"""Parse input arguments""... | [
"ancordova25@users.noreply.github.com"
] | ancordova25@users.noreply.github.com |
479909e738c2439397c85cf7b05aeff54cd8ae06 | c2471dcf74c5fd1ccf56d19ce856cf7e7e396b80 | /chap15/2.py | 903e0714bb432e40595c1ec7820bcb7a9ec1d98c | [] | no_license | oc0de/pythonEpi | eaeef2cf748e6834375be6bc710132b572fc2934 | fb7b9e06bb39023e881de1a3d370807b955b5cc0 | refs/heads/master | 2021-06-18T05:33:19.518652 | 2017-07-07T04:34:52 | 2017-07-07T04:34:52 | 73,049,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | class Node(object):
def __init__(self, data, left=None, right=None):
self.data = data
self.left = left
self.right = right
def findNextKey(root, key):
if not root: return
if key > root.data:
return findNextKey(root.right, key)
if key < root.data:
p = findNextKey(r... | [
"xxesnxx@gmail.com"
] | xxesnxx@gmail.com |
7eb6aa2c7a3a61820192f4a616810ac257d6c0b7 | 2ab5463706f9f70dcb717745127c4dd350f08342 | /Src/Decorators/Decorator_to_calculate_functionTime.py | df4fbbca8f0e34c4a36880b34b7775ac5f43316e | [] | no_license | ChinmayTagare/Advanced-Python-Concepts | 63c08d2d9971727c675e35a54360d7e4d221f9e2 | 3b25e06ebf5a023f06924c3ae2d73718426c9988 | refs/heads/main | 2023-06-03T09:31:17.155323 | 2021-06-29T05:23:27 | 2021-06-29T05:23:27 | 375,720,971 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # -*- coding: utf-8 -*-
"""
Topic : Decorators in Python
Author : Chinmay Tagare
"""
import time
import math
# Define decorator function
def calculate_time(main_func):
def inner_func(*args, **kwargs):
begin = time.time()
main_func(*args, **kwargs)
end = tim... | [
"t.chinmaybhalchandra@gmail.com"
] | t.chinmaybhalchandra@gmail.com |
118208c4fd8ae6100b849572f1987522739c72ef | 36d1af455d542a3321289c974f4b1a2b4dadf3be | /CompOp.py | d7b1126de16bccc5df68df2a2b0f66f5a02a90ab | [] | no_license | motomaniak/InterpreterProgram | 778a1d24c1357c2465dd7610318e9676b82b8e84 | 0b4fe1e71cfc4d85388d5a3e60c602c9abf3d8e1 | refs/heads/master | 2021-01-10T14:35:27.242613 | 2017-01-27T21:43:07 | 2017-01-27T21:43:07 | 80,242,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | import sys
class CompOp:
def __init__(self, t):
self.case= 0
self.t = t
def parse(self):
#check which operator is being used by token number and assign a different case for each
x = int(self.t.peek())
if x == 25: #!=
pass
elif x == 26: #==
self.case= 1
elif x == 27: #<
self.case= 2
elif... | [
"noreply@github.com"
] | noreply@github.com |
824fb823da3b50f2ee3f0f8725e12ef232d652af | 0d97cf653219d2e12a868ff94890f00d6673e864 | /Database/gamedb.py | 519372b822dbb1cd25060e5bed308c036971b1fc | [] | no_license | ChitharaKarunasekera/BouncingMath | 03c617391d308c82f239e87408168d6cf6f4194a | fb49ca72db16c315ebae43f58a3acf7dbfb1a8d5 | refs/heads/main | 2023-07-27T22:55:00.990519 | 2021-09-20T15:16:25 | 2021-09-20T15:16:25 | 408,475,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | import mysql.connector
from prettytable import PrettyTable
def connect():
"This function is to bulid connection with thw database"
global conDict
global db
global cursor
#Open database connection with a dictionery
conDict = {'host':'localhost',
'database':'bouncing_math',
... | [
"chithara.2019@iit.ac.lk"
] | chithara.2019@iit.ac.lk |
0f0065ea7a5f13dced622e24fa758ba9deeb184e | 0c0f6a6e47120afad8ff01e701a27bc6bb359f6c | /settings.py | 22e08e148d689e7565735d9d6b13cc8378806bce | [] | no_license | gundamjr/Fabrica | dedd0bf9d0a2672afc7339984a5f32e633f2aae5 | 8f7e243e796aa0c46ee404bfc10be7a9372e50b6 | refs/heads/master | 2021-01-01T03:53:54.312742 | 2016-06-08T20:04:32 | 2016-06-08T20:04:32 | 58,213,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | """
Django settings for ceep project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"gundam.ph@hotmail.com"
] | gundam.ph@hotmail.com |
8d9e85dc3c307a5bcdedab7d153ca207622be8c9 | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/graph_objs/area/hoverlabel/__init__.py | fc3a516acf6390598c9ea92f63b06b09005b52f1 | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 10,981 | py |
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# color
# -----
@property
def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff000... | [
"noreply@github.com"
] | noreply@github.com |
faea1d2d3aff94918153747b463fda5afb5fea96 | 85a32fc66050b5590f6a54774bbb4b88291894ab | /python/closures-and-decorators/standardize-mobile-number-using-decorators/python3.py | 9edf509c54cd1e971677c0957f8a99e5e94b5ce6 | [] | no_license | charlesartbr/hackerrank-python | 59a01330a3a6c2a3889e725d4a29a45d3483fb01 | bbe7c6e2bfed38132f511881487cda3d5977c89d | refs/heads/master | 2022-04-29T07:40:20.244416 | 2022-03-19T14:26:33 | 2022-03-19T14:26:33 | 188,117,284 | 46 | 37 | null | 2022-03-19T14:26:34 | 2019-05-22T21:38:18 | Python | UTF-8 | Python | false | false | 336 | py | def wrapper(f):
def fun(l):
for i in range(len(l)):
p = len(l[i]) - 5
l[i] = '+91 ' + l[i][p-5:p] + ' ' + l[i][p:]
f(l)
return fun
@wrapper
def sort_phone(l):
print(*sorted(l), sep='\n')
if __name__ == '__main__':
l = [input() for _ in range(int(input()))]
s... | [
"e-mail@charles.art.br"
] | e-mail@charles.art.br |
212144725dd7bdb891489e66befa687a6cc7d9e4 | 635f8f5581c98dc22c6f5ff7210ae489d2b03197 | /src/editor/__init__.py | 173efc7150bbd80cb4ea3cbcf9f9568172e2b6cb | [] | no_license | moshev/project-viking | 2f03dd4fcf05a1c790c3230b7eff956a76d73081 | 0da83d070bde32687aeacdb7971d70a6848de57c | refs/heads/master | 2016-08-04T02:20:40.302063 | 2015-12-01T20:49:00 | 2015-12-01T20:49:07 | 1,097,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, generators, print_function, with_statement
from .hitbox_editor import hitboxeditor_main
from .level_editor import leveleditor_main
| [
"mo6eeeb@gmail.com"
] | mo6eeeb@gmail.com |
307e9a9c5e278b06a5bf2d2f92840be5798d15ff | 1dae87abcaf49f1d995d03c0ce49fbb3b983d74a | /programs/subroutines/Delta1CurrentRamp100-200A.sub.py | 5e686740bcd7a62709180483dd7887e9c8792f82 | [] | no_license | BEC-Trento/BEC1-data | 651cd8e5f15a7d9848f9921b352e0830c08f27dd | f849086891bc68ecf7447f62962f791496d01858 | refs/heads/master | 2023-03-10T19:19:54.833567 | 2023-03-03T22:59:01 | 2023-03-03T22:59:01 | 132,161,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,144 | py | prg_comment = ""
prg_version = "0.5.1"
def program(prg, cmd):
prg.add(0, "Delta 1 Current", 100.000000)
prg.add(141540, "Delta 1 Current", 102.560000)
prg.add(283080, "Delta 1 Current", 105.130000)
prg.add(424620, "Delta 1 Current", 107.690000)
prg.add(566150, "Delta 1 Current", 110.260000)
prg.... | [
"carmelo.mordini@unitn.it"
] | carmelo.mordini@unitn.it |
e664f8382f027c8384062ba1d4e5d656f1e6baf6 | 82e1ba90dd94df783e70bc27e09d89026c145abc | /bin/p/__init__.py | 08c9990f6c4dcc33359b3f681a15910e811e6fb1 | [] | no_license | pebbe/Gabmap | a8fe44c6b23cbb4a1e297dd0dbc4126c539c56ad | 7801f901f1c8bfbf4f62e52c74fcb84652cbf1f9 | refs/heads/master | 2023-06-08T22:58:18.436693 | 2023-05-31T13:40:30 | 2023-05-31T13:40:30 | 1,847,250 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 50 | py |
"""
This does parts of the user hierarchy
"""
| [
"peter@localhost.(none)"
] | peter@localhost.(none) |
e895078315d65068f1ccad0d76516477f7fe6d4e | f0b654037e9d236e42f893d8eddf7393fb73c433 | /copy_file.py | 32f30e4229681c81a0f592ef64e4a5f5f140801a | [] | no_license | greg00m/greg00m | d80f3e4e51b08e6616f763e723c9ea0ac5b4a1c3 | e37792cc5411685cfca1fe0a739a38b110163f61 | refs/heads/master | 2023-05-01T09:40:25.016078 | 2023-04-21T04:23:16 | 2023-04-21T04:23:16 | 142,930,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | #!/usr/bin/python3
file_path = "alice.txt"
try:
fh = open(file_path, 'r') #open text file for reading
except Exception:
print("unable to read file")
try:
out_file = "%s.out" % (file_path) #opens text file for writing
fh = open(file_path, 'w') #opens text file for writing
except Exception:
print("unable to write... | [
"noreply@github.com"
] | noreply@github.com |
140bc0541699a65cdf1095b23526c93f841db5bb | 5ef186f87c1b58e57b8ba443e9a1039bdf044ef0 | /tests/test_gitone.py | d956d384ed2611a5125d7fff9063c2ea37b1db84 | [
"MIT"
] | permissive | litchilin/gitone | d48bb4e1e9030cec1123349687c95d065fd0c9c4 | 9f7ea61a55fecf39663f5721e7e82bcbe41da4d1 | refs/heads/master | 2020-08-03T22:19:11.417293 | 2019-07-04T15:03:05 | 2019-07-04T15:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `gitone` package."""
import pytest
from click.testing import CliRunner
from cli import camp_cli
@pytest.fixture
def response():
"""Sample pytest fixture.
See more at: http://doc.pytest.org/en/latest/fixture.html
"""
def test_content(respons... | [
"marskar@gmail.com"
] | marskar@gmail.com |
056832faf9403db5ced2cbaed918067783f17c86 | a3a26ec5d5ac4aa034484f1652ed212ec7464baf | /MyEnv/lib/python3.7/locale.py | ae80cc80f6d8db74f005c52f5c4fa13a269240b6 | [
"MIT"
] | permissive | pratikagarwal2203/manim_simulations | b3aabe8eb0491dba0f0061b46387da4d6ad259c0 | 9d7820b894914afcb40e7f859387d9120110fa2b | refs/heads/master | 2020-05-06T12:30:29.916096 | 2019-04-21T13:18:11 | 2019-04-21T13:18:11 | 180,126,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | /home/pratik/anaconda3/lib/python3.7/locale.py | [
"pratikagarwal2203@gmail.com"
] | pratikagarwal2203@gmail.com |
b070204450dcf546ea365cff9ab64ac507811a85 | 4f8cca207c443108a5406d6a1fa4180326f96d9b | /scrapy/med126/med126/items.py | cd8d4dffa8ff2ad6abf491d9f65a051e6c1ff005 | [] | no_license | owenxu10/WebSpider | d1e73ddc90a565dec545594f48b05b308d3babb6 | 6d41172f4d6716589b7c63a3fb604596283822c7 | refs/heads/master | 2021-10-25T22:41:04.095730 | 2019-04-07T22:30:57 | 2019-04-07T22:30:57 | 79,695,240 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class Med126Item(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
number = scrapy.Field()
name = ... | [
"owenxu10@aliyun.com"
] | owenxu10@aliyun.com |
30da647e3ae38a8c0285ab9e395f297040d07d23 | bb150497a05203a718fb3630941231be9e3b6a32 | /inference/benchmark/jetson/utils/utilities.py | b7394c9faa4d10c3d6978d21fc1a4693607452c8 | [
"MIT"
] | permissive | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 5,241 | py | import os
import subprocess
import sys
import time
FNULL = open(os.devnull, "w")
# Class for Utilities (TRT check, Power mode switching)
# https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fpower_management_jetson_xavier.html%23wwpID0E0KD0HA
class utili... | [
"wangye19@baidu.com"
] | wangye19@baidu.com |
4b7511e6ab31a4735b18cdb5bb56cdebcb1f391a | ecf25af68a32600e462e27f8ae205cac8a35978f | /venv/bin/wheel | 301a42b9b315ad33267ddee83003b8ffb1942f77 | [] | no_license | bennettdrew35/resume_courses_python | 4c36e326ad453c1936b5c5890e5a878fc2304254 | c6b394babe361ba88b31d6f702e4587e5d14c5f1 | refs/heads/master | 2018-12-27T15:10:51.858169 | 2018-10-24T15:36:39 | 2018-10-24T15:36:39 | 119,621,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/drew/PycharmProjects/matplotlib/venv/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"bennettdrew35@gmail.com"
] | bennettdrew35@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.