blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b31cc65cdb5b6ea03050d5d5c46b68e09160387e | 850341339b20e8f31bd9464f8029452fb104ee03 | /pymc3_hierarchical_tutorial/scripts/clean_raw_data.py | 8120eeb1d223704fc0a114c32dc19e6bb4e3ce52 | [] | no_license | ariutta/pymc3_hierarchical_tutorial_parent | 7dde1c399e83a94b50082887cac4601ed2487ba4 | 03444649beecd91c1c38ca9a58b6fa33fc1ab4e8 | refs/heads/master | 2021-08-07T19:38:08.508832 | 2019-09-12T23:09:36 | 2019-09-12T23:09:36 | 205,431,021 | 1 | 0 | null | 2020-07-28T04:44:00 | 2019-08-30T17:48:52 | Nix | UTF-8 | Python | false | false | 1,302 | py | #!/usr/bin/env python3
"""
Data munging code taken almost verbatim from
<https://github.com/fonnesbeck/multilevel_modeling>
USAGE:
python3 clean_raw_data.py [srrs2.dat] [cty.dat] > [clean_data.tsv]
"""
import sys
import pandas as pd
import numpy as np
srrs2_path = sys.argv[1]
cty_path = sys.argv[2]
srrs2 = pd.r... | [
"git@andersriutta.com"
] | git@andersriutta.com |
f7e5bfb4b78221a0682bbdf5be4a896892b59ecf | a27fc866f01dad5aae92e0fbffcbc4ebbf7c8d3a | /cancer/urls.py | c77f9d6cb558a03c6b6859f02438d2a559cfadff | [] | no_license | skeerthiswaoop4301/Cancer_prediction | 6f90a5f9366154d51ccf62597103059bec9f054f | 067db80bf93515f83dab33cb0af67bab9d2d6ddf | refs/heads/master | 2023-06-29T05:01:56.671336 | 2021-08-03T14:34:04 | 2021-08-03T14:34:04 | 392,345,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('admin/', admin.site.urls),
path('',include('detect.urls'))
]
| [
"vigneshdugyala980@gmail.com"
] | vigneshdugyala980@gmail.com |
30e695755c1dd9210013905b1f2924907d50dd99 | cf14b6ee602bff94d3fc2d7e712b06458540eed7 | /gs64/gs64/urls.py | 534e0ccf1552e3ee0aed99ffb66b12f599c32ff3 | [] | no_license | ManishShah120/Learning-Django | 8b0d7bfe7e7c13dcb71bb3d0dcdf3ebe7c36db27 | 8fe70723d18884e103359c745fb0de5498b8d594 | refs/heads/master | 2023-03-29T09:49:47.694123 | 2021-03-28T16:04:34 | 2021-03-28T16:04:34 | 328,925,596 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from django.contrib import admin
from django.urls import path
from enroll import views
urlpatterns = [
path('admin/', admin.site.urls),
path('signup/', views.sign_up, name='signup'),
path('login/', views.user_login, name='login'),
path('profile/', views.user_profile, name='profile'),
path('logout/'... | [
"mkshah141@gmail.com"
] | mkshah141@gmail.com |
b201783f01576c2ee718c08177725bdf596ad82e | 31cedd498711cec95bc045ed4f441899659f363c | /app/core/tests/test_admin.py | 18aa66715b3f29076274373923e28b773240098e | [] | no_license | jsewai/recipi-api-app | d02207e38f99fd3ff15f242f42193c0cb9a41d75 | 5fb62535d80cdedbefd9d648a1c649ce2f360880 | refs/heads/master | 2022-04-26T13:18:22.431729 | 2020-01-30T22:04:27 | 2020-01-30T22:04:27 | 229,966,348 | 0 | 0 | null | 2022-04-22T22:54:48 | 2019-12-24T15:43:45 | Python | UTF-8 | Python | false | false | 1,334 | py | from django.test import TestCase, Client
from django.contrib.auth import get_user_model
from django.urls import reverse
class AdminSiteTests(TestCase):
def setUp(self):
self.client = Client()
self.admin_user = get_user_model().objects.create_superuser(
email='admin@test.com',
... | [
"junyasewai@gmail.com"
] | junyasewai@gmail.com |
75de8f81a41930929ed9d5cba1698f1a0e450792 | cbed6cc260259616fa786d55f1587ee7aa463a49 | /c_to_f.py | af2c3b8358e53cc8d11e88529e26ade0b448fd2a | [] | no_license | IamMasonL/celsius-to-fahrenheit | 449bd86e8ac3fd544e3853710c6dfc578ca642f2 | 310f6e323b704f20922bffde8397baff2a836d1c | refs/heads/main | 2023-06-07T06:26:46.375519 | 2021-06-30T04:10:11 | 2021-06-30T04:10:11 | 381,569,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | celsius = input("請輸入攝氏溫度: ")
fahrenheit = (float(celsius) * 9 / 5 + 32)
print("華氏溫度為: ", fahrenheit)
| [
"mason19950217@gmail.com"
] | mason19950217@gmail.com |
71c684ff83b63d36e51b76bc98514f36cd96d176 | 064c190e9d0dcf0de8c3d70defe94b7718566bf0 | /flaskr/blog.py | d7a1c37b93ab568748b3ef9082246feaf05a7d80 | [] | no_license | caiorrs/flask-tutorial | 7fac1a8c91957d7511d6974bf6226f7b20411ac6 | 7790624ea5f26c6a1ecf46e229c101bdda41fbee | refs/heads/master | 2020-05-24T12:11:27.473458 | 2019-05-17T18:39:28 | 2019-05-17T18:39:28 | 187,262,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | from flask import (
Blueprint, flash, g, redirect, render_template, request, url_for
)
from werkzeug.exceptions import abort
from flaskr.auth import login_required
from flaskr.db import get_db
bp = Blueprint('blog', __name__)
@bp.route('/')
def index():
db = get_db()
posts = db.execute(
'SELECT... | [
"caiorrs@gmail.com"
] | caiorrs@gmail.com |
d941fdc1ef243b8f367d6f6f07b9aea767ceb95e | f789867a1503c5f2917227b77fd8f8d8953e18d6 | /.venv/bin/jupyter | 2db52def8eba69ed9a1395b06a7c86386054194f | [] | no_license | taras0024/dw.project | 9902f75d33d856721c42fcf83cd9cd8e6d470522 | 2fcd5b8f6fef5c0194930d9962d66d59ef8e09e0 | refs/heads/master | 2023-03-23T14:38:46.182456 | 2021-03-12T10:24:57 | 2021-03-12T10:24:57 | 344,570,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/home/taras0024/Datawiz.io/les03/blog/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.command import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"shyichuk.taras@gmail.com"
] | shyichuk.taras@gmail.com | |
29fe44c9d25dd16a579cda1752070e50666bac8b | e92bf0ccadde0b968e387b9edfe58383e99506eb | /0x0B-python-input_output/9-add_item.py | 790d43935007bb4366b4a361e6e8b7e67620912e | [] | no_license | Achilik/holbertonschool-higher_level_programming-2 | 047f31c24405457e87ce3bc328f06e713b688ab6 | 63c644b0e2317ef4387f3596dc3dd542b3adcb84 | refs/heads/master | 2023-03-18T06:37:57.894474 | 2020-11-06T17:17:00 | 2020-11-06T17:17:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | #!/usr/bin/python3
""" adds all arguments to a list, and then save them to a file """
import sys
import os
save_to_json_file = __import__('7-save_to_json_file').save_to_json_file
load_from_json_file = __import__('8-load_from_json_file').load_from_json_file
filename = 'add_item.json'
if os.path.isfile(filename):
... | [
"exploitpnk@gmail.com"
] | exploitpnk@gmail.com |
429fa0629162224f974ab4f8f324ab6c02c5e645 | c95dcf6b385c6619e1e7213b040db211b767225f | /cnn_experiment/cnn_multiclass.py | dec63c6fe10ab47bbdfff2d2f0ab8965a17a8649 | [] | no_license | agusrdlv/deeplearning | 04a8df673b8ac16341537c9d146d71636661df89 | 9ca16b186a4c520c451d6a748aab3602ac07187d | refs/heads/main | 2023-03-24T04:04:35.585655 | 2021-03-22T21:43:36 | 2021-03-22T21:43:36 | 349,267,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,297 | py | import argparse
import gzip
import json
import logging
import mlflow
import torch
import torch.optim as optim
import torch.nn as nn
import torch.nn.functional as F
from sklearn.metrics import balanced_accuracy_score
from torch.utils.data import DataLoader
from tqdm import tqdm, trange
from .dataset import MeliChallen... | [
"agustin@invera.com.ar"
] | agustin@invera.com.ar |
025c21a68f6ef201669824d5acdb336f1c8df155 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_fossil.py | 01002db1c7d13f979004d6f2dcdb901e5f504ea7 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py |
#calss header
class _FOSSIL():
def __init__(self,):
self.name = "FOSSIL"
self.definitions = [u'the shape of a bone, a shell, or a plant or animal that has been preserved in rock for a very long period', u'an old person, especially one who will not accept new ideas']
self.parents = []
self.childen = []
se... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c49ebc6508d44273a7fac48410a2ea89d2782c27 | ef942bf633d406e3f467287651fc101720c0adab | /src/shader-playground/glslhelpers/__init__.py | a44051fa5e053287b5f6be3d8e43bc568b2d2625 | [
"MIT"
] | permissive | wroldwiedbwe/pywonderland | c64055b19006f39baf1b4e4230ef90e34b16df68 | f9eceba86cc79f476fe99d3dcbe40906a3273713 | refs/heads/master | 2021-07-31T20:58:28.260743 | 2021-07-15T01:41:56 | 2021-07-15T01:41:56 | 177,250,782 | 0 | 0 | MIT | 2019-03-23T06:02:12 | 2019-03-23T06:02:11 | null | UTF-8 | Python | false | false | 135 | py | from .shader import Shader
from .framebuffer import FrameBuffer
from .texture import create_texture_from_ndarray, create_image_texture
| [
"mathzhaoliang@gmail.com"
] | mathzhaoliang@gmail.com |
c385bafd7dd66cb50043465256666c414a8b9171 | 13ef33cb9067419fae743be1edb46471374c3a64 | /finance/migrations/0002_auto_20161220_1952.py | d1f50a74c4d02eb11d4e8572caa94694a40ed2ba | [] | no_license | andrewidya/littleerp | 8c33ad0ee4dac2a85bea4e540b748a47d61f3886 | 0cf8fb1be8ac3c27304807ed7aac7eb0032c2cb6 | refs/heads/master | 2021-01-24T00:42:26.962248 | 2019-07-22T01:53:58 | 2019-07-22T01:53:58 | 68,295,804 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('finance', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='invoice',
name='fee',
... | [
"andrywidyaputra@gmail.com"
] | andrywidyaputra@gmail.com |
d59efa46b4a4985fee91c373b24141bb3231df57 | a0d9a807f997528d569633086d3ca4bc50bd5574 | /recipes/xorg-proto/all/conanfile.py | ad8e696b97953bdc1beb8ad00c26f01b8d845b66 | [
"MIT"
] | permissive | syoliver/conan-center-index | 017d3ed58c2933139c35c7854bcb2394d61fc876 | ccf1568efd045ca9af92f0e1bb64680b82985efa | refs/heads/master | 2023-03-15T20:18:14.246479 | 2022-09-28T19:24:24 | 2022-09-28T19:24:24 | 249,145,375 | 0 | 0 | MIT | 2022-07-06T11:31:15 | 2020-03-22T08:51:43 | null | UTF-8 | Python | false | false | 4,654 | py | from conan import ConanFile
from conan.tools.files import rmdir, mkdir, save, load
from conans import AutoToolsBuildEnvironment, tools
import contextlib
import glob
import os
import re
import yaml
required_conan_version = ">=1.33.0"
class XorgProtoConan(ConanFile):
name = "xorg-proto"
description = "This pac... | [
"noreply@github.com"
] | syoliver.noreply@github.com |
99385d068d559cd7f2af650d1277a77ba93f6938 | a82c0a872ad80992305556e9f11b897779c601f3 | /other/mnist_cgan.py | e5191bc0ce274a0a78fc85aa60f98d5a70df8249 | [] | no_license | fishfishin/procrustrean | 8a01164614bb8d40ce016648feb666ac3f69a415 | ab484131b446de4c65c892e71b373599b6311abd | refs/heads/master | 2021-07-23T23:45:25.441333 | 2020-08-28T18:50:03 | 2020-08-28T18:50:03 | 205,784,419 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,754 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.pyplot import imsave
import matplotlib.gridspec as gridspec
import os
from tensorflow.keras.optimizers import Adam
from collections import OrderedDict
def sa... | [
"noreply@github.com"
] | fishfishin.noreply@github.com |
56b2d515029b523b0b4b05a48db3be2b80e206ef | 43fe51c3261d0604dae053dbff7cad37a454b493 | /esfspider/middlewares.py | 8663bad86b0c430852b99dab0fcdb99a16311ea7 | [] | no_license | Stanton-chenlang/lianjia_ershoufang | 0408c01ea89d25d963efb75d77358075fc8f56fe | d927cf9b40fb35a397f46182c2c05eaf5b303b8f | refs/heads/main | 2023-03-07T19:41:47.237629 | 2021-02-23T08:02:35 | 2021-02-23T08:02:35 | 341,471,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,985 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
import random
import scrapy
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class ... | [
"noreply@github.com"
] | Stanton-chenlang.noreply@github.com |
612a972e66080c0ccd9fd54b8e43498fa2610dca | ab3cc28aa2d5ba8d69fe4a77b91882caa47dd498 | /pat_pyramid.py | 11e1ddb750add364dbc31eecb1613dec6bbe778c | [] | no_license | hariketsheth/PyGrams | 90151e327dd98b9e672acd7c0def7092c1b0b1a8 | 0da21d25ed2dc59cddf0f43db9137fde542e3218 | refs/heads/master | 2022-03-25T01:21:30.518555 | 2019-04-05T12:38:05 | 2019-04-05T12:38:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | def main():
num = int(raw_input())
for i in range(num):
s = ''
for j in range(num-(i+1)):
print ' ',
for k in range((i*2)+1):
s += ' *'
print s.strip()
main()
| [
"bborade@aurusinc.com"
] | bborade@aurusinc.com |
b97539904ac34c0adff62c9b36d5fa505cac1d19 | 0d067f73d0ca9fbb6c7803d243917ed91e18f287 | /tests/python/test_while.py | c87fead60cf60e81fd566a9c8d01e4e92713e0d5 | [
"MIT"
] | permissive | ericyao2013/3D-taichi | 4addc71f8324734545d1645a4dbb15cbf0e0bd96 | 3e775cac122e2dadbb5c2392ed78a0ce99c1bc9b | refs/heads/master | 2020-11-28T09:07:37.265645 | 2019-12-23T03:47:54 | 2019-12-23T03:47:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | import taichi as ti
@ti.all_archs
def test_while():
x = ti.var(ti.f32)
N = 1
@ti.layout
def place():
ti.root.dense(ti.i, N).place(x)
@ti.kernel
def func():
i = 0
s = 0
while i < 10:
s += i
i += 1
x[0] = s
func()
assert x[0] == 45
@ti.all_archs
def test_break():
t... | [
"yuanmhu@gmail.com"
] | yuanmhu@gmail.com |
6d465675aebb12efbed82c2dea1046cefad57b88 | c906f4726bf55db9f0d64a755c1414a75b909d6d | /dev/test_board.py | 02efc0d4cc33eb5e180c0a2e0f4268cff0005d52 | [] | no_license | filipwodnicki/wood-cutting | 14773afb34e21d02c0ee9c074962760d9d10a189 | f3ecffced163f5128a5ee9e66ff79e8c19e4da5d | refs/heads/master | 2020-03-22T03:26:21.859381 | 2018-07-05T13:56:39 | 2018-07-05T13:56:39 | 139,432,199 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | from unittest import TestCase
from dev.board import Board
class TestBoard(TestCase):
#test "insert" Class method
def test_insert_type(self):
b = Board()
self.assertRaises(Exception, b.insert, 'car') # assert string fails
self.assertRaises(Exception, b.insert, [0,1,2] ) # assert [... | [
"31481575+bananalytics@users.noreply.github.com"
] | 31481575+bananalytics@users.noreply.github.com |
4a16bd846b3d70edc39f06e69194b96432e5b4db | 3f2afe894e38b3d82e456e0c32573fa5ea2b1498 | /2020/python/day-04.py | 2ecf068ab7d414fa484bf91ba16d2fa5fd06d357 | [
"MIT"
] | permissive | luciferchase/advent-of-code | 5900c40dd27a94c0cfda23dd1b52fa6cf19b7949 | 5320e9a4447017ed1bbe1fb75b652971dbde088c | refs/heads/main | 2023-06-04T14:36:28.328928 | 2021-06-18T04:38:08 | 2021-06-18T04:38:08 | 376,226,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | import re
with open("input.txt", "r") as input_file:
_input = input_file.read().splitlines()
# Add the EOF newline
_input.append("")
# Format input
temp_input = []
passport = []
for i in _input:
if not i:
temp_input.append(passport)
passport = []
els... | [
"udit2702@gmail.com"
] | udit2702@gmail.com |
461239fbc31618a5919392bafbc9f02663fe2c5d | 7c7a504092c66876ff37821812fac2269709a25b | /src/utils/qgis/algorithms/buffer_from_line.py | 932a7ebc68568f71b57b572ec59afdb6d367e6a7 | [
"MIT"
] | permissive | ibiroos/FloodTool | 4eef1cc4d1fbdcd7850e7fbe40c2ae4da85fb5fb | 5b6af01a1d1648e666909df6427ec1cfd1cc668a | refs/heads/main | 2023-06-25T14:52:08.088699 | 2021-07-16T10:16:32 | 2021-07-16T10:16:32 | 385,207,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,217 | py | # -*- coding: utf-8 -*-
"""
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as pub... | [
"krinchy@gmail.com"
] | krinchy@gmail.com |
7b8afb4ccbc57e42415d6107a4c730f40e2acaba | bf4709f5cb6a13c9954a8bdce18715d6eb1ff685 | /sensorDataFileIO.py | b6cd8b81fc85d1baa2c2c80cbcb64f6d4ce73043 | [] | no_license | johnmonash/compsci-jmss-2016 | 670faab36c004be4cb82b55084fe8542b9756453 | 5f8752a91aee4b55f62bebacc228faf6c9de1585 | refs/heads/master | 2021-01-21T04:47:24.653999 | 2016-07-18T04:09:04 | 2016-07-18T04:09:04 | 51,118,365 | 0 | 32 | null | 2016-02-05T02:29:11 | 2016-02-05T01:27:51 | null | UTF-8 | Python | false | false | 442 | py | # read in and process temperature data from Blackburn Sensor for March
data = open("visdata.csv")
headers = data.readline()
print (headers)
templist=[]
humlist=[]
for line in data:
line = line.strip()
datalist = line.split(",")
templist.append(float(datalist[1]))
templist.append(float(datalist[2]))
... | [
"linda.mciver@jmss.vic.edu.au"
] | linda.mciver@jmss.vic.edu.au |
af6f722c68536974e119047083e150a08ffdfdf0 | 6933b96b9c10ca70da57b1b384126e20fa21d9b2 | /ftp/FTP4.0/linkFTP2012-11-8/mysql.py | 2b49cd406f624fc83d9f1ed13cd5c521b4c1ca2d | [] | no_license | Dawson0x00/scan | 5bb2e85756b8e86ba43f6d63182a7e806c560bfc | e9f274e26ac924a47cf3216e707dc1a724937775 | refs/heads/master | 2021-01-19T14:12:59.107938 | 2017-02-22T02:51:27 | 2017-02-22T02:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,655 | py | #!/usr/local/bin/python
#-*- coding: UTF-8 -*-
##################################################
#qq:316118740
#BLOG:http://hi.baidu.com/alalmn
# MYSQL 添加 删除 修改 查询
# 刚学写的不好请大家见谅
#网上搜索到一个http://www.technicalbard.com/files/MySQL-python-1.2.2.win32-py2.6.exe
##################################################
import ti... | [
"voilet@voiletdeMacBook-Pro-2.local"
] | voilet@voiletdeMacBook-Pro-2.local |
ba8cb3646c5fa07225a17de7ff38d8260a00b236 | fa78d8b79ed0aeeba2d089a741195ee56bda98f9 | /DataIngestion/Sony/build/lib/Sony/settings.py | 390436f85dda801dcbdc131bfa68ed988c166f40 | [] | no_license | michaelgreis/GameInfo | d40bc2d4d526bb470feb721eafac43c2d126b8c3 | 8222b352dfb4a420f78c6b88faf01dabad42554c | refs/heads/master | 2021-01-16T18:26:05.357392 | 2019-02-03T19:34:35 | 2019-02-03T19:34:35 | 100,079,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,221 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Sony project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/to... | [
"michaelgreis@gmail.com"
] | michaelgreis@gmail.com |
2cdd6efb3875bec9432a48027643d9c449e8b838 | a65d7a87078a3990f6a39e716f8598a5218a96cf | /Files/KalmanFilterTest.py | cf8c906bf47cc99ff374cb03d043cbc0e63a2a1b | [
"MIT"
] | permissive | austindkoenig/Beach-Weather-Station-Kalman-Filter | 13147273fe7482846cac4fdf2d0ae265d00f7131 | 8079d2d07be095f780b9f817ceebffbeea7de5bd | refs/heads/master | 2022-04-24T11:13:56.901889 | 2020-04-16T20:31:55 | 2020-04-16T20:31:55 | 256,322,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | import pandas as pd
import KalmanFilter
import matplotlib.pyplot as plt
plt.style.use('ggplot')
data_dir = '../Data/Beach_Weather_Stations_-_Automated_Sensors.csv'
weather_df = pd.read_csv(data_dir)
weather_df = weather_df[~weather_df['Measurement Timestamp'].str.contains('2015')] # remove year 2015 because format ... | [
"austindkoenig@gmail.com"
] | austindkoenig@gmail.com |
b975846d7e30a0a08796a7fd56ea90d115cd15c9 | 5e464a322726348922cbabd50e62fbeef8684209 | /one_shot_kg_app.py | 06ef47c62bd3e11e8a4fdc756461540caf248837 | [] | no_license | Yimsun97/TuRBOPlus | 6d95a0ce710f4cb5db48203b68f5749306ffb5d5 | 82bcfc815572549600080b731b4ed7712eaf94f7 | refs/heads/main | 2023-03-02T01:31:33.888412 | 2021-02-10T03:28:16 | 2021-02-10T03:28:16 | 337,601,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,213 | py | #!/usr/bin/env python3
# coding: utf-8
# The one-shot Knowledge Gradient acquisition function
import torch
import numpy as np
from botorch.fit import fit_gpytorch_model
from botorch.models import SingleTaskGP
from botorch.utils import standardize
from gpytorch.mlls import ExactMarginalLogLikelihood
from botorch.acqu... | [
"1668159091@qq.com"
] | 1668159091@qq.com |
e4575ff2a9c490c29305dce49d9640353abdff5c | 9e7ea743f052e1837a26ad76e6b642a240853950 | /path.py | fbbb37eec2a5bf0c6374db3975ed7d6bff06f313 | [] | no_license | yumianhuli2/cmake_generator | 46e8c1e85a3b67cae7f385ef9b659253f145c208 | 2fb6a9733d49cf5550f639021527b709a69d0316 | refs/heads/master | 2023-02-25T03:22:57.207453 | 2021-01-27T11:24:27 | 2021-01-27T11:24:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from inspect import stack
from pathlib import Path
# ----------------------------------------------------------------
def abs_path_str_from_rel_to_this_file( path : str ) :
caller_frame = stack()[1]
caller_file_path = caller_frame.filename
caller_directory = Path( caller_file_path ).parent
full_path = ... | [
"berryvansomeren@gmail.com"
] | berryvansomeren@gmail.com |
435ce544d208455758f15a9719e1dcb841a558d7 | faacfe864e04c78a816f19dbdfb74b3ed6cb55b2 | /Locatel_Master/config.py | 65577971297827df61447c9899e974294f945e72 | [] | no_license | TheBaxes/Puntos-Locatel | 6051ef39b64404b8cd07c69a2871c32c713b15b0 | febef3f1c0e2939a16fffec510ddafda50f8b0fb | refs/heads/master | 2020-05-29T17:51:10.136119 | 2019-06-04T05:34:17 | 2019-06-04T05:34:17 | 189,285,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | import urllib
import os
# Statement for enabling the development environment
DEBUG = True
# Define the application directory
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
# Define the database - we are working with
# params = urllib.parse.quote_plus(
# "Driver={ODBC Driver 13 for SQL Server};Server=tcp:to... | [
"sebas1475@gmail.com"
] | sebas1475@gmail.com |
e039219f4d442484234712c3cbba56c16a5220c2 | 5872119b3607cbbacf7b026a6a46e567ef5a2a70 | /test.py | 3868fffe30229d74b60e004534baa8272a98ad13 | [] | no_license | houpeng99/whalerun | 35163464133505780796bbbb19f9f6048d4a1e92 | 4e264a8f200bd5df8b2af00f9b8812e9194366f3 | refs/heads/master | 2021-07-04T17:42:00.706282 | 2017-09-26T08:25:00 | 2017-09-26T08:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | from flask import Flask, redirect, url_for, session, request, jsonify
from flask_oauthlib.client import OAuth
app = Flask(__name__)
app.debug = True
app.secret_key = 'development'
oauth = OAuth(app)
github = oauth.remote_app(
'github',
consumer_key='a11a1bda412d928fb39a',
consumer_secret='92b7cf30bc42c49... | [
"hanwuji99@outlook.com"
] | hanwuji99@outlook.com |
06fe6e0f1c1bc7166c8e270110fd34b8cf27f314 | dd97a08267b2197a73c7b19f630ab2742ada837c | /python/ThirteenTeV/HSCPgluino_M_2000_TuneCUETP8M1_13TeV_pythia8_cff.py | 4d0eeea7bec491f0baea7b770cc3b44316ddc69d | [] | no_license | Mohammed2/genproductions | 48dc93d15c070a02c9ce7c70060909587115e8f8 | 9e18bbd3be45e57b0ecaf3cbea94c8f50df939fa | refs/heads/master | 2020-06-16T16:59:50.959353 | 2017-06-06T16:43:27 | 2017-06-06T16:43:27 | 92,869,604 | 1 | 0 | null | 2017-05-30T19:40:46 | 2017-05-30T19:40:46 | null | UTF-8 | Python | false | false | 2,893 | py | FLAVOR = 'gluino'
COM_ENERGY = 13000. # GeV
MASS_POINT = 2000 # GeV
PROCESS_FILE = 'SimG4Core/CustomPhysics/data/RhadronProcessList.txt'
PARTICLE_FILE = 'Configuration/Generator/data/particles_%s_%d_GeV.txt' % (FLAVOR, MASS_POINT)
SLHA_FILE ='Configuration/Generator/data/HSCP_%s_%d_SLHA.spc' % (FLAVOR, MASS_POINT)
P... | [
"sheffield@physics.rutgers.edu"
] | sheffield@physics.rutgers.edu |
1f5e5c283bfdc3792a29cb1368b77d31bbf14e6d | 311e8519f62c8bcb7421b7b5a59bf3f5597710f8 | /nessusapi/scan.py | 5db01a7d8b3025f484ced5491364a61e5bd5591c | [
"MIT"
] | permissive | sait-berkeley-infosec/pynessus-api | ef4b9b075c8c0198c2c41d18822522fccee9b31f | 3e0c74fd5dc7df90e10a9aac3f9282d4f8b12372 | refs/heads/master | 2021-01-10T21:13:17.403362 | 2015-06-04T21:30:33 | 2015-06-04T21:30:33 | 20,785,281 | 1 | 3 | null | 2015-02-02T18:20:53 | 2014-06-12T22:46:16 | Python | UTF-8 | Python | false | false | 1,121 | py | # coding=utf-8
class Scan(object):
def __init__(self, nessus, target, scan_name, policy):
self.nessus = nessus
self.target = target
self.name = scan_name
self.policy = policy
self.uuid = self.nessus.request_single('scan/new', 'scan', 'uuid',
... | [
"ajaska@berkeley.edu"
] | ajaska@berkeley.edu |
8756ccb5c70e7e6d62e58aa47351827dbf95a137 | 920733e8fdedb436f35123d63335a280ae4c30a3 | /minor.py | 40e04d8a5b00007ed46d867f68d5b915fb0268c7 | [] | no_license | ritvikbhatia/Early-Prediction-of-Lifestyle-Diseases | 04977fdfc73888f5806be595d7d83384110c8c45 | 6361a70b17e50ebcd3be0f1e72ba7e3025b818f2 | refs/heads/master | 2021-07-14T09:53:54.281863 | 2020-07-23T12:37:37 | 2020-07-23T12:37:37 | 176,802,250 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,922 | py | from flask import Flask,render_template,url_for,request
from flask_material import Material
# EDA PKg
import pandas as pd
import numpy as np
# ML Pkg
from sklearn.externals import joblib
import requests
import dweepy
import os
app = Flask(__name__)
Material(app)
@app.route('/')
def index():
... | [
"noreply@github.com"
] | ritvikbhatia.noreply@github.com |
8b8874992ff3eab1808f62d05bc05d8f4290d857 | 3b0b1ee6c5c0a2740035e3b68d4c4af7c7b2bcea | /src/python/accessor.py | 6634d657453e2c99d2274569dc4ce53019b01da5 | [] | no_license | Exokem/Charm | d90268df00c6304e9cabdd6d57e8ee8eaa69f2e8 | a592b3856cdbd5d94c3200f7d2ce0aeeff4d639b | refs/heads/main | 2023-01-03T23:41:36.170123 | 2020-11-03T23:24:40 | 2020-11-03T23:24:40 | 308,516,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,706 | py | """
Facilitates storage of Charm data.
Functions:
add_word(word, part)
recover_data()
recover_user_data()
recover_words()
save()
store_contents() -> list
Variables:
version
savek
greeting
alpha
book
Authors:
Samuel Henderson
"""
import os.path as path
from src.pyt... | [
"ex010@live.com"
] | ex010@live.com |
6fd81187e5fd26a209fcf5b54d72c04a1f58c692 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/73/usersdata/261/34558/submittedfiles/triangulo.py | e103c6c1e03699443640a502e2554120aa9b80a0 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | # -*- coding: utf-8 -*-
import math
def triangulo():
a=float(input("Qual o comprimento do 1º lado? "))
b=float(input("Qual o comprimento do 2º lado? "))
c=float(input("Qual o comprimento do 3º lado? "))
if not a<b+c:
print ("N")
elif a<b+c:
print ("S")
a=a1
b=b1
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d6640fdc04f1ce77b67b469f8a16f8fd943643bd | 28b093c7626506b8e999df5de138227f8f627929 | /AlmacenLosYuYitos/AlmacenLosYuYitos/settings.py | 98a6b56e654cfbf6fa97943533c4e2bdb176de37 | [] | no_license | Core-out-of-void/LosYuYitos | 8c5d1d73df0121fe66f9f0a4bf2a32e23f8bbca1 | c7427575b24bf4e2762b638a4385a5b3e3dc5b9f | refs/heads/main | 2023-05-14T16:02:47.145961 | 2021-06-07T04:10:15 | 2021-06-07T04:10:15 | 368,354,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,023 | py | """
Django settings for AlmacenLosYuYitos project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
fr... | [
"es.cabeza@alumnos.duoc.cl"
] | es.cabeza@alumnos.duoc.cl |
30becabf152e42058f58dcb632120e3cd17a2887 | 3d7bbd8e8fead2b1bd1f8976b47f86260045d664 | /two_pages/two_pages.py | 470cac93697248b91a7c0ac527b558e904cde741 | [] | no_license | Pappers88/web-app- | ff5da4f46e661977dcb39aad13eb47c73471d5c1 | 9d78fbe31b66b51550887eb6f9ae374c9dd25c00 | refs/heads/master | 2021-01-21T14:13:41.063457 | 2017-06-23T20:41:09 | 2017-06-23T20:41:09 | 95,254,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def home():
return render_template('home.html')
@app.route('/about')
def about():
return render_template('about.html')
if __name__ == '__main__':
app.run(debug=False) | [
"noreply@github.com"
] | Pappers88.noreply@github.com |
32a87eb6686563bdcc5519a45e396b95dab048f0 | cf200bf2edc476006f84299c5cd6e64f8b73e086 | /project/app/api/crud.py | 91ab19e57e07e4268f28fa57a0edf0654a56491d | [] | no_license | kenjinagai/fastapi-tdd-docker | b936148703513df7a6b76763b213a33d66003370 | 91feeec3ef6966377d5b46e183821841992e8c60 | refs/heads/main | 2023-08-04T23:56:04.021102 | 2021-09-29T07:02:18 | 2021-09-29T07:02:18 | 410,176,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # project/app/api/crud.py
from app.models.pydantic import SummaryPayloadSchema
from app.models.tortoise import TextSummary
from typing import Union, List
async def post(payload: SummaryPayloadSchema) -> int:
summary = TextSummary(
url=payload.url,
summary="dummy summary",
)
await summary... | [
"s07430@gmail.com"
] | s07430@gmail.com |
d45575c100f6da8ba9c3f250658911fbba639b5c | 5cb3b2d2fe6cf136296ed206f021061774edf305 | /apps/home/urls.py | 248a4da48c3fa9a576467df37ba4acd926a86704 | [
"Apache-2.0"
] | permissive | whytheplatypus/sharemyhealth | 002e6a4b3633d8f5aaedbd9add0b9109723d7e5d | 79ac694686ebd7a9a121741e473afbd35f25cea5 | refs/heads/master | 2020-03-30T12:59:42.841594 | 2019-05-01T19:01:30 | 2019-05-01T19:01:30 | 151,251,593 | 0 | 0 | Apache-2.0 | 2018-10-02T12:35:16 | 2018-10-02T12:35:15 | null | UTF-8 | Python | false | false | 193 | py | from django.conf.urls import url
from django.contrib import admin
from .views import authenticated_home
admin.autodiscover()
urlpatterns = [
url(r'', authenticated_home, name='home'),
]
| [
"aviars@videntity.com"
] | aviars@videntity.com |
00703fcb17eb6a59005c59a62ad6ec9f2fbe3aaa | c5314844fcffb7ce1d9a9453d6f6d458b952bb1b | /notifications/pushover.py | 9374dc1263c05417cb4b5076565f639de24a6d29 | [] | no_license | Admin9705/pgtrak | 92560ba9bd49ac4c751d5603dfb20dc5dc1944ae | 339d5206649211237a8298c6e93e5b20372c93da | refs/heads/master | 2022-07-08T06:02:39.040208 | 2018-04-28T17:23:44 | 2018-04-28T17:23:44 | 126,560,840 | 1 | 0 | null | 2018-08-09T03:03:08 | 2018-03-24T03:02:32 | Python | UTF-8 | Python | false | false | 1,009 | py | import requests
from misc.log import logger
log = logger.get_logger(__name__)
class Pushover:
NAME = "Pushover"
def __init__(self, app_token, user_token):
self.app_token = app_token
self.user_token = user_token
log.debug("Initialized Pushover notification agent")
def send(self,... | [
"l3uddz@gmail.com"
] | l3uddz@gmail.com |
b863c1fd30ec1e14e519c6a21166d6172a863880 | 738b4fd5d8ebb8c424947a6786bd41ba30df46d6 | /ibeatles/utilities/load_data.py | 3ddfd54996842b3ce1eabb81d9dceaa9bf2f0284 | [
"MIT"
] | permissive | indudhiman/bragg-edge | ba6e5c02e2bf2c2c5f87b626a4578238f7973e43 | 56af0a448534ef9cb5428879ba900e194dc05db2 | refs/heads/master | 2020-04-16T22:49:53.274903 | 2019-01-08T14:18:32 | 2019-01-08T14:18:32 | 165,985,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | class LoadData(object):
def __init__(self, parent=None, list_of_files=[]):
self.parent = parent
self.list_of_files = list_of_files
def load(self):
if (self.image_ext == '.tiff') or (self.image_ext == '.tif'):
self.load_tiff()
elif (self.image_ext == '.fi... | [
"bilheuxjm@ornl.gov"
] | bilheuxjm@ornl.gov |
7dc9755c8f6e958b44fe5ef77b3807297c3cfaab | 65b4522c04c2be071c2d42095956fe950fe1cebe | /tests/lib/viscojapan/epoch_3d_array/test_g.py | 4e35bbc0a44fe78a5f8e894fd772930bb2fab9b8 | [] | no_license | geodesy/viscojapan | ac0cd93f7a2134cd2651623b94879dcc21c0c46a | 03e70265b56eb5994e73bcb6066f0be338e42f27 | refs/heads/master | 2021-03-03T18:19:07.779601 | 2015-07-16T03:50:49 | 2015-07-16T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | from os.path import join
import unittest
import numpy as np
import h5py
import viscojapan as vj
class Test_G(vj.MyTestCase):
def setUp(self):
self.this_script = __file__
super().setUp()
def test_ordered_mask_sties(self):
fn = '/home/zy/workspace/viscojapan/tests/share/G0_He50km_VisM... | [
"zy31415@gmail.com"
] | zy31415@gmail.com |
7446b5c185cd44dd66e7b7b4284a0cc1f5f0063c | 04103ca907cac88e3b8fe4e18ac4ced847690d7a | /data_app.py | ea6b82823643d9dd3058cf8e5a08404a90831c7f | [] | no_license | joaobermudez/web_app1 | 62556b5126ce71d42203f401e178d0b18e5806e0 | e1d193e3660153e0ae1237dc0eaadb23adb3ef6b | refs/heads/master | 2022-11-29T07:22:01.984894 | 2020-08-19T03:57:59 | 2020-08-19T03:57:59 | 288,620,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,950 | py | import streamlit as st
import numpy as np
import matplotlib.pyplot as plt
from sklearn import datasets
from sklearn.model_selection import train_test_split
from sklearn.decomposition import PCA
from sklearn.svm import SVC
from sklearn.neighbors import KNeighborsClassifier
from sklearn.ensemble import Random... | [
"noreply@github.com"
] | joaobermudez.noreply@github.com |
b8c3eea30bc246d692a31b63b8a60ec186d8ceb5 | 9eadbd115634a6f447af4657440fffafbf5648b1 | /com/python/learn/crawlertest/GluepartitionFilter.py | 9baa0fd874ba69571b5570763d4c0a00b8dd2505 | [] | no_license | awsbigdata/learnpython | 910657fe7d178c209992df682bf2a985689f7edb | 7d4d4782b07653b47190935eaa269ed6b2ba1cb2 | refs/heads/master | 2021-10-13T14:52:17.585320 | 2021-10-12T08:23:18 | 2021-10-12T08:23:18 | 161,269,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/python
#
# This program used to sync the glue table schema and partition upto 1000
#
import boto3
from sys import argv
import json
from datetime import date, datetime
dbname='default'
tablename='test1'
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
... | [
"sivankumar86@gmail.com"
] | sivankumar86@gmail.com |
5767bfce1f275431992887884ac199ef1450f21d | 83449e5c1955868c521e47ef357f51b5d2229f46 | /sirbot/core/cli.py | 353d1b2e0c48704a99e7cd5c7255934eff4087e9 | [
"MIT"
] | permissive | alairock/sir-bot-a-lot | 3c87f56be290a0b8b9586b6f6ab5d8f7aef8d4a1 | 2af140e82cd43ee92cd1769b5f1a91d3184dc156 | refs/heads/master | 2021-01-24T07:02:17.437669 | 2017-05-28T17:44:21 | 2017-05-28T17:44:21 | 93,331,631 | 0 | 0 | null | 2017-06-04T17:58:02 | 2017-06-04T17:58:02 | null | UTF-8 | Python | false | false | 2,414 | py | import logging
import os
import sys
import argparse
import yaml
import asyncio
from .core import SirBot
def parse_args(arguments):
parser = argparse.ArgumentParser(description='The good Sir-bot-a-lot')
parser.add_argument('-P', '--port', dest='port', action='store',
type=int,
... | [
"ovv@outlook.com"
] | ovv@outlook.com |
a6aada93732ceb43e1240aa9a5a19635365d827a | a9337f402b63a447e31ac7708aafa9bdbf0e3424 | /cleartest.py | f214182d6e4360c0743742e9b8751d587986c5cb | [] | no_license | brandizzi/netunong | d61756519fa41373a71e65db02f2d8af47acfc1a | 624ec73e2f3bfd760a0e697bb6f772eb3974fc79 | refs/heads/master | 2021-01-21T14:39:23.135130 | 2017-06-24T19:55:25 | 2017-06-24T19:55:25 | 95,319,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | #!/usr/bin/env DJANGO_SETTINGS_MODULE=settings python
from register.tests.test_utilities import clear_database
clear_database()
| [
"adam.brandizzi@seatecnologia.com.br"
] | adam.brandizzi@seatecnologia.com.br |
09f1d118e4bafca802bbd957d20e3534fb93bfeb | d206c0a8bb5dc3e2cfc0d7c3b7ceee4bdb665a4d | /one_page/admin.py | 66f05102838ca840025190a2c73edbcbf1ef4bc1 | [] | no_license | harshit-singh99/Sentiment-Analysis-and-Crowdsourcing | f0cbde5e1043b9460a473b26528a1088695eef87 | b764a317b9cc88ba771df4602019b3ee1ff73d04 | refs/heads/master | 2021-06-25T01:56:44.278542 | 2020-11-20T18:15:16 | 2020-11-20T18:15:16 | 158,106,956 | 0 | 7 | null | 2020-11-20T18:15:17 | 2018-11-18T17:06:07 | HTML | UTF-8 | Python | false | false | 230 | py | from django.contrib import admin
from .models import Movie, Rests, Unlabeled, Labeled
admin.site.register(Movie)
admin.site.register(Rests)
admin.site.register(Unlabeled)
admin.site.register(Labeled)
# Register your models here.
| [
"noreply@github.com"
] | harshit-singh99.noreply@github.com |
8eb1a9bce54d4bb8a6ff1d708e1ab92e53bb1dab | 359da93640b0f9cebe360d93dbdb834f88f568b9 | /mezzanine_pageview/admin.py | 8ea198650dfff51e25f2030b13ec011237a34604 | [
"BSD-2-Clause"
] | permissive | zgohr/mezzanine-pageview | 9005d34fc237cd6b1a7afc50515552e328888bc4 | 5bed5af0d3afce88332799ed8d161e3e683a978c | refs/heads/master | 2020-05-27T00:00:05.490532 | 2012-06-19T16:55:36 | 2012-06-19T16:55:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from django.contrib import admin
from models import PageViewGroup
class PageViewGroupAdmin(admin.ModelAdmin):
list_display = ("group", "page")
admin.site.register(PageViewGroup, PageViewGroupAdmin)
| [
"zachary.gohr@gmail.com"
] | zachary.gohr@gmail.com |
bc674a16d2dd4ae18d79a0b0a0b77de5a114abab | 16fa2ec8c04bd23072ac6d1df687732f95391f66 | /petrolpy/Examples/bg_example.py | 9c8aa8c5c12162e2fc48e9c60d142010b75ede8a | [
"Apache-2.0"
] | permissive | rashidwadani/petrolpy | 872865ca8b2402bdd6818acc7f15df789ab077fb | eb9573a562fde2fc0374a26f706b432e8a4e04c5 | refs/heads/master | 2020-06-07T12:47:09.493862 | 2019-06-11T21:57:27 | 2019-06-11T21:57:27 | 193,025,890 | 2 | 0 | Apache-2.0 | 2019-06-21T03:41:40 | 2019-06-21T03:41:38 | null | UTF-8 | Python | false | false | 74 | py | import petrolpy
bg = petrolpy.calc_gas_vol_factor(z_value=0.6)
print(bg) | [
"michaelwiv@gmail.com"
] | michaelwiv@gmail.com |
6a9ce73123791da69f96c599b2edf8330df42542 | be46ea3043b2c2e9343fbfca7784613f2b6c97c0 | /models/seq2act_grounding.py | dd8a8bb9abbd0ff58062a5c7103d639011ebc6c9 | [] | no_license | andrei-ars/seq2act | 4f82c10685f25e5eacef0d9833f5a60aab2ed177 | 56879be8645e1d9b5475441d1b52ca65583d6e9a | refs/heads/main | 2023-08-19T03:24:22.120350 | 2021-09-17T20:32:57 | 2021-09-17T20:32:57 | 331,658,639 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,423 | py | # coding=utf-8
# Copyright 2021 The Google Research 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... | [
"z@sp.sp"
] | z@sp.sp |
9bbdec2e3860fd5ff9ee707a7b8d5a07f51aaee9 | 529fba1e9dcf95696dd1022a829f4c8af9e404a3 | /algorithms-in-python/dynamicprogramming/countConstruct memonization.py | 67a207b1ddc49c8e0eebeb762151c13a0f073d98 | [] | no_license | nikhilsn01/algorithms-in-python | 415c8989db07d0ec36a76e05de22df6d57fa1129 | 8df088c1a714853ef864fc813b990f5f56c12249 | refs/heads/master | 2023-06-15T12:09:11.720286 | 2021-07-07T15:44:21 | 2021-07-07T15:44:21 | 382,078,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | def countConstruct(target,wordBank,memo={}):
if target in memo.keys():
return memo[target]
if target == '':
return 1
totalCount = 0
for word in wordBank:
if target.find(word) == 0:
numWaysForRest = countConstruct(target[len(word):],wordBank,memo)
totalCoun... | [
"nikhilsn360@gmail.com"
] | nikhilsn360@gmail.com |
0c2e8617661d090ec445720b79f089569ecc8ac3 | 81a62053841c03d9621fd31f8e7984c712c7aed2 | /mmdet_adv/projects/mmdet3d_plugin/datasets/custom_nuscenes_dataset.py | 1326c197618ce1a8859447f5489d89a495615843 | [] | no_license | Daniel-xsy/BEV-Attack | d0eb3a476875f9578c53df9bcb21564dea18ce0c | 7970b27396c1af450c80b12eb312e76a8ab52a0a | refs/heads/master | 2023-05-23T01:13:44.121533 | 2023-02-22T05:48:14 | 2023-02-22T05:48:14 | 540,328,937 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,245 | py | import numpy as np
from mmdet.datasets import DATASETS
from mmdet3d.datasets import NuScenesDataset
@DATASETS.register_module()
class DETR3DCustomNuScenesDataset(NuScenesDataset):
r"""NuScenes Dataset.
This datset only add camera intrinsics and extrinsics to the results.
"""
def get_data_info(self, ... | [
"1491387884@qq.com"
] | 1491387884@qq.com |
79e354db7538f2508b3968bf27ad832defa3fe6d | 96b032b348e179483bb66f3844f4e68d6e6e52b7 | /newGame.py | 8cd8fed6c0d5f43ba153dfbd76b7cf24a3cbbc30 | [] | no_license | MohamedBelhedi/HandtrackingModule-Python | 2cd77ca9893be2ce57ce42549be1986d9f2d436b | 1da0ff0b074812b0459af47fa659c09ca2e6550b | refs/heads/main | 2023-06-29T13:51:43.968534 | 2021-07-29T06:15:07 | 2021-07-29T06:15:07 | 390,841,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py |
import cv2
import time
import HandbewegungModul as had
pT = 0
cT = 0
Bild = cv2.VideoCapture(1)
detector=had.handDetector()
while True:
success, img = Bild.read()
img=detector.findHands(img)
lmList=detector.findPosition(img)
if len(lmList) !=0:
print(lmList[4])
cT = time.time()
fps ... | [
"mbelhedi@outlook.com"
] | mbelhedi@outlook.com |
136f8b9de3645e4f3f6f19676e2d6cb1d3d5e2da | a1cde280b0e0403c99a96816876ea015a8322339 | /TimeTracker/TimeTracker/tests/test_dummy.py | e2ed5cd2194ba58b26531651b0b5e6d4631136f0 | [
"MIT"
] | permissive | TreasonableShorebirds/TimeTracker | a0e5c37bfc9b9cd749627a675f6ed8c46a1bf483 | 8f0593dbe976fab4d510a378919bef71cb56d1ee | refs/heads/master | 2020-04-16T20:34:04.453527 | 2019-02-12T20:46:18 | 2019-02-12T20:46:18 | 165,901,636 | 0 | 0 | MIT | 2019-02-23T00:44:35 | 2019-01-15T18:23:16 | Python | UTF-8 | Python | false | false | 573 | py | from django.test import TestCase
class MyTestClass(TestCase):
@classmethod
def setUpTestData(cls):
print("setUpTestData: Run once to set up non-modified data for all class methods.")
pass
def setUp(self):
print("setUp: Run once for every test method to setup clean data.")
p... | [
"gesparza3@mail.csuchico.edu"
] | gesparza3@mail.csuchico.edu |
19c481922231ef9bdcb388fbd4a0ea73cfecfa51 | ca701b0182230d950af2cd7ccc6671f442a5673b | /venv/bin/gunicorn | bdf16f7f2e5a959a707caa1d9b3d6fe2d9309151 | [] | no_license | BenBowersJr/SoftwareProject | ff53db943c12a6ba45399f4cb63631bf6cc58041 | e84979ff232de9497112d25e954479f51d362c10 | refs/heads/master | 2023-04-19T12:53:38.446228 | 2021-05-10T08:04:45 | 2021-05-10T08:04:45 | 357,283,252 | 0 | 1 | null | 2021-05-06T18:13:33 | 2021-04-12T17:33:00 | Python | UTF-8 | Python | false | false | 998 | #!/Users/ben/code/SoftwareProject/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==20.1.0','console_scripts','gunicorn'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'gunicorn==20.1.0'
try:
from importlib.metadata import distribution
except ImportError:
try:
... | [
"benbowersjr.22@gmail.com"
] | benbowersjr.22@gmail.com | |
36b1844a1371f1dae6b2a418d04ff3d5d96fa528 | 841982ab8df8490ed9be26b88f0895b220f7f542 | /excE_S2.py | 5fffc0428c6f71cb93ae8999eec2aea8ba3e775b | [] | no_license | GCatarina/ED_BLBQ | ac1f3b69b27c5f79962243f7a6e4ef70b3badd00 | 2f04f8976eddbfc28323b39aedd322851c5e7687 | refs/heads/main | 2023-06-15T10:26:11.168503 | 2021-07-13T03:03:01 | 2021-07-13T03:03:01 | 385,212,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,788 | py | # packages #
import sys
import numpy as np
import time
from quspin.basis import spin_basis_1d
from quspin.operators import hamiltonian
###############################################################################
# general functions #
# Hamiltonian: BLBQ, 1D
def H_BLBQ_1D(N,J,beta,BC,basis):
#J
SpSm = [[J/2,i,(i+1... | [
"noreply@github.com"
] | GCatarina.noreply@github.com |
be5ad7ebe947af5dbbf5b7430189e72f8f740454 | 420f43ca145ac4482a56b57d77414b6b1ec45e83 | /app.py | 57be4cdd66d00efca142e15d2149188441bda55b | [] | no_license | msindrasena/surfs_up | fe918147b472810ca7018cf8345a2783142358ff | d1763018e0005c1efd9a515d0d4c9e75a9831429 | refs/heads/master | 2022-11-25T18:24:52.701925 | 2020-08-01T19:53:59 | 2020-08-01T19:53:59 | 283,278,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,379 | py | # import dependencies
import datetime as dt
import numpy as np
import pandas as pd
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
# Set up the Database
engine = create_engine("sqlite:///ha... | [
"65820576+msindrasena@users.noreply.github.com"
] | 65820576+msindrasena@users.noreply.github.com |
b3390cd0288fa39892f5fae94162d04d20576a13 | ee96ec6e09b0cc1af28ec7b77808eb4fa6611ca8 | /components/collector/src/source_collectors/jira/base.py | 294eed28eddef494b0449c7538f2de4fc936e8c0 | [
"Apache-2.0"
] | permissive | Erik-Stel/quality-time | eb1b8db2022a91f06fc0edfc966dbec7a972b88c | 602b6970e5d9088cb89cc6d488337349e54e1c9a | refs/heads/master | 2023-03-28T13:22:11.043108 | 2021-03-18T14:27:18 | 2021-03-18T14:27:18 | 269,277,099 | 0 | 0 | Apache-2.0 | 2021-03-18T14:20:21 | 2020-06-04T06:20:28 | Python | UTF-8 | Python | false | false | 1,593 | py | """Base classes for Jira collectors."""
from typing import Optional, cast
from collector_utilities.type import URL, Value
from source_model import Entities, Entity
from .issues import JiraIssues
class JiraFieldSumBase(JiraIssues):
"""Base class for collectors that sum a custom Jira field."""
field_paramet... | [
"noreply@github.com"
] | Erik-Stel.noreply@github.com |
bd8c41077e1be201fa4c44164e0024999fdd435c | 94b9f12b25818aa616e0a57923a633b3c237f78f | /krazapp/views.py | 6fa2679a2a69a97ed936fd2d032af565a56497a0 | [] | no_license | lrodriguezjb/django-models | 933409797fd17a78da513f2d8041a12d5f3a1083 | ed47082d803f428b0c47d008295a8d3e6482022c | refs/heads/master | 2021-09-23T07:47:28.339148 | 2020-01-16T09:53:47 | 2020-01-16T09:53:47 | 234,256,719 | 0 | 0 | null | 2021-09-22T18:34:42 | 2020-01-16T07:03:53 | Python | UTF-8 | Python | false | false | 743 | py | from django.views.generic import ListView, DetailView, CreateView, UpdateView, DeleteView
from django.views.generic import TemplateView
from django.urls import reverse_lazy
from .models import Post
class HomePage(ListView):
template_name = 'home.html'
model = Post
class PostDetailView(DetailView):
templ... | [
"lrodriguezjb@gmail.com"
] | lrodriguezjb@gmail.com |
8f5c92870e65b7077e08adbdadf003de67456181 | 83575716464710c8cd62a9a1e44f5c415afe6fe4 | /projeto/server_remoto/migrations/0001_initial.py | e4212f050b5507ebfb68dc5b0f8d7a5f1e50ded0 | [] | no_license | lsantos0142/serverremoto | aabd3e2ba5560014431da3590d4d19107d0f2c7e | 4b4f15afb8a7c2ae7ddbdaeac6d65e69d1017efa | refs/heads/main | 2023-06-29T09:04:03.790510 | 2021-07-28T16:41:23 | 2021-07-28T16:41:23 | 384,839,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,687 | py | # Generated by Django 3.2.5 on 2021-07-16 21:13
from django.conf import settings
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
import server_remoto.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrati... | [
"lucasnego0142@gmail.com"
] | lucasnego0142@gmail.com |
9ce382f89143b81d007c0337d557504f92fd6ab6 | a3972cb6ba32abd18b374975f4abd5318bc95f09 | /project/venv/bin/coverage-3.7 | 74c0899d928eae747e8ccb188a682b2769077318 | [] | no_license | ssr03/MiniDelivery | c57bb45e497cab34787473925663ace46dbb6b2d | 659d9757d1f369a6713aa5a66bab2aa5d6381b8e | refs/heads/master | 2020-07-30T15:05:01.401229 | 2019-09-23T11:52:51 | 2019-09-23T11:52:51 | 210,267,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | 7 | #!/Users/b201903146/Desktop/rookiehero/project/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from coverage.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"43363127+ssr03@users.noreply.github.com"
] | 43363127+ssr03@users.noreply.github.com |
1dc78851f58a021acca413f2f3ac7d3fae1d14c7 | 521504174d832b66a70692e51c80ed1c65004c2d | /nvpr_examples/skia/third_party/externals/gyp/pylib/gyp/generator/msvs_test.py | ca89a074dcdebb5065b0b65cda3956f16220e40c | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | csevenr/NVprSDK | 5d3909b74d890fd0c43ddcdb82e1472fade44598 | 509b75299ccc5a974ce3a98e60b47ea520b0126b | refs/heads/master | 2020-09-08T14:20:35.134543 | 2016-07-07T17:57:33 | 2016-07-07T17:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #!/usr/bin/env python
# Copyright (c) 2011 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
""" Unit tests for the msvs.py file. """
import gyp.generator.msvs as msvs
import unittest
import StringIO
class TestSequenc... | [
"markkilgard@gmail.com"
] | markkilgard@gmail.com |
ac09c44aaf6a06b59c0016054c4618d7088474af | 9e9253efdeb074b3b2212266d0d4c5945c4995fc | /src/obsolete/addons/core-generator/chisel/tools/generate-macros-test | 19d01f7bdd635a21133c1d751459cc0a6f6c6401 | [
"BSD-3-Clause"
] | permissive | pkerichang/hammer | bfa47964c68c8d06074e67f04367903906b46478 | 64b48bd407e30ac7040c2dcc0a3a514f7bf2824e | refs/heads/master | 2020-03-29T01:51:08.462917 | 2018-09-16T18:57:30 | 2018-09-16T19:00:24 | 149,409,875 | 0 | 0 | BSD-3-Clause | 2018-09-19T07:26:54 | 2018-09-19T07:26:54 | null | UTF-8 | Python | false | false | 4,139 | #!/usr/bin/env python3
# Copyright 2017 Edward Wang <edward.c.wang@compdigitec.com>
# -*- coding: utf-8 -*-
#
# generate-macros-test
import json
import os
import unittest
from importlib.machinery import SourceFileLoader
g = SourceFileLoader("generate-macros", os.path.dirname(os.path.realpath(__file__)) + "/generate... | [
"edwardcwang@users.noreply.github.com"
] | edwardcwang@users.noreply.github.com | |
2fe810690129980a17d5dedc6792c3d76b5a39d5 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq617.py | d86abac76ba4a91bd6d165619a430aabf728eccf | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=14
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
a567db236a6266467b6aa31dcae46bf9eff08118 | bf13529b3352809c160aa445e0ce7c7da95259d9 | /rest_framework/filters.py | c3b846aed56583aa12123f8566984e38f832662c | [
"BSD-2-Clause"
] | permissive | gminds/rapidnewsng | 673c404e27fb3e6ae007f9ca2a66a7ab557cc006 | 7528f751f657f29f2da23a1dd160479947f87977 | refs/heads/master | 2021-01-19T07:53:04.746441 | 2015-07-18T07:30:54 | 2015-07-18T07:30:54 | 39,289,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,756 | py | """
Provides generic filtering backends that can be used to filter the results
returned by list views.
"""
from __future__ import unicode_literals
from django.core.exceptions import ImproperlyConfigured
from django.db import models
from rest_framework.compat import django_filters, six, guardian, get_model_name
from res... | [
"eddy2cold@yahoo.com"
] | eddy2cold@yahoo.com |
75b7e08950403f8f3d331abc86304d64c6ed25e2 | 314d0b2f0c4687a61e9ee4ecbd5a6823903a2678 | /qa/rpc-tests/maxblocksinflight.py | 5620e927145149b0eb678d51843f9fa6d609c804 | [
"MIT"
] | permissive | pelermu/zaap | e956f6ff2f89e02d86054f70ba32e9b3ad871b6b | 58363ba5c14fc04e4439aa7cc9a18d7870270e43 | refs/heads/master | 2020-03-27T06:36:59.900631 | 2018-08-25T18:38:38 | 2018-08-25T18:38:38 | 146,120,318 | 0 | 0 | MIT | 2018-08-25T18:35:56 | 2018-08-25T18:35:56 | null | UTF-8 | Python | false | false | 3,729 | py | #!/usr/bin/env python2
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import logging
... | [
"37992703+zaapnetwork@users.noreply.github.com"
] | 37992703+zaapnetwork@users.noreply.github.com |
945da60ea278654f3bc727c1bc13e89b5b69a475 | f65afea25b89cbea0c9d98c69f1f1b67d225ebe5 | /code/user_newt/kdd_20200612/baseline/baseline_0.332.py | bfb29429837c4dae0a83211bb93ccf7027f6c834 | [] | no_license | ness001/KDD2020-Debiasing-Team666 | 7685d03d65050421de22001d00db91e977195ac8 | 538ebb356691887b2a45d0b0356344d7c1ea27db | refs/heads/master | 2022-11-08T02:23:34.253899 | 2020-06-19T08:40:27 | 2020-06-19T08:40:27 | 266,018,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,295 | py | from collections import defaultdict
from tqdm import tqdm
import pandas as pd
import math
import seaborn as sns
import matplotlib.pyplot as plt
def get_sim_item(df_, user_col, item_col, use_iif=False):
df = df_.copy()
user_item_ = df.groupby(user_col)[item_col].agg(list).reset_index()
user_item_dict = dict... | [
"newtusst@gmail.com"
] | newtusst@gmail.com |
bbbf84bb64342131a02819a91622ca98bb81be77 | 77286d36c31f312f3a0917e1d617485ae73cb9fd | /build/dynamixel_motor/catkin_generated/pkg.installspace.context.pc.py | b064747d0bd2765f9d66a0f55b641bfbb5661f45 | [] | no_license | minumn/catkin_ws | a746eb8341813a4b5d4762b25c5f1aee6a158592 | 017ae5578a575060261c263fd7cdf025c2c1728e | refs/heads/master | 2020-04-10T16:18:44.266404 | 2018-12-10T10:03:52 | 2018-12-10T10:03:52 | 161,141,244 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 376 | 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 = "dynamixel_motor"
PROJECT_SPACE_DIR = ... | [
"Ben93@live.dk"
] | Ben93@live.dk |
dd28bccfbbb9e14a20b8c19e5d2019b0f14e74d3 | 3b8300fe00b26ceb7c0cec885e287a31c288d3d4 | /unit4_lesson_01_understanding_modules.py | 88ed3954e708367f16365dfa63868ff08df16a00 | [] | no_license | vamsi-bulusu/Mission-RND-PYTHON-COURSE | 168952c3d1c8c6a009153df9d4a6e7c7f597b24f | bfed6215be6b8310ade8fd373c61580af19cbc01 | refs/heads/master | 2023-03-08T19:09:36.694720 | 2019-01-05T16:32:39 | 2019-01-05T16:32:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,317 | py | __author__ = 'Kalyan'
notes = '''
modules are a abstraction feature which greatly aids in building large applications.
modules are defined in .py file (socket.py, random.py, csv.py ...) and usually contain
a set of function, data and class definitions which provide a specific functionality. This
allows for ea... | [
"noreply@github.com"
] | vamsi-bulusu.noreply@github.com |
c3a7a88175dedd15c4d7732706671b83f424d7b0 | c546beb9adf6f6f9918a8aeeda5317ace5546132 | /project/web/app/utils/models.py | ae1fcb499668ea7e029399c3c7c34372c2990447 | [
"MIT"
] | permissive | jroeland/teapot | fa98e96a650f77af6025d7b23460df4f84ed562d | b62dddc9d2aee13c66fa9a1f7788362078143979 | refs/heads/master | 2021-01-11T01:20:12.909710 | 2016-11-06T18:10:17 | 2016-11-06T18:10:17 | 70,722,585 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | from __future__ import unicode_literals
from django.db import models
#Some of the data to use in the given examples have an id
#In order for not to interfere with django's id system, we will use this field instead
class Uid(models.Model):
class Meta:
abstract = True
uid = models.CharField(max_length =... | [
"jaime.roeland@asoreco.com"
] | jaime.roeland@asoreco.com |
c6474f1ae4c1ef0f0389dbd7e5c7cd258f6514ac | 42ddde3ae707ea25329f360dea331f8ca5d4b0d8 | /Collections/properties.py | b5aeb71a39f52b9d17a767123888cacc2fb9748b | [] | no_license | MinnuMariyaJoy/luminarpythoncode | 326b4a387b2599ef15d3138a2e1d214682c648f8 | 121a4e85ddb6a69f56b0c0d7830a360a9e427c0c | refs/heads/master | 2023-04-04T06:31:25.606966 | 2021-04-16T09:52:23 | 2021-04-16T09:52:23 | 358,550,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | #How to define?
#Check whether it support heterogenous data
#Dupicated valued allowed or not
#Insertion order preserved or not
#Mutable or imutable
lst=[10,"minnu",10.5,"bigdata",True]
print(lst)
#10 int
#sabir string
#true boolean
#each individual entity is treated as single entity
| [
"minnumariyaj@gmail.com"
] | minnumariyaj@gmail.com |
6d81669daebbc5f5b7097f09b892fe8d52e7f35f | e798446e7ec39c2d6d4005b17c3d1ceb01a29ba5 | /resources/util.py | 833bb5efb9f5d716636f4b496656dc31cabbe34b | [] | no_license | sxgc0477/changanhospital | a7af066f613b897abda96d6465ea5831bf38b98b | 5eeceabcca4be6af76f8eecccb7f7bf3a3de7f95 | refs/heads/master | 2021-05-14T14:51:26.272891 | 2018-01-02T06:31:20 | 2018-01-02T06:31:23 | 115,979,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import os
import json
msg_files = list(filter(lambda x: x.endswith('.json'), os.listdir('.')))
for f in msg_files:
msg = json.load(open(f, 'r', encoding='utf-8'))
utf8f = f.split('.')[0]+'_utf.json'
print('build utf8 file name[{}]'.format(utf8f))
print("checking the encoding for message[{}]".format(ms... | [
"sxgc0477@163.com"
] | sxgc0477@163.com |
e801da624f1f1e81603ba48969615c97fad89143 | 8ff0a962d8ea988768eb93ec7862b7da19fba7e7 | /euler7.py | 22145f9ec31f51773136928d9a79c6ff274d0c47 | [] | no_license | metodj/Project-Euler | 6c9a69054afe6f2c981ec274c641707a6346eb59 | 974c7e4d73f91f735f60d95de929027bb67c77f8 | refs/heads/master | 2021-01-12T06:35:25.810484 | 2016-12-26T14:48:37 | 2016-12-26T14:48:37 | 77,389,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | def prastevilo(n):
s = 0
for i in range(2,int(n**(1/2))+1):
if n % i == 0:
s += 1
if s == 0:
return True
else:
return False
def euler7(n):
seznam = [2]
for i in range(3,200000,2):
if prastevilo(i) == True:
seznam.append... | [
"noreply@github.com"
] | metodj.noreply@github.com |
b6b5b34de009f8bbe527828a0a8f946d8e017c3a | 4d16f17fee9e21c9a516baa6d739faef2874d588 | /netserverfile.py | a2f5c2133b33e372df0b1e78169b0e1068fade8b | [] | no_license | abdulrafaykhan/Security-with-Python-Code | f7d04b3ea7f0835a85b5f831dd043a2eb6598f70 | 8bac007ed17cc3df1547814c55d4d4ea5efb19a2 | refs/heads/master | 2020-03-18T19:23:16.325678 | 2018-05-28T20:57:23 | 2018-05-28T20:57:23 | 135,151,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import socket
# Setting the host, port and the size
host = "localhost"
port = 8890
size = 512
# Step 1 (Initializing the socket)
mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
mysock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
# Step 2 (Binding the socket to the address)
mysock.bind((host... | [
"abdul.rafay.khan10@gmail.com"
] | abdul.rafay.khan10@gmail.com |
5b4df505f5b543a9793b58b055c262aa0ec8aa30 | e68291668b94e45ed96197c118645285a4045f43 | /getclosestpoints.py | 72314b94d3ee3e80a684433f3f7807ca1528b3c2 | [] | no_license | lukasgartmair/strainrate-analysis | 4177c2949f2033a28beef4973c8c658a3c36ccb9 | 2f917fa80c0e30190bdd7ea72c29a864579b9025 | refs/heads/master | 2021-01-10T07:43:55.065336 | 2016-10-11T09:04:03 | 2016-10-11T09:04:03 | 55,695,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 9 18:33:59 2015
@author: Lukas Gartmair
"""
import numpy as np
def get_clostest_points_to_trend(nopts, ranked_indices, time_corr, strain_plast):
sub_time_filtered = np.take(time_corr,ranked_indices[0:nopts])
sub_strain_plast_filtered = np.take(strain_plast,ran... | [
"Lukas_Gartmair@gmx.de"
] | Lukas_Gartmair@gmx.de |
4d846fa812fa03f6115efab9639956da04cf8ac6 | 2bf2659c31be13b41649f8f77ac0777cbdea49d6 | /user/migrations/0001_initial.py | 6fa32f1bc636b9460860ad6e839c0b69e3dab6cc | [] | no_license | akashsaingar/django_project | daa6e911ca97623adc165a09293ecba2ae016e98 | 0df8965035bf3af8f373dc2574a67c1e02d346a7 | refs/heads/main | 2023-03-17T07:01:48.700037 | 2021-03-17T06:16:57 | 2021-03-17T06:16:57 | 348,600,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # Generated by Django 3.1.7 on 2021-03-09 16:06
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),
]
ope... | [
"akashsaingar387@gmail.com"
] | akashsaingar387@gmail.com |
42f12b01d38f701e9250c98af2dface4db16d8f0 | 947e71b34d21f3c9f5c0a197d91a880f346afa6c | /ambari-server/src/main/resources/common-services/STORM/0.9.1/package/scripts/supervisor_prod.py | c98346ba4b4ed71ee3909d9cf4af9d9e8b7c12f2 | [
"MIT",
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | liuwenru/Apache-Ambari-ZH | 4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0 | 7879810067f1981209b658ceb675ac76e951b07b | refs/heads/master | 2023-01-14T14:43:06.639598 | 2020-07-28T12:06:25 | 2020-07-28T12:06:25 | 223,551,095 | 38 | 44 | Apache-2.0 | 2023-01-02T21:55:10 | 2019-11-23T07:43:49 | Java | UTF-8 | Python | false | false | 2,429 | py | #!/usr/bin/env python
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License");... | [
"ijarvis@sina.com"
] | ijarvis@sina.com |
2adc5622beeb4801d6ba41c98dbce868e8ea881e | de75304d96e433f67dba3438f2456dd3dbb2ce08 | /scriptsLinAlg/11_equations.ipy | 31ed41d27bed0ea5b433897d4f42ac117ae134cc | [] | no_license | dalerxli/slides_linear-algebra-intro | ef7486a2779d5cd6633222662c629eae0ee59997 | 9bdbafeecd620a13e2c152bc3eb331543a5d7674 | refs/heads/master | 2023-07-14T14:35:24.395828 | 2021-08-10T17:55:04 | 2021-08-10T17:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | ipy | #!/usr/bin/env python3
# _*_ coding: utf-8 _*_
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-5,5, 20)
y1 = 3*x + 5
y2 = 6*x + 7
y3 = 5/2*x - 1
y4 = x/2 + 0.5
y5 = -3/5*x + 8/5
y6 = -4/3*x + 7/3
y7 = 2*x + 5
y8 = 2*x + 5
def graph_equations(x, *ys):
colors = ('red', 'blue', 'oran... | [
"torresc.rafael@gmail.com"
] | torresc.rafael@gmail.com |
468b8879c2d1ea37f83ca9cbb14250213709d3ac | 2eb386991d9975f0f8440d90de26e950304ac42f | /DMOJCTF2020/small_aes/solve_small_aes.py | d7538f6002a20d37951be17f9a8a391758a03e82 | [] | no_license | Quintec/CTFs2020 | 2816a66e8a486537c31e5ac25253840bc3a8ffe9 | bdaa327c9f0b0ee16ff95bafcaf65f0df8acd8b9 | refs/heads/master | 2022-12-19T21:39:14.129702 | 2020-10-01T16:49:06 | 2020-10-01T16:49:06 | 281,812,929 | 1 | 0 | null | 2020-10-01T16:49:08 | 2020-07-23T00:37:44 | null | UTF-8 | Python | false | false | 433 | py | from base64 import urlsafe_b64decode, urlsafe_b64encode
from Crypto.Cipher import AES
from itertools import product
enc = b"53rW_RiyUiwXq3PD7E4RHJuzjlHbw4YmG8wNRILXEQdBFiJZlpI2WjD_kNeQAUYG"
enc = urlsafe_b64decode(enc)
for key in product(range(256), repeat=3):
key = bytes(key) * 8
key = urlsafe_b64encode(key)... | [
"stanleyzhong8@gmail.com"
] | stanleyzhong8@gmail.com |
fb344228b89fb2bfa1abc22b6952283ef0ffec1d | 4226d6b2d57ab9c3961da8e525bebdf123d4faf3 | /Classes/Stack.py | 47d25e4a3ec3edce690818002b7504c0cbc4ac80 | [] | no_license | jkishbaugh/pyEssentials | 6d279b26edcb68a870e44e7fd31f5f5d3ee937d2 | 99314ebdd9e4bd42ad414e5077c3f043f2d2ce24 | refs/heads/master | 2020-09-25T12:10:59.716082 | 2019-12-12T18:33:51 | 2019-12-12T18:33:51 | 226,002,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python3
class Stack:
# the three methods your class will need will be
def __init__(self):
self._stack = list()
def push(self, val):
if val: self._stack.append(val)
print(self._stack)
def pop(self):
try:
self._stack[0]
... | [
"root@JKISHBAUGH-XPS.jti.int"
] | root@JKISHBAUGH-XPS.jti.int |
2c708f1f00fdd825f8fcd9eb53d91ea5873169a0 | 59b0ebc4249f20edd0e87dc63784c6e8c138c7fd | /.history/anagrams_20180606002502.py | 12a96c38d517b42578e53a8ef9346ac3c9fc8fa9 | [] | no_license | Los4U/first_python_programs | f397da10be3ef525995f3f220e3b60012a6accaa | c3fc33a38c84abd292cb2e86de63e09434fc7fc4 | refs/heads/master | 2020-03-22T08:09:40.426118 | 2018-07-04T17:17:58 | 2018-07-04T17:17:58 | 139,748,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | import sys
from os import path
words = []
words = sys.argv[1:]
for i in words:
print(i) | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
3f653fbe285baa74853e80cd68566f7d277c4087 | 8ca33a01c1c0e9b77c2e44a6a4cd2225abae340e | /test4-5.py | a928041244e0ba1ed4c394fc1f98016578d0f2e0 | [] | no_license | luxiaofeng0112/learn-python | b66afe7c295008b9d17efd6f2a10626009427368 | 38eaf700672918ed8d424296fc78f780347e6464 | refs/heads/master | 2021-01-21T07:30:30.362172 | 2015-05-30T13:43:51 | 2015-05-30T13:43:51 | 33,612,934 | 0 | 0 | null | 2015-04-08T14:45:27 | 2015-04-08T14:45:27 | null | GB18030 | Python | false | false | 4,874 | py | #-*-coding:utf-8-*-
#嵌套词典
import math
Numberlist={
'白雪萍':{'学号':'1417140301','性别':'女','年龄':18,'成绩信息':80},
'董良':{'学号':'1417140302','性别':'女','年龄':18,'成绩信息':86},
'范佳琪':{'学号':'1417140303','性别':'女','年龄':18,'成绩信息':87},
'郭全威':{'学号':'1417140304','性别':'男','年龄':19,'成绩信息':88},
'金诗琪':{'学号':'1417140305','性别':'女','年龄':18,'成绩信... | [
"760454160@qq.com"
] | 760454160@qq.com |
a5dbdec4e80f6f652fcdfaf82244c9d8297733cc | 58b0a9b7c95861b60d7eb039be98cfc3bf655dbc | /tests_scripts/test_trim.py | 13cb572d565317b3d9a1c5b57f30195a4143a478 | [] | no_license | Arigowin/Expert-System | 74fe0c7aacc4b6e09f4df995bdf096e413b0c02e | 2dd8ac62ca832e4b8d31b316479742b06d851745 | refs/heads/master | 2021-03-27T16:05:16.009199 | 2018-04-26T16:20:15 | 2018-04-26T16:20:15 | 122,976,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | import sys
from subprocess import Popen, PIPE
print("\n", __file__)
arg = sys.argv
i = 1
if (len(arg) > 1):
i = int(arg[1])
tmp = {'A': "A : True",
'B': "B : False",
'C': "C : True",
'D': "D : True",
'E': "E : True",
'F': "F : False",
'G': "G : False",
'H': "H : U... | [
"dolewski@student.42.fr"
] | dolewski@student.42.fr |
a8191a4664159d7c42abbb8661c38209a6b00b63 | 4e1f0ec8e73bb612985576c18c70cbc5321727c6 | /mapreduce/check.py | 1d057ae0cef70e9133cfb68063fdc35f1cb24d45 | [] | permissive | StackVista/sts-agent-integrations-core | 6b7c21185be0ee7e7768b42fb2ac3111cec8b366 | 909344f2a829256c114f261a3a3efbe27e09ba2c | refs/heads/master | 2023-07-07T14:13:39.889101 | 2021-04-30T13:29:06 | 2021-04-30T13:29:06 | 85,045,995 | 3 | 4 | BSD-3-Clause | 2023-06-26T14:53:13 | 2017-03-15T08:11:51 | Python | UTF-8 | Python | false | false | 21,148 | py |
'''
MapReduce Job Metrics
---------------------
mapreduce.job.elapsed_ime The elapsed time since the application started (in ms)
mapreduce.job.maps_total The total number of maps
mapreduce.job.maps_completed The number of completed maps
mapreduce.job.reduces_total ... | [
"noreply@github.com"
] | StackVista.noreply@github.com |
bccd3466d630f543aa89df829d9e325db177dfba | 24f826e18caec1197b2371b96ecdefd1be069743 | /Project2/war.py | 3300559b2309fefa26bed4af05b2b5ba6199573f | [] | no_license | harshit2118/my-python | 0096d1b5dcaff92d125e4b499ae88c53df9aacd5 | 51b616196eeb2525f9f7c2bc8d4bae0e57ab1cb9 | refs/heads/master | 2022-12-16T09:31:44.477555 | 2020-09-19T03:36:34 | 2020-09-19T03:36:34 | 286,046,113 | 0 | 0 | null | 2020-08-14T10:41:52 | 2020-08-08T13:14:05 | Python | UTF-8 | Python | false | false | 3,814 | py | '''
Wellcomw to the game of cards called wars
'''
import random
suits=('Hearts','Diamonds','Clubs','Spades')
ranks=('Two','Three','Four','Five','Six','Seven','Eight','Nine','Ten','Jack','Queen','King','Ace')
values={'Two':2,'Three':3,'Four':4,'Five':5,'Six':6,'Seven':7,'Eight':8,'Nine':9,'Ten':10,'Jack':11,'Queen':12,'... | [
"hrshtjoshi238@gmail.com"
] | hrshtjoshi238@gmail.com |
c71b7a1fc8331f274ee3fdb20ad0aab1a4971c27 | 317806a5e8aaa3ae8072414f12376e6fa50858f5 | /modules/IterativeHistogram.py | 17991599c6d391e86437199e25d13c5abd4a2878 | [
"Apache-2.0"
] | permissive | rlorigro/great_lengths | 9c1cbb849ece3747d6783475fb36eb079f16a2db | 796425fe8331f715bed762b591468a16402d4bae | refs/heads/main | 2023-02-02T16:59:07.645551 | 2020-12-11T23:01:36 | 2020-12-11T23:01:36 | 320,099,408 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,100 | py | import math
import numpy
import sys
class IterativeHistogram:
def __init__(self, start, stop, n_bins, unbounded_upper_bin=False, unbounded_lower_bin=False, include_upper_edge=True):
self.start = start
self.stop = stop
self.n_bins = n_bins
self.histogram = numpy.zeros(n_bins)
... | [
"rlorigro@ucsc.edu"
] | rlorigro@ucsc.edu |
fa5d1b2335a2a964bbf5336341028d0a2adf3417 | 1cbb86c1c9f6416f78c5ac13260f2a8bd3688b98 | /NLTK_twitter/bot.py | ea8a3219dc0cd60b77b3c94c6b0a618f02b0bea2 | [] | no_license | SrikanthTad/NLTK | 3e56dfe98052fd51ca8c984571b58c79c5fa7556 | 2fde7ee1f2e8ec6e4be5ab1323759df97efbb5d3 | refs/heads/master | 2021-07-14T02:54:22.866931 | 2017-10-19T01:23:05 | 2017-10-19T01:23:05 | 107,481,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import nltk
from nltk.twitter import Twitter
# access_token = "918706943593549824-Z3gQO9jTS3UMxR2b4d1YP4gRrWstELr"
# access_token_secret = "Q93Y5ocsuLDKVrZIWgDkZTQaXEliO9KcikLHzpEFmpAaN"
# consumer_key = "xoUFitbD6pKfkjLBkF7SVj0iw"
# consumer_secret ="Lpgv9bgi2ns6wppoCyu8tX6JALe6vjAOZbxviEcaMo7S61sa2e"
# oauth_toke... | [
"s_tadise@live.concordia.ca"
] | s_tadise@live.concordia.ca |
678d156e92d850e3ef382868cc210d096eb45cb5 | 6f1e3df8a7302e45fde7914b7904ce26993c9373 | /websecurityapp/migrations/0002_auto_20191225_1739.py | 69113067db9deb98e08543f743d762d8c8a3823a | [] | no_license | Pablo-Pino/WebSecurity-632 | 3418941eb8337745e8097fe3d1677048139aae68 | 2a8612a1d73f42c49c8eaa1a28cf8d9e9e73c54a | refs/heads/master | 2023-09-01T04:25:34.849538 | 2020-06-03T22:09:59 | 2020-06-03T22:09:59 | 234,390,980 | 0 | 0 | null | 2021-09-22T19:08:32 | 2020-01-16T19:03:52 | Python | UTF-8 | Python | false | false | 2,394 | py | # Generated by Django 2.0 on 2019-12-25 17:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('websecurityapp', '0001_ini... | [
"pabpinjim@alum.us.es"
] | pabpinjim@alum.us.es |
0f45c18037529079303a94ec4dc96c95fda477d2 | 265af11e1d8ce06f2c8bbc045638b10a46b72edf | /pygcam/queryFile.py | 5f93b17c68e1b8c1b63fa3701c02ee4b12fb8f38 | [
"MIT"
] | permissive | JGCRI/pygcam | 2174d8b4e1dad446d13fb89d698b747033f5b2d5 | ba069c43698057dffe34c4df1e0b143c5e7fcfd8 | refs/heads/master | 2023-07-27T09:07:31.049076 | 2022-08-16T23:42:30 | 2022-08-16T23:42:30 | 93,781,235 | 25 | 12 | NOASSERTION | 2023-07-06T21:28:09 | 2017-06-08T18:45:35 | Python | UTF-8 | Python | false | false | 5,810 | py | '''
.. Created on: 5/11/16
.. Copyright (c) 2016 Richard Plevin
See the https://opensource.org/licenses/MIT for license details.
'''
from collections import defaultdict
from .config import getParam
from .error import PygcamException
from .utils import getBooleanXML, resourceStream
from .XMLFile import XMLFile
#
# ... | [
"rich@plevin.com"
] | rich@plevin.com |
1ecf6cfdafa1599f4a5b8c796e45d6781e96f6f1 | 3bba622c8a50c9407555d6ff56c48ff8cc596047 | /train_cvae.py | 6477a0e5882ff9e831997af917e291e43f06bd96 | [] | no_license | Easylife247/gan_stability-cvae | 168f12bf14e74a850486d397fde48a7553047ab7 | 562de6dfe3bec5e4288d4ba2cbd4cf4340876f2b | refs/heads/master | 2023-07-03T09:08:35.806162 | 2019-03-21T09:26:44 | 2019-03-21T09:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,280 | py | import os
import tensorflow as tf
from absl import flags
import datetime
import utils
gpu = str(utils.choose_gpu())
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = gpu
from eval_model import Evaluator, eval_cvae
from cvae import CVAE
gfile = tf.gfile
train_dir = os.path.dirname(... | [
"andreas.blattmann@gmx.de"
] | andreas.blattmann@gmx.de |
82a96289f8c0a87ebbf7f2ec31f4f6361a0e78b7 | ea5becf1b1effff8be726756a1e7d79ff63c4bc9 | /weather/settings.py | 976dd6270bfa519924ce4e6f3c9061258a90b1cf | [] | no_license | Sarthak-tech-coder/Django | 144e8d08f9251347fafb41e7a640271a65293ce6 | 5f401bed69726811e429b603f03707b312c2e084 | refs/heads/main | 2023-03-06T03:45:05.949211 | 2021-02-17T05:47:03 | 2021-02-17T05:47:03 | 327,493,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,024 | py | """
Django settings for weather project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
fro... | [
"sarthak.chowdhry@hotmail.com"
] | sarthak.chowdhry@hotmail.com |
fc6717dc0d7d88f085c033890e77ce583e5ec628 | b1f9706100de7f2b2501403060d9acbc2f102370 | /test/test_diagram.py | 25b62e5bf940feb9e8cdb1ab73180de3570455a2 | [
"Apache-2.0"
] | permissive | NeverMore23/Laky-Earo | 0f70528623acd1b397e789c51fcd5588f3530fe3 | 67fa4f2b45596fc3dcfe1b6a54e12202e62cd860 | refs/heads/master | 2021-12-23T05:17:25.353635 | 2016-05-05T04:28:14 | 2016-05-05T04:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,567 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import unittest
from earo.event import Event, Field
from earo.handler import Handler, Emittion, NoEmittion
from earo.mediator import Mediator
from earo.context import Context
from earo.processor import Processor, ProcessFlow
from earo.diagram import Diagram
class TestDiagram(... | [
"463785757@qq.com"
] | 463785757@qq.com |
30d5b2683d2aeb26587f0d76e9a79de50db384e1 | b98ee5f9d69cf0301cbea001815113799db62981 | /WebDashboard/v2/ArtifactInstall_Leave_02_create_service.py | e6add63a170315a6512c919c14651c0242360108 | [] | no_license | LunaticMaestro/MenderArtifactExamples | f3027bf86f1bd8de5622251d5254e25eff2487cd | 44c2c3aefe208a32408297b09004baf64529ae45 | refs/heads/main | 2023-03-11T22:50:49.886935 | 2021-03-01T02:56:02 | 2021-03-01T02:56:02 | 342,505,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | #!/usr/bin/python3
# Create a service file
import os
import sys
import subprocess
serviceWork = \
'''
[Unit]
Description=webdashboard-2.0
After=multi-user.target
Conflicts=getty@tty.service
[Service]
Type=simple
ExecStart=/usr/local/bin/webdashboard
StandardInput=tty-force
[Install]
WantedBy=multi-user.target
'''
i... | [
"deepak@iiitkalyani.ac.in"
] | deepak@iiitkalyani.ac.in |
ae7a99b42394af979aae9d5dd02d5e052a89a2ab | c44e21bb099ca1d745d072363736e9d716a8623d | /Homework/Group_2/Problem_1.py | b0915dd769a32577ea561f4aab178c92b5e88adf | [] | no_license | thaiduy1704/CS112.L21 | 72b8e140d0af3c181ca0484e5b9393b51684a3c6 | 4243068ddd010e80670e341c2ecbe8054f3b12a5 | refs/heads/main | 2023-06-11T13:47:38.706073 | 2021-06-25T06:11:19 | 2021-06-25T06:11:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | a = list(map(int, input().split()))
a.sort()
print(*a, sep = " ") | [
"caohungphuvn@gmail.com"
] | caohungphuvn@gmail.com |
fb110cb92a51eb38e90844363a386c6d5fb0b018 | fbcb873cba61a43b134f01ffb12190fc6f9a8bab | /ota_app/views.py | f9933e0b8e31beaae49ecebe90e7b947c126e3cf | [] | no_license | PiotrFiedoruk/ota_app | 1555a32ae4aafc5641f8a57922c31133518398c9 | 2ab2f1e2a4dbf8564798c24e0d9042030449bd23 | refs/heads/master | 2023-03-30T09:10:24.956336 | 2021-04-08T20:25:17 | 2021-04-08T20:25:17 | 346,031,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,351 | py | from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.mixins import PermissionRequiredMixin, LoginRequiredMixin
from django.core.paginator import Paginator
from django.shortcuts import render, redirect
from django.urls import reverse_lazy
from django.views import View
import datetime
from... | [
"fiedorukpiotr@gmail.com"
] | fiedorukpiotr@gmail.com |
4faee0244fe112e63384a0da03c463c20421d8ee | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03359/s388821277.py | 34bcc557630d40378511ab48229fa37efb5ef00a | [] | 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 | 46 | py | a,b=map(int,input().split())
print(a-1+(b>=a)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
13c0f70eec666fec2dc0c362557d02452697220e | d2c7a5ec3076ba688384e9e41d44f91b966337db | /classification/models.py | 79994eba235b806deb91f50b717cc649c17f82b9 | [
"MIT"
] | permissive | ShamCondor/cavia | 864cd471ec6c4643fe64b5a0baac0cf57a41e9fc | 4cf41f227444969cc45a44c70579c5e5959cd2de | refs/heads/master | 2020-06-06T10:52:39.417276 | 2019-06-14T14:36:28 | 2019-06-14T14:36:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,755 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class CondConvNet(nn.Module):
def __init__(self,
num_classes,
num_filters,
max_pool,
num_context_params,
context_in,
num_film_hidden_layers,
... | [
"lmzintgraf@gmail.com"
] | lmzintgraf@gmail.com |
aec83169140213e426fd7202c172fee72c35bca0 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/explicitli.py | fb881c1eb0c559e45391aa3dfa66eb8fb9bc9545 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 508 | py | ii = [('RogePAV2.py', 1), ('AubePRP2.py', 1), ('FitzRNS3.py', 1), ('WilbRLW2.py', 1), ('SeniNSP.py', 1), ('AinsWRR3.py', 1), ('KiddJAE.py', 2), ('CoolWHM.py', 1), ('BuckWGM.py', 1), ('LyelCPG.py', 1), ('DaltJMA.py', 1), ('WestJIT2.py', 1), ('WadeJEB.py', 1), ('NewmJLP.py', 1), ('WheeJPT.py', 1), ('BentJRP.py', 2), ('St... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
03a31d223bcea3b4a2122df78349d20dd752d2bf | 3596c1091527f7e542e3081508c98bf4671f8e12 | /sequencer.py | 50787dce74c5027942f20c6606c5ae7f20e16b79 | [] | no_license | clacktronics/solar_py | 6980d976555d3b47576bf131d9bbd091572c2d31 | d52264bc962a12c4e74045833eacb6942cf1a2e7 | refs/heads/master | 2020-07-14T21:41:38.942832 | 2019-10-04T16:34:10 | 2019-10-04T16:34:10 | 205,409,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | class sequencer:
def __init__(self, txt):
self.txt = txt
open('file.txt','r') as fin:
lines = fin.readlines()
for line in lines:
date = file.open(txt)
| [
"ben@clacktronics.co.uk"
] | ben@clacktronics.co.uk |
e1891e2b37b160d413d9e6cdd9d0ab9da1cbc184 | ccea7e01fbcc755c48f39929d663e842c2826ec4 | /src/align_rgb_depth.py | d554b7b2cca21d9574debef99f68cd3cd2598dff | [] | no_license | jakubmuszynski/boris_vision | 7bdb5508b6af3d64c5fd6002255ce11d544c8e35 | 79e0ed8fb993578d536e6f59bf3a5f6869e65b7a | refs/heads/main | 2023-01-11T04:40:08.440882 | 2020-11-23T10:18:37 | 2020-11-23T10:18:37 | 311,644,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,524 | py | #!/usr/bin/python3.6
import pyrealsense2 as rs
import rospy
import numpy as np
from cv_bridge import CvBridge
from sensor_msgs.msg import Image, CameraInfo
# D435 pipeline
pipeline = rs.pipeline()
config = rs.config()
config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)
config.enable_stream(rs.stream.de... | [
"noreply@github.com"
] | jakubmuszynski.noreply@github.com |
123ef459e28f9eeaa190bf0a0361b13d1f6357ce | cfa1ede5e7df5f194f99f5f2c5e9b6cd7813e4d7 | /Trainer/views.py | 47b77f7e8e7b1f48d668e639354ea71bdddee32d | [] | no_license | Angella0/django_schoolproject | be86e31f4c33eed3eac8d189e91205739d511999 | f53eb7ffbf614349c6ae44adf2b1ebc803660556 | refs/heads/master | 2023-09-04T04:42:25.349038 | 2021-10-07T08:11:44 | 2021-10-07T08:11:44 | 380,053,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | from django.shortcuts import render, redirect
from.models import Trainer
from .forms import TrainerRegistrationForm
from django.shortcuts import render
# Create your views here.
def register_trainer(request):
if request.method == "POST":
form = TrainerRegistrationForm(request.POST, request.FILES)
if f... | [
"angellasimbwa@gmail.com"
] | angellasimbwa@gmail.com |
c4217d64a9dda3f5f9a9bf5fd0e043fecd4ae026 | aa3dfdb72f07442f90f462a970474e03d30bcd83 | /accountapp/migrations/0001_initial.py | fb929948e6568c767dacb30d922ffd982ff843a8 | [] | no_license | LEEDOWON96/pinterest | 9efd47cee66efd3c506819d657e7062a22956bf6 | 83bf2f233955080389318059e96306d184c78209 | refs/heads/main | 2023-06-27T17:48:40.891791 | 2021-07-28T12:59:23 | 2021-07-28T12:59:23 | 389,906,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # Generated by Django 3.2.5 on 2021-07-23 14:25
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='HelloWorld',
fields=[
('id', models.BigAuto... | [
"solar0t@naver.com"
] | solar0t@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.