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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
42ab5acac74402f3d71296b474618db7c733e317 | 69dd7659cece73210370b28c6b3e663294e9aa7b | /web_tests/account_manager/main_page/labels.py | eea4edb6e5d4548f413e13c69be4becba918a310 | [] | no_license | temitayoboroffice/QA | 979a5d62151d178f4a76ef57036594eea6a62490 | 78d244cbcf198077bf2998e6b7be6a5f1599984b | refs/heads/master | 2020-03-26T10:04:55.042767 | 2018-08-27T15:10:32 | 2018-08-27T15:10:32 | 144,780,288 | 0 | 0 | null | 2018-08-27T15:10:33 | 2018-08-14T22:58:48 | null | UTF-8 | Python | false | false | 86 | py | class AccountManagerMainlabels():
LBL_EDIT_MY_INFORMATION = "Edit My Information"
| [
"tboroffice@earnup.com"
] | tboroffice@earnup.com |
3944b0e67786126acfbb4b8a78e4e50274f61993 | bd43f20b5e92f5c9206d3095362a7fdc7549c2df | /node/binding.gyp | 83c22b7fec0136ebbe62a39c6f4c407cd934c6e1 | [] | no_license | alten-linkoping/machine-vision | 46ac988cbb414b4fd8d5793034abf6e148a7de45 | 5349bbf6f89c794cd0284bf80b08bb962c1dbdc6 | refs/heads/master | 2020-07-08T22:00:22.796305 | 2019-10-22T09:19:48 | 2019-10-22T09:19:48 | 203,787,281 | 0 | 0 | null | 2019-10-15T10:58:06 | 2019-08-22T12:08:01 | JavaScript | UTF-8 | Python | false | false | 1,354 | gyp | {
'variables': {
'pkg-config': 'pkg-config'
},
"targets": [
{
"target_name": "opticalFlow_addon",
"include_dirs": [
"../header",
#"/usr/local/opt/opencv\@3/include",
#"<!@(<(pkg-config) opencv)",
"<!@(node -p \"require('node-addon-api').include\")"
... | [
"emma.riedl@hotmail.se"
] | emma.riedl@hotmail.se |
744b9c9227b56b40cd773a3b6c7da61ae6c313a4 | 67f539dd30a44320297263c9ef75257a43887020 | /src/plot_losses.py | 274ed819a7c1c8e0ae94cdbae8c8bb81b449f7bf | [
"MIT"
] | permissive | oscarberonius/Text-summarizer | cf491641ae639a7e3f9ec88d17514e38cae813fd | c1de5249fc0061dace9713c78886d46ad2c43410 | refs/heads/master | 2020-04-12T15:35:28.762628 | 2019-08-07T14:53:11 | 2019-08-07T14:53:11 | 162,586,329 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | import pickle
import matplotlib.pyplot as plt
import numpy as np
if __name__ == '__main__':
with open('train_loss_500kdps_nondup_01drop_80e.pickle', 'rb') as f:
train_1 = pickle.load(f)
with open('val_loss_500kdps_nondup_01drop_80e.pickle', 'rb') as f:
val_1 = pickle.load(f)
# with open(... | [
"oscar.beronius@gmail.com"
] | oscar.beronius@gmail.com |
74780552abdcb29cbb2ff55c2bfafc323a3c67a6 | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/PostenMapping/Model/Post060371615.py | f8c41c27b0114312043dc81cf23f0e87d9548eb3 | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 4,410 | py | # coding=utf-8
from OTLMOW.PostenMapping.StandaardPost import StandaardPost
from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping
# Generated with PostenCreator. To modify: extend, do not edit
class Post060371615(StandaardPost):
def __init__(self):
super().__init__(
nummer... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
cfb9b132d864866cf06c629af73bf710465ed333 | 96fed5ba4bb561750b8c990581e7aa928b1b2124 | /backend/django_app/apps/endpoints/migrations/0001_initial.py | 1538207dcd6c5358dbfe93597c905858663a9034 | [] | no_license | Inoxevious/fin_paradise_app | 99458bb18ea6a62482521c5adef5c44e61e96e38 | 22eb0c9bb92e03f7302588200ad3520ad7554694 | refs/heads/main | 2023-03-12T21:00:41.858629 | 2021-03-02T07:52:28 | 2021-03-02T07:52:28 | 338,951,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,018 | py | # Generated by Django 3.0.8 on 2021-02-13 13:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0006_auto_20210213_1301'),
]
operations = [
migrations.CreateModel(
... | [
"mpasiinnocent@gmail.com"
] | mpasiinnocent@gmail.com |
c916944e9af516f2cf267a1e9a20d606603e0ead | d9d7aeeb688c9a0b0c11b17bbdaf9db590465959 | /models/VCNplus.py | 347b9a71cda407cd9df3693984a07dc46cae83ae | [
"MIT"
] | permissive | chahatdeep/rigidmask | 789b3dce7beba534b0a85209210870b29e9291e9 | 5b8780eee4f521ab86382480e879be6b0ce854a6 | refs/heads/main | 2023-02-28T13:53:39.586557 | 2021-02-09T22:35:30 | 2021-02-09T22:35:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,411 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
import math
import pdb
import time
import cv2
import kornia
from .submodule import pspnet, bfmodule, bfmodule_feat, conv, compute_geo_costs, get_skew_mat, get_intrinsics, F_ngransac
from .conv4d im... | [
"luanyingjian@gmail.com"
] | luanyingjian@gmail.com |
12db64fb6333956660f3f5b8978ec8bef13d96fc | a96693fd63ece0759ce5c16a9025da40d3399538 | /enable_projects_fn/enable_projects.py | 11e8362a2b8ea4b866d0d9b99d8ccaf9d83c0807 | [] | no_license | acere/SagemakerStudioCDK | 18fdd141f05158d30a30bbd3e0d09d8a35df5418 | f747d7f30086d754e206665c1f548c1ba8030a7b | refs/heads/main | 2023-05-04T11:55:24.214056 | 2021-05-24T00:49:17 | 2021-05-24T00:49:17 | 349,262,106 | 1 | 0 | null | 2021-04-25T23:54:31 | 2021-03-19T01:09:05 | Python | UTF-8 | Python | false | false | 1,925 | py | # Function: CFEnableSagemakerProjects
# Purpose: Enables Sagemaker Projects
import json
import boto3
import cfnresponse
client = boto3.client('sagemaker')
sc_client = boto3.client('servicecatalog')
def lambda_handler(event, context):
response_status = cfnresponse.SUCCESS
execution_role = event['ResourcePropert... | [
"ale.cere@gmail.com"
] | ale.cere@gmail.com |
0f81dd752a495ae79617eb7566bf1c33352515db | 9cced892643b1d7aeb3d87fd3575b2199640a41a | /Text Adventure Game/modules/command_line.py | 0d0f16cbb158ae1e1f51dcd3a7051c8a34c2c740 | [] | no_license | ahadather31/Text-Adventure-Game | 582a74ee0341f291a4b350468b4ba382e6ff6cbf | 82059cd7da32bcaa44188475c4e10013d639fdc5 | refs/heads/master | 2021-01-21T20:29:19.535078 | 2017-05-24T18:33:41 | 2017-05-24T18:33:41 | 92,239,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | # command_line_interface.py
"""This module handles interacting with the user on the command line"""
from collections import OrderedDict
class CommandLine:
'''This class contains interactions with the user via command line.'''
def __init__(self, engine, prompt_func=input, print_func=print):
self.prompt... | [
"ahad.ather@outlook.com"
] | ahad.ather@outlook.com |
fb2d2ba47aa6a6295e20ff63783b2b04e7cf311b | dd1b0978f54c78f0f60dc38fbc18f1d063f97fcf | /rename.py | ff83d26b86b663bc3936869303c51f4b861b46da | [] | no_license | StefekVUT/unet | eca738e19c05926d6470ab0cf351ba9363fc63d1 | dbd902f2eb5407368a5239edd12f61448dbffc71 | refs/heads/master | 2021-05-03T06:19:14.458907 | 2018-05-08T12:35:52 | 2018-05-08T12:35:52 | 113,501,965 | 0 | 0 | null | 2017-12-07T21:49:29 | 2017-12-07T21:49:29 | null | UTF-8 | Python | false | false | 181 | py | import os
path=os.getcwd()
filenames=os.listdir(path)
for filename in filenames:
os.rename(filename, filename.replace("_groundtruth_(1)_trainme_","trainme_original_").lower()) | [
"stefan.mocko@fei.com"
] | stefan.mocko@fei.com |
cca11fd35cdb7907a96829a0a7448e476ca91f49 | 8497a0f5fac4e39f2af0e7514b1e6c21c8f0a202 | /tasks/migrations/0004_auto_20200913_2057.py | e852e620cc1b5f3eb6b7e72742d30ac914440ddf | [] | no_license | YeScraft/Python-Django-Signals-Memcached | cd1cea099886df0d4b1e9a61231cc8ec571a59d1 | 3bcf43d599da1f8bccca216b0526f9df2b6e017c | refs/heads/master | 2023-03-18T09:34:35.307011 | 2021-03-10T16:18:59 | 2021-03-10T16:18:59 | 295,692,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | # Generated by Django 2.2.5 on 2020-09-13 20:57
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),
('tasks', '0003_auto_20200... | [
"6007833@gmail.com"
] | 6007833@gmail.com |
84dbb62861080cd12bc3346730b5b550de005a95 | 6d5ec36139d2356e2fb2d592d35543d5f1df324d | /myblog/myblog/settings.py | 7c8eaaef02d0f1db5971fa86de432681bdaa294b | [] | no_license | hyeonjee/myblog | fc5f65d4c96320c0eebe79244c9f23e4d3d1ccf5 | 026c9bf24e208ef0082d5365d04177ae390d46f6 | refs/heads/master | 2022-11-11T10:51:55.340150 | 2020-07-01T12:51:28 | 2020-07-01T12:51:28 | 276,344,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,245 | py | """
Django settings for myblog project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"61783447+hyeonjee@users.noreply.github.com"
] | 61783447+hyeonjee@users.noreply.github.com |
f006f7c85d10806a37b9c1c7d43d9e069a9f9ab1 | 63b643491d4725be37dd6db22d428e3aae1244b0 | /tests/test_users.py | 3ad666fdec70cde99e2fdb21f015314c577081ea | [] | no_license | AlexLoar/flask-app | 5dbeb4dea65645e11dfd5ba0f6f8b1a661033199 | 358ac6ce1ec2a643b27ddec405807f9a7b732d35 | refs/heads/master | 2023-02-18T20:52:26.103772 | 2020-11-02T09:36:32 | 2020-11-02T09:36:32 | 128,553,831 | 0 | 0 | null | 2023-02-02T06:13:22 | 2018-04-07T17:50:51 | JavaScript | UTF-8 | Python | false | false | 2,688 | py | import json
import unittest
from pony.orm import db_session
from src import app
from tests.utils.factories import User as UserFake
from src.users.models import User
class TestAPIUser(unittest.TestCase):
def setUp(self):
self.user = UserFake().__dict__
self.test_app = app.test_client()
def ... | [
"alopezariguel@gmail.com"
] | alopezariguel@gmail.com |
8435f6a84322f45c9d85c2c16c1b6b8adfd5fae4 | 74451670b2e434acdd713f6ce909b386e6671225 | /11check.py | f6ecf0cfcee86b3c58986c92590c9d7bcb0575eb | [] | no_license | kmvinayaka/tkinterIDLE | 47fa12b5b4af65cdbb42795beb934ab2fc0e7e23 | 8d0819c13d36c59d55db3de00031655493bce28a | refs/heads/master | 2022-01-30T03:12:29.034727 | 2022-01-20T03:27:47 | 2022-01-20T03:27:47 | 194,474,281 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from tkinter import *
master = Tk()
var1 = IntVar()
Checkbutton(master, text="male", variable=var1)
var2 = IntVar()
Checkbutton(master, text="female", variable=var2)
mainloop()
| [
"noreply@github.com"
] | noreply@github.com |
0902dd837b1cf40a0065c6fb441da75b1da9ccc8 | 42e724f2701594d71c7f027300da855200cc7d5f | /chota_jira/chota_jira/urls.py | 15b529a80eeb6edb36d58cd8c0425e1881ab1c1a | [] | no_license | Devesh-Maheshwari/devesh | 7a309a4374c05e298f60895be375c2faf20cd66a | 98b159b1c42a343d39b3d710dfaa2ac49d2c4d3c | refs/heads/master | 2021-06-07T12:35:22.140814 | 2019-10-31T11:55:42 | 2019-10-31T11:55:42 | 135,719,406 | 1 | 1 | null | 2019-10-31T11:55:43 | 2018-06-01T13:13:36 | Python | UTF-8 | Python | false | false | 952 | py | """chota_jira URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"deveshmaheshwari100@gmail.com"
] | deveshmaheshwari100@gmail.com |
270efe1ee827de103e96c769aa5c4802cf8bfa34 | bd8c2640788ce0a82b9e9369354da000a907b380 | /opshop/opshop/wsgi.py | 8c7370a5b0453e717a94cee7db56bc208a1a70d7 | [] | no_license | math2k/opshop | ded8ae5f7b34f4d5f46743b10d79c877c746a1f4 | f56dfa022b81a020c3e35e677a797dd7e113fa4e | refs/heads/master | 2021-07-01T18:28:15.354379 | 2019-12-30T21:09:33 | 2019-12-30T21:09:33 | 72,955,153 | 1 | 1 | null | 2021-06-10T19:04:51 | 2016-11-05T21:47:36 | Python | UTF-8 | Python | false | false | 1,750 | py | """
WSGI config for opshop project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` se... | [
"m@th2k.net"
] | m@th2k.net |
f73f9453b1b4f9a20d705405079bf12e1cf4ca74 | 14385e940d5e91077f4e308220c63f2729c28e0d | /app/schema/mutations/todo/close_todo.py | 1c71d21dd8a8be3ae879468513234273cb848667 | [
"MIT"
] | permissive | rjNemo/graphql_python_template | 2f44fc62266aa950da8878dfcf2ccddf81d862da | 14bc5fd657f6bdba8d7293f21cfcec821fa6374f | refs/heads/master | 2023-05-13T01:23:28.903526 | 2021-05-31T07:15:31 | 2021-05-31T07:15:31 | 306,308,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | import graphene
from app.schema.types.todo import TodoResponseField
from app.usecases.todo import close_todo
class CloseTodo(graphene.Mutation):
"""Close an existing task"""
class Arguments:
todo_id = graphene.String(required=True)
result = graphene.Field(TodoResponseField)
def mutate(self... | [
"r.nemausat@empfohlen.de"
] | r.nemausat@empfohlen.de |
9e00f6796391bc0ab526b666a77a2a2ae51ef73d | 7a3478171c5d5d48e69f39a0015d829ecbd02900 | /arrisstats/cli.py | 33c407cc1d31b89138e1ebc9b532d788e3d25fb5 | [] | no_license | VivaLosDoyers/arrisstats | 022076135698b691e1a042a4b1a42f468cc3ccb8 | 15d4db0701115c650cb3ca0f6e8378ceebfb3684 | refs/heads/master | 2021-01-22T04:24:11.579623 | 2017-02-10T07:18:59 | 2017-02-10T07:18:59 | 81,539,571 | 0 | 0 | null | 2017-02-10T07:33:41 | 2017-02-10T07:33:41 | null | UTF-8 | Python | false | false | 1,547 | py | import requests
import bs4
import json
hostname = '192.168.100.1'
class Cli:
def __init__(self, hostname):
self.debug = False
self.hostname = hostname
def process_stream_table(self, stream_data_table):
stream_data = {}
headers = [ td.text for td in stream_data_table[0].findAll... | [
"dlovitch@gmail.com"
] | dlovitch@gmail.com |
ff5f8c5bfacd316657c1d1af02cfd3e5fcbf26f6 | a95d373915ff11646ef24eb9d43e0b9bd83344de | /config/utils.py | 10c967393b12a0541f3c9735452b49ab356ccabd | [] | no_license | Symas1/fastapi-test-project | 11dacffe73f637078efb6d606d9d50e2bb175180 | 9991a4309f14d9e11c0db34a024da20e1c69a893 | refs/heads/master | 2022-11-30T01:31:30.839574 | 2020-08-20T19:53:03 | 2020-08-20T19:53:03 | 288,967,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from yaml import safe_load
def load_conf(filepath):
with open(filepath, 'r') as file:
return safe_load(file)
| [
"oleksii.symon@gmail.com"
] | oleksii.symon@gmail.com |
6e0fa9968694f215d51bdcf38d1f596345fdb76c | 30f562cf44e0a9f46202e0aadb5679cd5e8c993c | /gentelella/sensor/urls.py | dfc948151ee7099751d69778a192cedc62a81e98 | [
"MIT"
] | permissive | santiagocaballier/django-gentelella | 1f8787a7eb6a58ea1a4d74622c2e8abd2734766a | a156aa19a77aac75462b8cd56ad3221b74ae8647 | refs/heads/master | 2021-06-22T03:26:40.514296 | 2019-08-01T00:13:42 | 2019-08-01T00:13:42 | 188,501,660 | 0 | 0 | MIT | 2021-06-10T21:28:47 | 2019-05-25T00:14:52 | HTML | UTF-8 | Python | false | false | 436 | py | from django.urls import path, re_path
from sensor import views
urlpatterns = [
path('setdata/<str:_mac_address>/<int:_dataint>.<int:_datadec>',views.set_data,name='sensor_setdata'),
path('refresh_graph/<str:_sensor_name>/', views.refresh_graph, name = 'refresh_graph'),
path('refresh_ubicacion/<str:_ubicaci... | [
"caballiersantiago@hotmail.com"
] | caballiersantiago@hotmail.com |
a2eb137957a155e33e01cf885a2b9bcc5e625ca1 | c13c66934c7a0cd7bf3d4692b1066cf0d1c7fce6 | /config/urls.py | 5801fb564ca08684d29c2bdf190e660bb4750b18 | [] | no_license | youjin827/mysite | e4e3242f2905652ea328bcf46cd9dba28ab0a648 | bbd9661260831c51900b9c20970391e299b12aa6 | refs/heads/main | 2023-04-15T00:22:07.938584 | 2021-04-26T14:01:53 | 2021-04-26T14:01:53 | 361,772,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"reason9827@naver.com"
] | reason9827@naver.com |
951c40336ddf8c87565eb30a6284592d74c1fddc | 9542db6f9323d20c191e56b9876512572bf17af3 | /ejercicio 2 python/allgather/allgather.py | dbef8dae1a5e780530d2b12788a6dc3fa4efe16e | [] | no_license | alexismorison95/computacionAvanzadaFCyT2019 | ebb5dfcb8baa87beadf8ce2ae32e2786e68d298f | 33a9c23d45cfa75cb237a4d9776cc7fc9d981dc3 | refs/heads/master | 2021-03-27T23:32:21.034290 | 2020-03-21T22:08:33 | 2020-03-21T22:08:33 | 247,817,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | from mpi4py import MPI
import numpy as np
comm = MPI.COMM_WORLD
idProceso = comm.Get_rank()
cantidadProcesos = comm.Get_size()
# Creo un vector con la logitud de la cantidad de procesos
x = np.arange(cantidadProcesos, dtype=np.int) + idProceso
print("Soy el Proceso", idProceso, "- mi vector es", x)
# Creo la matriz... | [
"alexismorison83@gmail.com"
] | alexismorison83@gmail.com |
18ca6242b041ee346e00f491332ce9540ab95014 | 3d295c2eb26b450e6d5feebfeae605ed193a7d97 | /examples/EXAMPLE/dabstract_custom/__init__.py | f5b72c2e3e973be15fbfd81314bc72db11e3465a | [
"MIT"
] | permissive | yonas-y/dabstract | 4d7e2a1ae2a9a1ddfbdc87210723620f54b22448 | c09d215b9d9a59274d049d2bb1e50eb693d48d83 | refs/heads/master | 2023-01-14T14:41:03.366574 | 2020-11-20T11:14:11 | 2020-11-20T11:14:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | from .processors import *
from .dataset import * | [
"Gert.Dekkers@kuleuven.be"
] | Gert.Dekkers@kuleuven.be |
27bbcd1397596207d47f148c356105873636a5e2 | b76ae361ab277923d0fed969b795074a1ecb400b | /project/python_fullstack/day13/property.py | 77fec9d5cf94c99f3b42f8fbcc1616c6cbd3e6c0 | [] | no_license | RobotNo42/old_coed | 995df921e31d5a9b65f1609380235330edb546ad | 59f82e5d58965dd5c6340f4daf4ef43d1d311252 | refs/heads/master | 2021-07-18T00:07:33.450173 | 2020-06-16T13:51:11 | 2020-06-16T13:51:11 | 180,384,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | class People:
def __init__(self, name, age, weight, height):
self.name = name
self.age =age
self.weight = weight
self.height = height
@property
def dmi(self):
d = self.weight / (self.height ** 2)
return round(d, 2)
g = People('wzc', 20, 75, 1.7)
print(g.dmi... | [
"chengge1124@gmail.com"
] | chengge1124@gmail.com |
5523a954cd910bce70946a3ab248b803adcc2d11 | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/dash_html_components/Tbody.py | 6c69bce7274c8ffc23ad59c3a25b5f69c48d2621 | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 5,310 | py | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Tbody(Component):
"""A Tbody component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): The children of this component
- id (string; optional): ... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
9ab9c6901d77c67cfd024bd9fb3a32d913c1ffd2 | f787af1763bbc95de0bd8b6a093274c63ce5da89 | /name.py | 812a4b0b472caba257b0492a09d6adebeb02617d | [] | no_license | bohyunkim/pyworkshop | 70d23d92ae3953acc776df7f06f2780709fd440b | 7f335b817de742c5edf984b4733a88978144c08d | refs/heads/master | 2016-09-03T07:22:28.378173 | 2013-01-15T22:08:04 | 2013-01-15T22:08:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | def name(n):
print "hello " +n
| [
"bohyun.kim.ois@gmail.com"
] | bohyun.kim.ois@gmail.com |
ad965770425ffb7514c7eae370f4dda72d70789c | a29b8d6ae6642ef80d04ae99d721b703de06db69 | /maro/rl/rl_component/rl_component_bundle.py | cd18accdf0d03c47cf335a0de68f3444b0a88656 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/maro | 6aab1a4e86fddabf7f242f0d1020d985a5f7a5f3 | b3c6a589ad9036b03221e776a6929b2bc1eb4680 | refs/heads/master | 2023-08-24T16:52:38.250279 | 2023-05-15T04:31:58 | 2023-05-15T04:31:58 | 230,389,247 | 764 | 158 | MIT | 2023-07-25T20:59:06 | 2019-12-27T06:48:27 | Python | UTF-8 | Python | false | false | 4,598 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from typing import Any, Dict, List
from maro.rl.policy import AbsPolicy, RLPolicy
from maro.rl.rollout import AbsEnvSampler
from maro.rl.training import AbsTrainer
from maro.rl.workflows.callback import Callback
class RLComponentBundle:
""... | [
"noreply@github.com"
] | noreply@github.com |
5138008666410abd0c666b973e7ee7c0ecf38d60 | d845aae8c564dfc9b33b49d951bcd086d90aef3c | /app_engine/main.py | b5e93b47aa8b8502d5f5285ace9decfd027bcf34 | [
"MIT"
] | permissive | kmadathil/sanskrit_parser | c3e7e555ccc9272b8eb2af2330c1ed306081e72f | d58b81c9188f1d5e247888b64c0c22c27a07ef24 | refs/heads/master | 2023-03-31T13:42:34.636668 | 2023-03-06T11:50:02 | 2023-03-06T11:50:02 | 95,652,354 | 71 | 21 | MIT | 2023-02-26T09:04:30 | 2017-06-28T09:27:19 | Python | UTF-8 | Python | false | false | 1,759 | py | import logging
import os
from base64 import b64encode
import flask
from flask_cors import CORS
from sanskrit_parser.rest_api import api_v1
# Filter some logs to make it easier to focus on overall progress
logging.disable(logging.DEBUG)
# logging.getLogger("sanskrit_parser.base.sanskrit_base").setLevel(logging.INFO)... | [
"avinash.varna@gmail.com"
] | avinash.varna@gmail.com |
5c152ea0570b042ac7ba53d2b7e77189dd63ff4c | 79f07b0bc8f7005121b6b3a3720c8d9836cdd7fe | /users/admin.py | dcd75b4c67d098e9dfbaea6b563421ef33be1428 | [] | no_license | amiraflow/Audiotek | 30168cfa96d2f4be12efc783a36bebc5c03655c2 | 773c78cf2407d02592319db8d2259f86989d572d | refs/heads/main | 2023-02-17T04:19:12.444657 | 2021-01-20T11:05:48 | 2021-01-20T11:05:48 | 331,277,011 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.contrib import admin
from . models import Profile
# Register your models here.
admin.site.register(Profile)
| [
"amira.midzic@gmail.com"
] | amira.midzic@gmail.com |
7a3aa7c497ed3fa7b28e0570a62c54312743a973 | ff224ab55438068877c14f1db01109c5434468a5 | /scraper/vendorScraper.py | 985f6df6798226278a940c71a46faf94d81267b5 | [] | no_license | Thiyageshv/product-scraping | 334a179af465956e0a94bb5b82bef19a01801cf2 | fe052655e25c7de9c9a1c709baef0757895b4721 | refs/heads/master | 2020-07-26T02:15:32.223311 | 2019-09-20T01:18:16 | 2019-09-20T01:18:16 | 208,499,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from customScraper.Amazon import *
from customScraper.Walmart import *
from customScraper.Alibaba import *
from customScraper.Generic import *
from customScraper.EBay import *
class ScrapeSwitchController():
def __init__(self):
self.scrapSwitch = {
'AMAZON': AmazonScraper(),
'WALMART': WalmartScraper(),
... | [
"thviswanathan@tesla.com"
] | thviswanathan@tesla.com |
22acc2dddc23d9c0fc2317a07bff8b04cb194b7e | 580f9928174741d07720141107879878091a2640 | /dlib-example/face-detector/cnn_face_detector.py | 01f7d8ae4592d4d0937b596b43b56ea97a2940fc | [] | no_license | zengzhiying/machine_learning | 08aa323e4bcf42f208ce81297249ceed9818844c | 7b6a3c19580f000b1fa4ae54305749c3857b91a6 | refs/heads/master | 2023-02-27T20:08:43.384000 | 2021-02-07T14:20:48 | 2021-02-07T14:20:48 | 99,288,444 | 3 | 1 | null | 2020-10-12T22:02:52 | 2017-08-04T01:07:32 | MATLAB | UTF-8 | Python | false | false | 3,819 | py | #!/usr/bin/python3
# The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt
#
# This example shows how to run a CNN based face detector using dlib. The
# example loads a pretrained model and uses it to find faces in images. The
# CNN model is much more accurate than the HOG bas... | [
"yingzhi_zeng@126.com"
] | yingzhi_zeng@126.com |
a5d6701a8a212d1dae46bd7d34324be6eb941417 | db25649caec67b5c3b6adaa6c4c319e8633a3277 | /twistedbot/pathfinding.py | 43d50c91ae4409b0ce741f1fb82a56ce705c674c | [
"MIT"
] | permissive | srynot4sale/TwistedBot | 15cc7d0bfc1f0878ef117e60160bf6dc6d9823d6 | 0f48e99376c8a5693b121a12c925fc9f510ab5e8 | refs/heads/master | 2021-01-16T21:47:01.507905 | 2013-01-24T20:42:57 | 2013-01-24T20:42:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,234 | py |
import heapq
import time
import config
import logbot
from gridspace import GridSpace
log = logbot.getlogger("ASTAR")
class PathNode(object):
def __init__(self, coords=None, cost=1):
self.coords = coords
self.cost = cost
self.g = 0
self.h = 0
self.f = 0
self.step... | [
"lehner.lukas@gmail.com"
] | lehner.lukas@gmail.com |
9d2f890da0b68b46d397e022136d8d6643682e13 | 97e465785d48d3b210963f282bbf671981c04e89 | /Testing/open_cv/ImageLoader.py | d5e8b6156d09f59d0e0f3adad057bd67477111bf | [
"LicenseRef-scancode-other-permissive"
] | permissive | geoeo/Dense_VO | eb5808fcb9809f73b657868fb39ff36ad5ba3cf2 | dab2010d0de3f240cd6d0e30e3f9065a9c894de1 | refs/heads/master | 2021-06-25T10:14:28.968964 | 2019-05-13T17:23:17 | 2019-05-13T17:23:17 | 138,428,882 | 1 | 0 | null | 2019-01-15T11:37:06 | 2018-06-23T19:43:15 | Python | UTF-8 | Python | false | false | 2,982 | py | import numpy as np
import cv2
import Numerics as ImageProcessing
im_greyscale = cv2.imread('/Users/marchaubenstock/Workspace/Diplomarbeit_Resources/VO_Home_Images/Images_ZR300_XTrans/image_1.png',0)
pixels_standardised = ImageProcessing.z_standardise(im_greyscale)
pixels_normalized_disp = ImageProcessing.normalize_to... | [
"marchaubenstock@Marcs-MacBook-Pro.local"
] | marchaubenstock@Marcs-MacBook-Pro.local |
efb96d428ef5473c15a8f8ca460061c4d3e0348b | 5be57bc205499b87cf25cf1600c86f892a00c66e | /shifts/apps.py | 7524e9c42cd15333919524936b83b31937cb001f | [] | no_license | varelycode/shifts_project_final | cf7aaa0368baa44322efaa2d0eacc18fbc4c4682 | de184e6aa30b704572df74cd1ae49036332f8fe1 | refs/heads/master | 2021-05-14T13:11:55.538520 | 2018-01-05T22:17:47 | 2018-01-05T22:17:47 | 116,432,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class BoardsConfig(AppConfig):
name = 'shifts'
| [
"Developer@lordfawkus.attlocal.net"
] | Developer@lordfawkus.attlocal.net |
cc0c55576ca8c77495cb64ff56021fd3e2852733 | e3d9592ff05f225433e1689ec70253043a360ee2 | /hackerrank/python/regex_and_parsing/roman_numerals.py | a754d0a19b5448bb11bc357181bcb56b1a1b9310 | [] | no_license | jreiher2003/code_challenges | cad28cac57b6e14ffd30d2b7fe00abdba8b3fa47 | ac03c868b28e1cfa22d8257366e7a0f8f757ad8c | refs/heads/master | 2020-04-16T02:25:26.267418 | 2016-12-12T01:23:56 | 2016-12-12T01:23:56 | 58,969,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import re
pattern = "^M{0,3}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$"
if re.search(pattern, "MMMM"):
print "True"
else:
print "False" | [
"jreiher2003@yahoo.com"
] | jreiher2003@yahoo.com |
5ae87f822d3e84a9ad09251271d260615c2fb3e0 | 913674143b4cbc8df4b93975169758c17e4d7972 | /MyScrapyTencent/MyScrapyTencent/pipelines.py | 58a79ba46c011cefb115bb334ef40f9692f9d9c6 | [] | no_license | HeywoodKing/Scrapy-Examples | e8dca55767537609d5a6e5ba426c58dbb4669610 | e6e5415cc42c234c25ce43ad0c4227364798af3c | refs/heads/master | 2020-05-16T12:51:25.206950 | 2019-04-26T12:25:34 | 2019-04-26T12:25:34 | 183,056,875 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
class MyscrapytencentPipeline(object):
"""
功能:保存item数据
"""
def __init__(self):
self.filena... | [
"opencoding@hotmail.com"
] | opencoding@hotmail.com |
3350bab0b9ff1c84477db4090fac78da28777474 | 586519818c7e1062a762b034dc239dc61cd00565 | /accounts/tests/test_views.py | 23c8f9fc867972f779227aa16a3e820b37684eb8 | [] | no_license | frederickchute/To-Do-List | 34c69a4b5e493a4c8acc40d84913c3fb595c716d | 2cdcf87bc16f23ff290f28d27b71eea339f067a5 | refs/heads/master | 2021-06-21T00:08:28.980279 | 2019-06-28T19:41:00 | 2019-06-28T19:41:00 | 192,575,793 | 0 | 0 | null | 2021-06-10T21:36:40 | 2019-06-18T16:24:28 | JavaScript | UTF-8 | Python | false | false | 3,107 | py | from unittest.mock import patch, call
from django.test import TestCase
from accounts.models import Token
class SendLoginEmailViewTest(TestCase):
def test_redirects_to_home_page(self):
response = self.client.post('/accounts/send_login_email', data={
'email': 'edith@example.com'
})... | [
"frederickchute@gmail.com"
] | frederickchute@gmail.com |
bc6218b01cc4987fab9ef37259b4099b4c2dc82d | f8243cf2f6674d1b64f3db946d68c224e170b1be | /class_func/counter_demo.py | 81f915b4642f084e8110c56fa108754032dae00e | [] | no_license | bobiwang/study | 168b9e3c8bdba76257d4c81767204f969843a4e4 | 02839cffb41087dd89947827a2b556bd5f655812 | refs/heads/master | 2020-05-01T17:46:10.525648 | 2019-03-25T15:29:09 | 2019-03-25T15:29:09 | 177,608,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # 使用闭包实现计数器
def counter(x):
num = [x]
def add_one():
num[0] += 1
return num[0]
return add_one
num1 = counter(0)
print(num1)
print(num1())
print(num1())
num5 = counter(5)
print(num5())
print(num5())
| [
"bo.wang@5th.worl"
] | bo.wang@5th.worl |
abbca108b872d1756508bd8b34097c184da95478 | fd5308bbaeb24f564a54c741ace2584f589b856f | /passwordapp/admin.py | 91167fc31fff89051f47b2abc997d0b7d884236d | [] | no_license | Ngonie-x/PassSafe | bbfa5861401e4e3fda5101fb681d0f5034ed03e8 | e9a1b2d9391d8f340516fba7887aaedfba645017 | refs/heads/master | 2023-07-03T08:35:31.686732 | 2021-08-04T17:17:57 | 2021-08-04T17:17:57 | 304,858,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django.contrib import admin
from .models import PasswordModel
# Register your models here.
class PasswordModelAdmin(admin.ModelAdmin):
list_display =['site_url', 'username']
admin.site.register(PasswordModel, PasswordModelAdmin) | [
"ngonidzashedelight@gmail.com"
] | ngonidzashedelight@gmail.com |
bc7810f9b2d3c071c60ed75cbba91bfea32cd9a0 | d3622289573a24efe71669cccb56a53bf9dd1ed0 | /main.py | 34d319c50ace4a486d492f3bd15257654e1c5c93 | [] | no_license | christinichka/snake_game_2020 | 4d7c81491f28ecb208a5ba694a1f48cf0e7387e2 | f432edb063286b1243bfd327aeda6e79cef52dfb | refs/heads/main | 2023-02-06T01:37:51.768222 | 2021-01-02T18:29:29 | 2021-01-02T18:29:29 | 323,465,949 | 0 | 0 | null | 2020-12-29T15:59:44 | 2020-12-21T22:52:16 | Python | UTF-8 | Python | false | false | 1,177 | py | from turtle import Screen
import time
from snake import Snake
from food import Food
from scoreboard import Scoreboard
screen = Screen()
screen.setup(width=600, height=600)
screen.bgcolor("black")
screen.title("My Snake Game")
screen.tracer(0)
snake = Snake()
food = Food()
scoreboard = Scoreboard()
sc... | [
"noreply@github.com"
] | noreply@github.com |
eb3da9b2da779288bb0899e3af7e52d6315c1bdc | 229aeb9c3c227fefd21e1a212c4eb590e61769f3 | /Day2/Dey2Age.py | fa96ef43617a253c0e1dc5f0dd5fe33542e872eb | [] | no_license | thezones1/py-world-st | b3226b501e29b680563df08b49b19c4653cf47c7 | 3e29502a3bd861ca063c13de79419cfd56b2e19d | refs/heads/main | 2023-04-27T23:38:52.696176 | 2021-05-06T18:53:14 | 2021-05-06T18:53:14 | 365,006,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | age = input ("What is your current age ?")
ageent = 70 - int(age)
days = int(ageent) * 365
weekks = int(ageent) * 52
months = int(ageent) * 12
print(f"You Have {days} Days , {weekks} weekks {months} months Lift ")
| [
"rittison00@gmail.com"
] | rittison00@gmail.com |
da4aa131d6b7055e1931bffa1ecb82a6611124c7 | eb96df56324f4025a0c440c450612a2b8011de6d | /fit1.py | ba8bacaba90cd868deeacc3e3bbd009de86dedfc | [] | no_license | markovejnovic/salt-do | 400ea61660b7f803b29dccfeb51686f92488004b | cbe77ae34d2787708c1fb3dd6f38870adbe86fa1 | refs/heads/master | 2020-04-16T12:21:35.172311 | 2019-02-11T11:15:02 | 2019-02-11T11:15:02 | 165,575,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #!/usr/bin/env python
import numpy as np
from scipy.optimize import curve_fit
X = np.array([
0.00,
6.05,
11.87,
18.01,
23.99,
30.01
])
Y = np.array([
2.36,
1.85,
1.60,
1.45,
1.19,
1.09
]) * 0.01
def fit_func(x, a, b, c):
return a * x ** 2 + b * x + c
fx = np.... | [
"marko.vejnovic@hotmail.com"
] | marko.vejnovic@hotmail.com |
6dbc9da4c37571c71670c59a3cea325674764ec6 | dbe1747d11fb9b258628937a34809ed64edbb817 | /day03/StringDemo4.py | 397d0eb6cdc35f46542708f1d5f91bc50ab1e5d8 | [] | no_license | Michelle89812/Python210713_Michelle | d68e109525e1a3f619fe9b19c9e7d6ba2d7c9620 | e4aef2fe3f22d9a0554c46bf086f43335b7e4181 | refs/heads/master | 2023-07-16T07:28:32.588476 | 2021-08-31T14:00:07 | 2021-08-31T14:00:07 | 385,594,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | word = '''
國文:100
數學:80
英文:90
'''
# 提示斷行 = \n
array = word.split('\n')
print(array, len(array))
print('array[1] 沒有去除左右空白:', array[1])
print('array[1] 有去除左右空白:', array[1].strip())
chinese = float(array[1].split(':')[1].strip()) # strip() 去除二邊的空白
math = float(array[2].split(':')[1].strip... | [
"87371192+Michelle89812@users.noreply.github.com"
] | 87371192+Michelle89812@users.noreply.github.com |
eddc31355192fd2614f1dc1a6a970f4dcf5a8e4a | 5032c1fe80888104a1161e3e5168034c286e90f8 | /reptiles/admin/snake.py | 0802eece94a708938cc10526e72ad874086c0d2f | [] | no_license | yannickberthoud/SnakeBreeder | 581739fa95a405f93cabd07db22695a61107ac5e | 281fc112980c9f117fe41e9baa4ecb3441b51058 | refs/heads/master | 2020-12-02T16:26:08.929327 | 2017-07-07T15:44:34 | 2017-07-07T15:44:34 | 96,552,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | from django.contrib import admin
from reptiles.models.snake import Family, Dentition, Venom, Snake
class FamilyAdmin(admin.ModelAdmin):
prepopulated_fields = {'slug': ('name',)}
pass
admin.site.register(Family)
class DentitionAdmin(admin.ModelAdmin):
pass
admin.site.register(Dentition)
class VenomAdmi... | [
"yannickberthoud@pitvipers.local"
] | yannickberthoud@pitvipers.local |
358e87dd1db4761534976a33ebeba95159876c44 | b39dbe24db1da50680dee290f9cf06c2f7d940e6 | /cassandra/test.py | 3d670f2d5db13b2d3f21bea5fee4da29cec4b136 | [] | no_license | jonathanMNg/DDS-Benchmark | ea3f8c1e8ab9477fb62d6f0befedece61a2d6e29 | cce000a095de8023b1260d5219e030097fb4c947 | refs/heads/master | 2020-03-12T00:20:42.596242 | 2018-05-09T03:10:06 | 2018-05-09T03:10:06 | 130,346,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from cassandra.cluster import Cluster
cluster = Cluster()
session = cluster.connect('benchmark')
session.execute("""
CREATE TABLE IF NOT EXISTS testing (uid uuid PRIMARY KEY, name text);
""")
session.execute("""
INSERT INTO testing(uid, name) VALUES(uuid(), 'jon... | [
"31453488+jonathanMNg@users.noreply.github.com"
] | 31453488+jonathanMNg@users.noreply.github.com |
1617f071200ee4e38788e7bdc774ba34841994d2 | f808e3c97bb696480a5762f80af6a6570d1cc893 | /GenFramework/juicer/spiders/justwatch_crewmetadata.py | 2540c17e392066003fb480247886108d89d9e3d8 | [] | no_license | headrun/Playbox | 767261ac036da62ea1864c34711cd43e3d16417e | f6f7514a7373db2acc3d16ae74248a9a274c6ef6 | refs/heads/master | 2022-04-12T18:30:02.308140 | 2020-03-05T14:57:03 | 2020-03-05T14:57:03 | 143,406,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,011 | py | from juicer.utils import *
from juicer.items import *
from scrapy.http import FormRequest
import MySQLdb
import datetime
import smtplib
import calendar
import logging
import re
conn = MySQLdb.connect(host='localhost', user='root', passwd='e3e2b51caee03ee85232537ccaff059d167518e2',
db='JWURLQUEUE... | [
"sneha@headrun.com"
] | sneha@headrun.com |
74a43811de7ca3ae9cbfc985a1b448131b33fde9 | fe4f2aeb889f939ea6caf4a34371a3558064abcd | /vlmap_memft/model_vlmap_wordset_only_withatt.py | 55a10294930c0cb98ffa90ac98ff4e0ca9d52a50 | [
"MIT"
] | permissive | HyeonwooNoh/VQA-Transfer-ExternalData | cf9c1b82dd55389dfe5f52d8fd196780dd3d4629 | d21b700bcdc3ba3c392ff793b3f5efe23eb68ed6 | refs/heads/master | 2021-10-25T22:58:00.318492 | 2019-04-08T04:52:46 | 2019-04-08T04:52:46 | 122,662,354 | 21 | 3 | null | null | null | null | UTF-8 | Python | false | false | 28,746 | py | import cPickle
import os
import tensorflow as tf
from vlmap import modules
TOP_K = 5
W_DIM = 300 # Word dimension
L_DIM = 1024 # Language dimension
V_DIM = 1024
class Model(object):
def __init__(self, batch, config, is_train=True):
self.batch = batch
self.config = config
self.data_cfg... | [
"hyeonwoonoh@gmail.com"
] | hyeonwoonoh@gmail.com |
6da511645e7a197feda5f07313d5b595c8da81ab | bb726031eb8ab8e690786a766b679f0666695c10 | /urlhunter/blueprints/main.py | d01b118d39775b17480b5a7e51a603c41b8cc29b | [] | no_license | nsdown/urlhunter | 01fd9348fc36b2e7f6cebb3488ea5fb021e54fef | 1181d89d2f8c731e9693ec14a2fc4beee5b85d71 | refs/heads/master | 2020-04-13T01:18:56.216614 | 2018-12-23T04:17:52 | 2018-12-23T04:17:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,085 | py | import requests
from more_itertools import flatten
from flask import Blueprint, render_template, flash, redirect, url_for, request, current_app, Markup
from flask_login import login_required, current_user
from urlhunter.forms import URLForm, RegexForm
from urlhunter.utils import links
from urlhunter.models import Url, ... | [
"2582347430@qq.com"
] | 2582347430@qq.com |
2e33671e4c1e67bc84329d7d67b4d9731098f796 | e5d671f2af063a19a01f7e02fb0aeb4f4e68187e | /src/average_prediction.py | 3ca019c462a32bcc838aa4c9a9c6054f24627230 | [] | no_license | jeongyoonlee/masters-caesars-customer-gaming-prediction | 5314eaaf29c270b0891b05a58bd595a90240832b | f3afcef932e6d4b78439ec263ce55fc89b051bb1 | refs/heads/master | 2020-04-06T16:47:11.400407 | 2018-01-03T07:55:11 | 2018-01-03T07:55:11 | 157,634,249 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | #!/usr/bin/env python
from __future__ import division
import argparse
import logging
import numpy as np
import os
import pandas as pd
import time
from const import SEED
from kaggler.data_io import load_data
def train_predict(train_file, test_file, predict_valid_file, predict_test_file):
feature_name = os.path.... | [
"jeongyoon.lee1@gmail.com"
] | jeongyoon.lee1@gmail.com |
d678baa36522e8c0e840468a00d1b59f5613b19d | a834815a37b3420defb1e69e9ef722775103902e | /Session01/Homework/Bai1/app.py | c06520f4d581d6748df1af9dae1240ad8f904344 | [] | no_license | duchieu307/vuhoangduchieu-webs_c4e13 | cc3beb06cf9f4e0929d932ad0129f646d3663364 | 47a8eca383b7daabd3663d3503673049e8305962 | refs/heads/master | 2021-09-02T01:02:55.247325 | 2017-12-29T14:33:19 | 2017-12-29T14:33:19 | 112,108,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from flask import Flask, render_template, redirect
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello Hello'
@app.route('/about_me')
def about_me():
return render_template('about_me.html')
@app.route('/school')
def school():
return redirect("http://techkids.vn/", code = 302)
if __name__ =... | [
"duchieu307@gmail.com"
] | duchieu307@gmail.com |
4bbb46645cf286bb9518d5b6093418559fab28f5 | baf4681477a623caa6aea51da7dfc547617e04fa | /texte trilha.py | 08101984c4238c55d2c07b8fd59a78a83ac6d901 | [] | no_license | guilhermebalbinot/Jogo-datrilha-e-relatorio | 0b72c53a61c30119b1b3a900cd1c6e7c6e12a706 | 5ecb82742be8b1c12d3e5c49ae461d2ff4f55a48 | refs/heads/master | 2020-07-10T10:08:32.624080 | 2019-08-25T03:07:16 | 2019-08-25T03:07:16 | 204,238,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,600 | py | ##Jogo da Trilha
##Instituto Federal Catarinense - Campus Concórdia
##Trabalho de Programação - Professor tiago.mazzutti
##Cria por: guilherme B. de Almeida
##matricula: 2019303606
print('''
_________________________________________________________________________________
POSIÇÕES ... | [
"noreply@github.com"
] | noreply@github.com |
84bf5a269c3c8fedca2a8637eeb8b86c29f61f15 | f6e205fa6283808f530548a270a040f9606784bc | /geek_shop/settings.py | 0c5ebb0d5724a9abb6ab676ac7ee1a9b3e49b74e | [] | no_license | DariaKurakina/geek_shop_django | 8d3e28a5ee297084f7924cede5afa5c41df345b7 | 1aa8724913d3b2dabe93fe6b964675e2a6847af3 | refs/heads/master | 2020-07-01T19:43:23.714327 | 2019-08-08T14:43:59 | 2019-08-08T14:43:59 | 201,277,127 | 0 | 0 | null | 2019-08-12T16:42:59 | 2019-08-08T14:37:41 | Python | UTF-8 | Python | false | false | 3,201 | py | """
Django settings for geek_shop project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"KyrakinaDaria@yandex.ru"
] | KyrakinaDaria@yandex.ru |
dda50d0d9bf5a626f3b2921adbcb876a38c06129 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/temp_man/lombok_database_family/idea_family/game_head.py | 8f2901d0914575e6572ca848757d9392e89f1bf6 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Translator.API;
namespace CSharp_TranslateSample
{
public class Program
{
private const string SubscriptionKey = "774041bc63961f2d2f59c34b29325acd"; //Enter here the Key from your Microsoft Translator... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
3e1a1055720f89b457d468059276ddb4c6d038ff | 610fa4be08678de626948572610964b15aaf242a | /lagrange interpolation.py | 73051497a359d8139b74abd7b22428d4a7d2de6a | [] | no_license | Rohan-Chakravarthy/Basic-Mathematics-Programs | 56f0c83f7f092df06d47461faff600e9a777f7bc | 3506bd017c1891acf066bb1171e161a25c711b19 | refs/heads/main | 2023-01-12T09:51:31.913294 | 2020-10-30T08:54:23 | 2020-10-30T08:54:23 | 308,572,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | def lagi(X,Y,a):
res=0
b=len(X)
for i in range (0,b):
c=1
for j in range (0,b):
if (i!=j):
c=c*((a-X[j-1])/(X[i-1]-X[j-1]))
res = res + c*Y[i-1]
print(res)
X=[0,1,3,4]
Y=[-12,0,6,12]
lagi(X,Y,2)
| [
"noreply@github.com"
] | noreply@github.com |
656c9f58562a43a8ffa99171fc48c4ef5fad535a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/177/usersdata/271/100509/submittedfiles/pico.py | 392e7558a7b348a1605eca85241f40ce1d490a13 | [] | 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 | 1,668 | py | # -*- coding: utf-8 -*-
#FUNÇÕES
def crescente(lista) :
if len(lista)==1 :
return(False)
cont = 0
for i in range(0,len(lista),1) :
if (i==0) :
if(lista[i]<lista[i+1]) :
cont = cont+1
elif (i==len(lista)-1) :
if lista[len(lista-2)] < lista[len(l... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b93b4f5be48c893c85210950d92f8401699b04e8 | 3e7acb0962da48f29875d581c424ebbd3a98437c | /test/test_timeslotpage.py | cff39a4c93196a3844ea72a47ba486249dc72d75 | [] | no_license | crazypoo/geniusbar-reserver | ae02373bfaf24c5fdcd230c747c162ef259c2396 | b5d1981b59d998d8f110c87e8c5aa7ebe067f96c | refs/heads/master | 2021-01-21T08:14:52.607615 | 2014-12-13T05:41:14 | 2014-12-13T05:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import sys
if '../' not in sys.path:
sys.path.append('../')
from sites.apple_main import AppleGeniusBarReservation
from sites.apple_genius_bar.store_page import GeniusbarPage
import sys
reload(sys)
import os
sys.setdefaultencoding('utf-8')
cwd = os.path.abspath(os.getcwd())
# sites
sys.path.append(os.path.join(cwd... | [
"flowinair@gmail.com"
] | flowinair@gmail.com |
5fb80d23c2334418425c172ce478831d672a438d | 3765ee64c272f91918e5cb2876be80264e7c8af7 | /NBSpamClassifier.py | 881c6259d744a06df1554e87c410e082372fd23c | [] | no_license | danielhuynh94/DistributedSystem-SpamDetector | f351d0423c2b997723689ec25c75372ac1f41556 | 2f73450acfea15e987b373a4e544cf43335257ed | refs/heads/master | 2021-01-26T06:40:46.324255 | 2020-02-26T20:00:36 | 2020-02-26T20:00:36 | 243,350,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,038 | py | import sys
import re
import warnings
import math
import time
import pyspark as ps
from pyspark.accumulators import AccumulatorParam, AddingAccumulatorParam
from pyspark.sql.types import StructType, StructField, StringType
# Inputs
trainInput = sys.argv[1]
testInput = sys.argv[2]
def tokenize(sText):
# Given a st... | [
"danielhuynh94@gmail.com"
] | danielhuynh94@gmail.com |
a3720504b0405edeb5fa1836f9f6c46354683a49 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/kombu/utils/limits.py | 833cb96a47fce4401f66851a80cdda399eb46c6a | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 2,195 | py | """
kombu.utils.limits
==================
Token bucket implementation for rate limiting.
"""
from __future__ import absolute_import
from kombu.five import monotonic
__all__ = ['TokenBucket']
class TokenBucket(object):
"""Token Bucket Algorithm.
See http://en.wikipedia.org/wiki/Token_Bucket
Most of th... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
ac6f3138b14f8b2323e0d4fe07b03c1fd75e4bd9 | 8cfc628579396fcdfb9283746f40ce0636e2f84c | /lib/gclib/MMPersistent.py | f972988c8c4d1a920cee71087b4c1bbd1bf63199 | [] | no_license | gittme/cggame | 72e0b76b30eb4dbb28582914fcf144806fbf69bb | 4903de122b90be4c07be5540fd1788b4043a032a | refs/heads/master | 2021-01-16T17:47:09.220377 | 2013-12-02T03:48:41 | 2013-12-02T03:48:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | #coding:utf-8
#!/usr/bin/env python
import gclib.curl
import gclib.cacheobj
class MMPersistent:
@staticmethod
def install(obj, roleid):
pass
@staticmethod
def get(tp, roleid):
key = cacheobj.makeMKey(tp, roleid)
conn = DBConnection.getConnection()
res = conn.query("SELECT * FROM " + tp.__... | [
"xueboy798@163.com"
] | xueboy798@163.com |
adf1685660cd92543833062dc2a15281ab6c7339 | bd4dcd90d41aa228f0384c9ba03edd105a93d7ec | /products/migrations/0093_auto_20200221_2053.py | 68291c6f83fef49583f1309c16f7b5252bc349da | [] | no_license | deganoth/mu-shop | 0be0bb0cfa635986b37edbe371daf8373f09aefd | dc1a77ecf6217286c005d762b559fe3f61ef2f6d | refs/heads/master | 2023-02-17T08:23:36.339586 | 2023-01-10T17:51:21 | 2023-01-10T17:51:21 | 243,972,792 | 0 | 1 | null | 2023-02-15T23:10:09 | 2020-02-29T13:22:02 | Python | UTF-8 | Python | false | false | 6,720 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2020-02-21 20:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import djmoney.models.fields
class Migration(migrations.Migration):
dependencies = [
('products', '0092_auto_2020022... | [
"oliver.deegan@gmail.com"
] | oliver.deegan@gmail.com |
6f38e0f22db26a5e05ed594a5d15d460928a68ee | 623b83f99501313c3bf3f9fcd78f35d9c0c5836c | /MAIN/fit_ellipse.py | b32a8047ca1f626a8997e0c69ae78563e77eb567 | [] | no_license | CompVis-LV/3D-LV | 2d9ed915054885e5333d5a1aeec204071320283d | 0ec4cdc1eb4061713cdf22702dd71f03c6d65a38 | refs/heads/master | 2021-01-01T15:25:28.057745 | 2020-06-17T20:50:10 | 2020-06-17T20:50:10 | 239,329,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,601 | py | import numpy as np
from pylab import *
import cv2
from createMask import select_polygon
from numpy.linalg import eig, inv
from matplotlib.patches import Ellipse
import matplotlib.pyplot as plt
def fitEllipse(x,y):
x = x[:,np.newaxis]
y = y[:,np.newaxis]
D = np.hstack((x*x, x*y, y*y, x, y, np.ones_like(x)... | [
"jared.bellingham@gmail.com"
] | jared.bellingham@gmail.com |
be74904cdc25d4d4c7cf0e60588433a0cca13e45 | c7cbbd4b1c1e281cef5f4a0c4e3d4a97cee2241e | /froide/foirequest/feeds.py | f7f5013a62598bd972ecd4613d1f94601890043d | [
"MIT"
] | permissive | manonthemat/froide | 078cf78a6eb35226512c0bdfa2ac9043bcc81ad9 | 698c49935eaf2e922f3c9f6a46af0fd545ccbbbb | refs/heads/master | 2020-08-14T08:19:36.215473 | 2019-10-14T19:43:16 | 2019-10-14T19:43:16 | 215,129,869 | 0 | 0 | MIT | 2019-10-14T19:35:49 | 2019-10-14T19:35:49 | null | UTF-8 | Python | false | false | 4,189 | py | import re
from django.conf import settings
from django.contrib.syndication.views import Feed
from django.utils.feedgenerator import Atom1Feed
from django.utils.translation import ugettext_lazy as _
from django.urls import reverse
from django.shortcuts import get_object_or_404
from .models import FoiRequest
from .filt... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
300fd2e374ec2ed7ad9da7f7f2a8ad47d54f5f22 | 2f4189e091c6561cbae57c64ba992584c07278c1 | /settings/settings_local.py | 16f7f54515871215c660f8532ffd08e39309e7f8 | [] | no_license | useEvil/side-product-catalog | 8329336296cad772dba5618bc26b2353e0c69bad | 0317e180c4b241bbd527bf220ccc1b37dd66a135 | refs/heads/master | 2021-03-12T23:31:10.001141 | 2014-05-04T08:54:39 | 2014-05-04T08:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | import base64
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.6/howto/static-files/
STATIC_URL = '/static/'
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',... | [
"thai.nguyen@apollo.edu"
] | thai.nguyen@apollo.edu |
d28b2ba189d4cd74c177b25d287aeae3ef6cade1 | 74091dce735f281188d38d2f00d1a68e1d38ff7a | /pytest_udemy_params_datadriven_crossbrowser/tests/conftest.py | 8e184dcf876ae8b91e9a90573978768b1f73f6a5 | [] | no_license | nbiadrytski-zz/python-training | 96741aa0ef37bda32d049fde5938191025fe2924 | 559a64aae2db51e11812cea5ff602f25953e8070 | refs/heads/master | 2023-05-07T04:08:23.898161 | 2019-12-10T12:12:59 | 2019-12-10T12:12:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from pytest import fixture
from selenium import webdriver
import json
data_path = 'test_data.json'
def load_test_data(path):
with open(path) as data_file:
data = json.load(data_file)
return data
@fixture(params=load_test_data(data_path))
def tv_brand(request):
data = request.param
retu... | [
"Mikalai_Biadrytski@epam.com"
] | Mikalai_Biadrytski@epam.com |
9e90edcc6b34941d9f59e2a4513224c2a979ca0f | 5b5b1c55c6e0f1164785124e25624931a64dbfbb | /科大讯飞/scripts/lgb_model_2.py | 68ef2706cb9a1eb23e353e56ed41cb4a7a4c8113 | [] | no_license | Eadon999/Competition | 94ab52cc03108f823f6ae4890cd8eb22d78c187d | 57a0dd19e91574511f477b3339b8ff49826616a8 | refs/heads/master | 2020-05-07T01:10:51.773977 | 2019-03-20T01:10:43 | 2019-03-20T01:10:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,298 | py | # -*- coding: utf-8 -*-
"""
@author: taopeng
"""
import warnings
warnings.filterwarnings("ignore")
from sklearn.feature_selection import chi2, SelectPercentile
from sklearn.model_selection import StratifiedKFold
from scipy import sparse
import lightgbm as lgb
import pandas as pd
import numpy as np
from ... | [
"noreply@github.com"
] | noreply@github.com |
dfef5274104de2dccb8fd2d41af3beb5600621b8 | 9dc65c48d0f3bd0a19b809e22afa6db818688a56 | /price/migrations/0010_auto_20181111_1706.py | 415f81071f4668f3e15552fe88ce2299e1f57868 | [] | no_license | zeyizhou/item | 2f97583a1fbea87784ece9d053defc5604efd496 | eb9870d45d1f77c5abf22c1e0e8acb5b2af5ffc8 | refs/heads/master | 2020-04-02T19:16:22.314860 | 2018-11-18T15:45:21 | 2018-11-18T15:45:21 | 154,728,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Generated by Django 2.1.2 on 2018-11-11 16:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('price', '0009_auto_20181111_1700'),
]
operations = [
migrations.AlterField(
model_name='item',
name='id',
... | [
"zzy28101994@gmail.com"
] | zzy28101994@gmail.com |
40e89b7989c5e6d8f7aad0954bd436b90cc7752d | f62fd455e593a7ad203a5c268e23129473d968b6 | /neutron-10.0.2/neutron/tests/functional/agent/l3/test_legacy_router.py | fe6f7135012ce38ba46e1d9bdbb27aacecd5bbf3 | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 19,223 | py | # Copyright (c) 2014 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
395d5d325531f6a44e47ababe037cd9701a736b0 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/artifacts/files/__init__.py | efc655f736b989835c4478beee69c049eda522b7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 1,222 | py | # -*- coding: utf-8 -*- #
# Copyright 2022 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
eb6af1bd72e5ab45d99ad8e2d9eeffc43aa7f1ca | 50236faee765f25d97cf0298b58424f26bbedd33 | /Day-5.py | 428166a64a68678128e472858ea09d7918844553 | [] | no_license | SAGARNATH-S/Hackerrank_30Days_CodeingChallenge | a9e54b028f73d9293e8fb666f6016b964d37a9d7 | 5ca0de50904f14afdcc5ca69dbbf6d2315b1f7e3 | refs/heads/master | 2022-12-19T20:47:21.776706 | 2020-09-23T07:33:43 | 2020-09-23T07:33:43 | 297,877,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | n=int(input())
for i in range (1,11):
print(n,"x",i,"=",n*i) | [
"noreply@github.com"
] | noreply@github.com |
f8750e1a2eb1a06ce5e5f413e3dc31f1e024c55e | 1c983fe0289b5a99dcf6ecbd68943b6bf1158c51 | /mysite/blog/models.py | faf2dd09208633049d64d4c25e57b9542810e6ec | [] | no_license | SilentCruzer/my-first-blog | accec629f7a9ffe5f22a242c6ce27367ef2c8658 | 0ab14aec4c16aa35b4c2a6d7a3fcb9071b0f582e | refs/heads/master | 2023-02-15T20:20:37.590961 | 2021-01-15T19:36:03 | 2021-01-15T19:36:03 | 329,051,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | from django.db import models
from django.utils import timezone
from django.conf import settings
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField... | [
"radithyakumar7@gmail.com"
] | radithyakumar7@gmail.com |
dea7980e5ccc53966326100812888087b71c85a9 | 6aea632900e3eda93daae770c7fe454d80b1b8d5 | /forms.py | 0cb5ff66130f01200e5d858d52e5b8fc7d23a093 | [] | no_license | vimicasa/totp-master | d5af483c16a34b3b28827d23fd32eaed9a5b0aa2 | 05b9357587d025d2461b93b27fdb74135a51f4e2 | refs/heads/master | 2020-03-17T02:31:34.845973 | 2018-05-13T00:39:27 | 2018-05-13T00:39:27 | 133,193,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import DataRequired
class LoginForm(FlaskForm):
email = StringField('Email', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
submi... | [
"vimicasa@gmail.com"
] | vimicasa@gmail.com |
85568d75e709738f0e11fadd555867e281821e37 | 2a9db59cdcdc304fa9909b851372300138e7e5bd | /goldenegg/tamagotchi/migrations/0002_auto_20151011_0041.py | 5c57811ce9c1cc3a68e6e395be5770659003cca4 | [] | no_license | swartchris8/goldenegg | c4f784fd66ee3e850782813c081e6e4de34b016a | 6ddf16c3375ae015d4c4b3c31831de4c5f391a37 | refs/heads/master | 2021-05-29T13:15:55.108953 | 2015-10-11T14:53:15 | 2015-10-11T14:53:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tamagotchi', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='pet',
name='user',... | [
"cswart@outlook.com"
] | cswart@outlook.com |
db498f51c074ceb7f8481aaff85ecc8aefad9175 | e6f8d1f636148410f7b06bdb1b80923bd0375292 | /cloudyfsps/astrodata/__init__.py | 0b24003b229e53e9a6e41284b114563e3d8a94ef | [
"BSD-3-Clause"
] | permissive | prerakgarg07/cloudyfsps | 679eb5839140805e62904ae45eb8c62d25913da2 | 4a6a185343ed1e09b9f201a465c37e377ef42101 | refs/heads/master | 2020-07-20T20:58:41.669536 | 2019-09-09T00:00:45 | 2019-09-09T00:00:45 | 206,708,442 | 0 | 0 | BSD-3-Clause | 2019-09-06T03:51:06 | 2019-09-06T03:51:06 | null | UTF-8 | Python | false | false | 265 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (division, print_function, absolute_import,
unicode_literals)
__all__ = ["vanzee", "dopita", "sdss", "kewley"]
#import vanzee
#import dopita
#import sdss
#import kewley
| [
"ebyler@astro.washington.edu"
] | ebyler@astro.washington.edu |
e42d622c1426a68b75b5c9503972b27ca2794746 | f04089bf7df2b7cd4058f8df3ffe747c349afd60 | /multiply_strings.py | 77836126e3b8f258f7bf2527d3d6e09eaf5f1475 | [] | no_license | dbialon/LeetCode | d2a674f7c5ba51a3714ca46026d2a5d37681919d | d28c63779212519fe38e98b9f0e0cbf48137bc43 | refs/heads/master | 2023-01-12T06:27:32.516504 | 2020-11-18T11:35:00 | 2020-11-18T11:35:00 | 259,928,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # https://leetcode.com/problems/multiply-strings/
# given two non-negative integers num1 and num2 represented
# as strings, return the product of num1 and num2, also
# represented as a string.
def multiply(num1: str, num2: str) -> str:
if num1 == "0" or num2 == "0":
return "0"
table = {"1": 1, "2": 2,... | [
"dbialon79@outlook.com"
] | dbialon79@outlook.com |
6ea7d4e2de0614b43d6d6eba5b638b3d1f25870c | c4f87c60ebd142061dbbea431ccd4a37cf86726b | /src/util.py | 7b2a04b9a56050fa6ea2aadadf35d4fd390b1a8e | [] | no_license | 0zone/TinachiBigdata | ac8244b013d81f89d1c5884a88ad16f8b69c4157 | 2c20630e17327d10e06fc06d59fa6c128a23c4b1 | refs/heads/master | 2016-09-10T00:44:51.702343 | 2015-04-30T02:11:23 | 2015-04-30T02:11:23 | 34,438,623 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,080 | py | # coding=utf-8
import os
__author__ = 'jinyu'
import types
from datetime import *
import numpy as np
delimiter = ','
# 生成字典的key值
def get_features_key(features):
features_key_str = ''
for k, v in features.iteritems():
if (type(v) is not types.ListType) and (type(v) is not types.DictType):
... | [
"yupengjin@gmail.com"
] | yupengjin@gmail.com |
e68fc4550c477bbbfcb9e72f120f12025db3050e | 648411bd760b9c7018da516b4617b05a0d3a5dee | /core/config.py | 15bb43be748390910230122b73bbe541489e7487 | [
"Apache-2.0"
] | permissive | cartel32/ChefAPI | 6de457a4e4f7fd0a2123da1c97058565ccdcdc34 | bb622db1fb09feb85488438a6d840e0b6383b679 | refs/heads/main | 2023-06-09T15:09:27.923326 | 2021-06-26T02:03:38 | 2021-06-26T02:03:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | import secrets
from typing import Any, Dict, List, Optional, Union
from pydantic import AnyHttpUrl, BaseSettings, EmailStr, Field, HttpUrl, PostgresDsn, validator
class Settings(BaseSettings):
API_V1_STR = "/api/v1"
SECRET_KEY: str = secrets.token_urlsafe(64)
ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * ... | [
"yasserth19@gmail.com"
] | yasserth19@gmail.com |
4a37a813bc1009f56ef069342d7efadcdc3c9155 | abf508a4561cf3ff26fd0fca7c0c668bff49f9e8 | /browser.py | 8a31e299090650005307bdf3bf000684d36bf05e | [] | no_license | jackdreilly/quiklyrics | 225defe09759dc1313f52a6913acfa69ff497694 | e2f80c77fe43839d0dc46f416beb29a21c53bff4 | refs/heads/master | 2021-01-22T23:53:22.529127 | 2015-11-10T07:39:17 | 2015-11-10T07:39:17 | 23,895,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,665 | py | #!/usr/bin/python
#
# Peteris Krumins (peter@catonmat.net)
# http://www.catonmat.net -- good coders code, great reuse
#
# http://www.catonmat.net/blog/python-library-for-google-search/
#
# Code is licensed under MIT license.
#
import random
import socket
import urllib
import urllib2
import httplib
B... | [
"jackdreilly@gmail.com"
] | jackdreilly@gmail.com |
1eef8504082238da8d033b5ada4de498346a381b | 4d0ac3e28ae5b31faa000c166a8dd390a93b0dfc | /DataHandle/get_origin_data_tmall.py | 16a3f52e94680f4257e9e29f3c05f1e94601876d | [] | no_license | MRZhaowenxuan/DMPN | 03d78c74c4797b737baf899a1d4f3bc99382cf48 | 340a1aa212d63d3746d388a7dc299f59c26691e4 | refs/heads/master | 2022-12-07T01:57:20.409181 | 2020-08-31T16:24:38 | 2020-08-31T16:24:38 | 253,370,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | import pandas as pd
import numpy as np
import os
import time
from config.model_parameter import model_parameter
from DataHandle.get_origin_data_base import Get_origin_data_base
np.random.seed(1234)
class Get_tmall_data(Get_origin_data_base):
def __init__(self, FLAGS):
super(Get_tmall_data, self).__init__(F... | [
"2110637853@qq.com"
] | 2110637853@qq.com |
578735b0705540aebff0e38f87a678e59d899460 | 707ac8aa7f249c1fedaf478d8376e94ed14fada4 | /PrepareDataset.py | e86e11990f0767ddd3a8a63567a8a12ed03e5ba6 | [] | no_license | rockey1006/classifier_1110 | 7628d11d330b286899aed3b9803176d942f06ffa | 8a8aea8bf56ff28c8475d4a77c71c1d614f291ae | refs/heads/main | 2023-01-07T15:58:09.491036 | 2020-11-10T09:28:59 | 2020-11-10T09:28:59 | 311,607,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | import os
from tensorflow.keras.preprocessing.image import load_img,img_to_array
import numpy as np
from tensorflow.keras.applications.imagenet_utils import preprocess_input
import tensorflow.keras.backend as K
class PrepareDataset(object):
def prepare_data(self, path, vgg_face):
# Prepare Train Data
... | [
"noreply@github.com"
] | noreply@github.com |
da06c30fcdf5da5900236d15d66b10615231e136 | 9814320ad2bb2abf386d82cc15f0bd2b9f76dd75 | /demo/file/file_copy_small.py | 44bb7fb373f49defe920bde327d27189e95e0c95 | [] | no_license | vippiv/python-demo | d2adb8cd971b0e463a407c284f38015e56a31faf | 96bdaf931ed1132ce7a9158417fdec444ea33dc1 | refs/heads/master | 2022-11-06T21:37:16.056382 | 2019-09-16T07:13:01 | 2019-09-16T07:13:01 | 162,387,733 | 1 | 1 | null | 2022-10-27T16:00:06 | 2018-12-19T05:35:55 | Python | UTF-8 | Python | false | false | 287 | py | # 复制文件(针对小文件)
# 1、打开文件
file_read = open("hello.txt", "r", encoding="UTF-8")
file_write = open("hello1.txt", "w", encoding="GBK")
# 2、读、写
t_read = file_read.read()
file_write.write(t_read)
# 3、关闭文件
file_read.close()
file_write.close()
| [
"470211273@qq.com"
] | 470211273@qq.com |
9827a807920d3270208ee5ee2d316ba711ac1c8e | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ENTERASYS-SERVICE-LEVEL-REPORTING-MIB.py | 5932cdfda88a0855bdbd278ce5d375e416b10dbd | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 65,271 | py | #
# PySNMP MIB module ENTERASYS-SERVICE-LEVEL-REPORTING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-SERVICE-LEVEL-REPORTING-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:04:36 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
#... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
37e53ee8d00ef9888e5097ae8d3ab0393869a43f | 787da84b8d31ba0610cde3a9f2ddce56169efb92 | /blog/migrations/0002_article_pub_time.py | 393a88d30369d6edd4d13ed007cc02ec9b5fbccd | [] | no_license | baiqingsong/DjangoPythonDawn | cc931aa8a7e7b2988c8be3a3e760790ef87c06f4 | 55ec1bf1f199a5c6d03ba44ccdcfe90011ee578b | refs/heads/master | 2021-05-07T06:41:37.317653 | 2017-11-23T06:10:18 | 2017-11-23T06:10:18 | 111,770,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-23 06:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"904494377@qq.com"
] | 904494377@qq.com |
1c37cf62f5f7f96db0a8af682a7345f84b350e11 | 618db374a2a2b9d9789289b31addeaffbe0f951b | /algorithms/gibbs.py | 31f180a8473339ca61dde0ef899d7353f1a822e9 | [] | no_license | aidanscannell/approximate-inference | de1076fe72d5cb685534f0e27f5808f4760eb006 | daaec2c5ff72adf67d2f195c61b684a4236d5a45 | refs/heads/master | 2020-04-16T12:11:22.015200 | 2019-01-14T15:32:42 | 2019-01-14T15:32:42 | 165,566,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | import numpy as np
from ising_model import prior, likelihood
def gibbs(yImg, consts, max_scans):
"""
Implements Gibbs sampling for Ising Model (image de-noising)
:param yImg: noisy image (y)
:param consts: weight parameters for prior and likelihood respectively [w, beta]
:param max_scans: number o... | [
"as12528@my.bristol.ac.uk"
] | as12528@my.bristol.ac.uk |
549bed9daf0f4ef8d0ed86767a77ca00430090ef | 5b70fbd53b534306c146ffb98a0f99d2343a948f | /src/Python/Problem587.py | 2ba944f8d8d9652b2e76c40f120339f18f824584 | [] | no_license | aniruddhamurali/Project-Euler | 1f4ff3aa1e9c4efbc2a85026821e19a28b5edf90 | 408b3098fbc98ff3954679602c0468ddb56ea0ac | refs/heads/master | 2020-03-20T23:07:22.178103 | 2018-07-27T01:40:46 | 2018-07-27T01:40:46 | 137,830,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | # Problem 587
# Answer: 2240
import math
import itertools
def main():
# The indefinite integral of (1 - sqrt(2x - x^2)) dx.
def integral(x):
t = x - 1.0
return t - (math.sqrt(x * (2.0 - x)) * t + math.asin(t)) / 2.0
lsectionarea = 1.0 - math.pi/4.0
for i in itertools.count(1)... | [
"aniruddha.murali@gmail.com"
] | aniruddha.murali@gmail.com |
567deda66b4abddd9fbccea623c2fb3c285bc502 | 21dd7d56c370ea9a02b66654525fd96a398a9e49 | /apps/userprofile/migrations/0012_auto_20150706_1530.py | f76414aec2906f0309739ccb3346f2edf38718b3 | [] | no_license | hqpr/fame | fdad5d03bf9ee7ca31ae8a4701ff05bafd49540f | 8b77e3a822ae70ee6d79a8003e1d9f9bc5ba8355 | refs/heads/master | 2023-01-14T16:58:46.533090 | 2015-08-31T15:37:09 | 2015-08-31T15:37:09 | 35,205,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('userprofile', '0011_auto_20150705_1058'),
]
operations = [
migrations.AlterField(
model_name='us... | [
"adubnyak@gmail.com"
] | adubnyak@gmail.com |
58b5280f8d96a0e05f09a10855b875bd8c84a980 | 497da65319b456e515457a32d6fb426cf0a1fb24 | /django_basic/site_2_ans/polls/admin.py | cfc03b1021bd99ebd09e25759beaa3578c465ba5 | [] | no_license | jaytoone/Django | e09ad09883f1c5e4d87d75346277b649abab989c | 7ddd30341fc668c7718775809d1d3bdea9d3a8f9 | refs/heads/master | 2022-12-23T17:30:16.998914 | 2022-12-19T05:11:50 | 2022-12-19T05:11:50 | 242,020,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | from django.contrib import admin
from .models import Question, Choice
# Register your models here.
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 1 # Default로 보여줄 Choice 입력 slot의 수
class QuestionAdmin(admin.ModelAdmin):
# fieldsets 변수명은 고정입니다.
fieldsets = [
# ('field 집합의 소제목... | [
"nave94@naver.com"
] | nave94@naver.com |
d020b391aa17fab9770e8607e005440b02e93769 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow_nightly/source2.7/google/protobuf/internal/factory_test1_pb2.py | 8240f242a12b6b761056dc5e7317920be7dc0c1c | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | true | 7,816 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/protobuf/internal/factory_test1.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from googl... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
43c130f626ea97c9112314ba58d233d5e498962a | f44cd39483b09052d0191fa2aef8d431077da3bc | /style_word_alignment/self-attn-mask/eval_quality/eval_selected_words.py | 108714536c8d1ba3da0318b2ca87e73f619517bf | [] | no_license | ihungalexhsu/Text-style-tranfer | 3686719c8068ae4117705b09d98b5b8f3f41fc51 | d354b06afbd8ae8172314af524f4f6cdeded363c | refs/heads/master | 2020-04-12T13:16:09.870177 | 2019-07-06T09:35:20 | 2019-07-06T09:35:20 | 162,517,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | import pickle
import os
import sys
pos_gt = list()
with open('positive_words.txt', 'r') as f:
for lines in f.readlines():
pos_gt.append(lines.strip('\n').strip())
neg_gt = list()
with open('negative_words.txt', 'r') as f:
for lines in f.readlines():
neg_gt.append(lines.strip('\n').strip())
pos... | [
"ihunghsu@isi.edu"
] | ihunghsu@isi.edu |
53969353c6f958bd1317a396a11fbb7b0c11eac7 | bb3c27272c5d2964f020080e7f5820da1978b053 | /SWF_Automation/SWF Automation/Pictures_sort.py | 177e83cf3bb8fbb47f7edc1ce5f3bfe6595d2aaa | [] | no_license | gricchio/gmoneypython | 73a666196f3681b6f819e4a68265b088ef539209 | a35de257bff334d14d62dc8fd07015e25276e569 | refs/heads/master | 2023-03-07T18:09:55.740304 | 2023-03-05T03:37:18 | 2023-03-05T03:37:18 | 95,718,514 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | '''
Created on Apr 21, 2017
@author: RiccGA
'''
import os
import shutil
import datetime
import time
class filestructure(object):
def __init__(self,path):
self.path = path
self.filesnames = []
for name in os.listdir(self.path):
if os.path.isfile(os.path.join(p... | [
"RiccGA@LAP27266.springswf.com"
] | RiccGA@LAP27266.springswf.com |
e8a9dcd51d035e9b465c50586bc705c8021bee60 | 3ea04d7e4b48bae1f2de27b7ed1b1db96c1e114b | /bin/unet_128_model_no_restict.py | 2792d4a84befeff5aaa698e43c733fdb4db794dc | [] | no_license | schlogl2017/Deepshape | 82beec4db2f2d3f7b111da55c641f87707e7df8e | 473b59b0c01f1d662ff8c37e79397452173bbec0 | refs/heads/master | 2022-01-08T21:41:41.457017 | 2018-10-10T15:36:09 | 2018-10-10T15:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,142 | py | # coding: utf-8
import numpy as np
import keras
from keras.models import Model
from keras.layers import Input, Conv2D, MaxPooling2D, UpSampling2D
from keras.layers.normalization import BatchNormalization
from keras.layers.core import Dropout, Activation,Reshape
from keras import backend as K
from keras.laye... | [
"240682348@qq.com"
] | 240682348@qq.com |
84ead76c2b6246cab6f8556eb763595a5b04e967 | 1d23a4521ac248299a269842e4578fd441d3ff0f | /ex3.py | d0a596eb65a50a7bdca995c334232335d65bb6ae | [] | no_license | vijayxtreme/pythonautomateboringstuff | bd3b7cfdddeb812a9548f8904778c916aa4ef6ec | 415288a74795457fb66eb513a63cfb37e707b01f | refs/heads/master | 2020-05-21T12:07:16.887702 | 2019-05-10T22:40:36 | 2019-05-10T22:40:36 | 186,046,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | pets = ['cats', 'dogs', 'rabbits', 'hamsters']
for index, myPets in enumerate(pets):
print(index, myPets)
| [
"vijaymenonx@gmail.com"
] | vijaymenonx@gmail.com |
e29ee6ad0af2ac05c635f6f43c64c1d6f67ddf13 | c9ab605cdd2dbf92c9de05768ade0ecf1718be02 | /api 활용/rest.py | 5edba3b8356a963deb8a80da2fff32a437fe3817 | [] | no_license | PyeongGang-Kim/TIL | 42d69308cf99d2e07644b51d7636e1b64551a697 | 8711501d131ee7d78fdaac544dda2008adf820a1 | refs/heads/master | 2023-01-12T21:10:38.027946 | 2021-10-23T07:19:48 | 2021-10-23T07:19:48 | 195,937,990 | 10 | 1 | null | 2023-01-07T11:25:30 | 2019-07-09T05:22:45 | HTML | UTF-8 | Python | false | false | 977 | py | import requests, json
def ans():
global data
data["yourAnswer"] = input()
def seturl():
global url
url = urlbase+res.json()['nextUrl']
r = []
data = {
"nickname": "구미1반김평강",
"yourAnswer":"1"
}
urlbase = "http://13.125.222.176/quiz/"
idx = "jordan"
url = urlbase+idx
header = {
"Accept"... | [
"pyeonggangkim@gmail.com"
] | pyeonggangkim@gmail.com |
65404164a525c13e276ec1d9eb91e24fe9d95cee | 1b2a044ba307c23cea97c24e1a295c3c6ed921fd | /robot_setup_tf/src/set_yumi_settings_and_start.py | a2f7cbda649ddd858b0ea15cc588fdc0e45ae7d9 | [] | no_license | Gabrieleenx/yumi_dlo_thesis | fede79c28c341fa5cfba47f1269560f86753a5c6 | c6e5492811c1b82ea6396a42b664592068ac2ade | refs/heads/master | 2023-07-15T12:27:18.184865 | 2021-08-17T14:59:40 | 2021-08-17T14:59:40 | 336,006,920 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | #!/usr/bin/env python3
import rospy
import rosservice
def myhook():
print("shutdown begin")
rospy.wait_for_service('/yumi/rws/sm_addin/stop_egm')
rosservice.call_service('/yumi/rws/sm_addin/stop_egm', {})
rospy.sleep(0.7)
rospy.wait_for_service('/yumi/rws/stop_rapid')
rosservice.... | [
"gabwal@student.chalmers.se"
] | gabwal@student.chalmers.se |
4b0c36796c7fbee9f8d658388eef2ae10b381690 | 3e29bca9514a2a62624ddc9a9b277f8135ef8302 | /sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/azure_configuration_client_async.py | 085e7c271458190f59618ed6d912dda98b6a6ba2 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | ellismg/azure-sdk-for-python | ca7d6f247fe0cb58024841cf043a7c874b2859e7 | 9e1e067feddd23c90b17be03b7f4f85d12f7d05b | refs/heads/master | 2021-07-07T00:19:37.407574 | 2019-10-15T16:33:52 | 2019-10-15T16:33:52 | 215,399,695 | 0 | 0 | MIT | 2019-10-15T21:26:17 | 2019-10-15T21:26:17 | null | UTF-8 | Python | false | false | 20,989 | py | # ------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -------------------------------------------------------------------------
from request... | [
"noreply@github.com"
] | noreply@github.com |
ca607e46abd1b8b33e9da48876b4c1dc1fe81329 | a3c18431534cef6358282598bd4e53b3b68c2e3d | /pdadequest/DBScript.py | 883ebbffa3db621d1e77a1454baa480bb686e8f4 | [] | no_license | varinder-singh/PythonProgramming | 6a60a957457d922a1f402bd6726b7806faec5522 | 2b09fa4c7ea31fcd6264edef504483817d768147 | refs/heads/master | 2020-04-13T13:32:58.815565 | 2019-11-19T02:48:06 | 2019-11-19T02:48:06 | 163,233,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from datetime import datetime
from crontab import Crontab
| [
"vssandhu043@gmail.com"
] | vssandhu043@gmail.com |
fd0e6733084a3e11006f6cca228c72f9907b9e77 | 32128bbc7624365c76a88f3a06baeb3597f22abc | /attribution/get_attribution.py | 127ee0b65aab5665b3438b24d6cceb4c2bfd4c10 | [
"MIT"
] | permissive | luimagroup/bva-summarization | 56c11f22ae48dc767de5da91825c4849dae87299 | a1e8ed26d799dd26b18cc8839029ed0dfd55343a | refs/heads/master | 2022-12-11T12:46:46.034094 | 2019-04-30T07:05:15 | 2019-04-30T07:05:15 | 183,492,047 | 8 | 1 | MIT | 2022-12-08T01:03:43 | 2019-04-25T18:49:53 | Python | UTF-8 | Python | false | false | 2,316 | py | import numpy as np
import json
import keras
import os
import pickle
from IntegratedGradients import integrated_gradients
from sent_seg import segmented_sents, filter_sentences
from pprint import pprint
def generate_testcases(path, limit=50):
i = 1
for filename in os.listdir(path):
with open(os.path.jo... | [
"lwzhong@yahoo.com"
] | lwzhong@yahoo.com |
3b70c37701394e47a0761ab7ae5f277dcf5400f2 | b08ee2710e4495f01756f1ec58d75a440bf5b2be | /Zeyou/ZeyouSite/apps/students/serializers.py | ca66f5a11822bdd45a4d0348df4c945d3bb8848c | [] | no_license | xizhou175/ZeyouSite | 189fabd5d2095b7dfd7efb27b1297d3409371f3d | a7a9b7b8566468b37ee0e6392aadb04398208ec0 | refs/heads/main | 2023-05-28T20:41:52.009139 | 2021-05-28T14:10:51 | 2021-05-28T14:10:51 | 367,818,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | from rest_framework import serializers
from .models import Student
from rest_framework.response import Response
from datetime import date, datetime
class CreateStudentSerializer(serializers.ModelSerializer):
class Meta:
model = Student
fields = "__all__"
def validate(self, data):
if d... | [
"xizhou175@gmail.com"
] | xizhou175@gmail.com |
c8f7dcd011aa4533b5ba8dec9e3a4ed1b8232057 | 12362aa3c315e2b72ed29193ee24e3fd7f1a57db | /LeetCode/0780-Reaching Points/main.py | 0176d04c47bb9471fbfb6eb85d0b18ce9355da7a | [] | no_license | PRKKILLER/Algorithm_Practice | f2f4662352516965777605ccf116dd7945c4b94a | 73654b6567fdb282af84a868608929be234075c5 | refs/heads/master | 2023-07-03T23:24:15.081892 | 2021-08-09T03:55:12 | 2021-08-09T03:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | """
A move consists of taking a point (x, y) and transforming it to either (x, x+y) or (x+y, y).
Given a starting point (sx, sy) and a target point (tx, ty), return True if and only if a sequence of moves
exists to transform the point (sx, sy) to (tx, ty). Otherwise, return False.
Examples:
Input: sx = 1, sy = 1, ... | [
"dw6000@163.com"
] | dw6000@163.com |
461d2d82885676e86938adc3eadb53495bfb3586 | 71dc55b7324831b768aa496772cba793ca0003df | /LOC-old.py | 5cbbba991ab53ad1abd8b1eaafecce8cb6d15e59 | [] | no_license | JaiunL/BAFLore3.0 | 5db8b4df48cee31966da1bfd4d1337f935b63c06 | 7458238e3c1a6dd57aa70b39702ec8da462b40b9 | refs/heads/master | 2022-12-28T22:57:36.362564 | 2020-10-02T08:53:12 | 2020-10-02T08:53:12 | 274,806,056 | 0 | 0 | null | 2020-10-02T08:53:14 | 2020-06-25T01:37:21 | Python | UTF-8 | Python | false | false | 7,203 | py | import random
import sys
import time
print("British Armed Forces, Lore 3.0 Development Group \nLore Operations Console")
time.sleep(1)
CL = int(input("This program requires a Clearance Level to access. Please input your Clearance Level:"))
##if statement prompt
if CL >= 3:
UAC = input("Clearance Level... | [
"noreply@github.com"
] | noreply@github.com |
ae83b1bf593af03cf04cf0ad76ea4689908db278 | e3d061e3692c4003b616dfc9b7655ad7889b5b10 | /apps/strawberry_fields_listener.py | b3c6c3d0731862f381a18fc1bda242ac3335093e | [
"Apache-2.0"
] | permissive | nuzumco/blackbird | 515a84a40e4a98eefb18e7c98cbc358d848f45d9 | 1e78aa210d9c1acfabf12ee12d25b22bafbe51e1 | refs/heads/master | 2020-05-18T08:55:42.843764 | 2019-04-26T18:57:56 | 2019-04-26T18:57:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,349 | py | # Copyright 2019 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | [
"josh146@gmail.com"
] | josh146@gmail.com |
9cd565edc4474d7528b63e2f943dd49a7578c9e6 | 7b3db94bb0dac00fe7735ce72103e4e5422f08c8 | /temporary/cable_range_test.py | acbb5fa68751148bd155dd5cc6294affcca6fcd7 | [
"MIT"
] | permissive | mdbartos/RIPS | 5efa485138146179469c7fd539de527fc2b38b87 | ab654138ccdcd8cb7c4ab53092132e0156812e95 | refs/heads/master | 2021-01-23T03:53:52.636545 | 2015-08-06T06:44:28 | 2015-08-06T06:44:28 | 32,833,552 | 1 | 2 | null | 2015-05-22T00:51:23 | 2015-03-25T00:39:29 | Python | UTF-8 | Python | false | false | 8,433 | py | import numpy as np
import pandas as pd
import os
import sys
sys.path.append('/home/akagi/github/RIPS_kircheis/RIPS')
import rect_grid
import cable
acsr = [ u'Bittern', u'Bluebird', u'Bluejay', u'Bobolink', u'Bunting',
u'Canary', u'Cardinal', u'Chickadee', u'Chukar', u'Cochin',
u'Co... | [
"matthew.d.bartos@gmail.com"
] | matthew.d.bartos@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.