blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d153edb29553b7d64ada0f59b1a91b11a9039869 | 2de54ad5b8432e3ac5e8901ffda0a7bb0935054b | /install/urdf_tutorial/share/urdf_tutorial/demo.launch1.py | 61b1c28272be3a8eee7d977ad0e452f0a96edb0b | [] | no_license | pw-eiti-anro-21l/kozubek_michalczewski | 789c4163a278db1c259d21de642050867fbaf244 | 98d821a1692fb4b8085fee3018c2fbd6295f5e01 | refs/heads/master | 2023-04-30T05:55:53.518465 | 2021-05-07T12:04:11 | 2021-05-07T12:04:11 | 345,424,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import Node
def generate_launch_description():
use_sim_time = LaunchConfi... | [
"01149402@pw.edu.pl"
] | 01149402@pw.edu.pl |
bd3f59a9d11388780a80aad702971349799580c5 | 0320ac4a623f9153468952a64af9093430801dcb | /tests/callbacks/learning_rate_test.py | 9503c866bcca0a3f3d20446c89f8d9a9d3d4676a | [
"MIT"
] | permissive | carmocca/PyLaia | 330629610569f9347de5cb3eb479c2ed5abaceb6 | 65b0dde6211f96d061ce6264e50ba316e8f0e7f3 | refs/heads/master | 2023-02-25T06:23:51.755052 | 2021-01-24T13:16:48 | 2021-01-24T13:16:48 | 277,486,482 | 1 | 1 | MIT | 2020-12-02T03:08:13 | 2020-07-06T08:32:49 | Python | UTF-8 | Python | false | false | 1,556 | py | import pytest
import torch
from laia.callbacks import LearningRate
from laia.dummies import DummyEngine, DummyLoggingPlugin, DummyMNIST, DummyTrainer
def test_learning_rate_warns(tmpdir):
trainer = DummyTrainer(
default_root_dir=tmpdir,
max_epochs=1,
callbacks=[LearningRate()],
)
... | [
"carlossmocholi@gmail.com"
] | carlossmocholi@gmail.com |
bf90f45077472fed8d17b9fe5b29d1377b85b63a | 837ff1dd01d0f566e9687264d51d3f3409fe4924 | /hello/app1/urls.py | 6a9f862e3a833d34a7d43d97189159630102d275 | [] | no_license | LearnerYu3/hello | 59ab96bf09d577fded9547f71d066442a13b1c4f | b8cb9ecdc7894ca3e4910873c26b836e0947e2af | refs/heads/master | 2023-01-20T05:05:09.020113 | 2020-11-21T13:13:32 | 2020-11-21T13:13:32 | 302,605,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
path("brian", views.brian, name="brian"),
path("ycy", views.ycy, name="ycy"),
path("<str:name>", views.greet, name="greet")
] | [
"1330286215@qq.com"
] | 1330286215@qq.com |
d5f73f1067d80b9fe7ac514995b5b213bc2a9bd9 | 104049eef9c4f67e88a2a833f5bd8e203b9782f8 | /scheduler/tasker.py | 98847202cd1a31d0bc546d07fe251045364cdc91 | [] | no_license | kirimaks/weather_charts | 70996f2557f1e9ed78794260b3042cabe43f5040 | 497267c56f1c5e44c99a91113ba1cdac5819097c | refs/heads/master | 2021-01-09T07:36:11.120321 | 2016-07-03T23:58:06 | 2016-07-03T23:58:06 | 61,840,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | from apscheduler.schedulers.background import BackgroundScheduler
import socket
import logging
from scheduler.tasks import yandex_temp, sochicamera_temp, worldseatemp_temp
from scheduler.tasks import wake_up
logging.basicConfig(level=logging.DEBUG)
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
... | [
"kirimaks@yahoo.com"
] | kirimaks@yahoo.com |
d9c0ac38eae4f5d3c7b46755517c7d58b8e1c72a | 30a29fe552854a838a3c3f4a87bcfca4a1716df6 | /Analysis/Analysis_TSNE_DataPoint.py | 4b8d985351be51601a1aea05d40859e2fce9a6f8 | [] | no_license | vichsuWah/Information_Extraction | 11f76c4dfa254a772280282d7b7c9c76ada62590 | eef95e14878d77182d50e95b3d3c830e277690dd | refs/heads/main | 2023-07-15T17:17:22.403923 | 2021-09-04T11:39:30 | 2021-09-04T11:39:30 | 402,982,458 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,685 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import glob
import numpy as np
import pandas as pd
from transformers import BertJapaneseTokenizer, BertModel
import re
import unicodedata
from model import *
from sklearn.manifold import TSNE
import matplotlib.pyplot as plt
import seaborn as sns
#... | [
"vich.4y4gj4@gmail.com"
] | vich.4y4gj4@gmail.com |
a687dd252ff8aa94bcc3e8419e6acb74acb68ee0 | da6bf15899bff60785b4659277a94c043c669f8f | /ulesanne12.py | df8d56aa5867f4eb954a4c0235fa765ff5f7c495 | [] | no_license | sandraonne/Python2 | 97aabe49b16043e3420dda1f49a18680b7268b01 | 7a07a02282afa1bb14390edf9082ee7da7200c6e | refs/heads/master | 2021-01-24T00:33:29.414648 | 2018-02-24T19:02:40 | 2018-02-24T19:02:40 | 122,771,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | deg_f = (float(input("What is the temperature in Fahrenheit?")))
deg_c = (deg_f - 32) / (9 / 5)
print(deg_f, " degrees Fahrenheit is", deg_c, " degrees Celsius.")
| [
"sandra.onne@khk.ee"
] | sandra.onne@khk.ee |
c32161bd88210e1a6c87cb5395adf9e602d68732 | 61aa319732d3fa7912e28f5ff7768498f8dda005 | /src/cpu/testers/gpu_ruby_test/ProtocolTester.py | cf24aec71ce40a0c2c4589ca6fb05c77686a5dd2 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | TeCSAR-UNCC/gem5-SALAM | 37f2f7198c93b4c18452550df48c1a2ab14b14fb | c14c39235f4e376e64dc68b81bd2447e8a47ff65 | refs/heads/main | 2023-06-08T22:16:25.260792 | 2023-05-31T16:43:46 | 2023-05-31T16:43:46 | 154,335,724 | 62 | 22 | BSD-3-Clause | 2023-05-31T16:43:48 | 2018-10-23T13:45:44 | C++ | UTF-8 | Python | false | false | 3,587 | py | # Copyright (c) 2017-2021 Advanced Micro Devices, Inc.
# All rights reserved.
#
# For use for simulation and test purposes only
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must ... | [
"sroger48@uncc.edu"
] | sroger48@uncc.edu |
ab874f54709718eb18eb3c5f718ae9204a92281a | b4bb9a937e0904db89c6496389f49ae555258fc5 | /apps/messages.py | b446216ae5a1105af91ba51c24960a4feb5e9fa3 | [] | no_license | vitoralves/python-api | 3e1f5f77ba61e0df2770c9d24240b46ee9c37449 | 125172ee7906392c49884f8e8fdf21bc9aa60c2c | refs/heads/master | 2020-05-24T04:21:48.857073 | 2019-05-22T16:19:52 | 2019-05-22T16:19:52 | 187,090,895 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | MSG_FIELD_REQUIRED = 'Campo obrigatório.'
MSG_INVALID_DATA = 'Ocorreu um erro nos campos informados.'
MSG_DOES_NOT_EXIST = 'Este(a) {} não existe.'
MSG_EXCEPTION = 'Ocorreu um erro no servidor. Contate o administrador.'
MSG_ALREADY_EXISTS = 'Já existe um(a) {} com estes dados.'
MSG_NO_DATA = "Os dados não podem ser nul... | [
"="
] | = |
01e1d26a9bccef926650b948be6118bd11c6dad4 | 148daf5b2e7bdff6bf43b6ea5532dd89f0a913b3 | /mozurestsdk/commerce/wishlists/wishlistitem.py | b80dc5c3704f74726f011835716b44478463b97e | [
"Apache-2.0"
] | permissive | sanjaymandadi/mozu-python-sdk | eea8ee9a88b73fd46031a4346b5bbb8988f6ff35 | ddf35791feef23705a5d84949856f59eb1c10d44 | refs/heads/master | 2021-01-21T08:44:14.790275 | 2015-09-30T19:51:29 | 2015-09-30T19:51:29 | 37,679,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,859 | py |
"""
This code was generated by Codezu.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
"""
from mozurestsdk.mozuclient import default as default_client
from mozurestsdk.mozuurl import MozuUrl;
from mozurestsdk.urllocation import UrlLocation
from mozure... | [
"sanjay.mandadi@gmail.com"
] | sanjay.mandadi@gmail.com |
ac15ea773e3d6ad0045f1650fbcadb80efd77afe | 4d13a5c2a7f8a0add9f3341033478d431ae378eb | /nlputils2.py | 4222065a77c8e6f01d6646d3ab571214423b2c53 | [] | no_license | piegu/language-models | d3bb016c8bb838da21b6bc9f0cef7edab8d0d793 | 73d2ec6f19d9aefdbc00617d5ac4d38cbc0f56ba | refs/heads/master | 2023-07-20T03:49:42.744163 | 2023-06-23T08:37:07 | 2023-06-23T08:37:07 | 208,856,340 | 175 | 67 | null | 2022-09-17T19:16:15 | 2019-09-16T17:18:28 | Jupyter Notebook | UTF-8 | Python | false | false | 5,999 | py | from fastai.basics import *
import re
import urllib.request
def get_wiki_download(path,lang):
name = f'{lang}wiki'
xml_fn = f"{lang}wiki-latest-pages-articles.xml"
zip_fn = f"{xml_fn}.bz2"
if (path/zip_fn).exists():
print(f"{path/zip_fn} already exists; not downloading")
r... | [
"noreply@github.com"
] | noreply@github.com |
6a73dd04ba81d6e84d0f974d2f9a95b9a2d41929 | ef583b730d473032f572f56c9c50a07fde9d3c03 | /CBV/CBV/settings.py | 509615f47faea6a2cd3078bd89cbe126beac8bae | [] | no_license | Kiran-MCA/django-deployment-example-2 | 94f7acfea5f77ffbcd5e95c2866c9621815b34d6 | acc80e76fe0bfe55cf03c08ee161bf6697e0ad32 | refs/heads/master | 2020-04-18T14:41:19.128830 | 2019-01-25T18:27:29 | 2019-01-25T18:27:29 | 167,595,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Django settings for CBV project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Bui... | [
"kiranmca2015@gmail.com"
] | kiranmca2015@gmail.com |
a3b83d4a039ffcdc8189a315b49c2eaadfd1546c | 9943b042d7ef2c3c165a0762ce3c46facd85e1e2 | /myalert/livedemo.py | 91d4f0cac7abc67025793128c25e12c786baf19a | [] | no_license | shaikh9404/Driver-Drowsiness-Detection | 70605327e5298a5348b31f5a8a5f24200b6520a5 | f679a5f4f03142ce3ac6ba6a2f335b8b2268d0e2 | refs/heads/main | 2023-07-05T16:20:23.074174 | 2021-08-23T09:31:34 | 2021-08-23T09:31:34 | 398,802,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,929 | py | import dlib
import cv2
from imutils import face_utils
from scipy.spatial import distance
import math
import pandas as pd
import numpy as np
import pickle
import warnings
from django.shortcuts import render
p = "static/shape_predictor_68_face_landmarks0.dat"
detector = dlib.get_frontal_face_detector()
predictor = dlib... | [
"shaikhqaiser9404@gmail.com"
] | shaikhqaiser9404@gmail.com |
2678427304e86a98502f35d1db2967dda840a57b | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/can-you-eat-your-favorite-candy-on-your-favorite-day.py | bdb18cca50672369c8859fc0b27ba4afe75dc6ed | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 429 | py | # Time: O(n)
# Space: O(n)
class Solution(object):
def canEat(self, candiesCount, queries):
"""
:type candiesCount: List[int]
:type queries: List[List[int]]
:rtype: List[bool]
"""
prefix = [0]*(len(candiesCount)+1)
for i, c in enumerate(candiesCount):
... | [
"noreply@github.com"
] | noreply@github.com |
cbb726d681cefa841cc037490ea8f842271a57c5 | 889810adc2234ff57b35afaea14065cb29ad4b8d | /manage.py | be7195ae175ff8e5b187d75da5d4f07954c03820 | [] | no_license | mlitfin123/AmeritradeTradingApp | 6d576932069cbc33d48229e72f33483724b4fa82 | 1f5ac3416ae47a2425650a6e780b599a2291b7f4 | refs/heads/master | 2022-12-28T23:28:20.354944 | 2020-10-15T19:30:57 | 2020-10-15T19:30:57 | 297,007,341 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'trading_app.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"mark.litfin@yahoo.com"
] | mark.litfin@yahoo.com |
cb5e53e5a56ab93a25f7a8f711cee7480e828eed | e4e43b09ac045c1647722c9a922b55f86837eec5 | /app/api/v1/views/meetup_view.py | dd89bcb558b9554ee82fe2219fc5abfeb92f07aa | [] | no_license | tirgei/Questioner-API | 13b8655472f09264a3b4472b1393ca99855a2a54 | aa0070fcfc14d7277921fe4dc2dc4595c6bdb03c | refs/heads/develop | 2022-12-10T08:20:23.021913 | 2019-10-22T16:37:02 | 2019-10-22T16:37:02 | 164,514,589 | 0 | 6 | null | 2022-12-08T01:31:32 | 2019-01-07T23:36:35 | Python | UTF-8 | Python | false | false | 4,015 | py | from flask import jsonify, request, make_response
from ..schemas.meetup_schema import MeetupSchema
from ..models.meetup_model import Meetup as MeetupModel
from marshmallow import ValidationError
from flask_jwt_extended import (jwt_required, get_jwt_identity)
from flask_restful import Resource
db = MeetupModel()
class... | [
"tirgeic@gmail.com"
] | tirgeic@gmail.com |
6adb8dbb66799900470cd4fd028f44790bfb5483 | 14f9b8768ae8220ef5e98f4413fcbff7464b3706 | /virtualenv/Lib/site-packages/django_elasticsearch_dsl/__init__.py | 515ee7df54d8d3bc5365201426f41a581caae93d | [
"BSD-3-Clause"
] | permissive | smbpgroup/upibo_tuan | 433fd25fa1e1180b3cce8211d6ce77b3c1f929e4 | 37abd7774fac7b45b6c6a0f0f84179937c47e19d | refs/heads/master | 2022-12-10T13:45:12.393757 | 2019-07-02T03:31:08 | 2019-07-02T03:31:08 | 162,318,482 | 0 | 0 | BSD-3-Clause | 2022-05-25T02:21:25 | 2018-12-18T16:45:52 | Python | UTF-8 | Python | false | false | 314 | py | from django.utils.module_loading import autodiscover_modules
from .documents import DocType # noqa
from .indices import Index # noqa
from .fields import * # noqa
__version__ = '0.5.0'
def autodiscover():
autodiscover_modules('documents')
default_app_config = 'django_elasticsearch_dsl.apps.DEDConfig'
| [
"vhbdragon@gmail.com"
] | vhbdragon@gmail.com |
d306243861c84fe774348629e0f6ea3b171e152b | e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488 | /duo_admin/komand_duo_admin/actions/enroll_user/__init__.py | 7def71a20edba019a1102a426347c6cd09323cbe | [
"MIT"
] | permissive | OSSSP/insightconnect-plugins | ab7c77f91c46bd66b10db9da1cd7571dfc048ab7 | 846758dab745170cf1a8c146211a8bea9592e8ff | refs/heads/master | 2023-04-06T23:57:28.449617 | 2020-03-18T01:24:28 | 2020-03-18T01:24:28 | 248,185,529 | 1 | 0 | MIT | 2023-04-04T00:12:18 | 2020-03-18T09:14:53 | null | UTF-8 | Python | false | false | 71 | py | # GENERATED BY KOMAND SDK - DO NOT EDIT
from .action import EnrollUser
| [
"jonschipp@gmail.com"
] | jonschipp@gmail.com |
604932035e16545dfa11b6e3aa2c9bd50418efe3 | cf715ecb806aab3c40b512d6027d686647fff354 | /Deployment/flask-app/server.py | c4dd6f71aaf42f582d26a9d3ff44eba332ea56f9 | [] | no_license | zhanghaoyue/mammogram_deeplearning | 780bc975bd0844cff9ff70b7abb78c2bda1c67f8 | a283373593845024c766378bbfcfb8342c8b9e99 | refs/heads/master | 2020-05-29T11:15:51.381981 | 2019-09-27T23:22:35 | 2019-09-27T23:22:35 | 189,110,965 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,931 | py | import os.path
import sys
import flask
from flask_uploads import UploadSet, IMAGES, configure_uploads, ALL
from flask import Flask, render_template, request, url_for
from PIL import Image
import time
import cv2
import numpy as np
import config
from werkzeug.utils import secure_filename
from model import Pytorchmodel
... | [
"harryzhangbruins@gmail.com"
] | harryzhangbruins@gmail.com |
db1d8e83bfc3b7b8960e859584bca4f782413fee | 6490ee652408103e865d168ce9ac79309cf662a7 | /src/camvid_pipeline.py | cc5755e6a47313ebf702e47e8a5ccd25afdad743 | [] | no_license | ml-edu/Enet | 0d5d0f3bc68ae4d135450299bc5a44b6640f83d9 | 5f8ddfae324c44ba23ae41198785d1d959f2baf2 | refs/heads/master | 2022-04-18T00:30:39.295591 | 2020-01-24T10:45:16 | 2020-01-24T10:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,345 | py | import numpy as np
import torch, cv2, os
from time import time
from tqdm import tqdm
from PIL import Image
from config import CAMVID_CONFIGS
from matplotlib import pyplot as plt
from torch.utils.data import Dataset
from torchvision.transforms import ToPILImage
def get_class_weights(loader, num_classes, c=1.02):
_... | [
"19soumik.rakshit96@gmail.com"
] | 19soumik.rakshit96@gmail.com |
fe31ab89f3e3accf47cecdd7b82dfdfe1dc82ed0 | 66e6360325b781ed0791868765f1fd8a6303726f | /TB2009/WorkDirectory/5161 Profile Check/Profile_108541.py | 2258d75bb8e0e950291c863f0631348a9989fb97 | [] | no_license | alintulu/FHead2011PhysicsProject | c969639b212d569198d8fce2f424ce866dcfa881 | 2568633d349810574354ad61b0abab24a40e510e | refs/heads/master | 2022-04-28T14:19:30.534282 | 2020-04-23T17:17:32 | 2020-04-23T17:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("ProfileCleanedMIP")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1)
)
process.source = cms.Source("HcalTBSource",
fileNames = cms.untracked.vstring("file:/tmp/chenyi/HTB_108541.root"),
streams = cms.untracked.vstring(... | [
"yichen@positron01.hep.caltech.edu"
] | yichen@positron01.hep.caltech.edu |
6f75e28c733c33a9c4658264dc52cb90fd3e4e09 | ab9a7d2ee5d73f6661483f039bb61480afb39aaa | /kegg_miner2.py | 0b369c33bb80f9b2954b1b7dfb2b30ce6174c9a7 | [] | no_license | hajimela/keggminer2 | 36291ae326ca98c9961cb348bc396ed10dc856a2 | 506b50000619c91415c822e98cd97a46cfdd83d2 | refs/heads/master | 2020-06-05T04:10:33.404729 | 2014-11-29T05:31:13 | 2014-11-29T05:31:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,340 | py | #!/usr/bin/python
#Scripted by Yi Huang on 2013.02.22
#Final edit for adding commets: 2014.11.29
import datetime
import sys
import re
import urllib2
class KeggMiner(object):
def __init__(self,spec):
self.spec = spec
def check_spec(self):
# check the spec is support
if self.spec == "hsa":
return True
el... | [
"yi.huang@riken.jp"
] | yi.huang@riken.jp |
43a44eb94d4c3cdc0eb12a66ca6aeb7e6f8ab7c6 | 49253f12cea4b2ec1df4d68876c3c330fec3f52b | /001_数据结构相关/001_set集合_交集_并集_差集_对称差集.py | f1a21ae3614ae074ef531ce11370b4832eeadf37 | [] | no_license | FelixZFB/Python_development_skills_summary | b2877652a5396936a28d5c65fb407df201ffa158 | 998679496de8385bda34734f83d927a7d340876a | refs/heads/master | 2020-06-09T16:58:51.242686 | 2020-02-27T07:02:48 | 2020-02-27T07:02:48 | 193,472,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding:utf-8 -*-
#
# 集合支持一系列标准操作,包括并集、交集、差集和对称差集,例如:
# a = t | s # t 和 s的并集
# b = t & s # t 和 s的交集
# c = t – s # 求差集(项在t中,但不在s中)
# d = t ^ s # 对称差集(项在t或s中,但不会同时出现在二者中)
a = [1, 5, 10, 15, 10]
b = [1, 5, 10, 9, 12]
# 集合会去掉重复元素
print(set(a))
print("*" * 50)
# 并集
c1 = set(a) | s... | [
"18200116656@qq.com"
] | 18200116656@qq.com |
af095db3e641ba111f02ffd9cd791a3093eb5f7f | ca954289cd260efb32f5133680aa461a71982b12 | /venv/bin/rst2pseudoxml.py | 5140891c06aa7b3dea6d293780619d8261d8f4e9 | [] | no_license | jackieroger/Project2 | 7657fbc2f63fae6a12c66fe418ce9b1d0bab3a6a | 309701517899706101112b1c0fddc9bc29cc774c | refs/heads/main | 2023-03-07T10:55:26.035207 | 2021-02-20T07:33:42 | 2021-02-20T07:33:42 | 333,577,470 | 0 | 0 | null | 2021-01-27T22:27:47 | 2021-01-27T22:27:47 | null | UTF-8 | Python | false | false | 654 | py | #!/Users/jroger/Documents/UCSF/classes/bmi_203/Project2/venv/bin/python
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing pseudo-XML.
"""
... | [
"jacquelynmarie@icloud.com"
] | jacquelynmarie@icloud.com |
664e156bea0f1e13ee514761f31115af2f4ca942 | 2dd0082221239fef0e0894c852f70f1eaeb62b9e | /Assignments/dustin/Django/lines/lines/views.py | a00b3a15e612ce29d7e5ddaeda6d95a545eae3e9 | [] | no_license | pjz987/2019-10-28-fullstack-night | 03097cf3dc24aeec0c326044bb0fc99385fbc333 | 4c643013de73f08d7503d62ec602d6a5c80ffa7e | refs/heads/master | 2022-11-11T19:40:00.296645 | 2020-06-25T16:14:47 | 2020-06-25T16:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | from django.shortcuts import render
import json
from .models import Line
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
@csrf_exempt
def lines(request):
if request.body:
data = json.loads(request.body)
for line in data['lines']:
new_line = Line... | [
"Xodacidal@gmail.com"
] | Xodacidal@gmail.com |
765ef51113cf42ecda4247258f4faac0ca6dfb9b | 6b1d15ff586690078d6c12e6935d783bce0f1e6c | /iliad/core/output.py | 0a0b39a6e070b1f3e6136f7908ca905bcd8b04e1 | [] | no_license | richardwhiuk/iliad | 41b12741a681da5f4ec821d546cf56a95d95f35c | 620e962bf904cd2ae24325d07c550a59762feddd | refs/heads/master | 2021-01-21T10:08:56.567708 | 2012-10-20T10:32:08 | 2012-10-20T10:32:33 | 1,278,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py |
def Get(module=None):
return module.load('Output')()
class Output:
def __init__(self):
pass
| [
"github@richardwhiuk.com"
] | github@richardwhiuk.com |
179abb64ecae99b91d68ad254486e6d81c809460 | c8e74578c57ba3b2f9ca985a68af55cbfb670c6c | /libs/nonblocking_subprocess/setup.py | e8e8b89ac4c5f04fdf42144ec1261c2d8a788647 | [
"BSL-1.0"
] | permissive | domnli/nxpy | 244f4693e01ac3e96a3e3b45ff3ab781c3ef21e3 | fd51d2b986679424586a7220b01d94efab7e4543 | refs/heads/master | 2020-07-14T14:34:47.601336 | 2019-01-24T11:11:06 | 2019-01-24T11:11:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py | # nxpy_nonblocking_subprocess -------------------------------------------------
# Copyright Nicola Musatti 2008 - 2018
# Use, modification, and distribution are subject to the Boost Software
# License, Version 1.0. (See accompanying file LICENSE.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# See http... | [
"nicola.musatti@gmail.com"
] | nicola.musatti@gmail.com |
b128003cda24490a60d3220cd215949c96c4d188 | 0ef2ff5a5441a2bb0a30f2242c8f6a70287d76a7 | /init/init_script.py | 439d2f08e09ecaada70f070e30985987c74b6d70 | [
"CC-BY-4.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | martinsallandm/hw-xapp-python-lenovo | 5372f8e47e1cc9eabd1447286819d972c36cb1cd | 2123289d3a5ea7122607dea8e8f0d03a348d131b | refs/heads/main | 2023-08-14T22:59:57.948670 | 2021-09-27T01:59:14 | 2021-09-27T01:59:14 | 410,374,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,240 | py | # ==================================================================================
#
# Copyright (c) 2020 Samsung Electronics Co., Ltd. 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 obta... | [
"allan@dee.ufrn.br"
] | allan@dee.ufrn.br |
bf82932d59f491d72707d0acf4ac20398b0d17e0 | 5d3feb4b10ba3c9fa7f552d548d301f041c7e62b | /resumes/migrations/0017_auto_20181208_0024.py | 87034d6acd3018589f4952dda2d86d5eb11cc330 | [] | no_license | datge/EuropeanCV-Italian-version- | ac1cf2db7c38102d31ead4971c671f7fe340f277 | 1257b6e497995a554d1cf2d6b4b5dc52f86649e0 | refs/heads/master | 2020-04-10T10:38:18.937371 | 2018-12-08T21:23:53 | 2018-12-08T21:23:53 | 160,971,858 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # Generated by Django 2.1.1 on 2018-12-07 23:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('resumes', '0016_auto_20181007_1957'),
]
operations = [
migrations.AlterField(
model_name='altre... | [
"dav-23@hotmail.it"
] | dav-23@hotmail.it |
89644be09475e2beafed536a5fca0858bfe57df0 | fd175bc06a5efb74de66e8272b18d4703aeb69f1 | /app_models/migrations/0006_auto_20171225_1221.py | c5aa01306ea581c3e24251986c4cb177fc698ab0 | [] | no_license | Ulan9304/mediasabak | 05ccb9bff41009ee3ea9a69caf1f2c7799073ec8 | 7df869c0e11e14c78e307165f1d72d9dd13c6b04 | refs/heads/master | 2021-09-01T13:54:28.184004 | 2017-12-27T09:01:26 | 2017-12-27T09:01:26 | 114,859,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-12-25 12:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app_models', '0005_auto_20171225_1220'),
]
operations = [
migrations.AlterFie... | [
"miyavi931@gmail.com"
] | miyavi931@gmail.com |
ac67a27db60a7525ff8ef0fa48f51b212d10446b | 51a6c543009d082b500d0a03e2c02e17dbdae2bc | /Day3/AH-ws/build/AUC-Robotics-Summer-Camp/Day6/auc_ws/src/auc_robot/catkin_generated/pkg.installspace.context.pc.py | 6b24713f8a918a6f7c33e3b26b32089a8af66710 | [] | no_license | Abdelrahman-Hanafy/AUCRobo-ROS | fca038a6231795187826bdb38edfaff66ad68d3f | 48055fc065ccdd82b9e45322fb6ddea2621a68c0 | refs/heads/master | 2022-12-13T16:12:20.054454 | 2020-09-04T15:27:16 | 2020-09-04T15:27:16 | 287,110,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | 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 = "auc_robot"
PROJECT_SPACE_DIR = "/home... | [
"Abdelrahman.m.moustafa@gmail.com"
] | Abdelrahman.m.moustafa@gmail.com |
a9b02e6a52125369e3d3148193e40afc5ddcf206 | fc7ff6160626dea852009c2d97fbdf451608020f | /2ºAno/2ºSemestre/LA2/progDinamica/cubolandia.py | a7e81468a7b3f4dfcb052a6cd6ac5ec26449bfcd | [] | no_license | JorgeDPSilva/LCC | 5b55a254a7346a5f9d4b3ea056988f83ad96c5ac | 2f79b623a19bfe57e3607e2c751e6619a38d0de2 | refs/heads/main | 2023-08-19T07:17:32.521939 | 2021-09-27T14:20:38 | 2021-09-27T14:20:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | import sys
import math
def maneiras(lista_denom, size, inp):
if inp ==0: return 1
if inp < 0: return 0
if size <=0 and inp >=1: return 0
return maneiras(lista_denom, size-1, inp) + maneiras(lista_denom, size, inp-lista_denom[size-1])
def main():
lista_denom = []
for base in range(1, 22):
... | [
"ricardocruz244@gmail.com"
] | ricardocruz244@gmail.com |
52bdb3230d140629357a95d7ffcbd591a87ff755 | b931f42289ab59ae835e10cbf903f311ecd34dc6 | /Python/Saurav_Saurav-Navdhare/Snake Game/Snake Game.py | 9ce5ddfbe14a818eba282ac7389ff323731188be | [
"MIT"
] | permissive | codersalman/Technocrats-HacktoberFest | dfb148a248af29562b5debffdfbe48e6956fe67e | 8ff0e13c0e24d23a5f5f042b0a0d05d4e2f2389e | refs/heads/main | 2023-09-03T10:11:22.854067 | 2021-10-23T17:27:32 | 2021-10-23T17:27:32 | 414,861,328 | 1 | 0 | MIT | 2021-10-08T05:46:51 | 2021-10-08T05:46:51 | null | UTF-8 | Python | false | false | 3,544 | py | import pygame
import random
# initializing pygame
pygame.init()
# Colors
white = (255, 255, 255) # rgb format
red = (255, 0, 0)
black = (0, 0, 0)
# Creating window
screen_width = 900
screen_height = 600
gameWindow = pygame.display.set_mode((screen_width, screen_height))
# Game Title
pygame.display.se... | [
"noreply@github.com"
] | noreply@github.com |
ad6cc0a08e8ba3d2ad47ab45d0395df6b071594b | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/zope.app-Zope-3.2.1/zope.app/i18n/filters.py | 2807d5ca114aaa6b7749be72ef8b4ab16fdbd8fe | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,811 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
b9eb103c12f4f8dbd794624d3cde08e4f5778d08 | ed346f01861dc28a4c5ccb065ae1e1ea6131fa4d | /file_samples/test1.py | 75bc3bee2e57c83f87b9f691cb0074bac667fe0c | [] | no_license | lucabianco78/QCBsciprolab | 69122534138ad32466c674b298b22421566f9817 | 9afc46563559acf5b75f3a8e48ad90e1b921bc1a | refs/heads/master | 2022-07-27T23:30:05.964541 | 2020-09-11T18:43:33 | 2020-09-11T18:43:33 | 148,633,966 | 0 | 0 | null | 2022-07-06T19:53:17 | 2018-09-13T12:25:39 | Jupyter Notebook | UTF-8 | Python | false | false | 1,781 | py | """exercise2.py"""
from Bio import SeqIO
import matplotlib.pyplot as plt
def trimRead(read, minQ):
"""returns the read with all bases at 3' with qual < minQ trimmed off"""
values = read.letter_annotations["phred_quality"]
#print(read.seq)
#print(values)
ind = len(read)-1
while(ind >= 0):
... | [
"luca.bianco@fmach.it"
] | luca.bianco@fmach.it |
94e3ba329a0abb5efbeeda76902d599c27d72984 | c53920dc6c16603a40a85c7dd1de97c4da57c440 | /utils/redis-tester.py | 27f5d4a14e310c6609193938ef42437c793293de | [] | no_license | GESkunkworks/fhid | 7ddf3a1dc7e6c7da42ff9b93180c719aac120000 | ee4b6b5ce7b7453033bfea5e15c876f0acc8c235 | refs/heads/master | 2021-04-03T01:51:08.650236 | 2018-03-12T03:00:01 | 2018-03-12T03:00:01 | 124,823,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import redis
import sys
rhost = sys.argv[1]
r = redis.StrictRedis(host=rhost, port=6379, db=0)
#for key in r.scan_iter():
# print key
print r.get(sys.argv[2])
| [
"rendicott@gmail.com"
] | rendicott@gmail.com |
6ae1a48e9a7af5f5440306d9c52f22ef4f875517 | b4181f6a5b222c5cb3591f3a3ed20be9900265f2 | /blog/models.py | c5e9c73b859fe8f573843e91a15f9a7e9ae8bf11 | [] | no_license | emilia-f/my-first-blog | e6d865abf3aa40d4c9553625879b78a74cbe01e4 | 3af1505e4d9849d98980f89b7f3f77a21476e70c | refs/heads/master | 2021-09-01T01:09:06.203354 | 2017-12-24T01:19:57 | 2017-12-24T01:19:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(default = timezone.now)
published_date = models.DateTimeField(blank... | [
"emfrelek@gmail.com"
] | emfrelek@gmail.com |
2de938b9417aa1093845669a1869b97f19c4571b | 126498605720cca0ec70cc2f20aec531687d9fde | /train.py | 6efaf2615913c87740138ff2f556cb071058743a | [] | no_license | laket/deconv_cifar10 | 9b7fc120b51effdd6dac3c546da5e41b4bda47d7 | 46b46d52e2f387784952c4e9c67d5c7105ddefb4 | refs/heads/master | 2020-07-02T07:24:38.618057 | 2016-09-11T02:26:02 | 2016-09-11T02:26:02 | 67,860,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | #!/usr/bin/python
import os
import numpy as np
import tensorflow as tf
import mnist_input
import model
tf.app.flags.DEFINE_string('dir_log', './log',
"""Directory where to write event logs """
"""and checkpoint.""")
tf.app.flags.DEFINE_string('dir_parameter', './p... | [
"laket72@gmail.com"
] | laket72@gmail.com |
6009fe56a5b567eb3751301b21273398f872f28d | b13c57843cb8886c6f5d630ca099ad9130b26f25 | /python/장고/first.py | 94cc29b0619ffd718f3cfc6ee9a510900562b741 | [] | no_license | schw240/07.27-12.1_CLOUD | 6b563318f7208b843a13634a1cf46206197d6dfc | 8b4dc2d31e5d2ba96bde143116aba3ba0dad7a49 | refs/heads/master | 2023-03-25T15:44:03.555567 | 2021-03-30T02:09:32 | 2021-03-30T02:09:32 | 282,791,349 | 4 | 0 | null | 2021-03-19T15:00:00 | 2020-07-27T04:10:56 | Jupyter Notebook | UTF-8 | Python | false | false | 1,297 | py | from http.server import BaseHTTPRequestHandler, HTTPServer
import datetime
class HelloHandler(BaseHTTPRequestHandler):
def do_GET(self):
print(self.path)
if self.path == '/my':
self.send_response(200)
self.end_headers()
self.wfile.write("MyPage!".encode('utf-8'))
... | [
"schw240@gmail.com"
] | schw240@gmail.com |
0457fcf2f48044c2c99b0c8138cc9dbf7eefd484 | a7e4627576f578213ef7801d621b80ee27d4a937 | /~django/project/lib/python3.5/shutil.py | d3692eda1cafac818019c310ab5bdca617c54c9b | [] | no_license | sejutisarkar/django-basics | 9ee4aa94b63ea5477b6333cc35213efbc1ae8d4b | 0905a5c4ac645551aaf1577713f417929130ac81 | refs/heads/master | 2021-05-01T07:51:52.075798 | 2018-02-11T20:57:51 | 2018-02-11T20:57:51 | 121,166,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | //usr/lib/python3.5/shutil.py | [
"sejuti.dancinggirl8@gmail.com"
] | sejuti.dancinggirl8@gmail.com |
666734fbab3cb22c4ae127e2c5eb2dfdc12998ad | e8f99a162207cba82d4e0f969d7bcdb2b9d8b522 | /bilibili/__init__.py | 8575f7bf75a23b0ea81613856cde28d78cc161cf | [] | no_license | TesterCC/Python3Scripts | edb5446278ebf13edb64336001081941ca27d67d | 58be67e1ffc74ef50289a885aa4ad05f58e2c383 | refs/heads/master | 2023-08-30T21:16:38.328045 | 2023-08-17T11:23:08 | 2023-08-17T11:23:08 | 93,401,996 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'MFC'
__time__ = '2020-04-22 06:50' | [
"testerlyx@foxmail.com"
] | testerlyx@foxmail.com |
c193d93a056d78602d6b3690c786a643b00a4770 | 9d5fd8a897ae597425e2182760103eee2bdba514 | /macroForPy.py | d9c1654a3d9cc32b0a0e6fb2d19d4df4c58109ae | [] | no_license | AlexandrDragunkin/ARLN_PROTO | 29bbdbafa127e65e1de62b382eda0023bf573a4c | e1b0296f91eb6534402691cbd2bfeb784e642620 | refs/heads/master | 2021-08-30T13:59:56.140407 | 2017-12-18T07:09:25 | 2017-12-18T07:09:25 | 114,336,746 | 0 | 0 | null | null | null | null | WINDOWS-1251 | Python | false | false | 1,788 | py | # -*- coding: cp1251 -*-
#-------------------------------------------------------------------------------
# Name: macroForPy
# Purpose: Вызов макросов и все что с ним связано для python 3.3
#
# Author: Aleksandr Dragunkin
#
# Created: 15.01.2014
# Copyright: (c) GEOS 2013 http://k3info.ru/
# Lice... | [
"alexandr69@gmail.com"
] | alexandr69@gmail.com |
6669fed033f6c0a877c6ea0aa6ed3f4b5bfd00f7 | 46f56f91f34ce0ab802e84adee57a89648f95497 | /apps/common/__init__.py | f47efb6dd517928297e440f36f2a4e57d331a21b | [] | no_license | chengh0/python-web | d9dd82df6986962a5be7541b990f194d1533a6cd | 06e7e6ae03f9c4f2da50a452d88187521ee39354 | refs/heads/master | 2020-04-04T16:12:38.879314 | 2018-11-04T10:54:43 | 2018-11-04T10:54:43 | 156,068,832 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from .views import bp | [
"chengchen6520@gmail.com"
] | chengchen6520@gmail.com |
e01d4438984b3f186ab5451f73d01832eba665d9 | 09fa79a4848fb76f25365b0750986d2893bc1b44 | /mispell_dict.py | 0b4914646f1c210f1402cb24f1e41002e863484a | [] | no_license | WillDng/qa_project | a6938e609fce85ed20efbc89de1b2ae01fa3e602 | 79f90c8c3f6cc0833f5e0b789536bcb31fb69b77 | refs/heads/master | 2022-12-06T00:39:29.148118 | 2020-05-03T17:20:29 | 2020-05-03T17:20:29 | 243,523,425 | 0 | 1 | null | 2022-11-22T05:30:14 | 2020-02-27T13:16:11 | Jupyter Notebook | UTF-8 | Python | false | false | 2,513 | py | mispell_dict = {"aren't" : "are not",
"can't" : "cannot",
"couldn't" : "could not",
"couldnt" : "could not",
"didn't" : "did not",
"doesn't" : "does not",
"doesnt" : "does not",
"don't" : "do not",
... | [
"46746073+WillDng@users.noreply.github.com"
] | 46746073+WillDng@users.noreply.github.com |
601e9c252ead9f43b5eb6a69bc6c756d5beda0e7 | 8912dca6ceb0e7bba5fde7df56a17632a736a0a4 | /calibration/pivot/pivot.py | 259a22087a8ae6822d1e5a2a5b21f58c54d484bf | [] | no_license | maximvarenov/catkin_ws | 57bdec503a5f0fdffd6ba4b4fd56203d7e6c6d5d | 282914721b4a5495aac9b1519ebabfe7874dd685 | refs/heads/main | 2023-09-01T05:30:13.958797 | 2021-10-01T10:59:41 | 2021-10-01T10:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | import os
import sys
import numpy as np
import csv
def pivot_calibration(transforms):
p_t = np.zeros((3, 1))
T = np.eye(4)
A = []
b = []
for item in transforms:
i = 1
A.append(np.append(item[0, [0, 1, 2]], [-1, 0, 0]))
A.append(np.append(item[1, [0, 1, 2]], [0, -1, 0]))
... | [
"noreply@github.com"
] | noreply@github.com |
018a186845663f611cb74d50a4a07985de62ac46 | 1a093cb59320db7327d665910d8ed36ea5bba95b | /banana/analysis/mri/dwi.py | 06c6f5ca8cf63784e5d819b09cb611a69248c58d | [
"Apache-2.0"
] | permissive | MonashBI/banana | 23bfa1aff12fe0ded709c99679a1c0d9687e4ffa | 37364243b520ab14ac1243005dbd465f824542b4 | refs/heads/master | 2022-07-23T08:13:33.191149 | 2022-06-15T02:17:18 | 2022-06-15T02:17:18 | 134,526,663 | 3 | 3 | Apache-2.0 | 2019-11-13T23:00:15 | 2018-05-23T06:53:38 | Python | UTF-8 | Python | false | false | 49,248 | py | import os
from logging import getLogger
import tempfile
import subprocess as sp
from nipype.interfaces.utility import Merge, IdentityInterface
from nipype.interfaces.fsl import (
TOPUP, ApplyTOPUP, BET, FUGUE, Merge as FslMerge)
from nipype.interfaces.utility import Merge as merge_lists
from nipype.interfaces.fsl.e... | [
"tom.g.close@gmail.com"
] | tom.g.close@gmail.com |
ad6c121ebb464764546b7cd6feb7222e79490296 | 0cfcacf8228d8ddbbf4f2b01faeaa674eb6c2829 | /trainer/models/model_simple_bn.py | ef5ba249ae4849d9edccf946216cd46cf3990ea3 | [] | no_license | FGhavamian/hydranet_battery | a7d84e6a2143be35ae60da1eb8e57841cbed5e96 | 3e1918574063513888f911a9ff6cffb8c434addc | refs/heads/master | 2023-03-20T20:33:07.166708 | 2021-03-10T06:21:40 | 2021-03-10T06:21:40 | 175,961,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,397 | py | import tensorflow as tf
from trainer.names import GRID_DIM
class ModelSimpleBN:
def __init__(self, feature_dim, target_dim_dict, filters, kernels):
self.feature_dim = feature_dim
self.target_dim_dict = target_dim_dict
self.filters = filters
self.kernels = kernels
def build(se... | [
"fari.ghavamian@gmail.com"
] | fari.ghavamian@gmail.com |
1f59f228ff0e99901be7116e146557c93e7e6de9 | 8957f0b42ba945399a2eeb71f796c11c9eb35b06 | /lib/shutil.py | 9fbc746cde5e9927a18068b6eab8284c354c82f8 | [] | no_license | notro/tmp_CircuitPython_stdlib | 4de177cbb45b2209f07171c27f844c7d377dffc9 | 641727294039a9441c35ba1a1d22de403664b710 | refs/heads/master | 2020-03-27T18:26:33.544047 | 2019-02-15T20:49:34 | 2019-02-15T20:49:34 | 146,922,496 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 41,703 | py | #"""Utility functions for copying and archiving files and directory trees.
#
#XXX The functions here don't copy the resource fork or other metadata on Mac.
#
#"""
#
import os
import sys
import stat
from os.path import abspath
import fnmatch
#import collections
#import errno
#import tarfile
#
#try:
# import bz2
# ... | [
"noralf@tronnes.org"
] | noralf@tronnes.org |
81baef8090682ce775be599e4786806b1672e33f | 8a7abed7c441600a66bf2ef9135ff3a367ac0eb2 | /website/goals/migrations/0001_initial.py | 00da811bea795906390ec6595dd4df58f5432e91 | [] | no_license | mrooney/mikesgoals | 094d30160817879243b7539df5a3759d19583edc | dd0b0aee7ce20d43852cf694bc1ecb5af23dde94 | refs/heads/master | 2023-04-09T16:10:16.008923 | 2022-07-07T17:33:00 | 2022-07-07T17:33:00 | 4,474,379 | 2 | 0 | null | 2023-03-31T14:38:43 | 2012-05-28T20:30:43 | Python | UTF-8 | Python | false | false | 1,019 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Goal'
db.create_table('goals_goal', (
('id', self.gf('django.db.models.fields.Au... | [
"mrooney.github@rowk.com"
] | mrooney.github@rowk.com |
393d712064d56ab0df11650c6d6f49b01aafb3b7 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-9296.py | 9ce70cba78da7c66126b2610ec5adcf9316b16a0 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,754 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
4f1bb8c4ae785963280e2fe29443763f3ef26a4a | 420f7b02595663869df60fe76a865c744e1e878b | /ch1/pseudonyms.py | 926dd0617e5f4c3854f378aa05e86d35fa763512 | [] | no_license | marcin-kopanski/impractical_python_projects | 79a0f78be5af0a61e8240c22fb6d8eea1f9f3bc4 | 1eeeb1244140369c42771424fbeacd251c2d87d5 | refs/heads/master | 2022-12-21T06:48:37.728560 | 2020-09-14T21:16:14 | 2020-09-14T21:16:14 | 295,348,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | py | import random
import sys
print("Welcome to the Psych 'Sidekick Name Picker.'\n")
print("A name just like Sean would pick for Gus:\n\n")
first = ('Baby Oil', 'Bad News', 'Big Burps', "Bill 'Beenie-Weenie'",
"Bob 'Stinkbug'", 'Bowel Noises', 'Boxelder', "Bud 'Lite' ",
'Butterbean', 'Buttermilk', 'Butt... | [
"mk@pwrs.pl"
] | mk@pwrs.pl |
4dd39ca63c397b2d471502d25c1b147cfafefc90 | bea7c1fdcbd2477015ea14b2da92e4f736c89484 | /examples/mnist-simple.py | 2194ad85662be44ebf22b7be8644197ab0e3e152 | [
"Apache-2.0"
] | permissive | mzj14/mesh | e0a9d5d51e117a7232dfe186657d1ef4d4680a27 | bf04d24e7a9c54733dea014b82e5985a039da67c | refs/heads/master | 2020-04-10T15:24:37.193416 | 2018-12-18T21:00:22 | 2018-12-18T21:00:22 | 161,108,592 | 0 | 0 | Apache-2.0 | 2018-12-10T03:04:05 | 2018-12-10T03:04:04 | null | UTF-8 | Python | false | false | 7,960 | py | # coding=utf-8
# Copyright 2018 The Mesh TensorFlow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"mazijun2017@outlook.com"
] | mazijun2017@outlook.com |
e4b32b9e6339263746a7889bc6d5cedd7cda3845 | edad2e75198bcfdf75965e132e268b4ebbbd70e2 | /old/other_scripts_notneeded/main_scripts_for_yuva/python_utility3_remote_seed_yuva.py | f79d87f760065f05716ccbed7e8ca8662d20bc47 | [] | no_license | nandithaec/python-utility | d50a6e802bf3a9afadbaf3f5207efdba875c7e70 | b8b7377b87630375ff804c7204d37a1c7ecee826 | refs/heads/master | 2021-01-10T07:00:18.820227 | 2015-04-16T06:01:44 | 2015-04-16T06:01:44 | 36,727,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,448 | py |
#!/usr/bin/env python
#IMPORTANT: It is assumed that we are running parallel ngspice simulations on a remote 48-core cluster at 10.107.105.201. If this is not the case, you will need to modify this script to run it on this machine, by commenting out the scp and ssh commands.
#Example usage: python /home/external/ii... | [
"nanditha.ec@gmail.com"
] | nanditha.ec@gmail.com |
843bf8e56df11ab1f797e49a66da18aedb1658a5 | d7a4a15a2ae27520febc0970aecf7440251f28be | /PE_29.py | 8cd067bae7ac1a49f2638599508b6aafbb1ca5d0 | [] | no_license | ITanmayee/Project_Euler | 9bfb2ca7f452ab29eb5591e3e593199d158ae21c | 1410e64226ef52fdd054883700004c69d23fe58b | refs/heads/main | 2023-05-13T00:50:37.243734 | 2021-06-04T15:30:25 | 2021-06-04T15:30:25 | 359,804,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # Consider all integer combinations of a^b for 2 <= a <= 5 and 2 <= b <= 5:
# How many distinct terms are in the sequence generated by a^b for 2 <= a <= 100 and 2 <= b <= 100?
def get_exp() :
terms = [a ** b for a in range(2,101) for b in range(2,101)]
distinct_terms = set(terms)
return len(distinct_terms)... | [
"noreply@github.com"
] | noreply@github.com |
d1c92b0e6a3ebd8bc736f57211f57c0e7ab3bf44 | 23166e339dec012b8621f8e13bdb96f4cc84bc6e | /spamer.py | 43bb94d2a1ef6ee5dc0380a3dd5e0dff17d82bcc | [] | no_license | antonperechnev/code_sample | c48c63ff398126bced08d25133d4b34fe58c6a56 | 60305b0a193a8ba8f7ffab02ce9470b0553c4d8c | refs/heads/master | 2020-04-05T03:18:24.737042 | 2019-11-21T12:32:41 | 2019-11-21T12:32:41 | 156,509,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | import pika
from pika.exceptions import ConnectionClosed
import backoff
import configparser
config = configparser.ConfigParser()
config.read('../Config/project_settings.ini')
# TODO get from config
class Sender:
USER = config['RabbitMQ']['user']
PASSWORD = config['RabbitMQ']['password']
HOST... | [
"noreply@github.com"
] | noreply@github.com |
a98b4f69bc5aa2c9685136e7a5cb05abbdec9f19 | 8a5bf9c17fc46897e612e9a378ef928ab93c232a | /server.py | 6a7c790e8e6888c4e3aa451c3e21cd1c1efabb6a | [] | no_license | m7jay/ChatApp | b259924fd6b512324004fc7c8732b52be4fb2cf3 | 50a03b8bbdb660467af0e45420f6fd918a4d1c1f | refs/heads/master | 2022-07-29T07:15:42.353183 | 2020-05-18T13:48:45 | 2020-05-18T13:48:45 | 264,642,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,227 | py | """
### A server running on the local system listening to new connections, receive new messages and broadcast the message
### uses a header for sending and receiving data
### UTF-8 encoding is used for messages
"""
import socket
import select
HEADER_LENGTH = 10 #length of the message can be 10 digi... | [
"noreply@github.com"
] | noreply@github.com |
781475d82188e60d5cdf6c3c1abdd4222dee893d | 2bdbbf4fe09b87873d854f828886124873fe0cbb | /src/products/models.py | 52f85ae3eda71be6085e5716af9acd39de2f6215 | [] | no_license | Skylighty/ecommence-project | 2fbb488c09e419939eceda20133d67871e2a7d03 | 32e903681cc6c9c79457f634fdb9471a950c5ec8 | refs/heads/master | 2023-02-27T03:14:59.021485 | 2021-02-07T13:48:16 | 2021-02-07T13:48:16 | 336,797,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from django.db import models
# Create your models here.
class Product(models.Model):
name = models.CharField(max_length=100)
description = models.TextField(blank=True)
price = models.DecimalField(max_digits=15, decimal_places=2)
onSale = models.BooleanField(default=Fa... | [
"pawgasiewski@gmail.com"
] | pawgasiewski@gmail.com |
14e8951c52da671d4febde1f050c47f3b07b1924 | b625c3879d2ac00e1788ac5260793cf906c58338 | /main.py | e0fbeb1ffe31482ff30daf03074fc466ae255d19 | [
"MIT"
] | permissive | luc1991/CyclicVoltammetry | c8746ecc2e3cdadc9101a98fffb66e346eb5d364 | fa72169ef66a3c6b1011ad16ca18436b55c6e4f7 | refs/heads/master | 2020-04-25T11:27:29.927716 | 2019-02-25T23:38:12 | 2019-02-25T23:38:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,957 | py | import math
import numpy
import matplotlib.pyplot as plt
n = 100
Ox = numpy.zeros((n, 1))
Red = numpy.zeros((n, 1))
S = numpy.zeros((n, 1))
P = numpy.zeros((n, 1))
k1 = 1
k2 = 1
k3 = 1
for i in range(0, n):
Ox[i] = 100
S[i] = 100
E = 3
dt = 0.001
D = 0.001
E0 = 0
iR = 0.01
lk = 0
for i in range(0, 8000):... | [
"ben@tatmans.co.uk"
] | ben@tatmans.co.uk |
204725189c391dd3e806d873cbfe517466784569 | 82387646b7c503ede5bc6caa6b89ad64bc7151b6 | /Práctica_pandas_1/ej6.py | 6b3352d0215794fc39bbcee6bdbd35f2491c0e00 | [] | no_license | nicoaizen/Fundamentos_de_informatica_Aizen | 4fbc55cd92c4ad73b2a7e05feeffef5bf913ea74 | 3e2567d399c9952ce522f88f2057cf788091000a | refs/heads/main | 2023-06-08T05:30:46.090587 | 2021-07-05T18:40:23 | 2021-07-05T18:40:23 | 358,275,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Ejercicio 6
# Escribí un programa que muestre un resumen de la información básica de un DataFrame y sus datos.
import pandas as pd
datos_ejemplo = {"nombre": ["Agustina", "Diana", "Karen", "Julián", "Emilio", "Miguel", "Mateo", "Laura", "Jorge", "Lucas"], "puntaje": [12.5, 9, 16.5, 13, 9, 20, 14.5, 10, 8, 19], "int... | [
"nicoaizen@gmail.com"
] | nicoaizen@gmail.com |
cc60234f67b5a45a081d2732d2061bff78736d09 | a40a9dd318cc214ecbaac76f2149008880b306b7 | /LeetCode/convertToTitle.py | f08ea6eb69966a971d084c07a6547d9e75d5d004 | [] | no_license | nexusme/leetcode_try | fa75962239794f0ce905c7dff8eb24fd923082dd | cc83a8200beaccc5016db5bebdaa8ae6213c2c3b | refs/heads/master | 2022-12-15T05:24:28.056331 | 2020-09-03T09:39:25 | 2020-09-03T09:39:25 | 292,527,281 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #
# 给定一个正整数,返回它在 Excel 表中相对应的列名称。
# 例如,
#
# 1 -> A
# 2 -> B
# 3 -> C
# ...
# 26 -> Z
# 27 -> AA
# 28 -> AB
def convertToTitle(n):
"""
:type n: int
:rtype: str
"""
res = ''
while n:
n, y = divmod(n, 26)
print(n, y)
if y == 0:
n -= ... | [
"you@nexus_me@hotmail.com"
] | you@nexus_me@hotmail.com |
79bc6849f6a2ce9dc29373de34993f7f25a284b5 | e0d23cdf422a1697766f068bc4f2263d70b27ced | /app/admin/views.py | 5b46e2f6083f18c7adba63babb5fcce3c4eb9864 | [] | no_license | Kittyqm/movie | 41e3c140591579458087f05d04cb6e4f06d42f8a | edeb493f149b9e731112cf804088bec2ccca1abd | refs/heads/master | 2021-08-27T22:12:55.802224 | 2017-12-10T13:56:08 | 2017-12-10T13:56:08 | 113,752,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,729 | py | # coding=utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from . import admin
from flask import Flask, render_template, flash, redirect, url_for, session, request, abort
from app.admin.forms import LoginForm, TagFrom, MovieForm, PrevieForm, PwdForm, AuthForm, RoleForm, AdminForm
from app.models import Admi... | [
"aa931912343@qq.com"
] | aa931912343@qq.com |
792469a250c93b0821f6ef2bae12966bca7d73cb | ce1eb4545eda86a68dedf82c1d793caa84d082f4 | /bin/src/server.py | 5be3df4df35ddf64f8f68ed42d667a1a2dabc2f8 | [] | no_license | mmalyutin/car | 4acc1b0673a718e3316e694f82796707bec27527 | 5b80cca70410b3a6a2cd43704edbe1a67ddd1d8a | refs/heads/master | 2020-07-02T08:17:08.561182 | 2019-07-30T10:53:24 | 2019-07-30T10:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,346 | py | #!/usr/bin/python3
#-*- coding: utf-8 -*-
# Server is stay in GAZ-66.
import time
import wiringpi
import sys, time
import socket
import json
from threading import Thread
from socketserver import ThreadingMixIn
import RPi.GPIO as GPIO
import PWM
import os
import sys
sys.path.append('../../conf')
import conf
from ... | [
"djvu@inbox.ru"
] | djvu@inbox.ru |
2499c4b8a81732b60499196ca4086515080ac887 | 2d2550c0be7ac2cfa397c0f3cbd52dfcb557e4aa | /evaluation.py | 0b6773c815565169d5d0f197799e6f5810333b21 | [] | no_license | tasx0823/VSRNet | 91a620948aad98462ce99d4673345f9c1c0c5d7c | 13b14d8b468c0e34d610633c79f04b21607c92d7 | refs/heads/master | 2022-10-09T16:40:23.041651 | 2020-06-13T15:08:26 | 2020-06-13T15:08:26 | 271,972,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,154 | py | from __future__ import print_function
import os
import pickle
import numpy
import time
import numpy as np
import torch
from torch.autograd import Variable
from basic.metric import getScorer
from basic.util import AverageMeter, LogCollector
def l2norm(X):
"""L2-normalize columns of X
"""
norm = np.linalg.norm(X, a... | [
"532474454@qq.com"
] | 532474454@qq.com |
94bddabbc05ff1e6648d2572e2e87a47d4f9b64d | 1b5cc301d02cadb5977a94854122adb9db85f003 | /vowpalwabbitpreparation.py | 8e76402eb4d63d2e78f5ec8fbb537a532775b8ff | [] | no_license | malikabr/-Naive | 02f2bcb0b5459849fc6c162e94148997204abfc3 | 46b3035a927f744ea5605736a09443d0566f8f4c | refs/heads/master | 2020-03-14T21:43:18.042495 | 2018-06-11T05:37:10 | 2018-06-11T05:37:10 | 131,803,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | #this is for vowpal wabbit
from hazm import sent_tokenize
from hazm import Normalizer
def readData(fileName):
file = open(fileName, 'r')
data = file.read().split(u".")
sample_set = []
for sample in data:
if sample.__len__() > 1:
sample_set.append(sample)
return samp... | [
"noreply@github.com"
] | noreply@github.com |
269fda9caa8453ff95f35d91935e1d174fcbffc9 | 4bb93e693ffb9f808cb7751cbe9d490410680260 | /order/admin.py | 211e7e79514539685dc102c788b9612099ca5a83 | [] | no_license | Mamadaliyev/e-commerce | b2b5da23b7c7fdd346f7934a7ea5a97663eaaf4f | 07bfa7520874b8e68ea5473203ff7c280908d145 | refs/heads/main | 2023-04-11T19:59:36.683677 | 2021-05-06T20:29:37 | 2021-05-06T20:29:37 | 365,028,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from django.contrib import admin
from .models import Order, OrderItem
admin.site.register(Order)
| [
"shohruh@3i.ai"
] | shohruh@3i.ai |
3f6386e888c7ccdc34ad987e3f9354bf124474bd | 1bb3cdd898bb14dd5c58f7cd97efae38e635941e | /hw3/hw3-resources/Final/src/pagerank.py | 2ebc553a6bf4a3d4a1bc62fec4c3ffddb29fdcf3 | [] | no_license | lrmneves/mltextmining | 7704148105920240d3798c24e669f97bc3c81748 | 3e6d18bf404fd393744c77f52643be822930e87d | refs/heads/master | 2021-01-18T01:27:06.516957 | 2016-08-13T00:03:53 | 2016-08-13T00:03:53 | 51,187,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,817 | py | import os
import sys
from sklearn.preprocessing import normalize
from scipy.sparse import csc_matrix
from scipy import sparse
import numpy as np
import time
import warnings
import math
def get_topic_dict(path):
'''reads file on path and returns dict of dicts, with main key user, secondary key query and value = topic... | [
"lrmneves@poli.ufrj.br"
] | lrmneves@poli.ufrj.br |
6930cf4720bfea18dfb8f1d19af51e5c51bfd733 | ebefdbcd77452dbc9e27205972ca03040163673b | /laba/models.py | 6b67951afb7abc686e81ff1079fe3952eb07b008 | [] | no_license | vitalik-ez/cyber_laba | 8ce508b151a642c3c0877f21dd7aa5a9f75a45d3 | 3c544a9543ffb101399b48a7e8f1772ae27293c6 | refs/heads/master | 2023-01-19T06:53:17.704890 | 2020-12-01T08:24:41 | 2020-12-01T08:24:41 | 294,933,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | from django.db import models
from django.core.validators import MinValueValidator
from django.core.validators import MaxValueValidator
from django.utils.safestring import mark_safe
class electricalAppliances(models.Model):
name = models.CharField(max_length=30, verbose_name = "Назва")
power = models.IntegerFie... | [
"62476663+vitalik-ez@users.noreply.github.com"
] | 62476663+vitalik-ez@users.noreply.github.com |
2316953bd0d2aea006a49fd2d06ef8f20ef2c43a | dd8789c05f95e791d57574f43de71be56b6a6a70 | /assignments/cpu_simulation/components/fifo.py | 6843afab14b68b00e6b4038734c6e671b7cba9da | [] | no_license | saikiranreddy-nagulapally/5143-201-OpSys-Nagulapally | e5635ffc872f170837b425c1d962300c4cf76777 | c7b7bb1ef20ea64dd74a34850bf1c15d1a6ab7f6 | refs/heads/master | 2021-09-10T03:00:19.839131 | 2018-03-20T20:36:10 | 2018-03-20T20:36:10 | 79,628,285 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py | #!/usr/bin/env python3
from sim_components import *
# === Class: FIFO===
class Fifo(list):
def __init__(self,init=[]):
"""***init***: Constructor for FIFO class.
- **Args:**
- init (list): A possible list of processes to be added to class.
- **Returns:**
- None
... | [
"saikiranreddy791@outlook.com"
] | saikiranreddy791@outlook.com |
ad58850b4e20e701d45ca9a0fef263371fb773a1 | 5dd44e9229d617d7f9ce82de3336e4b6ffcb08db | /2019/Day 07/Intcode.py | 7ccb3ef20b65b3fec5040451ba536a805baa4d24 | [] | no_license | roadsidegravel/advent-of-code | f69a6791132c710247789790d5ecde0a25e26209 | 4a7bc99adc4a352e6ac6b32100329a770de9d593 | refs/heads/main | 2023-05-05T00:21:13.460612 | 2021-06-03T10:50:01 | 2021-06-03T10:50:01 | 309,677,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,625 | py | class computer:
def __init__(self,intcode,automaticMode = False):
self.automaticMode = automaticMode
self.intcode = []
self.running = False
self.position = 0
self.inputs = []
self.outputs = []
self.log = []
for i in range(0,len(intcode)):
s... | [
"github@roadsidegravel.com"
] | github@roadsidegravel.com |
4c1fac6ffc39bfa3667bc5a2ef3b71ca0e4f0283 | bee2af5228232ce94f418b61810cecd93af62615 | /movies/tests.py | a6adfa1859a67fd17757470bea1d839c9c970cc3 | [] | no_license | thuitafaith/djangoapp | b64c2e1a05c67b1135d4d9dd7975c17522238a69 | e06280b34a7b1ec012d0baab6f0fb153875a39b4 | refs/heads/master | 2022-12-11T19:06:08.540528 | 2019-08-29T12:36:45 | 2019-08-29T12:36:45 | 203,321,071 | 0 | 0 | null | 2022-11-22T04:13:07 | 2019-08-20T07:15:28 | Python | UTF-8 | Python | false | false | 1,600 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase
from .models import Editor,Article,tags
import datetime as dt
# Create your tests here.
class EditorTestClass(TestCase):
# set up method
def setUp(self):
self.faith=Editor(first_name='faith',last_name='... | [
"thuitamuthoni15@gmail.com"
] | thuitamuthoni15@gmail.com |
31cf540d38df645d0ccd8cb4b0a7c2089941a714 | 77abb27ac8e690d12b4c22e0f4da4c1cb3906042 | /MPIAA1/timer.py | a852f984c8d682515e03669db40d735f3370a959 | [] | no_license | zdarovagoshan/PythonLabs | 1e633f1195e91e7e0c2bd8c4e58e4228ccd2d9ea | 548dc99014e8c3b9a27638a9df3a376387470fbf | refs/heads/master | 2020-12-25T19:03:26.734717 | 2017-06-11T18:15:13 | 2017-06-11T18:15:13 | 94,021,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | import timeit
from DZ import read_file
def make_header(func_names):
return " ".join(["{0:<12}".format(s) for s in ["N"] + func_names])
def make_line(n, times):
return " ".join(["{0:<12}".format(n)] + ["{0:<12.5f}".format(t) for t in times])
def time_us(functions, ns, generator, repeats=int(1e6)):
"""Pr... | [
"pm53.tyabin@gmail.com"
] | pm53.tyabin@gmail.com |
b6e2709e65f321665681d0977c916336fbd04565 | 4daee30fadd422c84c66cf52d9d41a792bf5df3b | /utils/email_util.py | 6ea54504d5cdaa654140a19bd363a13cbac645b9 | [] | no_license | lin14543/myspiders | d8d4789c9884be1ad925527d290672b6d42d32ce | 7ddb7536b07b75486b7bc4032c04b9a160eda11d | refs/heads/master | 2020-03-22T14:18:01.394577 | 2018-07-08T13:03:08 | 2018-07-08T13:03:08 | 140,168,011 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from smtplib import SMTP_SSL
from email.mime.text import MIMEText
from email.header import Header
from myspiders import settings
import logging
import traceback
import time, random
def send_email(subject, content, receivers):
message = MIMEText(content, 'html')
message['From'] = 'robot@lamudatech.com'
mes... | [
"lincc@lamudatech.com"
] | lincc@lamudatech.com |
f287244a91e88664b5d41777c7749b04894158ea | f4b16d247195621a5413aab56919b4e623b604b8 | /src/faimes/urban/dataimport/opinionmakers/settings.py | ed4e0587d66bb5c2e6bf895523ee08c2b6023e75 | [] | no_license | IMIO/faimes.urban.dataimport | cc1a7e3050538f409c29e3031a175e8d1a96c7db | 67fcaa14a5951df7cbaf64b59794aab0a2b88f7f | refs/heads/master | 2021-01-10T17:52:51.975421 | 2017-03-16T13:27:27 | 2017-03-16T13:27:27 | 52,949,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | # -*- coding: utf-8 -*-
from faimes.urban.dataimport.opinionmakers.importer import OpinionMakersImporter
from imio.urban.dataimport.access.settings import AccessImporterFromImportSettings
class OpinionMakersImporterFromImportSettings(AccessImporterFromImportSettings):
""" """
def __init__(self, settings_for... | [
"delcourt.simon@gmail.com"
] | delcourt.simon@gmail.com |
4d6dcd13140db07ae3bc200ca0a1ffe77c9a4cf5 | d247ae6374c46c6f5062fd7d2d89d7d3f851ac10 | /drf/treehouse-courses/ed_reviews/settings.py | cd80aac5ae401473e7af77fb0a7b6b8e490cf5ef | [] | no_license | hachtman/python | 99f221e40abb7df712d726617c31422274e77321 | a6b90c0effe972f4ba66e67a456ec36314c4d0ac | refs/heads/master | 2021-01-22T18:14:26.964396 | 2017-06-05T12:35:17 | 2017-06-05T12:35:17 | 85,068,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,472 | py | """
Django settings for ed_reviews project.
Generated by 'django-admin startproject' using Django 1.9.4.
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... | [
"jackfllr1@googlemail.com"
] | jackfllr1@googlemail.com |
98c6aa7cdec4df7ab3d07d6bf68c3d49a7a7d59e | 57d411725b99581c4bcb3be582a95ac152c38794 | /frontend/models.py | 866c404cdd1c0e2eae23495c907bff180dfceea9 | [] | no_license | contail/moca_init | ea03e82121c90ae3272441bb93564f29cdaa69d5 | 94715473c9e7ef7124d6752f6ae36b461b9dcfaf | refs/heads/master | 2020-03-27T02:34:58.351896 | 2018-10-06T06:52:22 | 2018-10-06T06:52:22 | 145,801,542 | 0 | 0 | null | 2018-08-23T04:45:37 | 2018-08-23T04:45:36 | null | UTF-8 | Python | false | false | 293 | py | from django.db import models
# Create your models here.
class Settings(models.Model):
port = models.IntegerField(default=8000)
batch_size = models.IntegerField(default=5)
fps = models.IntegerField(default=10)
ip_address = models.CharField(default='127.0.0.1', max_length=120)
| [
"qkrtkdwls2121@gmail.com"
] | qkrtkdwls2121@gmail.com |
a535b3a240630adc3c7d8e08c3eb6d4ae7617dca | a1eb63e7cc5152833b61bc1f3976d1f0e9916f17 | /tokens/migrations/0001_initial.py | 64cab2948077363e68e3a34d9e0f51b740402875 | [] | no_license | life-iitk/Lifeiitkbackend | c9c08e926858d6b6841a6878d127cb134e17a435 | c8cec38d06b7207bf67c716a0eb8981d7e97ac48 | refs/heads/master | 2021-07-10T20:54:02.140467 | 2020-08-24T13:33:02 | 2020-08-24T16:35:53 | 189,474,089 | 5 | 50 | null | 2020-08-24T16:35:55 | 2019-05-30T19:57:02 | Python | UTF-8 | Python | false | false | 531 | py | # Generated by Django 2.2.3 on 2019-07-28 05:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Token',
fields=[
... | [
"vikrantmalik051@gmail.com"
] | vikrantmalik051@gmail.com |
cd5c129f362552fb538d4924dff585e79d647985 | 64bc42781f9267da0c2d1042f4b3672809493941 | /tweet.py | 458e53845e9eb0e4ae4b249d1b57c8a6ca00ae03 | [] | no_license | katieamazing/pussybot | a5d47043d2a1087b2d8cd68dc9812673f18b7f53 | 6dfe06b2f83870976d09894cd524b18f85bb140d | refs/heads/master | 2021-01-16T18:32:22.630005 | 2017-08-13T04:23:12 | 2017-08-13T04:23:12 | 100,086,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | import imgs
import os, sys, codecs, yaml, random, requests
import nltk.data
from bs4 import BeautifulSoup
from io import BytesIO
from twython import Twython
def generate_tweet_text():
sys.stdout = codecs.getwriter("utf8")(sys.stdout)
sys.stderr = codecs.getwriter("utf8")(sys.stderr)
with open("C:\PussyB... | [
"k.allen@live.com"
] | k.allen@live.com |
1360102d7dc0af95012af9cf8fd406fd35c2e3ff | e706bba03c86cee6d92ec16681037af6e748165f | /archive/bsoup-scrape-prod-name.py | 2f4103c28003787bc3ac64bd084aaff5587ce58f | [] | no_license | geekidharsh/tilt-python | f9642d846bc64ae452922035a1ac6051499e3e6c | 1dc00d37345b35dfa1441c9045f6fb2c36bf460b | refs/heads/master | 2023-04-28T11:57:04.802794 | 2023-04-26T00:45:07 | 2023-04-26T00:45:07 | 72,809,839 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | from bs4 import BeautifulSoup as bsoup
import requests as rq
import re
spring_2015 = ""
r = rq.get(spring_2015)
soup = bsoup(r.text)
classes_url_list = [c["href"] for c in soup.find_all("a", href=re.compile(r".*courses.cfm\?campId=1&termId=201501&subjId=.*"))]
print classes_url_list
with open("results.txt","wb") as a... | [
"harshvardhanpandey@hotmail.com"
] | harshvardhanpandey@hotmail.com |
3553a6b286d2ebd18a5c9155f8c68220b2a441e1 | 415de1c2d4599ee83519af334ee6f7238a099b7a | /devel/lib/python2.7/dist-packages/rbx1_nav/__init__.py | 5415f392c38a7ba6aa99300eb1e66e7817c72293 | [] | no_license | Mrsongpei/My-ros-Slam | 9ec93368edbcc0688955c539eb4bb54c00828728 | 3fc5de88f8bf617e9a295fe468594b155cb9b94b | refs/heads/master | 2020-06-30T06:12:43.756934 | 2018-07-25T09:50:30 | 2018-07-25T09:50:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/root/catkin_ws/src/rbx1/rbx1_nav/src".split(";... | [
"871452489@qq.com"
] | 871452489@qq.com |
9e20dbe06af05a8d7d2965f3a10c0d4cddb65dd4 | 6a928ba05fb0f0ff1c5fc2b16792299b8b0944d6 | /_Attic/btleclassifier_orig.py | 119176d090171d7c677fcde43c9a509d4e41efe9 | [
"MIT"
] | permissive | simsong/python-corebluetooth | 22b933c31f9aaaa614e76eafe6bfca679a50d626 | 29ef9e8d3e5ab8fd838fd254cd079449d8064441 | refs/heads/master | 2021-08-07T13:22:13.170086 | 2020-07-06T17:47:31 | 2020-07-06T17:47:31 | 197,768,612 | 3 | 3 | null | 2019-07-20T05:32:35 | 2019-07-19T12:25:17 | Python | UTF-8 | Python | false | false | 15,356 | py | # File: btleclassifier.py
# Author: Johannes K Becker <jkbecker@bu.edu>
# Date: 2019-01-29
# Last Modified Date: 2019-07-18
# Last Modified By: Johannes K Becker <jkbecker@bu.edu>
# Advertising Data Type (AD Type) Definitions here:
# https://www.bluetooth.com/specifications/assigned-numbers/generic-access-prof... | [
"simsong@acm.org"
] | simsong@acm.org |
3dc81a6a9e61dc7e240f23f7ae0703a15b0455b2 | d2b6fe6f482e9eb829d8875a326667195e2db6df | /144. Binary Tree Preorder Traversal.py | 0315f22da880535683dcb2f98518aa7984ee2602 | [] | no_license | liuilin610/Leetcode-everyday | 74d09d990de6ed093375bbc5228d0f3975567260 | ad1e627a280f8aa00ba121cb7dd7a8c867949419 | refs/heads/main | 2023-09-03T14:29:08.492533 | 2021-11-09T17:32:33 | 2021-11-09T17:32:33 | 346,599,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def preorder(self, root: TreeNode) -> List[int]:
# III
if not root: return []
res, s... | [
"cuteflouer610@gmail.com"
] | cuteflouer610@gmail.com |
e2e3ca90948d895866c56a11adbffc570ac7234b | d165d6101255bfe064e8340cf49b70583a822d17 | /scripts/ZionNationalPark_PythonGeneratedMap_PartA.py | fc08e24302cb1488ca0f171f259bbdb158b88a60 | [] | no_license | bouchardgis/bouchardgis.github.io | 570250cab1f7906e6ff3188ee53b14b371b3d301 | fc0bdc1359b9c7efbb70b91834641d50c6572af8 | refs/heads/master | 2020-03-21T16:41:47.026772 | 2019-09-18T18:46:02 | 2019-09-18T18:46:02 | 138,787,278 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,499 | py | # Copyright: (c) David Enterprises Inc.
# ArcGIS Version: 10.3
# Python Version: 2.7
#
# Course: GEOS 455 - Assignment 3: Advanced Python
#
# Purpose: This script takes input features that may be impacted by impacting features (input),
# and outputs a feature class including the input features th... | [
"noreply@github.com"
] | noreply@github.com |
b06ae35fd72d776cb2929e6e2b86c58112bae2f2 | 937c3ee407884edde0cdf550c8d35f75d17448d5 | /module767.py | 6c619df90d7fb5d4496e7fcb225528cdbff292e2 | [] | no_license | Sudha2/PYTHON_PROGRAMMING | f3e8bb3929a73dedaa545245c9062b5b810cf27e | 2440ac5391856418e5b84b70cd4ac5bfcbd8fb4a | refs/heads/master | 2021-05-08T16:29:37.523314 | 2018-04-18T16:09:29 | 2018-04-18T16:09:29 | 120,160,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #-------------------------------------------------------------------------------
# Name: module7
# Purpose:
#
# Author: ELCOT
#
# Created: 12-02-2018
# Copyright: (c) ELCOT 2018
# Licence: <your licence>
#-------------------------------------------------------------------------------
d... | [
"noreply@github.com"
] | noreply@github.com |
f80ecc94c57fd9432be06df60dcd3b9146ef817b | f879fdba21b882c447a9f0311f9e00b4264ab1d4 | /hack.py | 922f474568993ac4f6f66b4ab846e549f89f909e | [] | no_license | kimstars/python | 0047a1da9f86c10b1c0892aeee66ac24251c34f1 | b031fe577b4dd8ae274f72c17aa8a1063f8bccea | refs/heads/master | 2023-03-10T01:28:23.874620 | 2021-02-20T08:23:11 | 2021-02-20T08:23:11 | 340,601,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
from selenium.webdriver.common.by import By
import re
path = "C:\Program Files (x86)\chromedriver.exe"
driver = webdriver.Chrome(path)
url = "https://10fastfingers.com/typing-test/english"
driver.get(url)
price = driver.find_... | [
"buikika9@gmail.com"
] | buikika9@gmail.com |
5eb6a1f21d9fc32d24281c689b6ff9a9054d8bef | db6fb7d752e1f6c502797eaa1ffcde15fd433a8b | /sibi/xmlrpc_server.py | ea6f880cf30cef625e8f423a1e08d8b99eee10ef | [] | no_license | manuelfedele/sibi | 9a4233acb1f1c3a8da6888ecb58e6f7ece2920f7 | 2c8f6f1b62a69cefca3fe596c2d80469a7fd0a7b | refs/heads/master | 2023-04-06T19:02:03.988897 | 2023-03-28T08:08:20 | 2023-03-28T08:08:20 | 319,912,697 | 1 | 0 | null | 2023-03-28T08:07:50 | 2020-12-09T09:55:30 | Python | UTF-8 | Python | false | false | 7,110 | py | import sys
from typing import List
from twisted.internet import reactor
from twisted.web import xmlrpc
from twisted.web.client import HTTPConnectionPool, Agent
from sibi.ibapi.common import BarData
from sibi.ibapi.contract import Contract, ComboLeg
from sibi.ibapi.order import Order
class XMLRPCServer(xmlrpc.XMLRPC... | [
"manuelfedele@gmail.com"
] | manuelfedele@gmail.com |
5cd856ff87fdf738a92a6989085967db6be3856d | 11327a3f091476dea9807cba12cf0954a06adbd2 | /Raspberry Pi/predictor.py | d3fb59a3f46ea7a1488ebd893355500fa93339d4 | [] | no_license | maxned/TrailPi | 5e654c5533314192451af482f4741cea1ed803aa | e86bfe88c3e60c55da4c9e007c250b9f709a234f | refs/heads/master | 2022-12-26T11:57:58.175038 | 2019-06-27T18:05:05 | 2019-06-27T18:15:03 | 172,150,794 | 1 | 0 | null | 2022-12-08T05:16:31 | 2019-02-23T00:03:07 | Python | UTF-8 | Python | false | false | 425 | py | import sys
import os
from PIL import Image
from classifier.classifier import Classifier
cnn = Classifier(json_file = 'classifier/model.json', weights_file = 'classifier/model.h5')
def predict_animal(image_path):
assert os.path.exists(image_path), "Image not found at: "+ str(image_path)
animal, accuracy = cn... | [
"jaleman@ucdavis.edu"
] | jaleman@ucdavis.edu |
20ea9a92f7b5fe7c268b0e7ca25ecb734ff78d94 | fa5e6de7ee7e6c4dbe255021e77f4acc771fa648 | /code/src/plan2scene/utils/tile_util.py | fa50e32b996ee3f80fd4ce0cf655ef692d07f1f6 | [
"MIT"
] | permissive | blurgyy/plan2scene | 85d54ed3c0c10be4dfb2a811ea2335319ead4347 | 3470e1ed3ed24bfeddb71c58fa233d40662fa777 | refs/heads/main | 2023-05-30T19:06:21.284884 | 2021-06-18T01:40:36 | 2021-06-18T01:40:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | import shutil
import subprocess
import os
import os.path as osp
import uuid
from PIL import Image
import tempfile
import subprocess
from plan2scene.utils.io import load_image
def tile_image(image: Image.Image, embark_texture_synthesis_path: str, seam_mask_path: str):
"""
Correct seams of a texture so it can ... | [
"mvidanap@sfu.ca"
] | mvidanap@sfu.ca |
6e99e2b0f6f8111ffd361e92f4944fcb6aba5698 | 5e79fbddf94e91041bc33012d12c36087486a15c | /website-django-css-emb/hyperspacecss/hyperspacecss/wsgi.py | 67ff6dac4ad7a13ce016c241cefbf704692b1cc2 | [] | no_license | Benni1908/DjaDr | cab26caf6fe46d83c3c9041a84ca681020df6037 | a965153f939d71ca64f21d995314706c97b8628c | refs/heads/master | 2020-03-17T14:23:47.778856 | 2018-07-22T18:01:21 | 2018-07-22T18:01:21 | 133,670,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for hyperspacecss 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"promotionmts@gmail.com"
] | promotionmts@gmail.com |
33fb168c8e8a9206598e9a287663cb9dc7e661e6 | f975be6fd6edafeb9f71d7f0c3e0ce6b114b0edc | /media.py | 325bb5c2e426458be812c1da277be485db4c3b23 | [
"MIT"
] | permissive | arushidoshi/Movie_trailer_website | 4a3a297040a68e9dc95987c9ae2d10a2e5d77b65 | 2bbb4c0625eaf8218475b115ec71f947e8e2cb16 | refs/heads/master | 2021-01-19T05:33:18.959052 | 2016-08-04T07:00:25 | 2016-08-04T07:00:25 | 64,906,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import webbrowser
class Movie():
"""This class defines the structure of storing movie related information"""
# the init fuction is a constructor
def __init__(self, movie_title, movie_summary, movie_poster, movie_trailer):
self.title = movie_title
self.storyline = movie_summary
self.... | [
"Jasmin@Jasmins-MacBook-Pro.local"
] | Jasmin@Jasmins-MacBook-Pro.local |
ae0fe073b6e2e089c816b4165d5b733b816e64e9 | 435e08e159e08219138922b5059aa7955cbf28b6 | /Sýnidæmi/Synidaemi5.py | a664fd178dabf806cd0af41aea1076aa498a3409 | [] | no_license | haflidijr/All-assignments | 8d244470a05accffda7872ba31b725c17552e1da | 4072734463f88e3d9b86497e40fa8df739b5980c | refs/heads/master | 2022-12-11T02:50:05.751151 | 2020-09-10T13:59:09 | 2020-09-10T13:59:09 | 293,494,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py |
a = int(input("Sladu inn tolu "))
# profid ad sla inn 1, 2 eda 3
print("Hun verdur borin saman vid breytuna b sem hefur gildid 2.")
b = 2
if (a < b):
print("a er minni en b")
elif (a == b):
print("a er jafnstor og b")
else:
print("a er staerri en b")
# talvan athugar fyrst hvort a se minni en b, ef svo er... | [
"haflidih20@ru.is"
] | haflidih20@ru.is |
df77e03b76e88dc1ac42b30692eea87c5c6da7f5 | 6eb670743e3fffa8ad967550e23603626c84a4f6 | /projects/__init__.py | 1754665870ef8cfd4f42edc3b5f11af37c2e388c | [
"MIT"
] | permissive | johnopana/App-Repo | 53c27cb4ce271564d4e557fc257603c5e64f4fa1 | 03bad2ba4d74b1bfcc01940bac2b270270f12b7e | refs/heads/master | 2021-09-10T04:51:30.730363 | 2020-02-21T08:34:11 | 2020-02-21T08:34:11 | 240,487,597 | 0 | 0 | MIT | 2021-09-08T01:40:43 | 2020-02-14T10:53:25 | Python | UTF-8 | Python | false | false | 1,677 | py | from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations ... | [
"johnopana2016@gmail.com"
] | johnopana2016@gmail.com |
06d163a2fe5ead35d5e572263a70fde2496f201a | 745197407e81606718c4cdbedb6a81b5e8edf50b | /tests/texttest/TestSelf/TestData/GUI/CopyTestPermission/TargetApp/printpermissions.py | 982669999d14a181bf22034492a6efd8f0066ec8 | [] | no_license | dineshkummarc/texttest-3.22 | 5b986c4f6cc11fd553dab173c7f2e90590e7fcf0 | 85c3d3627082cdc5860d9a8468687acb499a7293 | refs/heads/master | 2021-01-23T20:44:35.653866 | 2012-06-25T07:52:13 | 2012-06-25T07:52:13 | 4,779,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | #!/usr/bin/env python
import os
if os.name == "posix":
os.system("fake_executable.py 2> /dev/null")
else:
os.system("fake_executable.py 2> nul")
| [
"dineshkummarc@gmail.com"
] | dineshkummarc@gmail.com |
c429802a9089f13c1454fc1561fb824738bee9ed | 35a2c7e6a01dc7f75116519e4521880416f2a9f2 | /tag/migrations/0002_value.py | 2824ada9ec86e752a45838963178796c90938761 | [] | no_license | engrogerio/edr-rest | ae977857d86aab3ef5b40e4d2be2e24abda97cb9 | a1115a1cd80c0531a85545681b0d3a70b97c529e | refs/heads/master | 2021-01-12T06:35:47.059448 | 2016-12-26T16:20:14 | 2016-12-26T16:20:14 | 77,392,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-09-07 15:42
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('f... | [
"eng.rogerio@gmail.com"
] | eng.rogerio@gmail.com |
f573772161ac4cbca9f9e470290039cbabc79bb9 | 71a75d3ee8c19a3f0f7c781d5fc4a0b374914d28 | /__moven.py | a3f1c60b93480ee896a4b536b8d083c25e5dd464 | [] | no_license | calciumdave/DMV | 36f95e3eea30aca12b33645b45c9e151cec082fd | 666b0199bd602b0e898e1135486cec9dba4fab15 | refs/heads/master | 2016-08-11T18:52:43.477871 | 2016-01-06T04:39:39 | 2016-01-06T04:39:39 | 44,949,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | import datetime
from decimal import Decimal
from operator import add
def str2date(s):
''' convert string s of format u'2014-04-10' to datetime.date format '''
return datetime.date(*map(int, s.split('-')))
def datefields(d):
'''extract year, month, day, week information in a list'''
return [d.year,... | [
"dahu0002@hotmail.com"
] | dahu0002@hotmail.com |
41966c4c82d82d656d5fa42250f7a8267dfc0855 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_solomon_wzs_coin_jam2.py | dd210cf970f87c5ec2c5810a2df187cfd1dd819d | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 2,771 | py | #!/usr/bin/python2
import math
prime_list = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41,
43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 113,
193, 241, 257, 337, 353, 401, 433, 449, 577, 593, 641,
673, 769, 881, 929, 977, 1009, 1153, 1201, 1217, 1249,
1297... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
4a18de0d5e899b7c2bf6a7a4ae5221920142a355 | 13d6eae7251e043754495b2462ea7f38327f608d | /py3.4/lib/python3.4/site-packages/bit_array/bit_array.py | 3e5aa24657a0f141840abd76d06cd619d2df279e | [] | no_license | sumitbsn/impala-connect | 09972170164deba843165f987d3145c37581d596 | 4adba01184beae609e173bc68ac761cf1f451622 | refs/heads/master | 2020-12-13T11:15:51.378126 | 2020-01-16T19:59:33 | 2020-01-16T19:59:33 | 234,400,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | '''
Copyright (c) 2016 Bryant Moscon - bmoscon@gmail.com
See LICENSE file for the terms and conditions
associated with this software.
'''
import array
from math import ceil
class BitArray(object):
def __init__(self, bits):
# L = 4 bytes minimum, but could be 8 bytes. No need to waste all that space
... | [
"sumit@edge1.valhalla.phdata.io"
] | sumit@edge1.valhalla.phdata.io |
fd7686f5c303dc6016ae5eca1939a310a1c8e67d | 643872cfa5fbbab4ff80de7030d1ffa308292a74 | /pyddcurves/utils.py | 255d27302d618fca57d85175bb50e81d87154129 | [
"BSD-2-Clause"
] | permissive | mrayson/pyddcurves | e34cf7729a2f98bd2095829a035f9fbc43e052ef | 38e42491dbac7d84d83c1598d78b411e458bd4a9 | refs/heads/master | 2023-07-09T11:45:28.220236 | 2021-08-10T09:25:57 | 2021-08-10T09:25:57 | 352,568,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,156 | py | import numpy as np
import pandas as pd
import xarray as xr
import matplotlib.pyplot as plt
from datetime import datetime
import h5py
from scipy import stats
from . import models
# Output function
# Convert the trace and observed data to a hdf5 object
def bhm_6_to_h5(outfile, trace, obsdata, use_bhm=True, nparams=6... | [
"matt.rayson@gmail.com"
] | matt.rayson@gmail.com |
6ee5960e1dc64c010d0e2ed95cb5fcd348eccd3e | 1679a86a7d5b2056b57635ffc79e2cbe4ca3f8b4 | /icdb/storage/storage.py | 6bb0baaab448245cc16e5f3843dd7bf67a33337d | [] | no_license | icoz/icdb | 18ad7e32c13afec410d7f37122231eb503ffbdfe | e513515c20f4c23cebd95bd22effd5bdc2ae02bc | refs/heads/master | 2020-05-17T12:12:46.203286 | 2013-12-14T22:21:34 | 2013-12-14T22:21:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,742 | py | # -------------------------------#
# Written by icoz, 2013 #
# email: icoz.vt at gmail.com #
# License: GPL v3 #
# -------------------------------#
'''
File contains records (variable size) one by one.
Inspired by Haystack
While saving bytes(bytes.decode) is used by default.
Record:
magic ... | [
"icoz.vt@gmail.com"
] | icoz.vt@gmail.com |
8f490f12947ce2901727b7b62e038095a64c6c37 | 0c11622e157e97fd6bf0c42d20875e590d7f77e2 | /mysite/recipes/migrations/0007_auto_20161119_0509.py | 2540fe6d76fbbeea4b521e6e46d714f9131336d6 | [
"BSD-3-Clause"
] | permissive | Patrick-Lam-Apps/iCanCook | 957b71796d708f78aec74041ff41b5e4874cc000 | 1285e704e8ee079783a8f85bc07b6f3742e0a7e9 | refs/heads/master | 2020-05-23T10:11:36.863728 | 2017-01-30T07:07:15 | 2017-01-30T07:07:15 | 80,399,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-19 05:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0006_auto_20161118_0843'),
]
operations = [
migrations.AlterFiel... | [
"patricklam92117@gmail.com"
] | patricklam92117@gmail.com |
6269b0e357f1e9f7e52331c7114d3d02ab9a5c37 | ba177c8eeb0f98fbc566ef779cd045e19c678074 | /Fig1F_ZscoreHist_0100.py | 270aaab28b71ea8337c7abd12e0a1c6e7ad8f4e4 | [] | no_license | MattNolanLab/Tennantetal2018 | f0a821be1bc5553ab33535c0b42217572b2d13c5 | ea5babb874006cff6b6da070830f5722ff02a82f | refs/heads/master | 2021-05-10T08:42:38.661282 | 2018-09-18T15:03:09 | 2018-09-18T15:03:09 | 118,899,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,994 | py | # -*- coding: utf-8 -*-
"""
### Calculates Z-scores for each location bin along the track
- Location bins are 10 cm
- Z-scores calculated for each mouse in last training week then averaged over mice
"""
# import packages and functions
from Functions_Core_0100 import extractstops, filterstops, create_srdata, makebin... | [
"sarahtennant@c020051.wlan.net.ed.ac.uk"
] | sarahtennant@c020051.wlan.net.ed.ac.uk |
7b5b48e4194c24d7b61994637942273bab2714f5 | 7c33d6e59287e3133a6875e67024955c09c07f1e | /TensorFlow practise/Chapter5/example3.1.1.py | 6d9dd341e4b743e1f4d167950e658af3d99a2f16 | [] | no_license | karljiang118440/Machine-Deep-Learning | 135dff1c9676c92736a02f308cbac89cbdbdf00b | 06ee40c140ca6f19e49197ae73bc50d8a5abbbb9 | refs/heads/master | 2020-05-17T22:17:45.316222 | 2020-01-16T03:54:23 | 2020-01-16T03:54:23 | 183,995,986 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py |
import tensorflow as tf
g1=tf.Graph()
with g1.as_default():
v=tf.get_varibale(
"v",shape=[1],initializer=tf.zeros_initializer
)
g2=tf.Graph()
with g2.as_default():
v=tf.get_variable(
"v",shape=[1],initializer=tf.ones_initializer
)
with tf.Session(Graph=g1) as sess:
... | [
"jiang_chaoqing@126.com"
] | jiang_chaoqing@126.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.